Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 633978

Summary: media-libs/opencv-3.3.0-r2 - ../../lib/libopencv_imgproc.so.3.3.0: undefined reference to `cv::opt_SSE4_1::resizeNN2_SSE4_1(cv::Range const&, cv::Mat const&, cv::Mat&, int*, int, double)'
Product: Gentoo Linux Reporter: Bertrand Jacquin <bertrand>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
info.log

Description Bertrand Jacquin 2017-10-10 19:37:53 UTC
Hi,

media-libs/opencv-3.3.0-r2 fails to build with the following USE flag combination:

[ebuild     U  ] media-libs/opencv-3.3.0-r2:0/3.3::gentoo [3.2.0-r3:0/3.2::gentoo] USE="eigen ffmpeg gstreamer gtk jpeg jpeg2k openexr opengl openmp png python threads tiff vaapi webp xine -contrib -contrib_cvv -contrib_hdf -contrib_sfm -contrib_xfeatures2d -cuda -debug -examples -gdal -gflags -glog -gphoto2 -ieee1394 (-ipp) -java -lapack -libav -opencl (-pch) -qt5 -tesseract -testprograms -v4l -vtk" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7 python3_4 python3_5" 0 KiB

The error is the following:

[ 96%] Linking CXX executable ../../bin/opencv_traincascade
cd /var/tmp/portage/media-libs/opencv-3.3.0-r2/work/opencv-3.3.0-abi_x86_64.amd64/apps/traincascade && /usr/bin/cmake -E cmake_link_script CMakeFiles/opencv_traincascade.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-g++  -march=native -O2 -pipe -fomit-frame-pointer   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections  -msse -msse2 -msse3 -mssse3 -mpopcnt -fvisibility=hidden -fvisibility-inlines-hidden -fopenmp -Wno-overloaded-virtual  -Wl,-O1 -Wl,--as-needed  -rdynamic CMakeFiles/opencv_traincascade.dir/HOGfeatures.cpp.o CMakeFiles/opencv_traincascade.dir/boost.cpp.o CMakeFiles/opencv_traincascade.dir/cascadeclassifier.cpp.o CMakeFiles/opencv_traincascade.dir/features.cpp.o CMakeFiles/opencv_traincascade.dir/haarfeatures.cpp.o CMakeFiles/opencv_traincascade.dir/imagestorage.cpp.o CMakeFiles/opencv_traincascade.dir/lbpfeatures.cpp.o CMakeFiles/opencv_traincascade.dir/old_ml_boost.cpp.o CMakeFiles/opencv_traincascade.dir/old_ml_data.cpp.o CMakeFiles/opencv_traincascade.dir/old_ml_inner_functions.cpp.o CMakeFiles/opencv_traincascade.dir/old_ml_tree.cpp.o CMakeFiles/opencv_traincascade.dir/traincascade.cpp.o  -o ../../bin/opencv_traincascade -ldl -lm -lpthread -lrt -lGLU -lGL /usr/lib64/libtbb.so ../../lib/libopencv_objdetect.so.3.3.0 ../../lib/libopencv_calib3d.so.3.3.0 ../../lib/libopencv_features2d.so.3.3.0 ../../lib/libopencv_highgui.so.3.3.0 ../../lib/libopencv_flann.so.3.3.0 ../../lib/libopencv_videoio.so.3.3.0 ../../lib/libopencv_imgcodecs.so.3.3.0 ../../lib/libopencv_imgproc.so.3.3.0 ../../lib/libopencv_core.so.3.3.0
../../lib/libopencv_imgproc.so.3.3.0: undefined reference to `cv::opt_SSE4_1::resizeNN2_SSE4_1(cv::Range const&, cv::Mat const&, cv::Mat&, int*, int, double)'
../../lib/libopencv_core.so.3.3.0: undefined reference to `cv::opt_SSE4_1::cvtScale_SIMD_s16u16f32_SSE41(short const*, unsigned short*, int, float, float)'
../../lib/libopencv_imgproc.so.3.3.0: undefined reference to `cv::opt_SSE4_1::WarpAffineInvoker_Blockline_SSE41(int*, int*, short*, int, int, int)'
../../lib/libopencv_core.so.3.3.0: undefined reference to `cv::opt_SSE4_1::cvtScale_SIMD_s32u16f32_SSE41(int const*, unsigned short*, int, float, float)'
../../lib/libopencv_core.so.3.3.0: undefined reference to `cv::opt_SSE4_1::cvtScale_SIMD_u16u16f32_SSE41(unsigned short const*, unsigned short*, int, float, float)'
../../lib/libopencv_imgproc.so.3.3.0: undefined reference to `cv::opt_SSE4_1::convertMaps_nninterpolate32f1c16s_SSE41(float const*, float const*, short*, int)'
../../lib/libopencv_imgproc.so.3.3.0: undefined reference to `cv::opt_SSE4_1::convertMaps_32f1c16s_SSE41(float const*, float const*, short*, unsigned short*, int)'
../../lib/libopencv_imgproc.so.3.3.0: undefined reference to `cv::opt_SSE4_1::convertMaps_32f2c16s_SSE41(float const*, short*, unsigned short*, int)'
../../lib/libopencv_core.so.3.3.0: undefined reference to `cv::opt_SSE4_1::cvtScale_SIMD_f64u16f32_SSE41(double const*, unsigned short*, int, float, float)'
../../lib/libopencv_core.so.3.3.0: undefined reference to `cv::opt_SSE4_1::cvtScale_SIMD_s8u16f32_SSE41(signed char const*, unsigned short*, int, float, float)'
../../lib/libopencv_core.so.3.3.0: undefined reference to `cv::opt_SSE4_1::cvtScale_SIMD_u8u16f32_SSE41(unsigned char const*, unsigned short*, int, float, float)'
../../lib/libopencv_imgproc.so.3.3.0: undefined reference to `cv::opt_SSE4_1::resizeNN4_SSE4_1(cv::Range const&, cv::Mat const&, cv::Mat&, int*, int, double)'
../../lib/libopencv_imgproc.so.3.3.0: undefined reference to `cv::opt_SSE4_1::WarpPerspectiveLine_SSE4::getImpl(double const*)'
../../lib/libopencv_imgproc.so.3.3.0: undefined reference to `cv::opt_SSE4_1::VResizeLanczos4Vec_32f16u_SSE41(unsigned char const**, unsigned char*, unsigned char const*, int)'
../../lib/libopencv_core.so.3.3.0: undefined reference to `cv::opt_SSE4_1::cvtScale_SIMD_f32u16f32_SSE41(float const*, unsigned short*, int, float, float)'
../../lib/libopencv_core.so.3.3.0: undefined reference to `cv::opt_SSE4_1::Cvt_SIMD_f64u16_SSE41(double const*, unsigned short*, int)'
collect2: error: ld returned 1 exit status
make[2]: *** [apps/traincascade/CMakeFiles/opencv_traincascade.dir/build.make:393: bin/opencv_traincascade] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-libs/opencv-3.3.0-r2/work/opencv-3.3.0-abi_x86_64.amd64'
make[1]: *** [CMakeFiles/Makefile2:2058: apps/traincascade/CMakeFiles/opencv_traincascade.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/media-libs/opencv-3.3.0-r2/work/opencv-3.3.0-abi_x86_64.amd64'
make: *** [Makefile:163: all] Error 2
 * ERROR: media-libs/opencv-3.3.0-r2::gentoo failed (compile phase):
 *   emake failed

Full log attached as long as emerge --info

Reproducible: Always
Comment 1 Bertrand Jacquin 2017-10-10 19:41:02 UTC
Created attachment 498364 [details]
build.log

build.log
Comment 2 Bertrand Jacquin 2017-10-10 19:41:29 UTC
Created attachment 498366 [details]
info.log

emerge --info
Comment 3 Arfrever Frehtes Taifersar Arahesis 2017-10-12 03:41:27 UTC

*** This bug has been marked as a duplicate of bug 633900 ***