Possible LLVM or DragonEgg bug

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.

Hi,

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

I can reproduce this - investigating.

Ciao, Duncan.

This is hopefully fixed in the latest version of dragonegg. Thanks for
reporting it!

Ciao, Duncan.

I have downloaded and compiled the latest versions of LLVM and DragonEgg from SVN, but I still seem to get this same problem. I am using 64-bit Linux OS maybe the fix was only for 32-bit OS'es?

I have downloaded and compiled the latest versions of LLVM and DragonEgg from SVN, but I still seem to get this same problem. I am using 64-bit Linux OS maybe the fix was only for 32-bit OS'es?

I am also using 64-bit linux, and the patch I applied fixed this issue. That
said, OpenCV still didn't compile but for a different reason, which was nothing
to do with dragonegg (i.e. it also failed with plain gcc).
Are you sure you configured OpenCV to use the new plugin not the old?

Ciao, Duncan.