[Ipopt] Liblapack.so and libipopt.so: undefined references
Łukasz Segiet
lukas.segiet at gmail.com
Wed Nov 18 09:08:27 EST 2015
Hi,
My ultimate goal is to compile Ipopt with Pardiso, but after several
unsuccessful attempts I tried to compile it with Mumps (hoping I could link
it later dynamically). Unfortunately I encountered some problems there as
well, namely:
(I am building Ipopt-3.12.3 on Scientific Linux release 7.1 (Nitrogen) with
gcc (GCC) 4.8.3 20140911 (Red Hat 4.8.3-9) compiler)
I followed the instructions in the installation manual - I got BLAS,
Lapack and ASL, also I downloaded MUMPS 5.0.1 and put it in Mumps/MUMPS
directory.
Then, when I configure everything is fine, but when I make, I get following
output:
g++ -O3 -pipe -DNDEBUG -pedantic-errors -Wparentheses -Wreturn-type
-Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion
-Wno-unknown-pragmas -Wno-long-long -DIPOPT_BUILD -o .libs/ipopt
ampl_ipopt.o ./.libs/libipoptamplinterface.so
/home/lsegiet/Ipopt-3.12.3/build/Ipopt/src/Interfaces/.libs/libipopt.so
-L/home/lsegiet/CoinAll-1.7.5/lib -L/usr/lib/gcc/x86_64-redhat-linux/4.4.7
-L/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64
-L/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../..
../../Interfaces/.libs/libipopt.so
/home/lsegiet/Ipopt-3.12.3/build/ThirdParty/ASL/.libs/libcoinasl.so
-L/lib/../lib64 -L/usr/lib/../lib64
/home/lsegiet/CoinAll-1.7.5/lib/libcoinhsl.so -lgfortranbegin -lgfortran
-llapack -lblas -lm -ldl -Wl,--rpath
-Wl,/home/lsegiet/Ipopt-3.12.3/build/lib -Wl,--rpath
-Wl,/home/lsegiet/CoinAll-1.7.5/lib
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/liblapack.so:
undefined reference to `_gfortran_transfer_integer_write at GFORTRAN_1.4'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/liblapack.so:
undefined reference to `_gfortran_transfer_character_write at GFORTRAN_1.4'
/home/lsegiet/Ipopt-3.12.3/build/Ipopt/src/Interfaces/.libs/libipopt.so:
undefined reference to
`std::__detail::_List_node_base::_M_transfer(std::__detail::_List_node_base*,
std::__detail::_List_node_base*)'
/home/lsegiet/Ipopt-3.12.3/build/Ipopt/src/Interfaces/.libs/libipopt.so:
undefined reference to
`std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)'
/home/lsegiet/Ipopt-3.12.3/build/Ipopt/src/Interfaces/.libs/libipopt.so:
undefined reference to `std::__detail::_List_node_base::_M_unhook()'
/home/lsegiet/Ipopt-3.12.3/build/Ipopt/src/Interfaces/.libs/libipopt.so:
undefined reference to
`std::__detail::_List_node_base::swap(std::__detail::_List_node_base&,
std::__detail::_List_node_base&)'
collect2: error: ld returned 1 exit status
make[3]: *** [ipopt] Error 1
make[3]: Leaving directory
`/home/lsegiet/Ipopt-3.12.3/build/Ipopt/src/Apps/AmplSolver'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/lsegiet/Ipopt-3.12.3/build/Ipopt/src/Apps'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/lsegiet/Ipopt-3.12.3/build/Ipopt'
make: *** [all-recursive] Error 1
I tried also using configurations with the flags and options as below:
../configure --disable-pthread-mumps
../configure LDFLAGS="-Wl,--no-as-needed"
../configure --without-pkg-config
../configure --enable-dependency-linking
../configure LDFLAGS="-lgfortran"
but none of these seem to solve the issue.
Does anyone know what am I doing wrong or can you suggest me something?
Any help would be appreciated,
Lukasz Segiet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/ipopt/attachments/20151118/dffec41a/attachment.html>
More information about the Ipopt
mailing list