[Ipopt] Problem running Ipopt matlab interface

Paul van Hoven paul.van.hoven at googlemail.com
Wed Aug 1 05:50:48 EDT 2012


Okay, now I did the following:

../configure --prefix=/homes/numerik/paul/lib/Ipopt \
CXX=/usr/site-local/bin/g++-4.2 \
CC=/usr/site-local/bin/gcc-4.2 \
F77=/usr/site-local/bin/gfortran-4.3 \
ADD_CXXFLAGS="-fPIC -fexceptions -DFUNNY_LAPACK_FINT" \
ADD_CFLAGS="-fPIC -fexceptions" \
ADD_FFLAGS="-fPIC -fexceptions" \
--with-matlab-home=/net/matlab/Matlab2011b \
LDFLAGS="-L/usr/lib64 -lblas_pic" \
--with-lapack=BUILD \
--with-blas=BUILD

and this is what happens:

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
/homes/numerik/paul/lib_src/CoinIpopt/build/ThirdParty/Lapack/libcoinlapack.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
/homes/numerik/paul/lib_src/CoinIpopt/build/ThirdParty/Blas/libcoinblas.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   -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/../../..
/homes/numerik/paul/lib_src/CoinIpopt/build/ThirdParty/Lapack/.libs/libcoinlapack.so
/homes/numerik/paul/lib_src/CoinIpopt/build/ThirdParty/Blas/.libs/libcoinblas.so
-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 -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'
../../Interfaces/.libs/libipopt.so: undefined reference to
`_gfortran_transfer_character_write'
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/31 Tony Kelman <kelman at berkeley.edu>:
> Looks like /usr/lib64/liblapack.so was built using an incompatible (newer?)
> version of gfortran than what you're trying to compile with this time. Try
> adding --with-lapack=BUILD, and you'll probably also need --with-blas=BUILD,
> to your configure command.
>
>
>> ../../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'
>
>
>


More information about the Ipopt mailing list