|
|
本帖最后由 gsbear 于 2018-11-30 00:59 编辑
Amber18的源代码编译安装,使用GNU编译器编译安装完全正常,但是选用Intel编译器编译时候,在configure步骤
./configure intel
其中进入到C和Fortran混合编译阶段测试出错,提示找不到库文件
/opt/intel/compilers_and_libraries_2019.0.117/linux/compiler/lib/intel64_lin/libifport.so.5
从出错命令看应该是icc的链接参数-lifport对应,有大侠知道这个是Intel编译器的什么问题引起的吗?
这个文件ls明明是存在的啊,为什么会找不到呢?
[root@localhost intel64_lin]# ls -l /opt/intel/compilers_and_libraries_2019.0.117/linux/compiler/lib/intel64_lin/libifport.so.5
-rwxr-xr-x. 1 root root 210422 Aug 3 19:35 /opt/intel/compilers_and_libraries_2019.0.117/linux/compiler/lib/intel64_lin/libifport.so.5
以下是configure出错信息:
-------------------------------------------------------------------------------------------------------------------------------------------------
Testing mixed C/Fortran compilation:
icc -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -std=gnu99 -c -o testp.c.o testp.c
ifort -fPIC -O0 -c -o testp.f.o testp.f
icc -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o testp testp.c.o testp.f.o -lifport -lifcore -lsvml
ld: warning: libimf.so, needed by /opt/intel/compilers_and_libraries_2019.0.117/linux/compiler/lib/intel64_lin/libifport.so.5, not found (try using -rpath or -rpath-link)
ld: warning: libintlc.so.5, needed by /opt/intel/compilers_and_libraries_2019.0.117/linux/compiler/lib/intel64_lin/libifport.so.5, not found (try using -rpath or -rpath-link)
ld: testp: hidden symbol `__intel_cpu_features_init_x' in /opt/intel/compilers_and_libraries_2019.0.117/linux/compiler/lib/intel64_lin/libirc.a(cpu_feature_disp.o) is referenced by DSO
ld: final link failed: Bad value
./configure2: line 2642: ./testp: No such file or directory
Error: Unable to compile mixed C/Fortran code.
Please check your compiler settings and configure flags.
Configure failed due to the errors above!
|
|