[Ipopt] Intel Fortran Linker Problems
Stefan Vigerske
stefan at math.hu-berlin.de
Thu Feb 10 08:40:28 EST 2011
Hi,
maybe libtool doesn't know that it should use -Xlinker.
What if you build static libraries, using --enable-static
--disable-shared? Would that be sufficient (if it works)?
Stefan
> I compiled IPOPT with gcc and an generic BLAS without problems.
>
> Now I tried to compile it with the intel compiler and linking against MKL.
> The configure-Step works fine.
>
> ~/ipopt/current/configure
> CXX="icpc"
> CXXFLAGS="-shared-intel -no-gcc -O3 -DNDEBUG -cxxlib=/u/herc/nowak/linux/"
> CC="icc"
> CFLAGS="-shared-intel -O3 -DNDEBUG -no-gcc -cxxlib=/u/herc/nowak/linux/"
> F77="ifort" FFLAGS="-shared-intel -cxxlib=/u/herc/nowak/linux/ -no-gcc -O3
> -DNDEBUG"
> CXXLIBS="/u/herc/nowak/linux"
> -with-blas="-L/u/herc/nowak/mkl/lib/em64t -lmkl_intel_lp64 -lmkl_sequential
> -lmkl_core"
> -with-lapack="-L/u/herc/nowak/mkl/lib/em64t -lmkl_intel_lp64
> -lmkl_sequential -lmkl_core"
>
> However when I run make, it stops when
>
> /bin/sh ./../../libtool --tag=F77 --mode=link ifort -shared-intel
> -cxxlib=/u/herc/nowak/linux/ -no-gcc -O3 -DNDEBUG -o libcoinhsl.la -rpath
> /u/herc/nowak/ipopt/build1/lib/coin/ThirdParty -version-info 3:3:2 dummy.lo
> ma27ad.lo mc19ad.lo
> ifort -shared -nofor_main .libs/dummy.o .libs/ma27ad.o .libs/mc19ad.o
> -soname libcoinhsl.so.1 -o .libs/libcoinhsl.so.1.2.3
> ifort: command line warning #10156: ignoring option '-s'; no argument
> required
> ifort: error #10236: File not found: 'libcoinhsl.so.1'
> make[2]: *** [libcoinhsl.la] Error 1
> make[2]: Leaving directory `/u/herc/nowak/ipopt/build1/ThirdParty/HSL'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/u/herc/nowak/ipopt/build1/ThirdParty/HSL'
> make: *** [all-recursive] Error 1
>
>
> In the internet I found
> http://software.intel.com/en-us/articles/intel-compiler-error-10236-with-soname-corrupts-shared-library-on-linux/
>
> Zitat:
> In the case of supplying the linker -soname option, users must ensure the
> correct syntax is used with -Xlinker.
> The incorrect syntax is: -Xlinker -soname
> The correct syntax is one of two forms: -Xlinker -soname= -OR- -Xlinker
> -soname -Xlinker
>
>
> However I do not know, how to tell this the configure-script.
>
> Thank you for any help,
> Uwe
>
>
>
>
>
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/ipopt
>
More information about the Ipopt
mailing list