Problems with intel_sse2 when connecting to gsl with icc

My program contacts PETSc and gsl, and both libraries were compiled using icc. Here is the link:

/usr/local/mpich2/bin/mpicc -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g3 -I/usr/local/gsl-icc-1.15/include/ -I/usr/local/gsl-icc-1.15/include/ -L/usr/local/gsl-icc-1.15/lib/ -lgsl -lgslcblas prog_name.o -L/usr/local/petsc-3.2-p6/lib  -lpetsc -lX11 -lpthread -llapack -lblas -L/central/intel/Compiler-11.1.072/mkl/lib/em64t -L/central/intel/Compiler-11.1.072/lib/intel64 -L/central/intel/Compiler-11.1.072/tbb/intel64/cc3.4.3_libc2.3.4_kernel2.6.9/lib -L/usr/lib/gcc/x86_64-redhat-linux/4.1.2 -ldl -lgcc_s -lifport -lifcore -limf -lsvml -lm -lipgo -lirc -lpthread -lirc_s -lm -lstdc++ -lstdc++ -ldl -lgcc_s -ldl  -o prog_name

MPICH_CCset to icc, so it mpicccalls the Intel compiler.

When I try to link the gsl file .so, I get the following errors:

gsl-icc-1.15/lib/libgsl.so: undefined reference to `__intel_sse2_strcpy'
gsl-icc-1.15/lib/libgsl.so: undefined reference to `__intel_sse2_strchr'
gsl-icc-1.15/lib/libgsl.so: undefined reference to `__intel_sse2_strncpy'

What could be causing this error? Is gsl incompatible with the Intel compiler?

+2
source share
3 answers

What could be causing this error?

You didn’t give us your link, but my crystal ball tells me that you are trying to link libgsl.soto ld(or, possibly, to gcc), not icc.

, - ld UNIX. (icc ).

+1

gcc PETSc, icc. , Intel 12.x PETSc Intel 11.x , Intel 12.x 11.x.

, , mpicc Intel 11.1.072. mpic++ -show which icc.

+1

, Intel . :

source /etc/Intel_Compiler/10.0/XXXX/iccvars_intel64.sh
source /etc/Intel_Compiler/10.0/XXXX/ifortvars_intel64.sh

Intel. , :

source /etc/Intel_Compiler/10.0/XXXX/iccvars.sh intel64
source /etc/Intel_Compiler/10.0/XXXX/ifortvars.sh intel64

, .

0
source

All Articles