Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Solved: media-libs/opencv-4.9.0 sandbox violation with CUDA
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
cctsurf
Tux's lil' helper
Tux's lil' helper


Joined: 12 Oct 2006
Posts: 123

PostPosted: Thu Mar 21, 2024 5:31 pm    Post subject: Solved: media-libs/opencv-4.9.0 sandbox violation with CUDA Reply with quote

I'm having difficulty building media-libs/opencv-4.9.0, but I'm not certain if its just my computer messed up or if it is an actual bug and I hate to bother the bugzilla for my stupidity.

Anyway, I get a sandbox violation for opencv when I attempt to build it. I also am having difficulty downloading detect.caffmodel.
As a side note...what version of java (I'm using openjdk) should I be using as my main version? Right now i"m defaulting to version 8... I have 11, 17, and 21 installed...
Thanks!

Code:

 * ----------------------- SANDBOX ACCESS VIOLATION SUMMARY -----------------------
 * LOG FILE: "/var/tmp/portage/media-libs/opencv-4.9.0/temp/sandbox.log"
 *
VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: fopen_wr
S: deny
P: /proc/self/task/202/comm
A: /proc/self/task/202/comm
R: /proc/201/task/202/comm
C: __nvcc_device_query

F: fopen_wr
S: deny
P: /proc/self/task/1352/comm
A: /proc/self/task/1352/comm
R: /proc/1351/task/1352/comm
C: /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv-4.9.0_build-abi_x86_64.amd64-python3_11/CMakeFiles/CheckCUDA/CMakeFiles/3.28.3/CMakeDetermineCompilerABI_CUDA.bin

F: fopen_wr
S: deny
P: /proc/self/task/1406/comm
A: /proc/self/task/1406/comm
R: /proc/1405/task/1406/comm
C: /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv-4.9.0_build-abi_x86_64.amd64-python3_11/CMakeFiles/3.28.3/CMakeDetermineCompilerABI_CUDA.bin
 * --------------------------------------------------------------------------------
!!! When you file a bug report, please include the following information:
GENTOO_VM=openjdk-8  CLASSPATH="" JAVA_HOME="/usr/lib64/openjdk-8"
JAVACFLAGS="-source 1.8 -target 1.8" COMPILER=""


I note that earlier in the build, I get difficulty downloading detect.caffemodel ...
I can access the addresses that it is supposed to be downloading from my web browswer...but it can't download it as the portage user, perhaps?

Code:

-- wechat_qrcode: Downloading detect.caffemodel from https://raw.githubusercontent.com/WeChatCV/opencv_3rdparty/a8b69ccc738421293254aec5ddb38bd523503252/detect.caffemodel
-- Try 0 failed
--
=======================================================================
  Couldn't download files from the Internet.
  Please check the Internet access on this host.
=======================================================================

CMake Warning at cmake/OpenCVDownload.cmake:249 (message):
  wechat_qrcode: Download failed: 6;"Couldn't resolve host name"

  For details please refer to the download log file:


  /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv-4.9.0_build-abi_x86_64.amd64-python3_11/CMakeDownloadLog.txt


Call Stack (most recent call first):
  /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv_contrib-4.9.0/modules/wechat_qrcode/CMakeLists.txt:26 (ocv_download)


CMake Warning at /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv_contrib-4.9.0/modules/wechat_qrcode/CMakeLists.txt:37 (message):
  WeChatQRCode: Can't get detect caffemodel file for wechat qrcode.


-- wechat_qrcode: Downloading detect.prototxt from https://raw.githubusercontent.com/WeChatCV/opencv_3rdparty/a8b69ccc738421293254aec5ddb38bd523503252/detect.prototxt
-- Try 0 failed
--
=======================================================================
  Couldn't download files from the Internet.
  Please check the Internet access on this host.
=======================================================================

CMake Warning at cmake/OpenCVDownload.cmake:249 (message):
  wechat_qrcode: Download failed: 6;"Couldn't resolve host name"

  For details please refer to the download log file:


  /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv-4.9.0_build-abi_x86_64.amd64-python3_11/CMakeDownloadLog.txt


Call Stack (most recent call first):
  /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv_contrib-4.9.0/modules/wechat_qrcode/CMakeLists.txt:26 (ocv_download)


CMake Warning at /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv_contrib-4.9.0/modules/wechat_qrcode/CMakeLists.txt:37 (message):
  WeChatQRCode: Can't get detect prototxt file for wechat qrcode.


-- wechat_qrcode: Downloading sr.caffemodel from https://raw.githubusercontent.com/WeChatCV/opencv_3rdparty/a8b69ccc738421293254aec5ddb38bd523503252/sr.caffemodel
-- Try 0 failed
--
=======================================================================
  Couldn't download files from the Internet.
  Please check the Internet access on this host.
=======================================================================

CMake Warning at cmake/OpenCVDownload.cmake:249 (message):
  wechat_qrcode: Download failed: 6;"Couldn't resolve host name"

  For details please refer to the download log file:


  /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv-4.9.0_build-abi_x86_64.amd64-python3_11/CMakeDownloadLog.txt


Call Stack (most recent call first):
  /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv_contrib-4.9.0/modules/wechat_qrcode/CMakeLists.txt:26 (ocv_download)


CMake Warning at /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv_contrib-4.9.0/modules/wechat_qrcode/CMakeLists.txt:37 (message):
  WeChatQRCode: Can't get sr caffemodel file for wechat qrcode.


-- wechat_qrcode: Downloading sr.prototxt from https://raw.githubusercontent.com/WeChatCV/opencv_3rdparty/a8b69ccc738421293254aec5ddb38bd523503252/sr.prototxt
-- Try 0 failed
--
=======================================================================
  Couldn't download files from the Internet.
  Please check the Internet access on this host.
=======================================================================

CMake Warning at cmake/OpenCVDownload.cmake:249 (message):
  wechat_qrcode: Download failed: 6;"Couldn't resolve host name"

  For details please refer to the download log file:


  /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv-4.9.0_build-abi_x86_64.amd64-python3_11/CMakeDownloadLog.txt


Call Stack (most recent call first):
  /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv_contrib-4.9.0/modules/wechat_qrcode/CMakeLists.txt:26 (ocv_download)


CMake Warning at /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv_contrib-4.9.0/modules/wechat_qrcode/CMakeLists.txt:37 (message):
  WeChatQRCode: Can't get sr prototxt file for wechat qrcode.


-- data: Downloading face_landmark_model.dat from https://raw.githubusercontent.com/opencv/opencv_3rdparty/8afa57abc8229d611c4937165d20e2a2d9fc5a12/face_landmark_model.dat


In case its helpful: :D

Code:

emerge --info =opencv-4.9.0
Portage 3.0.63 (python 3.11.8-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-12, glibc-2.39-r2, 6.7.10-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.7.10-gentoo-x86_64-AMD_Ryzen_7_5800X_8-Core_Processor-with-glibc2.39
KiB Mem:    32798488 total,  19375060 free
KiB Swap:   50331640 total,  50329824 free
Timestamp of repository gentoo: Thu, 21 Mar 2024 15:30:00 +0000
Head commit of repository gentoo: a5286f0d5011667c5088d267d95a046668fbc84e
Head commit of repository brave-overlay: d95a90828f9bedfdffa73ed012031e47d390313a

sh bash 5.2_p26
ld GNU ld (Gentoo 2.42 p3) 2.42.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.28.3::gentoo
dev-build/libtool:         2.4.7-r2::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.4.0-r1::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.2-r2::gentoo
dev-lang/python:           3.11.8_p1::gentoo, 3.12.2_p1::gentoo
dev-lang/rust:             1.76.0-r1::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/openrc:           0.53::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           17.0.6::gentoo, 18.1.2::gentoo
sys-devel/gcc:             12.3.1_p20240209::gentoo, 13.2.1_p20240210::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             17.0.6::gentoo
sys-devel/llvm:            17.0.6::gentoo, 18.1.2::gentoo
sys-kernel/linux-headers:  6.7::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r2::gentoo
Repositories:

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

Home
    location: /usr/local/portage
    masters: gentoo
    priority: 0
    volatile: True

brave-overlay
    location: /var/db/repos/brave-overlay
    sync-type: git
    sync-uri: https://gitlab.com/jason.oliveira/brave-overlay.git
    masters: gentoo
    volatile: False

local
    location: /var/db/repos/local
    masters: gentoo
    volatile: False

crossdev
    location: /var/db/repos/portage-crossdev
    masters: gentoo
    priority: 10
    volatile: True

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* PUEL"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
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="-O2 -march=native -pipe"
DISTDIR="/mnt/nfs_portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 2 --with-bdeps y --buildpkg-exclude "virtual/* sys-kernel/*-sources""
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 buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait 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="http://gentoo.osuosl.org/     http://gentoo-mirror.flux.utah.edu/     http://www.gtlib.gatech.edu/pub/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="en en_US"
MAKEOPTS="-j16  --load-average 8"
PKGDIR="/mnt/nfs_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 acl acpi activities alsa amd64 audiofile bluetooth bluray branding bzip2 cairo cdda cddb cdio cdr cli crypt css cuda cups dbus declarative dri dts dv dvb dvd dvdnav dvdr dvdread elogind enca encode exif extras ffmpeg flac fontconfig fortran gdbm gif gimp gpm gtk gui iconv icu imagemagick ipv6 java jpeg json kde kwallet ladspa lame lcms libnotify libtirpc live lm-sensors lv2 mad midi mjpeg mng mp2 mp3 mp4 mpeg mtp musepack ncurses networkmanager nls nptl nvenc nvidia ogg openal opengl openmp pam pango pcre pda pdf pipewire pipewire-alsa plasma png policykit ppds pulseaudio qemu qml qt5 readline redistributable scanner screencast script sdl seccomp semantic-desktop snmp sound speech spell split-usr srt ssl startup-notification svg test-rust theora threads tiff tools truetype udev udisks unicode upower ups_drivers_usbhid-ups usb usbredir v4l vcd vim-syntax vorbis vulkan wayland webkit widgets wxwidgets x264 x265 xattr xcb xft xinerama xml xmp xv xvfb xvid zlib" ABI_X86="64" ADA_TARGET="gcc_12" ALSA_CARDS="hda_intel usb_audio" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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 avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en_US la" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LIBREOFFICE_EXTENSIONS="pdfimport presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" QEMU_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby31" SANE_BACKENDS="hp" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, 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, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS


Last edited by cctsurf on Mon Mar 25, 2024 3:08 pm; edited 2 times in total
Back to top
View user's profile Send private message
cctsurf
Tux's lil' helper
Tux's lil' helper


Joined: 12 Oct 2006
Posts: 123

PostPosted: Fri Mar 22, 2024 2:40 pm    Post subject: Reply with quote

Here's the whole build log if that helps...It looks to me like something isn't working in the interaction with cuda...
Thanks!
Code:

cat /var/tmp/portage/media-libs/opencv-4.9.0/temp/build.log
 * Package:    media-libs/opencv-4.9.0:0/4.9.0
 * Repository: gentoo
 * Maintainer: negril.nx+gentoo@gmail.com proxy-maint@gentoo.org
 * USE:        abi_x86_64 amd64 contrib contribdnn cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_f16c cpu_flags_x86_fma3 cpu_flags_x86_popcnt cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_sse4_1 cpu_flags_x86_sse4_2 cpu_flags_x86_ssse3 cuda eigen elibc_glibc features2d ffmpeg java jpeg kernel_linux opengl openmp png python python_targets_python3_11 qt5 tiff v4l
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
 * Using: openjdk-17
>>> Unpacking source...
>>> Unpacking opencv-4.9.0.tar.gz to /var/tmp/portage/media-libs/opencv-4.9.0/work
>>> Unpacking ade-0.1.2d.tar.gz to /var/tmp/portage/media-libs/opencv-4.9.0/work
>>> Unpacking opencv_contrib-4.9.0.tar.gz to /var/tmp/portage/media-libs/opencv-4.9.0/work
>>> Unpacking opencv_3rdparty-8afa57abc8229d611c4937165d20e2a2d9fc5a12.tar.gz to /var/tmp/portage/media-libs/opencv-4.9.0/work
>>> Unpacking NVIDIAOpticalFlowSDK-edb50da3cf849840d680249aa6dbef248ebce2ca.tar.gz to /var/tmp/portage/media-libs/opencv-4.9.0/work
>>> Source unpacked in /var/tmp/portage/media-libs/opencv-4.9.0/work
>>> Preparing source in /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv-4.9.0 ...
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/media-libs/opencv-4.9.0/work/opencv-4.9.0"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/media-libs/opencv-4.9.0/work/opencv-4.9.0_build"
 * Applying opencv-3.4.0-disable-download.patch ...
patching file CMakeLists.txt
Hunk #1 succeeded at 221 with fuzz 1 (offset 34 lines).
patching file cmake/OpenCVDownload.cmake
Hunk #1 succeeded at 82 with fuzz 1 (offset 50 lines).
Hunk #2 succeeded at 298 with fuzz 2 (offset 61 lines).                                                                                                                               [ ok ]
 * Applying opencv-3.4.1-cuda-add-relaxed-constexpr.patch ...                                                                                                                         [ ok ]
 * Applying opencv-4.1.2-opencl-license.patch ...                                                                                                                                     [ ok ]
 * Applying opencv-4.4.0-disable-native-cpuflag-detect.patch ...                                                                                                                      [ ok ]
 * Applying opencv-4.5.0-link-with-cblas-for-lapack.patch ...                                                                                                                         [ ok ]
 * Applying opencv-4.8.1-use-system-flatbuffers.patch ...                                                                                                                             [ ok ]
 * Applying opencv-4.8.1-use-system-opencl.patch ...                                                                                                                                  [ ok ]
 * Applying opencv-4.9.0-drop-python2-detection.patch ...                                                                                                                             [ ok ]
 * Applying opencv-4.9.0-ade-0.1.2d.tar.gz.patch ...                                                                                                                                  [ ok ]
 * Applying opencv-4.9.0-cmake-cleanup.patch ...                                                                                                                                      [ ok ]
 * Hardcoded definition(s) removed in CMakeLists.txt:
 *    set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build")
 *        set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/install" CACHE PATH "Inst
 *        set(CMAKE_INSTALL_PREFIX "/usr/local" CACHE PATH "Installation Director
 *      set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/install" CACHE PATH "Instal
 * Applying opencv_contrib-4.8.1-rgbd.patch ...                                                                                                                                       [ ok ]
 * Applying opencv_contrib-4.8.1-NVIDIAOpticalFlowSDK-2.0.tar.gz.patch ...                                                                                                            [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv-4.9.0 ...
 * abi_x86_64.amd64: running multilib-minimal_abi_src_configure
 * ACCESS DENIED:  fopen_wr:           /proc/self/task/202/comm
__nvcc_device_query failed to call cudaLoader::cuInit(0) with error 0x130 (CUDA_ERROR_OPERATING_SYSTEM)
 * python3_11: running python_configure
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/media-libs/opencv-4.9.0/work/opencv-4.9.0"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/media-libs/opencv-4.9.0/work/opencv-4.9.0_build-abi_x86_64.amd64-python3_11"
cmake -C /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv-4.9.0_build-abi_x86_64.amd64-python3_11/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DMIN_VER_CMAKE=3.26 -DCMAKE_POLICY_DEFAULT_CMP0148=OLD -DCMAKE_CXX_STANDARD=17 -DENABLE_DOWNLOAD=yes -DOPENCV_ENABLE_NONFREE=no -DWITH_QUIRC=no -DWITH_FLATBUFFERS=yes -DWITH_1394=no -DWITH_VTK=no -DWITH_EIGEN=yes -DWITH_VFW=no -DWITH_FFMPEG=yes -DWITH_GSTREAMER=no -DWITH_GTK=no -DWITH_GTK_2_X=no -DWITH_IPP=no -DWITH_JASPER=no -DWITH_JPEG=yes -DWITH_OPENJPEG=no -DWITH_WEBP=no -DWITH_OPENEXR=no -DWITH_OPENGL=yes -DOpenGL_GL_PREFERENCE=GLVND -DWITH_OPENVX=no -DWITH_OPENNI=no -DWITH_OPENNI2=no -DWITH_PNG=yes -DWITH_GDCM=no -DWITH_PVAPI=no -DWITH_GIGEAPI=no -DWITH_ARAVIS=no -DWITH_WIN32UI=no -DWITH_TBB=no -DWITH_OPENMP=yes -DWITH_PTHREADS_PF=yes -DWITH_TIFF=yes -DWITH_UNICAP=no -DWITH_V4L=yes -DWITH_LIBV4L=yes -DWITH_MSMF=no -DWITH_XIMEA=no -DWITH_XINE=no -DWITH_CLP=no -DWITH_OPENCL=no -DWITH_OPENCL_SVM=no -DWITH_DIRECTX=no -DWITH_INTELPERC=no -DWITH_IPP_A=no -DWITH_MATLAB=no -DWITH_VA=no -DWITH_VA_INTEL=no -DWITH_GDAL=no -DWITH_GPHOTO2=no -DWITH_LAPACK=no -DWITH_ITT=no -DWITH_CUDA=yes -DWITH_CUBLAS=yes -DWITH_CUFFT=yes -DWITH_CUDNN=no -DWITH_NVCUVID=no -DWITH_NVCUVENC=no -DCUDA_NPP_LIBRARY_ROOT_DIR=/opt/cuda -DBUILD_SHARED_LIBS=yes -DBUILD_JAVA=yes -DBUILD_ANDROID_EXAMPLES=no -DBUILD_opencv_apps=no -DBUILD_DOCS=no -DBUILD_EXAMPLES=no -DBUILD_TESTS=no -DBUILD_PERF_TESTS=no -DBUILD_WITH_DYNAMIC_IPP=no -DBUILD_FAT_JAVA_LIB=no -DBUILD_CUDA_STUBS=yes -DOPENCV_EXTRA_MODULES_PATH=/var/tmp/portage/media-libs/opencv-4.9.0/work/opencv_contrib-4.9.0/modules -DINSTALL_CREATE_DISTRIB=no -DINSTALL_BIN_EXAMPLES=no -DINSTALL_C_EXAMPLES=no -DINSTALL_TESTS=no -DINSTALL_TO_MANGLED_PATHS=no -DOPENCV_GENERATE_PKGCONFIG=yes -DLIB_SUFFIX= -DBUILD_USE_SYMLINKS=yes -DENABLE_PRECOMPILED_HEADERS=no -DENABLE_SOLUTION_FOLDERS=no -DENABLE_PROFILING=no -DENABLE_COVERAGE=no -DOPENCV_DOWNLOAD_TRIES_LIST=0 -DHAVE_opencv_java=yes -DBUILD_WITH_DEBUG_INFO=no -DOPENCV_ENABLE_MEMORY_SANITIZER=no -DCV_TRACE=no -DENABLE_NOISY_WARNINGS=no -DOPENCV_WARNINGS_ARE_ERRORS=no -DENABLE_IMPL_COLLECTION=no -DENABLE_INSTRUMENTATION=no -DGENERATE_ABI_DESCRIPTOR=no -DBUILD_PACKAGE=no -DWITH_PROTOBUF=yes -DBUILD_PROTOBUF=no -DPROTOBUF_UPDATE_FILES=yes -DProtobuf_MODULE_COMPATIBLE=yes -DOPENCV_TEST_DATA_INSTALL_PATH=share/opencv4/testdata -DOPENCV_TEST_INSTALL_PATH=libexec/opencv/bin/test -DOPENCV_SAMPLES_BIN_INSTALL_PATH=libexec/opencv/bin/samples -DBUILD_IPP_IW=no -DBUILD_ITT=no -DBUILD_opencv_features2d=yes -DBUILD_opencv_java_bindings_generator=yes -DBUILD_opencv_js=no -DBUILD_opencv_js_bindings_generator=no -DBUILD_opencv_objc_bindings_generator=no -DBUILD_opencv_python2=no -DBUILD_opencv_ts=no -DBUILD_opencv_video=yes -DBUILD_opencv_videoio=yes -DBUILD_opencv_cudalegacy=no -DDNN_PLUGIN_LIST=all -DHIGHGUI_PLUGIN_LIST=all -DVIDEOIO_PLUGIN_LIST=all -DWITH_QT=yes -DCMAKE_DISABLE_FIND_PACKAGE_Qt6=yes -DCPU_BASELINE=SSE;SSE2;SSE3;SSSE3;SSE4_1;POPCNT;SSE4_2;FP16;FMA3;AVX;AVX2; -DOPENCV_CPU_OPT_IMPLIES_IGNORE=yes -DCPU_DISPATCH= -DBUILD_opencv_cvv=no -DBUILD_opencv_dnn=yes -DBUILD_opencv_freetype=no -DBUILD_opencv_hdf=no -DBUILD_opencv_ovis=no -DBUILD_opencv_sfm=no -DBUILD_opencv_xfeatures2d=no -DCMAKE_DISABLE_FIND_PACKAGE_Tesseract=yes -DENABLE_CUDA_FIRST_CLASS_LANGUAGE=yes -DOPENCV_GAPI_GSTREAMER=no -DWITH_OPENCLAMDFFT=no -DWITH_OPENCLAMDBLAS=no -DBUILD_opencv_python3=yes -DBUILD_opencv_python_bindings_generator=yes -DBUILD_opencv_python_tests=no -DPYTHON_DEFAULT_EXECUTABLE=python3.11 -DINSTALL_PYTHON_EXAMPLES=no -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/media-libs/opencv-4.9.0/work/opencv-4.9.0_build-abi_x86_64.amd64-python3_11/gentoo_toolchain.cmake /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv-4.9.0
loading initial cache file /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv-4.9.0_build-abi_x86_64.amd64-python3_11/gentoo_common_config.cmake
-- The CXX compiler identification is GNU 12.3.1
-- The C compiler identification is GNU 12.3.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- ocv_init_download: OpenCV source tree is not fetched as git repository. 3rdparty resources will be downloaded from github.com by default.
-- Detected processor: x86_64
-- Found PythonInterp: /var/tmp/portage/media-libs/opencv-4.9.0/temp/python3.11/bin/python (found suitable version "3.11.8", minimum required is "3.2")
-- Found PythonLibs: /usr/lib64/libpython3.11.so (found suitable exact version "3.11.8")
-- Looking for ccache - not found
-- Performing Test HAVE_CXX_FSIGNED_CHAR
-- Performing Test HAVE_CXX_FSIGNED_CHAR - Success
-- Performing Test HAVE_C_FSIGNED_CHAR
-- Performing Test HAVE_C_FSIGNED_CHAR - Success
-- Performing Test HAVE_CXX_W
-- Performing Test HAVE_CXX_W - Success
-- Performing Test HAVE_C_W
-- Performing Test HAVE_C_W - Success
-- Performing Test HAVE_CXX_WALL
-- Performing Test HAVE_CXX_WALL - Success
-- Performing Test HAVE_C_WALL
-- Performing Test HAVE_C_WALL - Success
-- Performing Test HAVE_CXX_WRETURN_TYPE
-- Performing Test HAVE_CXX_WRETURN_TYPE - Success
-- Performing Test HAVE_C_WRETURN_TYPE
-- Performing Test HAVE_C_WRETURN_TYPE - Success
-- Performing Test HAVE_CXX_WNON_VIRTUAL_DTOR
-- Performing Test HAVE_CXX_WNON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_C_WNON_VIRTUAL_DTOR
-- Performing Test HAVE_C_WNON_VIRTUAL_DTOR - Failed
-- Performing Test HAVE_CXX_WADDRESS
-- Performing Test HAVE_CXX_WADDRESS - Success
-- Performing Test HAVE_C_WADDRESS
-- Performing Test HAVE_C_WADDRESS - Success
-- Performing Test HAVE_CXX_WSEQUENCE_POINT
-- Performing Test HAVE_CXX_WSEQUENCE_POINT - Success
-- Performing Test HAVE_C_WSEQUENCE_POINT
-- Performing Test HAVE_C_WSEQUENCE_POINT - Success
-- Performing Test HAVE_CXX_WFORMAT
-- Performing Test HAVE_CXX_WFORMAT - Success
-- Performing Test HAVE_C_WFORMAT
-- Performing Test HAVE_C_WFORMAT - Success
-- Performing Test HAVE_CXX_WFORMAT_SECURITY
-- Performing Test HAVE_CXX_WFORMAT_SECURITY - Success
-- Performing Test HAVE_C_WFORMAT_SECURITY
-- Performing Test HAVE_C_WFORMAT_SECURITY - Success
-- Performing Test HAVE_CXX_WMISSING_DECLARATIONS
-- Performing Test HAVE_CXX_WMISSING_DECLARATIONS - Success
-- Performing Test HAVE_C_WMISSING_DECLARATIONS
-- Performing Test HAVE_C_WMISSING_DECLARATIONS - Success
-- Performing Test HAVE_CXX_WMISSING_PROTOTYPES
-- Performing Test HAVE_CXX_WMISSING_PROTOTYPES - Failed
-- Performing Test HAVE_C_WMISSING_PROTOTYPES
-- Performing Test HAVE_C_WMISSING_PROTOTYPES - Success
-- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES
-- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES - Failed
-- Performing Test HAVE_C_WSTRICT_PROTOTYPES
-- Performing Test HAVE_C_WSTRICT_PROTOTYPES - Success
-- Performing Test HAVE_CXX_WUNDEF
-- Performing Test HAVE_CXX_WUNDEF - Success
-- Performing Test HAVE_C_WUNDEF
-- Performing Test HAVE_C_WUNDEF - Success
-- Performing Test HAVE_CXX_WINIT_SELF
-- Performing Test HAVE_CXX_WINIT_SELF - Success
-- Performing Test HAVE_C_WINIT_SELF
-- Performing Test HAVE_C_WINIT_SELF - Success
-- Performing Test HAVE_CXX_WPOINTER_ARITH
-- Performing Test HAVE_CXX_WPOINTER_ARITH - Success
-- Performing Test HAVE_C_WPOINTER_ARITH
-- Performing Test HAVE_C_WPOINTER_ARITH - Success
-- Performing Test HAVE_CXX_WSHADOW
-- Performing Test HAVE_CXX_WSHADOW - Success
-- Performing Test HAVE_C_WSHADOW
-- Performing Test HAVE_C_WSHADOW - Success
-- Performing Test HAVE_CXX_WSIGN_PROMO
-- Performing Test HAVE_CXX_WSIGN_PROMO - Success
-- Performing Test HAVE_C_WSIGN_PROMO
-- Performing Test HAVE_C_WSIGN_PROMO - Failed
-- Performing Test HAVE_CXX_WUNINITIALIZED
-- Performing Test HAVE_CXX_WUNINITIALIZED - Success
-- Performing Test HAVE_C_WUNINITIALIZED
-- Performing Test HAVE_C_WUNINITIALIZED - Success
-- Performing Test HAVE_CXX_WSUGGEST_OVERRIDE
-- Performing Test HAVE_CXX_WSUGGEST_OVERRIDE - Success
-- Performing Test HAVE_C_WSUGGEST_OVERRIDE
-- Performing Test HAVE_C_WSUGGEST_OVERRIDE - Failed
-- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR
-- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR
-- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR - Failed
-- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
-- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed
-- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
-- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed
-- Performing Test HAVE_CXX_WNO_COMMENT
-- Performing Test HAVE_CXX_WNO_COMMENT - Success
-- Performing Test HAVE_C_WNO_COMMENT
-- Performing Test HAVE_C_WNO_COMMENT - Success
-- Performing Test HAVE_CXX_WIMPLICIT_FALLTHROUGH_3
-- Performing Test HAVE_CXX_WIMPLICIT_FALLTHROUGH_3 - Success
-- Performing Test HAVE_C_WIMPLICIT_FALLTHROUGH_3
-- Performing Test HAVE_C_WIMPLICIT_FALLTHROUGH_3 - Success
-- Performing Test HAVE_CXX_WNO_STRICT_OVERFLOW
-- Performing Test HAVE_CXX_WNO_STRICT_OVERFLOW - Success
-- Performing Test HAVE_C_WNO_STRICT_OVERFLOW
-- Performing Test HAVE_C_WNO_STRICT_OVERFLOW - Success
-- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION
-- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION - Success
-- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION
-- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION - Success
-- Performing Test HAVE_CXX_WNO_LONG_LONG
-- Performing Test HAVE_CXX_WNO_LONG_LONG - Success
-- Performing Test HAVE_C_WNO_LONG_LONG
-- Performing Test HAVE_C_WNO_LONG_LONG - Success
-- Performing Test HAVE_CXX_PTHREAD
-- Performing Test HAVE_CXX_PTHREAD - Success
-- Performing Test HAVE_C_PTHREAD
-- Performing Test HAVE_C_PTHREAD - Success
-- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER
-- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER - Success
-- Performing Test HAVE_C_FOMIT_FRAME_POINTER
-- Performing Test HAVE_C_FOMIT_FRAME_POINTER - Success
-- Performing Test HAVE_CXX_FFUNCTION_SECTIONS
-- Performing Test HAVE_CXX_FFUNCTION_SECTIONS - Success
-- Performing Test HAVE_C_FFUNCTION_SECTIONS
-- Performing Test HAVE_C_FFUNCTION_SECTIONS - Success
-- Performing Test HAVE_CXX_FDATA_SECTIONS
-- Performing Test HAVE_CXX_FDATA_SECTIONS - Success
-- Performing Test HAVE_C_FDATA_SECTIONS
-- Performing Test HAVE_C_FDATA_SECTIONS - Success
-- Performing Test HAVE_CXX_MSSE (check file: cmake/checks/cpu_sse.cpp)
-- Performing Test HAVE_CXX_MSSE - Success
-- Performing Test HAVE_CXX_MSSE2 (check file: cmake/checks/cpu_sse2.cpp)
-- Performing Test HAVE_CXX_MSSE2 - Success
-- Performing Test HAVE_CXX_MSSE3 (check file: cmake/checks/cpu_sse3.cpp)
-- Performing Test HAVE_CXX_MSSE3 - Success
-- Performing Test HAVE_CXX_MSSSE3 (check file: cmake/checks/cpu_ssse3.cpp)
-- Performing Test HAVE_CXX_MSSSE3 - Success
-- Performing Test HAVE_CXX_MSSE4_1 (check file: cmake/checks/cpu_sse41.cpp)
-- Performing Test HAVE_CXX_MSSE4_1 - Success
-- Performing Test HAVE_CXX_MPOPCNT (check file: cmake/checks/cpu_popcnt.cpp)
-- Performing Test HAVE_CXX_MPOPCNT - Success
-- Performing Test HAVE_CXX_MSSE4_2 (check file: cmake/checks/cpu_sse42.cpp)
-- Performing Test HAVE_CXX_MSSE4_2 - Success
-- Performing Test HAVE_CXX_MF16C (check file: cmake/checks/cpu_fp16.cpp)
-- Performing Test HAVE_CXX_MF16C - Success
-- Performing Test HAVE_CXX_MFMA
-- Performing Test HAVE_CXX_MFMA - Success
-- Performing Test HAVE_CXX_MAVX (check file: cmake/checks/cpu_avx.cpp)
-- Performing Test HAVE_CXX_MAVX - Success
-- Performing Test HAVE_CXX_MAVX2 (check file: cmake/checks/cpu_avx2.cpp)
-- Performing Test HAVE_CXX_MAVX2 - Success
-- Performing Test HAVE_CPU_BASELINE_FLAGS
-- Performing Test HAVE_CPU_BASELINE_FLAGS - Success
-- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN
-- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN - Success
-- Performing Test HAVE_C_FVISIBILITY_HIDDEN
-- Performing Test HAVE_C_FVISIBILITY_HIDDEN - Success
-- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN
-- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN - Success
-- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN
-- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN - Failed
-- Performing Test HAVE_LINK_AS_NEEDED
-- Performing Test HAVE_LINK_AS_NEEDED - Success
-- Performing Test HAVE_LINK_NO_UNDEFINED
-- Performing Test HAVE_LINK_NO_UNDEFINED - Success
-- Looking for a CUDA compiler
 * ACCESS DENIED:  fopen_wr:           /proc/self/task/1784/comm
-- Looking for a CUDA compiler - /opt/cuda/bin/nvcc
-- Looking for a CUDA host compiler - /usr/x86_64-pc-linux-gnu/gcc-bin/12
-- The CUDA compiler identification is NVIDIA 12.3.107
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Check for working CUDA compiler: /opt/cuda/bin/nvcc - skipped
 * ACCESS DENIED:  fopen_wr:           /proc/self/task/1851/comm
-- Detecting CUDA compile features
-- Detecting CUDA compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for posix_memalign
-- Looking for posix_memalign - found
-- Looking for malloc.h
-- Looking for malloc.h - found
-- Looking for memalign
-- Looking for memalign - found
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Found ZLIB: /usr/lib64/libz.so (found suitable version "1.3.1", minimum required is "1.2.3")
-- Found JPEG: /usr/lib64/libjpeg.so (found version "62")
-- Found TIFF: /usr/lib64/libtiff.so (found version "4.6.0")
-- Found CUDAToolkit: /opt/cuda/targets/x86_64-linux/include (found version "12.3.107")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- CUDA: Using CUDA_ARCH_BIN=52
-- CUDA: NVCC target flags -D_FORCE_INLINES
-- Found apache ant: /usr/bin/ant (2.0.30)
-- Found JNI: /usr/lib64/openjdk-17/include  found components: AWT JVM
-- ADE: Downloading v0.1.2d.tar.gz from https://github.com/opencv/ade/archive/v0.1.2d.tar.gz
-- Performing Test HAVE_CXX_WNO_UNDEF
-- Performing Test HAVE_CXX_WNO_UNDEF - Success
-- Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS
-- Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS - Success
-- Performing Test HAVE_CXX_WNO_SHADOW
-- Performing Test HAVE_CXX_WNO_SHADOW - Success
-- Performing Test HAVE_CXX_WNO_STRICT_ALIASING
-- Performing Test HAVE_CXX_WNO_STRICT_ALIASING - Success
-- Checking for modules 'libavcodec;libavformat;libavutil;libswscale'
--   Found libavcodec, version 60.31.102
--   Found libavformat, version 60.16.100
--   Found libavutil, version 58.29.100
--   Found libswscale, version 7.5.100
-- Performing Test HAVE_CXX_WNO_SIGN_COMPARE
-- Performing Test HAVE_CXX_WNO_SIGN_COMPARE - Success
-- Performing Test HAVE_CXX_WNO_ENUM_COMPARE
-- Performing Test HAVE_CXX_WNO_ENUM_COMPARE - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER
-- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER - Success
-- Performing Test HAVE_CXX_WNO_UNINITIALIZED
-- Performing Test HAVE_CXX_WNO_UNINITIALIZED - Success
-- Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS
-- Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS - Success
-- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_COMPARE
-- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_COMPARE - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_FUNCTION
-- Performing Test HAVE_CXX_WNO_UNUSED_FUNCTION - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_VARIABLE
-- Performing Test HAVE_CXX_WNO_UNUSED_VARIABLE - Success
-- Performing Test HAVE_CXX_WNO_SUGGEST_OVERRIDE
-- Performing Test HAVE_CXX_WNO_SUGGEST_OVERRIDE - Success
-- Julia not found. Not compiling Julia Bindings.
-- Checking for module 'tesseract'
--   Found tesseract, version 5.3.4
-- Tesseract:   YES (ver 5.3.4)
-- Performing Test HAVE_CXX_WNO_UNUSED_BUT_SET_VARIABLE
-- Performing Test HAVE_CXX_WNO_UNUSED_BUT_SET_VARIABLE - Success
-- Allocator metrics storage type: 'long long'
-- Excluding from source files list: modules/imgproc/src/imgwarp.lasx.cpp
-- Excluding from source files list: modules/imgproc/src/resize.lasx.cpp
-- Registering hook 'INIT_MODULE_SOURCES_opencv_dnn': /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv-4.9.0/modules/dnn/cmake/hooks/INIT_MODULE_SOURCES_opencv_dnn.cmake
-- Performing Test HAVE_CXX_WNO_DEPRECATED
-- Performing Test HAVE_CXX_WNO_DEPRECATED - Success
-- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES
-- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES - Failed
-- Performing Test HAVE_CXX_WNO_INVALID_OFFSETOF
-- Performing Test HAVE_CXX_WNO_INVALID_OFFSETOF - Success
-- Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS
-- Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS - Success
-- opencv_dnn: filter out ocl4dnn source code
-- opencv_dnn: filter out cuda4dnn source code
-- Excluding from source files list: modules/dnn/src/layers/cpu_kernels/conv_winograd_f63.neon.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.avx512_skx.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.rvv.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.lasx.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/int8layers/layers_common.avx512_skx.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/int8layers/layers_common.lasx.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/layers/cpu_kernels/conv_block.neon.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/layers/cpu_kernels/conv_block.neon_fp16.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/layers/cpu_kernels/conv_depthwise.rvv.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/layers/cpu_kernels/conv_depthwise.lasx.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/layers/cpu_kernels/conv_winograd_f63.neon_fp16.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/layers/cpu_kernels/fast_gemm_kernels.neon.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/layers/cpu_kernels/fast_gemm_kernels.lasx.cpp
-- Performing Test HAVE_CXX_WNO_OVERLOADED_VIRTUAL
-- Performing Test HAVE_CXX_WNO_OVERLOADED_VIRTUAL - Success
-- Video I/O: add builtin plugin 'opencv_videoio_ffmpeg'
-- Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH
-- Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH - Success
-- highgui: using builtin backend: QT5
-- Performing Test Iconv_IS_BUILT_IN
-- Performing Test Iconv_IS_BUILT_IN - Success
-- wechat_qrcode: Downloading detect.caffemodel from https://raw.githubusercontent.com/WeChatCV/opencv_3rdparty/a8b69ccc738421293254aec5ddb38bd523503252/detect.caffemodel
-- Try 0 failed
--
=======================================================================
  Couldn't download files from the Internet.
  Please check the Internet access on this host.
=======================================================================

CMake Warning at cmake/OpenCVDownload.cmake:249 (message):
  wechat_qrcode: Download failed: 6;"Couldn't resolve host name"

  For details please refer to the download log file:


  /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv-4.9.0_build-abi_x86_64.amd64-python3_11/CMakeDownloadLog.txt


Call Stack (most recent call first):
  /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv_contrib-4.9.0/modules/wechat_qrcode/CMakeLists.txt:26 (ocv_download)


CMake Warning at /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv_contrib-4.9.0/modules/wechat_qrcode/CMakeLists.txt:37 (message):
  WeChatQRCode: Can't get detect caffemodel file for wechat qrcode.


-- wechat_qrcode: Downloading detect.prototxt from https://raw.githubusercontent.com/WeChatCV/opencv_3rdparty/a8b69ccc738421293254aec5ddb38bd523503252/detect.prototxt
-- Try 0 failed
--
=======================================================================
  Couldn't download files from the Internet.
  Please check the Internet access on this host.
=======================================================================

CMake Warning at cmake/OpenCVDownload.cmake:249 (message):
  wechat_qrcode: Download failed: 6;"Couldn't resolve host name"

  For details please refer to the download log file:


  /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv-4.9.0_build-abi_x86_64.amd64-python3_11/CMakeDownloadLog.txt


Call Stack (most recent call first):
  /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv_contrib-4.9.0/modules/wechat_qrcode/CMakeLists.txt:26 (ocv_download)


CMake Warning at /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv_contrib-4.9.0/modules/wechat_qrcode/CMakeLists.txt:37 (message):
  WeChatQRCode: Can't get detect prototxt file for wechat qrcode.


-- wechat_qrcode: Downloading sr.caffemodel from https://raw.githubusercontent.com/WeChatCV/opencv_3rdparty/a8b69ccc738421293254aec5ddb38bd523503252/sr.caffemodel
-- Try 0 failed
--
=======================================================================
  Couldn't download files from the Internet.
  Please check the Internet access on this host.
=======================================================================

CMake Warning at cmake/OpenCVDownload.cmake:249 (message):
  wechat_qrcode: Download failed: 6;"Couldn't resolve host name"

  For details please refer to the download log file:


  /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv-4.9.0_build-abi_x86_64.amd64-python3_11/CMakeDownloadLog.txt


Call Stack (most recent call first):
  /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv_contrib-4.9.0/modules/wechat_qrcode/CMakeLists.txt:26 (ocv_download)


CMake Warning at /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv_contrib-4.9.0/modules/wechat_qrcode/CMakeLists.txt:37 (message):
  WeChatQRCode: Can't get sr caffemodel file for wechat qrcode.


-- wechat_qrcode: Downloading sr.prototxt from https://raw.githubusercontent.com/WeChatCV/opencv_3rdparty/a8b69ccc738421293254aec5ddb38bd523503252/sr.prototxt
-- Try 0 failed
--
=======================================================================
  Couldn't download files from the Internet.
  Please check the Internet access on this host.
=======================================================================

CMake Warning at cmake/OpenCVDownload.cmake:249 (message):
  wechat_qrcode: Download failed: 6;"Couldn't resolve host name"

  For details please refer to the download log file:


  /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv-4.9.0_build-abi_x86_64.amd64-python3_11/CMakeDownloadLog.txt


Call Stack (most recent call first):
  /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv_contrib-4.9.0/modules/wechat_qrcode/CMakeLists.txt:26 (ocv_download)


CMake Warning at /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv_contrib-4.9.0/modules/wechat_qrcode/CMakeLists.txt:37 (message):
  WeChatQRCode: Can't get sr prototxt file for wechat qrcode.


-- data: Downloading face_landmark_model.dat from https://raw.githubusercontent.com/opencv/opencv_3rdparty/8afa57abc8229d611c4937165d20e2a2d9fc5a12/face_landmark_model.dat
-- NVIDIA_OPTICAL_FLOW: Downloading edb50da3cf849840d680249aa6dbef248ebce2ca.tar.gz from https://github.com/NVIDIA/NVIDIAOpticalFlowSDK/archive/edb50da3cf849840d680249aa6dbef248ebce2ca.tar.gz
-- Building with NVIDIA Optical Flow API 2.0
-- Found 'misc' Python modules from /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv-4.9.0/modules/python/package/extra_modules
-- Found 'mat_wrapper;utils' Python modules from /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv-4.9.0/modules/core/misc/python/package
-- Found 'gapi' Python modules from /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv-4.9.0/modules/gapi/misc/python/package
-- Performing Test HAVE_CXX_WNO_UNUSED_PRIVATE_FIELD
-- Performing Test HAVE_CXX_WNO_UNUSED_PRIVATE_FIELD - Failed
-- Found 'misc' Python modules from /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv-4.9.0/modules/python/package/extra_modules
-- Found 'mat_wrapper;utils' Python modules from /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv-4.9.0/modules/core/misc/python/package
-- Found 'gapi' Python modules from /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv-4.9.0/modules/gapi/misc/python/package
--
-- General configuration for OpenCV 4.9.0 =====================================
--   Version control:               unknown
--
--   Extra modules:
--     Location (extra):            /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv_contrib-4.9.0/modules
--     Version control (extra):     unknown
--
--   Platform:
--     Timestamp:                   2024-03-22T14:30:07Z
--     Host:                        Linux 6.7.10-gentoo x86_64
--     CMake:                       3.29.0
--     CMake generator:             Ninja
--     CMake build tool:            /usr/bin/ninja
--     Configuration:               RelWithDebInfo
--
--   CPU/HW features:
--     Baseline:                    SSE SSE2 SSE3 SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2
--       requested:                 SSE SSE2 SSE3 SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2
--
--   C/C++:
--     Built as dynamic libs?:      YES
--     C++ standard:                17
--     C++ Compiler:                /usr/bin/x86_64-pc-linux-gnu-g++  (ver 12.3.1)
--     C++ flags (Release):         -O2 -march=native -pipe   -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -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 -mavx2 -fvisibility=hidden -fvisibility-inlines-hidden -fopenmp -O3 -DNDEBUG  -DNDEBUG
--     C++ flags (Debug):           -O2 -march=native -pipe   -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -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 -mavx2 -fvisibility=hidden -fvisibility-inlines-hidden -fopenmp -g  -DDEBUG -D_DEBUG
--     C Compiler:                  /usr/bin/x86_64-pc-linux-gnu-gcc
--     C flags (Release):           -O2 -march=native -pipe   -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -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 -mavx2 -fvisibility=hidden -fopenmp -O3 -DNDEBUG  -DNDEBUG
--     C flags (Debug):             -O2 -march=native -pipe   -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -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 -mavx2 -fvisibility=hidden -fopenmp -g  -DDEBUG -D_DEBUG
--     Linker flags (Release):      -Wl,-O1 -Wl,--as-needed  -Wl,--gc-sections -Wl,--as-needed -Wl,--no-undefined 
--     Linker flags (Debug):        -Wl,-O1 -Wl,--as-needed  -Wl,--gc-sections -Wl,--as-needed -Wl,--no-undefined 
--     ccache:                      NO
--     Precompiled headers:         NO
--     Extra dependencies:          /opt/cuda/targets/x86_64-linux/lib/libcudart_static.a /opt/cuda/targets/x86_64-linux/lib/libnppial.so /opt/cuda/targets/x86_64-linux/lib/libnppc.so /opt/cuda/targets/x86_64-linux/lib/libnppitc.so /opt/cuda/targets/x86_64-linux/lib/libnppig.so /opt/cuda/targets/x86_64-linux/lib/libnppist.so /opt/cuda/targets/x86_64-linux/lib/libnppidei.so /opt/cuda/targets/x86_64-linux/lib/libcublas.so /opt/cuda/targets/x86_64-linux/lib/libcublasLt.so /opt/cuda/targets/x86_64-linux/lib/libcufft.so /opt/cuda/targets/x86_64-linux/lib/libnppicc.so /opt/cuda/targets/x86_64-linux/lib/libnppif.so /opt/cuda/targets/x86_64-linux/lib/libnppim.so dl m pthread rt
--     3rdparty dependencies:
--
--   OpenCV modules:
--     To be built:                 alphamat aruco bgsegm bioinspired calib3d ccalib core cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudaobjdetect cudaoptflow cudastereo cudawarping cudev datasets dnn dnn_objdetect dnn_superres dpm face features2d flann fuzzy gapi hfs highgui img_hash imgcodecs imgproc intensity_transform java line_descriptor mcc ml objdetect optflow phase_unwrapping photo plot python3 quality rapid reg rgbd saliency shape stereo stitching structured_light superres surface_matching text tracking video videoio videostab wechat_qrcode ximgproc xobjdetect xphoto
--     Disabled:                    cudalegacy js_bindings_generator objc_bindings_generator python_tests world
--     Disabled by dependency:      -
--     Unavailable:                 cannops julia matlab python2 ts viz
--     Applications:                -
--     Documentation:               NO
--     Non-free algorithms:         NO
--
--   GUI:                           QT5
--     QT:                          YES (ver 5.15.12 )
--       QT OpenGL support:         YES (Qt5::OpenGL 5.15.12)
--     OpenGL support:              YES (/usr/lib64/libOpenGL.so /usr/lib64/libGLX.so /usr/lib64/libGLU.so)
--
--   Media I/O:
--     ZLib:                        /usr/lib64/libz.so (ver 1.3.1)
--     JPEG:                        /usr/lib64/libjpeg.so (ver unknown)
--     PNG:                         /usr/lib64/libpng.so (ver 1.6.43+apng)
--     TIFF:                        /usr/lib64/libtiff.so (ver 42 / 4.6.0)
--     HDR:                         YES
--     SUNRASTER:                   YES
--     PXM:                         YES
--     PFM:                         YES
--
--   Video I/O:
--     FFMPEG:                      YES
--       avcodec:                   YES (60.31.102)
--       avformat:                  YES (60.16.100)
--       avutil:                    YES (58.29.100)
--       swscale:                   YES (7.5.100)
--       avresample:                NO
--     v4l/v4l2:                    YES (linux/videodev2.h)
--
--   Parallel framework:            OpenMP
--
--   Other third-party libraries:
--     Eigen:                       YES (ver 3.4.0)
--     Custom HAL:                  NO
--     Protobuf:                    /usr/lib64/libprotobuf.so.23.3.0 (23.3.0)
--     Flatbuffers:                 24.3.7
--
--   NVIDIA CUDA:                   YES (ver 12.3.107, CUFFT CUBLAS)
--     NVIDIA GPU arch:             52
--     NVIDIA PTX archs:            52
--
--   Python 3:
--     Interpreter:                 /var/tmp/portage/media-libs/opencv-4.9.0/temp/python3.11/bin/python (ver 3.11.8)
--     Libraries:                   /usr/lib64/libpython3.11.so (ver 3.11.8)
--     numpy:                       /usr/lib/python3.11/site-packages/numpy/core/include (ver 1.26.4)
--     install path:                lib/python3.11/site-packages/cv2/python-3.11
--
--   Python (for build):            python3.11
--
--   Java:                         
--     ant:                         /usr/bin/ant (ver 2.0.30)
--     Java:                        NO
--     JNI:                         /usr/lib64/openjdk-17/include /usr/lib64/openjdk-17/include/linux /usr/lib64/openjdk-17/include
--     Java wrappers:               YES (ANT)
--     Java tests:                  NO
--
--   Install to:                    /usr
-- -----------------------------------------------------------------
--
-- <<< Gentoo configuration >>>
Build type      RelWithDebInfo
Install path    /usr
Compiler flags:
C               -O2 -march=native -pipe   -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -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 -mavx2 -fvisibility=hidden -fopenmp
C++             -O2 -march=native -pipe   -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -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 -mavx2 -fvisibility=hidden -fvisibility-inlines-hidden -fopenmp
Linker flags:
Executable      -Wl,-O1 -Wl,--as-needed  -Wl,--gc-sections -Wl,--as-needed -Wl,--no-undefined
Module          -Wl,-O1 -Wl,--as-needed  -Wl,--gc-sections -Wl,--as-needed -Wl,--no-undefined
Shared          -Wl,-O1 -Wl,--as-needed  -Wl,--gc-sections -Wl,--as-needed -Wl,--no-undefined

-- Configuring done (10.4s)
-- Generating done (0.2s)
-- Build files have been written to: /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv-4.9.0_build-abi_x86_64.amd64-python3_11
cElementTree rewriter
>>> Source configured.
 * ----------------------- SANDBOX ACCESS VIOLATION SUMMARY -----------------------
 * LOG FILE: "/var/tmp/portage/media-libs/opencv-4.9.0/temp/sandbox.log"
 *
VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: fopen_wr
S: deny
P: /proc/self/task/202/comm
A: /proc/self/task/202/comm
R: /proc/201/task/202/comm
C: __nvcc_device_query

F: fopen_wr
S: deny
P: /proc/self/task/1784/comm
A: /proc/self/task/1784/comm
R: /proc/1783/task/1784/comm
C: /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv-4.9.0_build-abi_x86_64.amd64-python3_11/CMakeFiles/CheckCUDA/CMakeFiles/3.29.0/CMakeDetermineCompilerABI_CUDA.bin

F: fopen_wr
S: deny
P: /proc/self/task/1851/comm
A: /proc/self/task/1851/comm
R: /proc/1850/task/1851/comm
C: /var/tmp/portage/media-libs/opencv-4.9.0/work/opencv-4.9.0_build-abi_x86_64.amd64-python3_11/CMakeFiles/3.29.0/CMakeDetermineCompilerABI_CUDA.bin
 * --------------------------------------------------------------------------------
!!! When you file a bug report, please include the following information:
GENTOO_VM=openjdk-17  CLASSPATH="" JAVA_HOME="/usr/lib64/openjdk-17"
JAVACFLAGS="-source 1.8 -target 1.8" COMPILER=""
and of course, the output of emerge --info =opencv-4.9.0
Back to top
View user's profile Send private message
cctsurf
Tux's lil' helper
Tux's lil' helper


Joined: 12 Oct 2006
Posts: 123

PostPosted: Fri Mar 22, 2024 4:03 pm    Post subject: media-libs/opencv-4.9.0 sandbox violation with CUDA Reply with quote

It builds just fine without the Cuda Use flag.
Back to top
View user's profile Send private message
stefantalpalaru
n00b
n00b


Joined: 11 Jan 2009
Posts: 24
Location: Italy

PostPosted: Sat Mar 23, 2024 6:40 pm    Post subject: Reply with quote

This is your CUDA sandbox issue: https://bugs.gentoo.org/926116
Back to top
View user's profile Send private message
cctsurf
Tux's lil' helper
Tux's lil' helper


Joined: 12 Oct 2006
Posts: 123

PostPosted: Sun Mar 24, 2024 12:52 am    Post subject: Reply with quote

stefantalpalaru wrote:
This is your CUDA sandbox issue: https://bugs.gentoo.org/926116

Thank You!
I'll subscribe to the bug and post here when I have a working solution.
Back to top
View user's profile Send private message
cctsurf
Tux's lil' helper
Tux's lil' helper


Joined: 12 Oct 2006
Posts: 123

PostPosted: Mon Mar 25, 2024 3:08 pm    Post subject: Reply with quote

I was able to get this to build by following the suggestion in the above mentioned bug: 926116
Under the src_configure() section, in the "if use cuda the section", I added
Code:
addpredict "/proc/self/task"


so that it looked like:

Code:

    if use cuda; then
        addpredict "/proc/self/task"
        mkdir -p "${S}/.cache/nvidia_optical_flow"
        cp \
            "${DISTDIR}/NVIDIAOpticalFlowSDK-${NVIDIA_OPTICAL_FLOW_COMMIT}.tar.gz" \
            "${S}/.cache/nvidia_optical_flow/$( \
                md5sum "${DISTDIR}/NVIDIAOpticalFlowSDK-${NVIDIA_OPTICAL_FLOW_COMMIT}.tar.gz" | cut -f 1 -d " " \
            )-${NVIDIA_OPTICAL_FLOW_COMMIT}.tar.gz" || die
    fi


Thank You!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum