我正在尝试针对Intel库构建Ipopt。但是在构建HSL时遇到了链接器错误,后来又出现了libtool错误。以下步骤基于Ipopt documentation
source /intel/2016u2/mkl/bin/mklvars.sh intel64
source /intel/2016u2/compilers_and_libraries/linux/bin/compilervars.sh -arch intel64
tar xvf Thirdparty/HSL/coinhsl.tar.gz
MKL_LIBS="-L${MKLROOT}/lib/intel64 -Wl,--no-as-needed -lmkl_intel_lp64 -lmkl_lapack95_lp64 -lmkl_sequential -lmkl_core -lgfortran -fopenmp -lpthread -lm -ldl -liomp5" ADD_CFLAGS="-fopenmp -fno-common -fexceptions" ADD_CXXFLAGS="-fopenmp -fno-common -fexceptions" ADD_FFLAGS="-fopenmp -fexceptions" ./configure -C FC=ifort CC=icc CXX=icpc LIBTOOL='/usr/bin/libtool --tag=CC' --with-blas-lib="${MKL_LIBS}" --with-lapack-lib="${MKL_LIBS}"
make
libtool:编译:无法推断标记的配置
libtool:编译:使用--tag'
*** [deps90.lo] Error 1
Leaving directory
/ Ipopt-3.12.13_intel / ThirdParty / HSL'指定标签
* [全部]错误2
离开目录`/Ipopt-3.12.13_intel/ThirdParty/HSL'
* [全部递归]错误1