[Ipopt] Ipopt installation: undefined reference to `clock_gettime'
Michele Castellana
michele.castellana at gmail.com
Thu Jul 5 08:29:31 EDT 2018
Dear all,
I receive an error message when trying to install ipopt on Linux. I have
downloaded ipopt 3.12.8 from here <https://www.coin-or.org/download/source/Ipopt/Ipopt-3.12.8.tgz>
unzipped the archive in /Ipopt-3.12.8/
installed BLAS, Lapack and ASL as recommended in the ipopt documentation
$mkdir /Ipopt-3.12.8/build
$cd Ipopt-3.12.8/build
$../configure --prefix=/home/ipopt_directory
and when I run $make, I get the following error
g++ -O3 -pipe -DNDEBUG -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 /obs/username/Ipopt-3.12.8/build/Ipopt/src/Interfaces/.libs/libipopt.so ../../Interfaces/.libs/libipopt.so /obs/user_name/Ipopt-3.12.8/build/ThirdParty/ASL/.libs/libcoinasl.so /obs/user_name/Ipopt-3.12.8/build/ThirdParty/Lapack/.libs/libcoinlapack.so -L/usr/lib/gcc/x86_64-redhat-linux/4.4.6 -L/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/opt/intel/clck/2018.1/lib/intel64 -L/opt/intel/compilers_and_libraries_2018.1.163/linux/ipp/lib/intel64 -L/opt/intel/compilers_and_libraries_2018.1.163/linux/compiler/lib/intel64_lin -L/opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64_lin -L/opt/intel/compilers_and_libraries_2018.1.163/linux/tbb/lib/intel64/gcc4.4 -L/opt/intel/compilers_and_libraries_2018.1.163/linux/daal/lib/intel64_lin -L/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../.. /obs/user_name/Ipopt-3.12.8/build/ThirdParty/Blas/.libs/libcoinblas.so -lgfortranbegin -lgfortran -lm -ldl -Wl,--rpath -Wl,/obs/user_name/ipopt//lib
/obs/user_name/Ipopt-3.12.8/build/ThirdParty/ASL/.libs/libcoinasl.so: undefined reference to `clock_gettime'
collect2: ld returned 1 exit status
make[3]: *** [ipopt] Error 1
make[3]: Leaving directory `/cluster3_home/user_name/Ipopt-3.12.8/build/Ipopt/src/Apps/AmplSolver'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/cluster3_home/user_name/Ipopt-3.12.8/build/Ipopt/src/Apps'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cluster3_home/user_name/Ipopt-3.12.8/build/Ipopt'
make: *** [all-recursive] Error 1
I am aware that one possible solution <https://stackoverflow.com/questions/2418157/ubuntu-linux-c-error-undefined-reference-to-clock-gettime-and-clock-settim> is to add the -lrt flag, but I am not sure where nor how to insert it (in the makefile?). Do you know a way around this problem?
Thank you for your help
Best,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/ipopt/attachments/20180705/2e13cae0/attachment-0001.html>
More information about the Ipopt
mailing list