Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 717804 - media-libs/opencv-3.4.1-r7 failed emerging (install phase) - fatal error: _numpyconfig.h: No such file or directory
Summary: media-libs/opencv-3.4.1-r7 failed emerging (install phase) - fatal error: _nu...
Status: RESOLVED DUPLICATE of bug 717502
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Amy Liffey
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-17 05:54 UTC by Sriram
Modified: 2020-04-18 05:29 UTC (History)
3 users (show)

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


Attachments
Build log. (build.log.xz,39.00 KB, text/plain)
2020-04-17 05:58 UTC, Sriram
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sriram 2020-04-17 05:54:23 UTC
media-libs/opencv-3.4.1-r7 fails emerging.

Reproducible: Always

Steps to Reproduce:
1. Emerge opencv.
2. Failure in compilation.
Actual Results:  
...

FAILED: modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DCVAPI_EXPORTS -D_USE_MATH_DEFINES -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/media-libs/opencv-3.4.1-r7/work/opencv-3.4.1/modules/python/python3/include -I/var/tmp/portage/media-libs/opencv-3.4.1-r7/work/opencv-3.4.1/modules/python/python3/src -Imodules/python3 -I/var/tmp/portage/media-libs/opencv-3.4.1-r7/work/opencv-3.4.1/modules/core/include -I/var/tmp/portage/media-libs/opencv-3.4.1-r7/work/opencv-3.4.1/modules/flann/include -I/var/tmp/portage/media-libs/opencv-3.4.1-r7/work/opencv-3.4.1/modules/imgproc/include -I/var/tmp/portage/media-libs/opencv-3.4.1-r7/work/opencv-3.4.1/modules/ml/include -I/var/tmp/portage/media-libs/opencv-3.4.1-r7/work/opencv-3.4.1/modules/objdetect/include -I/var/tmp/portage/media-libs/opencv-3.4.1-r7/work/opencv-3.4.1/modules/photo/include -I/var/tmp/portage/media-libs/opencv-3.4.1-r7/work/opencv-3.4.1/modules/video/include -I/var/tmp/portage/media-libs/opencv-3.4.1-r7/work/opencv-3.4.1/modules/dnn/include -I/var/tmp/portage/media-libs/opencv-3.4.1-r7/work/opencv-3.4.1/modules/imgcodecs/include -I/var/tmp/portage/media-libs/opencv-3.4.1-r7/work/opencv-3.4.1/modules/shape/include -I/var/tmp/portage/media-libs/opencv-3.4.1-r7/work/opencv-3.4.1/modules/videoio/include -I/var/tmp/portage/media-libs/opencv-3.4.1-r7/work/opencv-3.4.1/modules/highgui/include -I/var/tmp/portage/media-libs/opencv-3.4.1-r7/work/opencv-3.4.1/modules/superres/include -I/var/tmp/portage/media-libs/opencv-3.4.1-r7/work/opencv-3.4.1/modules/features2d/include -I/var/tmp/portage/media-libs/opencv-3.4.1-r7/work/opencv-3.4.1/modules/calib3d/include -I/var/tmp/portage/media-libs/opencv-3.4.1-r7/work/opencv-3.4.1/modules/stitching/include -I/var/tmp/portage/media-libs/opencv-3.4.1-r7/work/opencv-3.4.1/modules/videostab/include -I/var/tmp/portage/media-libs/opencv-3.4.1-r7/work/opencv-3.4.1/modules/python/src2 -Imodules/python_bindings_generator -isystem . -isystem /usr/include/eigen3 -isystem /usr/include/python3.6m -isystem /usr/lib64/python3.6/site-packages/numpy/core/include  -DNDEBUG -march=native -O2 -pipe   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations  -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -Wno-implicit-fallthrough -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mf16c -mfma -mavx -mavx2 -fvisibility=hidden -fvisibility-inlines-hidden -fopenmp -Wno-unused-function -Wno-overloaded-virtual -Wno-undef -Wno-deprecated-declarations -fPIC -MD -MT modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o -MF modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o.d -o modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o -c /var/tmp/portage/media-libs/opencv-3.4.1-r7/work/opencv-3.4.1/modules/python/src2/cv2.cpp
In file included from /usr/lib64/python3.6/site-packages/numpy/core/include/numpy/npy_common.h:5,
                 from /usr/lib64/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:4,
                 from /usr/lib64/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
                 from /var/tmp/portage/media-libs/opencv-3.4.1-r7/work/opencv-3.4.1/modules/python/src2/cv2.cpp:14:
/usr/lib64/python3.6/site-packages/numpy/core/include/numpy/numpyconfig.h:4:10: fatal error: _numpyconfig.h: No such file or directory
    4 | #include "_numpyconfig.h"
      |          ^~~~~~~~~~~~~~~~
compilation terminated.

...

ninja: build stopped: subcommand failed.
 * ERROR: media-libs/opencv-3.4.1-r7::gentoo failed (install phase):
 *   ninja -v -j4 -l0 failed
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_install
 *   environment, line 5566:  Called cmake-multilib_src_install
 *   environment, line 1335:  Called multilib-minimal_src_install
 *   environment, line 4254:  Called multilib_foreach_abi 'multilib-minimal_abi_src_install'
 *   environment, line 4467:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_install'
 *   environment, line 4141:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_install'
 *   environment, line 4139:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_install'
 *   environment, line  758:  Called multilib-minimal_abi_src_install
 *   environment, line 4244:  Called multilib_src_install
 *   environment, line 4713:  Called python_foreach_impl 'python_module_compile'
 *   environment, line 5100:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'python_module_compile'
 *   environment, line 4141:  Called _multibuild_run '_python_multibuild_wrapper' 'python_module_compile'
 *   environment, line 4139:  Called _python_multibuild_wrapper 'python_module_compile'
 *   environment, line 1032:  Called python_module_compile
 *   environment, line 5298:  Called cmake-utils_src_compile
 *   environment, line 1345:  Called cmake-utils_src_make
 *   environment, line 1526:  Called _cmake_ninja_src_make
 *   environment, line  604:  Called eninja
 *   environment, line 1992:  Called die
 * The specific snippet of code:
 *       "$@" || die "${nonfatal_args[@]}" "${*} failed"

...

Expected Results:  
Successful emerge.

`emerge --info '=media-libs/opencv-3.4.1-r7::gentoo'` output:

Portage 2.3.89 (python 3.6.10-final-0, default/linux/amd64/17.1/desktop, gcc-9.2.0, glibc-2.29-r7, 5.4.28-gentoo-x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.4.28-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i5-7300HQ_CPU_@_2.50GHz-with-gentoo-2.6
KiB Mem:     7919060 total,   1307852 free
KiB Swap:    8151036 total,   8131068 free
Timestamp of repository gentoo: Fri, 17 Apr 2020 02:30:01 +0000
Head commit of repository gentoo: 7ba5cb43ec56eeff37204a88944866279180e3f7
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
app-shells/bash:          4.4_p23-r1::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.17-r2::gentoo, 3.6.10-r1::gentoo, 3.7.7-r1::gentoo
dev-util/cmake:           3.16.5::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.33.1-r1::gentoo
sys-devel/gcc:            9.2.0-r2::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes

vapoursynth
    location: /var/lib/layman/vapoursynth
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="https://mirror.bytemark.co.uk/gentoo/ http://mirror.bytemark.co.uk/gentoo/ rsync://mirror.bytemark.co.uk/gentoo/ http://mirrors.evowise.com/gentoo/ https://mirrors.evowise.com/gentoo/ ftp://mirror.bytemark.co.uk/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli connman corefonts crypt cuda cups dbus djvu dri dts dvd dvdr elogind emboss encode exif flac fontconfig fortran gdbm gif gpm gtk iconv icu ipv6 jpeg lcms ldap libnotify libtirpc lm-sensors mad mng mp3 mp4 mpeg multilib ncurses nls nptl offensive ogg opengl openmp pam pango pcre pdf png policykit ppds qt5 readline sdl seccomp spell split-usr ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wifi wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="intel i965 nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

`emerge -pqv '=media-libs/opencv-3.4.1-r7::gentoo'` output:

[ebuild  N    ] media-libs/opencv-3.4.1-r7  USE="eigen gtk jpeg opengl openmp png python qt5 tiff (-contrib) (-contribcvv) (-contribdnn) (-contribhdf) (-contribsfm) (-contribxfeatures2d) (-cuda) -debug -dnnsamples -examples -ffmpeg -gdal (-gflags) (-glog) -gphoto2 -gstreamer -ieee1394 -java -lapack (-libav) -opencl -openexr -pch (-tesseract) -testprograms -threads -v4l -vaapi (-vtk) -webp -xine" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="avx avx2 fma3 popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" PYTHON_TARGETS="python3_6 -python3_7"
Comment 1 Sriram 2020-04-17 05:58:05 UTC
Created attachment 633294 [details]
Build log.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-04-18 05:29:32 UTC

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