While building media-libs/opencv for ABI x32, the following error is reported MAKEOPTS=-j1 \ emerge -va1t media-libs/opencv (..) [ebuild N ] media-libs/opencv-2.4.8:0/2.4 USE="eigen ffmpeg gstreamer gtk jpeg jpeg2k openexr opengl openmp png python threads tiff -cuda -doc -examples -ieee1394 (-ipp) -java -opencl (-pch) -qt4 -testprograms -v4l -xine" PYTHON_SINGLE_TARGET="python2_7 (-python2_6)" PYTHON_TARGETS="python2_7 (-python2_6)" 0 kB (..) [ 6%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/parallel.cpp.o cd /var/tmp/portage/media-libs/opencv-2.4.8/work/opencv-2.4.8_build/modules/core && /usr/bin/x86_64-pc-linux-gnux32-g++ -DCVAPI_EXPORTS -DNDEBUG -march=native -O2 -pipe -fomit-frame-pointer -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -Wno-long-long -pthread -mfpmath=387 -ffunction-sections -fPIC -I/var/tmp/portage/media-libs/opencv-2.4.8/work/opencv-2.4.8/modules/dynamicuda/include -I/var/tmp/portage/media-libs/opencv-2.4.8/work/opencv-2.4.8_build/modules/core -I/var/tmp/portage/media-libs/opencv-2.4.8/work/opencv-2.4.8/modules/core/src -I/var/tmp/portage/media-libs/opencv-2.4.8/work/opencv-2.4.8/modules/core/include -I/var/tmp/portage/media-libs/opencv-2.4.8/work/opencv-2.4.8_build -isystem /usr/include/eigen3 -o CMakeFiles/opencv_core.dir/src/parallel.cpp.o -c /var/tmp/portage/media-libs/opencv-2.4.8/work/opencv-2.4.8/modules/core/src/parallel.cpp In file included from /usr/include/sys/sysctl.h:63:0, from /var/tmp/portage/media-libs/opencv-2.4.8/work/opencv-2.4.8/modules/core/src/parallel.cpp:60: /usr/include/bits/sysctl.h:19:3: error: #error "sysctl system call is unsupported in x32 kernel" # error "sysctl system call is unsupported in x32 kernel" ^ modules/core/CMakeFiles/opencv_core.dir/build.make:517: recipe for target 'modules/core/CMakeFiles/opencv_core.dir/src/parallel.cpp.o' failed make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/src/parallel.cpp.o] Error 1 make[2]: Leaving directory '/var/tmp/portage/media-libs/opencv-2.4.8/work/opencv-2.4.8_build' CMakeFiles/Makefile2:673: recipe for target 'modules/core/CMakeFiles/opencv_core.dir/all' failed make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2 make[1]: Leaving directory '/var/tmp/portage/media-libs/opencv-2.4.8/work/opencv-2.4.8_build' Makefile:116: recipe for target 'all' failed make: *** [all] Error 2 * ERROR: media-libs/opencv-2.4.8::gentoo failed (compile phase): * emake failed full build.log attached and emerge --info Reproducible: Always
Created attachment 378414 [details] build.log
Created attachment 378416 [details] emerge --info
Are you sure that opencv 2.4.8 supports x32 ? I don't think so. If I am wrong and it is supported please attach link about it. Thanks Amy
It looks to be recently fixed in upstream git, but not yet in any release: https://github.com/Itseez/opencv/commit/7b0d1c932e502a7f157222cb683531e2849de393
(In reply to Michael Palimaka (kensington) from comment #4) > It looks to be recently fixed in upstream git, but not yet in any release: > https://github.com/Itseez/opencv/commit/ > 7b0d1c932e502a7f157222cb683531e2849de393 Released in 3.0.0