[Ipopt] Problem running Ipopt matlab interface
Paul van Hoven
paul.van.hoven at googlemail.com
Tue Jul 31 05:12:20 EDT 2012
Hi! Thanks for the advice. I talked to our system adminstrator. I
think he repaired something and gave me the clue to do the following:
export LD_LIBRARY_PATH=/net/matlab/Matlab2011b/bin/glnxa64:$LD_LIBRARY_PATH
Now configure runs through well, but I encounter another compilation
error that is not clear to me:
make[3]: Entering directory
`/homes/numerik/paul/lib_src/CoinIpopt/build/Ipopt/src/Apps/AmplSolver'
/bin/sh ../../../../libtool --tag=CXX --mode=link
/usr/site-local/bin/g++-4.2 -O3 -pipe -DNDEBUG -pedantic-errors
-Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall
-Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas
-fPIC -fexceptions -DFUNNY_LAPACK_FINT -L/usr/lib64 -lblas_pic -o
ipopt ampl_ipopt.o libipoptamplinterface.la
../../Interfaces/libipopt.la
/homes/numerik/paul/lib_src/CoinIpopt/build/ThirdParty/ASL/libamplsolver.a
-lm /homes/numerik/paul/lib_src/CoinIpopt/build/ThirdParty/HSL/libcoinhsl.la
-L/net/site-local.linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3
-L/net/site-local.linux64/bin/../lib/gcc
-L/net/site-local.linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../../lib64
-L/lib/../lib64 -L/usr/lib/../lib64
-L/net/site-local.linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../..
-lblas_pic -lgfortranbegin -lgfortran -lm -lgcc_s -llapack -lblas
-lm -ldl
/usr/site-local/bin/g++-4.2 -O3 -pipe -DNDEBUG -pedantic-errors
-Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall
-Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas
-fPIC -fexceptions -DFUNNY_LAPACK_FINT -o .libs/ipopt ampl_ipopt.o
-L/usr/lib64 ./.libs/libipoptamplinterface.so
-L/homes/combi/gawrilow/tmp/gcc-build.4.2.4/x86_64-unknown-linux-gnu/libstdc++-v3/src
-L/homes/combi/gawrilow/tmp/gcc-build.4.2.4/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-L/homes/combi/gawrilow/tmp/gcc-build.4.2.4/./gcc
-L/usr/site-local/lib/gcc/x86_64-unknown-linux-gnu/../../../lib64
-L/usr/site-local/lib/gcc/x86_64-unknown-linux-gnu/../..
../../Interfaces/.libs/libipopt.so
/usr/site-local/lib/gcc/x86_64-unknown-linux-gnu/4.2.4/libstdc++.so
/homes/numerik/paul/lib_src/CoinIpopt/build/ThirdParty/ASL/libamplsolver.a
/homes/numerik/paul/lib_src/CoinIpopt/build/ThirdParty/HSL/.libs/libcoinhsl.so
-L/net/site-local.linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3
-L/net/site-local.linux64/bin/../lib/gcc
-L/net/site-local.linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../../lib64
-L/lib/../lib64 -L/usr/lib/../lib64
-L/net/site-local.linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../..
-lblas_pic /usr/site-local/lib/gcc/x86_64-unknown-linux-gnu/4.3.3/libgfortranbegin.a
/usr/site-local/lib/gcc/x86_64-unknown-linux-gnu/4.3.3/libgfortran.so
-lgcc_s -llapack -lblas -lm -ldl -Wl,--rpath
-Wl,/homes/numerik/paul/lib/Ipopt/lib64/coin -Wl,--rpath
-Wl,/usr/site-local/lib/gcc/x86_64-unknown-linux-gnu/4.2.4 -Wl,--rpath
-Wl,/homes/numerik/paul/lib/Ipopt/lib64/coin/ThirdParty -Wl,--rpath
-Wl,/usr/site-local/lib/gcc/x86_64-unknown-linux-gnu/4.3.3
../../Interfaces/.libs/libipopt.so: undefined reference to
`_gfortran_transfer_integer_write'
/usr/lib64/liblapack.so: undefined reference to
`_gfortran_transfer_integer_write at GFORTRAN_1.4'
../../Interfaces/.libs/libipopt.so: undefined reference to
`_gfortran_transfer_character_write'
/usr/lib64/liblapack.so: undefined reference to
`_gfortran_transfer_character_write at GFORTRAN_1.4'
collect2: ld returned 1 exit status
make[3]: *** [ipopt] Fehler 1
make[3]: Leaving directory
`/homes/numerik/paul/lib_src/CoinIpopt/build/Ipopt/src/Apps/AmplSolver'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory
`/homes/numerik/paul/lib_src/CoinIpopt/build/Ipopt/src/Apps'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/homes/numerik/paul/lib_src/CoinIpopt/build/Ipopt'
make: *** [all-recursive] Fehler 1
2012/7/30 Tony Kelman <kelman at berkeley.edu>:
> In case someone hasn't already responded off-list, the below lines seem to
> indicate /usr/site-local/bin/gfortran-4.3 is not a working compiler.
> Configure tries to compile a bunch of small example files with different
> options to determine various things about the compiler, and in this case it
> determined the compiler isn't working! The example files aren't much more
> complicated than hello world. Have a look through config.log (the top-level
> one in build, the one under build/Ipopt, and the one under
> build/ThirdParty/Blas) to see more detailed error output, or try using
> /usr/site-local/bin/gfortran-4.3 manually on a few Fortran hello world
> examples to see what happens.
>
>
>> checking whether /usr/site-local/bin/gfortran-4.3 accepts -g... no
>> configure: WARNING: The flags FFLAGS="" do not work. I will now just
>
> try '-O', but you might want to set FFLAGS manually.
>>
>> configure: WARNING: This value for FFLAGS does not work. I will
>
> continue with empty FFLAGS, but you might want to set FFLAGS manually.
>>
>> configure: Fortran compiler options are:
>> checking how to get verbose linking output from
>
> /usr/site-local/bin/gfortran-4.3... configure: WARNING: compilation
> failed
>>
>> checking for Fortran libraries of /usr/site-local/bin/gfortran-4.3...
>> checking for dummy main to link with Fortran libraries... none
>> checking for Fortran name-mangling scheme... configure: error: cannot
>
> compile a simple Fortran program
>>
>> See `config.log' for more details.
>> configure: error: /bin/sh '../../../ThirdParty/Blas/configure' failed
>
> for ThirdParty/Blas
>
> Another thing you can try with the mex file you got from gfortran 4.6 is
> export LD_PRELOAD=/usr/lib64/gcc/x86_64-suse-linux/4.6/libgfortran.so
> although you might need a more specific .so.3 or something. Inside Matlab
> you can check which libraries ipopt.mexa64 is linking against by calling
> !ldd /homes/numerik/paul/lib/Ipopt/lib64/coin/ipopt.mexa64
> Compare this to the ldd results outside of Matlab to see just how many
> libraries Matlab is redirecting to its own versions.
>
>
More information about the Ipopt
mailing list