Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 512646 - =media-libs/opencv-2.4.8 on x32 - modules/core/src/parallel.cpp: error: #error "sysctl system call is unsupported in x32 kernel"
Summary: =media-libs/opencv-2.4.8 on x32 - modules/core/src/parallel.cpp: error: #erro...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords:
Depends on: 472288
Blocks: x32
  Show dependency tree
 
Reported: 2014-06-07 12:16 UTC by Bertrand Jacquin
Modified: 2015-07-22 15:27 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,48.97 KB, text/plain)
2014-06-07 12:16 UTC, Bertrand Jacquin
Details
emerge --info (info.log,16.14 KB, text/plain)
2014-06-07 12:17 UTC, Bertrand Jacquin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand Jacquin 2014-06-07 12:16:17 UTC
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
Comment 1 Bertrand Jacquin 2014-06-07 12:16:59 UTC
Created attachment 378414 [details]
build.log
Comment 2 Bertrand Jacquin 2014-06-07 12:17:19 UTC
Created attachment 378416 [details]
emerge --info
Comment 3 Amy Liffey gentoo-dev 2014-08-29 19:45:59 UTC
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
Comment 4 Michael Palimaka (kensington) gentoo-dev 2015-03-10 17:50:42 UTC
It looks to be recently fixed in upstream git, but not yet in any release: https://github.com/Itseez/opencv/commit/7b0d1c932e502a7f157222cb683531e2849de393
Comment 5 Michael Palimaka (kensington) gentoo-dev 2015-07-22 15:27:08 UTC
(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