[Ipopt] Installation woes

Stefan Vigerske stefan at math.hu-berlin.de
Sun Oct 20 14:02:43 EDT 2019


Hi,

--with-hsl-lib should specify all linker flags and not only the library 
dir. Probably something like -lcoinhsl is missing.

Stefan


On 3/12/19 4:59 PM, Davin wrote:
> Hello,
> 
> I'm compiling on Linux with HSL and appear to be experiencing linking
> issues.
> I configure with:
> 
> ../configure
> --with-hsl-incdir="$HOME/tmp/coinhsl-linux-x86_64-2015.06.23/include"
> --with-hsl-lib="-L$HOME/tmp/coinhsl-linux-x86_64-2015.06.23/lib"
> ADD_CFLAGS=-fopenmp ADD_FFLAGS=-fopenmp ADD_CXXFLAGS=-fopenmp
> 
> configure appears to succeed, make appears to succeed, and make test fails
> with:
> 
> g++ -O3 -pipe -DNDEBUG -Wparentheses -Wreturn-type -Wcast-qual -Wall
> -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas
> -Wno-long-long -fopenmp -DIPOPT_BUILD -o .libs/hs071_cpp hs071_main.o
> hs071_nlp.o  ../src/Interfaces/.libs/libipopt.so
> -L/home/user/tmp/coinhsl-linux-x86_64-2015.06.23/lib -llapack -lblas -lm
> -ldl -Wl,--rpath -Wl,/home/user/tmp/CoinIpopt/build/lib
> ../src/Interfaces/.libs/libipopt.so: undefined reference to
> `ma77_finalise_d'
> ../src/Interfaces/.libs/libipopt.so: undefined reference to
> `ma77_input_vars_d'
> ../src/Interfaces/.libs/libipopt.so: undefined reference to
> `ma77_input_reals_d'
> ../src/Interfaces/.libs/libipopt.so: undefined reference to
> `ma77_factor_solve_d'
> 
> and a longer list of undefined references. It's not related to the fopenmp
> flags, because the result is the same when these are omitted. echo
> $LD_LIBRARY_PATH also produces
> :/home/user/tmp/coinhsl-linux-x86_64-2015.06.23/lib/
> 
> I'm not sure what other information I should provide.
> 
> Thanks!
> 
> 
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> https://list.coin-or.org/mailman/listinfo/ipopt
> 



More information about the Ipopt mailing list