Fails to build due to opencl not being v3. Reproducible: Always Steps to Reproduce: 1. update world Actual Results: ia-libs/opencv-4.8.1/work/opencv-4.8.1/modules/dnn/include -I/var/tmp/portage/media-libs/opencv-4.8.1/work/opencv-4.8.1_build-abi_x86_64.amd64/modules/dnn -I/var/tmp/portage/media-libs/opencv-4.8.1/work/opencv_contrib-4.8.1/modules/cudev/include -I/var/tmp/portage/media-libs/opencv-4.8.1/work/opencv-4.8.1/modules/core/include -I/var/tmp/portage/media-libs/opencv-4.8.1/work/opencv-4.8.1/modules/imgproc/include -isystem /var/tmp/portage/media-libs/opencv-4.8.1/work/opencv-4.8.1_build-abi_x86_64.amd64 -isystem /opt/cuda/include -isystem /usr/include/eigen3 -march=bdver2 -mtune=bdver2 -O2 -pipe -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Winit-self -Wpointer-arith -Wsign-promo -Wuninitialized -Wsuggest-override -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 -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mf16c -mfma -mavx -fvisibility=hidden -fvisibility-inlines-hidden -fopenmp -Wno-deprecated -Wno-missing-declarations -Wno-shadow -Wno-unused-parameter -Wno-sign-compare -Wno-undef -Wno-invalid-offsetof -std=c++14 -fPIC -MD -MT modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/nary_eltwise_layers.cpp.o -MF modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/nary_eltwise_layers.cpp.o.d -o modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/nary_eltwise_layers.cpp.o -c /var/tmp/portage/media-libs/opencv-4.8.1/work/opencv-4.8.1/modules/dnn/src/layers/nary_eltwise_layers.cpp In file included from /var/tmp/portage/media-libs/opencv-4.8.1/work/opencv-4.8.1/modules/core/include/opencv2/core/opencl/runtime/autogenerated/opencl_core.hpp:102, from /var/tmp/portage/media-libs/opencv-4.8.1/work/opencv-4.8.1/modules/core/include/opencv2/core/opencl/runtime/opencl_core.hpp:68, from /var/tmp/portage/media-libs/opencv-4.8.1/work/opencv-4.8.1/modules/dnn/src/layers/../ocl4dnn/include/common.hpp:45, from /var/tmp/portage/media-libs/opencv-4.8.1/work/opencv-4.8.1/modules/dnn/src/layers/../ocl4dnn/include/ocl4dnn.hpp:50, from /var/tmp/portage/media-libs/opencv-4.8.1/work/opencv-4.8.1/modules/dnn/src/layers/layers_common.hpp:55, from /var/tmp/portage/media-libs/opencv-4.8.1/work/opencv-4.8.1/modules/dnn/src/layers/nary_eltwise_layers.cpp:6: /opt/cuda/include/CL/cl.h:26:104: note: ‘#pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)’ 26 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)") | ^ ninja: build stopped: subcommand failed.
Created attachment 875277 [details] buil
Portage 3.0.55 (python 3.11.6-final-0, default/linux/amd64/17.1/desktop, gcc-12, glibc-2.38-r7, 6.5.7-gentoo-x86_64 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-6.5.7-gentoo-x86_64-x86_64-AMD_FX-tm-8350_Eight-Core_Processor-with-glibc2.38 KiB Mem: 32762012 total, 1005936 free KiB Swap: 67108860 total, 64705260 free Timestamp of repository gentoo: Tue, 21 Nov 2023 13:46:55 +0000 Head commit of repository gentoo: bf1e086737d7eaeb6e75934306cc17f403e10134 Timestamp of repository 4nykey: Sun, 19 Nov 2023 16:17:31 +0000 Head commit of repository 4nykey: 28f656b4384ccf0450e3928dc21945aaa84b13f0 Timestamp of repository audio-overlay: Sun, 19 Nov 2023 16:17:31 +0000 Head commit of repository audio-overlay: 5ea16a69a2129422620855a8f8e4d0371c212354 Timestamp of repository dlang: Fri, 17 Nov 2023 21:47:45 +0000 Head commit of repository dlang: 4e5322a2a17f7bf5f040babdf5c9d8a53fbd5b0c Timestamp of repository haskell: Mon, 20 Nov 2023 01:46:56 +0000 Head commit of repository haskell: 48cbdcaef965ee181c033a3fd0a0aa7dd1b2586e Timestamp of repository java: Tue, 14 Nov 2023 14:16:51 +0000 Head commit of repository java: 348b8a2e75a1fd5dd63d1793fd0efa67be8b2bf9 Timestamp of repository kde: Sun, 19 Nov 2023 23:01:54 +0000 Head commit of repository kde: 6882603c14c40e1082594533c28a373fe1d67c8b Timestamp of repository lisp: Tue, 14 Nov 2023 14:16:51 +0000 Head commit of repository lisp: b1dc7d91de9c539aca9056bc0da659195ec3241c Timestamp of repository qt: Sun, 19 Nov 2023 16:17:25 +0000 Head commit of repository qt: 4be346f1a7a628dda0dc12b9abe53de8bf2d0816 Timestamp of repository steam-overlay: Mon, 20 Nov 2023 23:31:57 +0000 Head commit of repository steam-overlay: fb997a7bed63a8b0273cbb1cafd5646f25075c4b sh bash 5.2_p21 ld GNU ld (Gentoo 2.41 p2) 2.41.0 distcc 3.4 x86_64-pc-linux-gnu [disabled] app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.2_p21::gentoo dev-java/java-config: 2.3.3-r1::gentoo dev-lang/perl: 5.38.0-r1::gentoo dev-lang/python: 3.10.13::gentoo, 3.11.6::gentoo, 3.12.0_p1::gentoo dev-lang/rust-bin: 1.73.0::gentoo dev-util/cmake: 3.27.7::gentoo dev-util/meson: 1.2.3::gentoo sys-apps/baselayout: 2.14-r1::gentoo sys-apps/openrc: 0.52.1::gentoo sys-apps/sandbox: 2.38::gentoo sys-devel/autoconf: 2.13-r8::gentoo, 2.71-r7::gentoo sys-devel/automake: 1.16.5-r1::gentoo sys-devel/binutils: 2.41-r2::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.5::gentoo sys-devel/gcc: 9.5.0::ada, 10.5.0::ada, 11.4.1_p20230824::ada, 12.3.1_p20230825::ada, 13.2.1_p20231014::ada sys-devel/gcc-config: 2.11::gentoo sys-devel/libtool: 2.4.7-r1::gentoo sys-devel/lld: 16.0.6::gentoo, 17.0.5::gentoo sys-devel/llvm: 14.0.6-r4::gentoo, 15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.5::gentoo sys-devel/make: 4.4.1-r1::gentoo sys-kernel/linux-headers: 6.6::gentoo (virtual/os-headers) sys-libs/glibc: 2.38-r7::gentoo Repositories: gentoo location: /usr/portage sync-type: git sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git priority: -1000 volatile: True 4nykey location: /var/db/repos/4nykey sync-type: git sync-uri: https://github.com/gentoo-mirror/4nykey.git masters: gentoo volatile: False audio-overlay location: /var/db/repos/audio-overlay sync-type: git sync-uri: https://github.com/gentoo-mirror/audio-overlay.git masters: gentoo volatile: False dlang location: /var/db/repos/dlang sync-type: git sync-uri: https://github.com/gentoo-mirror/dlang.git masters: gentoo volatile: False haskell location: /var/db/repos/haskell sync-type: git sync-uri: https://github.com/gentoo-mirror/haskell.git masters: gentoo volatile: False java location: /var/db/repos/java sync-type: git sync-uri: https://github.com/gentoo-mirror/java.git masters: gentoo volatile: False kde location: /var/db/repos/kde sync-type: git sync-uri: https://github.com/gentoo-mirror/kde.git masters: gentoo volatile: False lisp location: /var/db/repos/lisp sync-type: git sync-uri: https://github.com/gentoo-mirror/lisp.git masters: gentoo volatile: False qt location: /var/db/repos/qt sync-type: git sync-uri: https://github.com/gentoo-mirror/qt.git masters: gentoo volatile: False steam-overlay location: /var/db/repos/steam-overlay sync-type: git sync-uri: https://github.com/gentoo-mirror/steam-overlay.git masters: gentoo volatile: False crossdev location: /var/db/repos/crossdev masters: gentoo priority: 10 volatile: False ada location: /home/laguest/src/gentoo-overlays/ada-overlay masters: gentoo priority: 20 volatile: True lucretia location: /home/laguest/src/gentoo-overlays/lucretia masters: gentoo priority: 30 volatile: True Installed sets: @llvm, @llvm17, @mesa ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=bdver2 -mtune=bdver2 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.9/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="-march=bdver2 -mtune=bdver2 -O2 -pipe" DISTDIR="/usr/portage/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted 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="ftp://mirror.yandex.ru/gentoo-distfiles/ http://ftp.agdsn.de/gentoo http://ftp.romnet.org/gentoo/" LANG="en_GB.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" LINGUAS="en_GB" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" 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" SHELL="/bin/bash" USE="X a52 aac aacs accessibility acl acpi activities alsa amd64 amr amrenc ao bluetooth bluray branding brightness-control brotli browser-integration bzip2 cairo caps cdda cdio cdr celt cli collada color-management colord colorio cpudetection crypt cuda cups dbus display-manager dri dssi dts dvd dvdr elogind encode evdev exif fdk ffmpeg fftw flac fontconfig fortran frei0r gamepad gdbm gif gpm grub gstreamer gtk gtk2 gui heif ibus iconv icu imagemagick ipv6 jack jack-session jpeg jpeg2k kde kvazaar kwallet ladspa lash lcms libilbc libnotify libproxy librtmp libsamplerate libsoxr libtirpc libv4l llvm lm_sensors lv2 lvm lzma mad matroska mng modplug mp3 mp4 mpeg mpi mtp multilib musepack ncurses networkmanager nls nptl nsm numpy nvenc nvidia nvml ocr odbc ogg omxil opencl opencv openexr opengl openh264 openimageio openmp opus osc otr pam pango pcre pdf phonon png policykit postgres ppds pulseaudio python qalculate qml qt5 qt6 readline rtaudio rubberband s3tc sasl scanner schroedinger screencast sdk sdl seccomp semantic-desktop sndfile sound spell spirv split-usr ssdm ssl startup-notification svg test-rust theora tiff truetype udev udisks unicode upower usb v4l vaapi vc vdpau vorbis vpx vst vulkan wallpapers wavpack wayland webp wxwidgets x264 x265 xattr xcb xft xml xv xvid zlib" ABI_X86="64 32" 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="aes avx fma3 f16c fma4 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" CURL_SSL="gnutls" 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" INPUT_DEVICES="evdev keyboard libinput mouse wacom" KERNEL="linux" L10N="en-GB" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AArch64 AMDGPU ARM AVR BPF MSP430 Mips NVPTX SPIRV RISCV WebAssembly" LUA_SINGLE_TARGET="luajit" LUA_TARGETS="lua5-4 lua5-4 luajit" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" QEMU_SOFTMMU_TARGETS="aarch64 arm i386 m68k mips mips64 mips64el mipsel ppc ppc64 ppc64le riscv32 riscv64 x86_64" RUBY_TARGETS="ruby31" SANE_BACKENDS="snapscan" VIDEO_CARDS="amdgpu nvidia radeon radeonsi virgl" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
[ebuild r U ] media-libs/opencv-4.8.1 [4.8.0-r2] USE="contrib contribdnn cuda eigen features2d ffmpeg gstreamer jpeg jpeg2k opencl openexr opengl openmp png python qt5 qt6%* tiff v4l vaapi webp -contribcvv -contribfreetype -contribhdf (-contribovis) -contribsfm -contribxfeatures2d -debug -dnnsamples -download -examples -gdal -gflags -glog -gphoto2 -gtk3 -ieee1394 -java -lapack -lto -opencvapps -tesseract -testprograms -threads -vtk -xine" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="avx f16c fma3 popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3 -avx2 -avx512f" PYTHON_TARGETS="python3_11 -python3_10" [ebuild rR ] media-plugins/frei0r-plugins-1.8.0 USE="facedetect scale0tilt -doc" ABI_X86="32 (64) (-x32)" [ebuild rR ] media-libs/openimageio-2.5.4.0 USE="X dicom ffmpeg gif gui jpeg2k opencv openvdb ptex python qt6 raw tools truetype -doc -test" CPU_FLAGS_X86="aes avx f16c sse2 sse3 sse4_1 sse4_2 ssse3 -avx2 -avx512f" PYTHON_SINGLE_TARGET="python3_11 -python3_10 -python3_12" [ebuild rR ] media-libs/mlt-7.20.0-r1 USE="ffmpeg frei0r gtk jack libsamplerate opencv opengl python qt5 rtaudio rubberband sdl xml -debug -test (-vdpau) -vidstab -xine" PYTHON_SINGLE_TARGET="python3_11 -python3_10 -python3_12" The following packages are causing rebuilds: (media-libs/opencv-4.8.1:0/4.8.1::gentoo, ebuild scheduled for merge) causes rebuilds for: (media-libs/openimageio-2.5.4.0:0/2.5::gentoo, ebuild scheduled for merge) (media-libs/mlt-7.20.0-r1:0/7::gentoo, ebuild scheduled for merge) (media-plugins/frei0r-plugins-1.8.0:0/0::gentoo, ebuild scheduled for merge)
Duplicate of https://bugs.gentoo.org/915775
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8912df505fed8b242f01d5ee8d78b23c7a72fd86 commit 8912df505fed8b242f01d5ee8d78b23c7a72fd86 Author: Paul Zander <negril.nx+gentoo@gmail.com> AuthorDate: 2023-11-21 15:05:43 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-11-22 11:39:53 +0000 media-libs/opencv: 4.8.x fix for compatibility with CUDA Toolkit >= 12.2.0 Closes: https://bugs.gentoo.org/915775 Closes: https://bugs.gentoo.org/917675 Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/33928 Signed-off-by: Sam James <sam@gentoo.org> .../files/opencv-4.8.0-fix-cuda-12.2.0.patch | 40 ++++++++++++++++++++++ media-libs/opencv/opencv-4.8.0-r1.ebuild | 1 + media-libs/opencv/opencv-4.8.0.ebuild | 1 + media-libs/opencv/opencv-4.8.1.ebuild | 1 + 4 files changed, 43 insertions(+)