linker - intel_sse2 problems when linking to gsl with icc -


my program links both petsc , gsl, , both libraries compiled icc. here's link command:

/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_cc set icc, mpicc calls intel compiler.

when try link gsl .so file, following errors:

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

what cause of error? gsl incompatible intel compiler?

what cause of error?

you didn't show link command, crystall ball tells me trying link libgsl.so ld (or perhaps gcc), instead of icc.

in general, 1 should never link directly ld on unix. use appropriate compiler driver (icc in case).


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -