Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 733796 - media-libs/opencv-4.4.0[pch,eigen] with dev-cpp/eigen-3.3.7-r1 - .../opencv-4.1.2/modules/core/include/opencv2/core/private.hpp:66:12: fatal error: Eigen/Core: No such file or directory
Summary: media-libs/opencv-4.4.0[pch,eigen] with dev-cpp/eigen-3.3.7-r1 - .../opencv-4...
Status: RESOLVED FIXED
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: PATCH
Depends on:
Blocks: 738380 746596
  Show dependency tree
 
Reported: 2020-07-24 17:41 UTC by Dennis Schridde
Modified: 2020-10-12 16:13 UTC (History)
8 users (show)

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


Attachments
build.log (build.log,52.07 KB, text/plain)
2020-07-24 17:41 UTC, Dennis Schridde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2020-07-24 17:41:08 UTC
Created attachment 650598 [details]
build.log

[2/972] /usr/sbin/x86_64-pc-linux-gnu-g++ -D_USE_MATH_DEFINES -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/tmp/portage/media-libs/opencv-4.1.2-r3/work/opencv-4.1.2/modules/features2d/src -I/tmp/portage/media-libs/opencv-4.1.2-r3/work/opencv-4.1.2/modules/features2d/include -Imodules/features2d -I/tmp/portage/media-l
ibs/opencv-4.1.2-r3/work/opencv-4.1.2/modules/core/include -I/tmp/portage/media-libs/opencv-4.1.2-r3/work/opencv-4.1.2/modules/flann/include -I/tmp/portage/media-libs/opencv-4.1.2-r3/work/opencv-4.1.2/modules/imgproc/include -isystem . -isystem /usr/include/gdal  -DNDEBUG -pipe -O2 -march=znver1   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dt
or -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -
fomit-frame-pointer -ffunction-sections -fdata-sections  -fvisibility=hidden -fvisibility-inlines-hidden -fopenmp -fPIC -std=c++11 -MD -MT modules/features2d/CMakeFiles/opencv_features2d_pch_dephelp.dir/opencv_features2d_pch_dephelp.cxx.o -MF modules/features2d/CMakeFiles/opencv_features2d_pch_dephelp.dir/opencv_features2d_pch_dephelp.cxx.o.d -o modules/features
2d/CMakeFiles/opencv_features2d_pch_dephelp.dir/opencv_features2d_pch_dephelp.cxx.o -c modules/features2d/opencv_features2d_pch_dephelp.cxx                                           
FAILED: modules/features2d/CMakeFiles/opencv_features2d_pch_dephelp.dir/opencv_features2d_pch_dephelp.cxx.o                                                                                                                                                                                                                                                                 
/usr/sbin/x86_64-pc-linux-gnu-g++ -D_USE_MATH_DEFINES -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/tmp/portage/media-libs/opencv-4.1.2-r3/work/opencv-4.1.2/modules/features2d/src -I/tmp/portage/media-libs/opencv-4.1.2-r3/work/opencv-4.1.2/modules/features2d/include -Imodules/features2d -I/tmp/portage/media-libs/open
cv-4.1.2-r3/work/opencv-4.1.2/modules/core/include -I/tmp/portage/media-libs/opencv-4.1.2-r3/work/opencv-4.1.2/modules/flann/include -I/tmp/portage/media-libs/opencv-4.1.2-r3/work/opencv-4.1.2/modules/imgproc/include -isystem . -isystem /usr/include/gdal  -DNDEBUG -pipe -O2 -march=znver1   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werr
or=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-fr
ame-pointer -ffunction-sections -fdata-sections  -fvisibility=hidden -fvisibility-inlines-hidden -fopenmp -fPIC -std=c++11 -MD -MT modules/features2d/CMakeFiles/opencv_features2d_pch_dephelp.dir/opencv_features2d_pch_dephelp.cxx.o -MF modules/features2d/CMakeFiles/opencv_features2d_pch_dephelp.dir/opencv_features2d_pch_dephelp.cxx.o.d -o modules/features2d/CMake
Files/opencv_features2d_pch_dephelp.dir/opencv_features2d_pch_dephelp.cxx.o -c modules/features2d/opencv_features2d_pch_dephelp.cxx                                                                                                                                                                                                                                         
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++                                                                                                                                                                                                                                                                            
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++                                                                                                                                                                                                                                                                             
In file included from /tmp/portage/media-libs/opencv-4.1.2-r3/work/opencv-4.1.2/modules/features2d/src/precomp.hpp:50,                                                                                                                                                                                                                                                      
                 from modules/features2d/opencv_features2d_pch_dephelp.cxx:1:             
/tmp/portage/media-libs/opencv-4.1.2-r3/work/opencv-4.1.2/modules/core/include/opencv2/core/private.hpp:66:12: fatal error: Eigen/Core: No such file or directory                                                                                                                                                                                                           
   66 | #  include <Eigen/Core>                                                                                                                                                                                                                                                                                                                                             
      |            ^~~~~~~~~~~~                                                                                                                                                                                                                                                                                                                                             
compilation terminated.                                                                                                                                                                                                                                                                                                                                                     


Portage 3.0.0 (python 3.6.9-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-10.2.0, glibc-2.31-r6, 5.7.9 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.7.9-x86_64-AMD_Ryzen_5_2400G_with_Radeon_Vega_Graphics-with-gentoo-2.7
KiB Mem:    14194104 total,    835332 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Fri, 24 Jul 2020 06:15:01 +0000
Head commit of repository gentoo: 174806b4aeea1e734be9d8321b6a1701da120eaf
Head commit of repository flatpak-overlay: 26c396aef4d2f8908eea9b3ad2ccf7dc843a0887

Head commit of repository local: 3e91988df359cacb91d9a213c1b91758a1369787

sh bash 5.0_p18
ld GNU gold (Gentoo 2.34 p4 2.34.0) 1.16
ccache version 3.7.11 [disabled]
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3-r1::gentoo
dev-lang/python:          2.7.18-r1::gentoo, 3.6.11-r2::gentoo, 3.7.8-r2::gentoo, 3.8.5::gentoo, 3.9.0_beta5::gentoo
dev-util/ccache:          3.7.11::gentoo
dev-util/cmake:           3.18.0::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.2::gentoo
sys-devel/binutils:       2.34-r1::gentoo
sys-devel/gcc:            10.2.0::gentoo
sys-devel/gcc-config:     2.3.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.7::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r6::gentoo
Repositories:

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

flatpak-overlay
    location: /var/db/repos/flatpak-overlay
    sync-type: git
    sync-uri: https://github.com/fosero/flatpak-overlay.git
    masters: gentoo

crossdev
    location: /var/cache/portage/crossdev
    masters: gentoo
    priority: 100

local
    location: /var/cache/portage/local
    sync-type: git
    sync-uri: https://github.com/devurandom/gentoo-overlay.git
    masters: gentoo
    priority: 1000

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=znver1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/grs/systems.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.6/conf"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-pipe -O2 -march=znver1"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH 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="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildsyspkg cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles ipc-sandbox merge-sync mount-sandbox multilib-strict network-sandbox news parallel-fetch parallel-install 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="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j6 -l4"
PKGDIR="/var/cache/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--new-compress"
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="/tmp"
USE="7z 7zip X a52 aac aacplus aacs acl acpi activities aio alsa amd64 appindicator appstream archive audit avahi ayatana bdplus berkdb blake2 bluetooth bluray bpf branding brotli bs2b btrfs bzip2 cairo caps cdda cddb cdio cdr celt chromaprint cjk clang cli clipboard color-management colord conntrack crypt cups d3d9 dav1d dbus declarative device-mapper dirac djvu dri drm dts dvb dvd dvdr ed25519 editorconfig egl elf emboss encode epub evdev exif faudio fax fbcon fdk ffmpeg fftw filecaps firefox firewalld fish-completion fits flac fontconfig fontforge fortran fribidi gamepad gbm gdal gdbm geoclue geolocation gif git gles2 gles3 gmp gnome-online-accounts gnupg google googledrive gpg gps graphicsmagick gstreamer gtk gtk3 gzip harfbuzz hdf5 heif http2 ibus iconv icu idn imlib inotify introspection ipv6 iwd jemalloc jpeg jpeg2k json kde kipi kms kwallet ladspa latex lcms libatomic libglvnd libidn2 libinput libnotify libproxy libsecret libsoxr libtirpc libvirt lm-sensors lrz lv2 lvm lz4 lzma lzo mad mariadb markdown mbim mercurial mjpeg mng mobi modemmanager modplug mp3 mp4 mpeg mplayer mpris mtp multilib mysql ncurses netlink networkmanager nftables nls nptl numa office ofono ofx ogg openal opencl opencv openexr opengl openh264 openmax openmp opus pam pango pcap pch pcre pcre2 pdf pgo phonon pixman pkcs11 pkcs7 plasma pm-utils png policykit postscript ppds prison pulseaudio pwquality python qml qrcode qt5 raw rdp readline redfish samba sasl scanner schroedinger screencast sctp sdl sdl2 seccomp semantic-desktop share smartcard snappy sparse speech speex spell spice ssl startup-notification steamruntime stemmer svg systemd systemtap tbb tcpd teamd telemetry telepathy tga theora threads thunderbolt tiff timezone tmux truetype tslib udev udisks uinput unicode unwind upnp upnp-av upower usb utempter v4l v4l2 vaapi vdpau vkd3d vorbis vpx vulkan wasm wavpack wayland webchannel webengine webp widgets wireguard wmf woff2 wps x264 x265 xattr xcb xinerama xkb xml xmp xrandr xscreensaver xv xvid xwayland xxhash xz yaml zeroconf zeromq zimg zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel" 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" ENLIGHTENMENT_MODULES="*" 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="joystick libinput" KERNEL="linux" L10N="de de-DE en en-GB ar fa tr ja ko zh zh-CN zh-TW" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-javascript wiki-publisher" LIRC_DEVICES="devinput" LLVM_TARGETS="AMDGPU BPF RISCV WebAssembly" LUA_TARGET="lua5-2" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7 pypy pypy3" QEMU_SOFTMMU_TARGETS="riscv32 riscv64 x86_64" QEMU_USER_TARGETS="riscv32 riscv64" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu virgl" 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, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS

=================================================================
                        Package Settings
=================================================================

media-libs/opencv-4.1.2-r3::gentoo was built with the following:
USE="contrib contribdnn eigen features2d ffmpeg gdal gstreamer jpeg jpeg2k opencl openexr opengl openmp pch png python qt5 threads tiff v4l vaapi webp -contribcvv -contribhdf -contribsfm -contribxfeatures2d -cuda -debug -dnnsamples -download -examples -gflags -glog -gphoto2 -gtk3 -ieee1394 -java -lapack -opencvapps -tesseract -testprograms -vtk -xine" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="avx avx2 fma3 popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" PYTHON_TARGETS="python3_7 -python3_6"


dev-cpp/eigen-3.3.7-r1::gentoo was built with the following:
USE="openmp -cuda -debug -doc -test" ABI_X86="(64)"
Comment 1 Ștefan Talpalaru 2020-07-26 21:53:58 UTC
Upstream issue: https://github.com/opencv/opencv/issues/14868

A working opencv-4.1.2-r4 is available in my overlay: https://github.com/stefantalpalaru/gentoo-overlay
Comment 2 Dennis Schridde 2020-08-06 07:36:40 UTC
(In reply to Ștefan Talpalaru from comment #1)
> Upstream issue: https://github.com/opencv/opencv/issues/14868
> 
> A working opencv-4.1.2-r4 is available in my overlay:
> https://github.com/stefantalpalaru/gentoo-overlay

He makes this change to the ebuild:
```
--- /var/cache/portage/gentoo/media-libs/opencv/opencv-4.1.2-r3.ebuild	2020-06-22 21:09:08.000000000 +0200
+++ stefantalpalaru/media-libs/opencv/opencv-4.1.2-r4.ebuild	2020-08-06 09:33:52.267681332 +0200
@@ -439,6 +439,13 @@
 		fi
 	fi
 
+	# https://bugs.gentoo.org/733796
+	if use eigen; then
+		GLOBALCMAKEARGS+=(
+			-DEIGEN_INCLUDE_PATH="$(pkg-config --cflags-only-I eigen3 | sed 's/^-I//')"
+		)
+	fi
+
 	# workaround for bug 413429
 	tc-export CC CXX
 
```
Comment 3 Dennis Schridde 2020-08-06 07:56:29 UTC
That upstream issue is actually quite old and the bug there already fixed in a PR.  Looking at the patch helped to track this down further, though.

dev-cpp/eigen-3.3.7-r1 does not install a FindEigen3.cmake file:

# rg find_package /tmp/portage/media-libs/opencv-4.1.2-r3/work/opencv-4.1.2/ | rg -i eigen
/tmp/portage/media-libs/opencv-4.1.2-r3/work/opencv-4.1.2/cmake/OpenCVFindLibsPerf.cmake:  find_package(Eigen3 QUIET)

# q list -e eigen | rg cmake
/usr/lib64/cmake/eigen3/Eigen3Targets.cmake
/usr/lib64/cmake/eigen3/UseEigen3.cmake
/usr/lib64/cmake/eigen3/Eigen3Config.cmake
/usr/lib64/cmake/eigen3/Eigen3ConfigVersion.cmake

Is OpenCV ready to work with find_package(Eigen3) in config mode?

https://cmake.org/cmake/help/latest/command/find_package.html#full-signature-and-config-mode
Comment 4 Dennis Schridde 2020-08-06 11:36:42 UTC
I tried to get Eigen's instructions [1] on how to use it somehow into the OpenCV build system, but failed.  I followed the instructions at the top of .../opencv-4.1.2/cmake/OpenCVModule.cmake on how to use ocv_add_module, adding extra dependencies using ocv_target_link_libraries from .../opencv-4.1.2/cmake/OpenCVUtils.cmake.  OPENCV_MODULE_opencv_photo_LINK_DEPS contains Eigen3::Eigen now (verified in .../opencv-4.1.2-abi_x86_64.amd64/CMakeVars.txt), but the include path is still not added when calling the compiler to build that module.

WIP patch (does not fix the problem):
```
--- opencv-4.1.2/modules/photo/CMakeLists.txt.orig  2020-08-06 12:52:45.144912049 +0200
+++ opencv-4.1.2/modules/photo/CMakeLists.txt 2020-08-06 12:52:55.558857166 +0200
@@ -4,4 +4,5 @@
   ocv_warnings_disable(CMAKE_CXX_FLAGS -Wundef -Wmissing-declarations -Wshadow)
 endif()
 
-ocv_define_module(photo opencv_imgproc OPTIONAL opencv_cudaarithm opencv_cudaimgproc WRAP java python js)
+ocv_add_module(photo opencv_imgproc OPTIONAL opencv_cudaarithm opencv_cudaimgproc WRAP java python js)
+ocv_target_link_libraries(opencv_photo Eigen3::Eigen)
```

[1]: https://eigen.tuxfamily.org/dox/TopicCMakeGuide.html
Comment 5 Dennis Schridde 2020-08-06 11:47:00 UTC
(In reply to Dennis Schridde from comment #4)
> I tried to get Eigen's instructions [1] on how to use it somehow into the
> OpenCV build system, but failed.  [...]

It appears all modules are affected, so maybe I did not actually fail, but would have to patch more modules.

On the other hand .../opencv-4.1.2/cmake/OpenCVFindLibsPerf.cmake should already have done something that should have had the same effect, but globally for all modules:
```
list(APPEND OPENCV_LINKER_LIBS Eigen3::Eigen)
```
Comment 6 Dan Goodliffe 2020-08-28 11:11:22 UTC
Is this specific to exactly eigen-3.3.7-r1? Or should I say, can I mask that version and go back eigen-3.3.7 to work around this for now? Thanks.
Comment 7 Small_Penguin 2020-09-25 07:28:38 UTC
Yes, reverting eigen to 3.3.7 makes compilation of opencv-4.1.2-r3 working.
Comment 8 Dennis Schridde 2020-10-08 07:32:13 UTC
https://github.com/devurandom/gentoo-overlay/commit/196633deb29b999b6e07f0cc37af3929340a6ab9 fixes this for media-libs/opencv-4.4.0.
Comment 9 Ross Charles C. 2020-10-10 11:20:47 UTC
(In reply to Dennis Schridde from comment #8)
> https://github.com/devurandom/gentoo-overlay/commit/
> 196633deb29b999b6e07f0cc37af3929340a6ab9 fixes this for
> media-libs/opencv-4.4.0.

Not adopting it without any gentoo developers' endorsement.
Comment 10 Nebojsa Trpkovic 2020-10-10 23:29:56 UTC
3 months later, still getting

opencv-4.4.0/modules/core/include/opencv2/core/private.hpp:70:12: fatal error: Eigen/Core: No such file or directory
   70 | #  include <Eigen/Core>
      |            ^~~~~~~~~~~~
compilation terminated.

pathetic...
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-10-11 15:04:41 UTC
(In reply to Nebojsa Trpkovic from comment #10)
> 3 months later, still getting
> 
> opencv-4.4.0/modules/core/include/opencv2/core/private.hpp:70:12: fatal
> error: Eigen/Core: No such file or directory
>    70 | #  include <Eigen/Core>
>       |            ^~~~~~~~~~~~
> compilation terminated.
> 
> pathetic...

Please do not make such comments here. We're all trying our best and a huge version bump was just done to opencv. When I get a chance, I'll see if there's a better solution than the include path hack, but we may have to go with it for now.

You can use USE=-eigen for now if that's possible.
Comment 12 Nebojsa Trpkovic 2020-10-11 15:29:25 UTC
(In reply to Sam James from comment #11)
> (In reply to Nebojsa Trpkovic from comment #10)
> > 3 months later, still getting
> > 
> > opencv-4.4.0/modules/core/include/opencv2/core/private.hpp:70:12: fatal
> > error: Eigen/Core: No such file or directory
> >    70 | #  include <Eigen/Core>
> >       |            ^~~~~~~~~~~~
> > compilation terminated.
> > 
> > pathetic...
> 
> Please do not make such comments here. We're all trying our best and a huge
> version bump was just done to opencv. When I get a chance, I'll see if
> there's a better solution than the include path hack, but we may have to go
> with it for now.
> 
> You can use USE=-eigen for now if that's possible.

Thanks.
Comment 13 Larry the Git Cow gentoo-dev 2020-10-11 19:16:49 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=990ef023d106b220f1f52945440509f0af2db0e0

commit 990ef023d106b220f1f52945440509f0af2db0e0
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2020-10-11 18:35:46 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2020-10-11 19:16:12 +0000

    media-libs/opencv: drop pch support (fixes eigen build)
    
    PCH support is broken when using CMake and apparently
    opencv is no exception.
    
    Closes: https://bugs.gentoo.org/733796
    Package-Manager: Portage-3.0.4, Repoman-3.0.1
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/opencv/opencv-4.4.0.ebuild | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)