[LLVMdev] Possible LLVM or DragonEgg bug

sabaliauskas g. (gs5g08) gs5g08 at ecs.soton.ac.uk
Tue Feb 15 11:54:08 PST 2011


I'm getting the following error when compiling OpenCV 2.0 with OpenMP and SSE intrinsics enabled  with GCC+DragonEgg(newest SVN version):

/usr/lib64/ccache/c++     -Wall -Wno-long-long -pthread -ffunction-sections -D_GLIBCXX_PARALLEL -fopenmp -D__STDC_CONSTANT_MACROS -fplugin=/home/John/Documents/Project/DragonEgg/dragonegg/dragonegg.so -O3 -DNDEBUG  -fomit-frame-pointer -O3 -ffast-math -mmmx -msse -msse2 -msse3 -DNDEBUG         CMakeFiles/createsamples.dir/createsamples.o  -o ../../bin/opencv_createsamples -rdynamic ../../lib/libcxcore.so.2.0.0 ../../lib/libcv.so.2.0.0 ../../lib/libcvhaartraining.a ../../lib/libhighgui.so.2.0.0 ../../lib/libcv.so.2.0.0 ../../lib/libcxcore.so.2.0.0 ../../3rdparty/lib/libopencv_lapack.a ../../3rdparty/lib/libzlib.a ../../3rdparty/lib/libflann.a -ldl -lm -lpthread -lrt -lgomp -Wl,-rpath,/home/Gytis/Documents/Project/OpenCV/new2/OpenCV-2.0.0/bin/lib: 
../../lib/libcv.so.2.0.0: undefined reference to `_mm_cvtsd_si32(double __vector)'
collect2: ld returned 1 exit status

As I understand the linker can not find intrinsic SSE2 function  "_mm_cvtsd_si32"  while trying to link "opencv_createsamples" executable to "libcv.so.2.0.0".

If compiled with the same setup but with OpenMP disabled(i.e. no "-fopenmp" flag) compilation succeeds with no errors.

I would be very grateful if any body could tell me the cause of this problem or at least give me some hints where to start looking for it.





More information about the llvm-dev mailing list