emerge --update ... failed for opencv, and the build log shows it using /usr/bin/ccache to invoke the clang compiler. Earlier, in the configuration phase, ninja says "looking for ccache - found (/usr/bin/ccache) and then later when it summarises the configuration is says "ccache: YES". While I have ccache installed, IIUC emerge should only invoke it if FEATURES contains "ccache", and in general (and this specific case) it doesn't. I note a similar bug, 934197, this time with meson, strangely closed INVALID as if this is a user problem rather than portage not behaving as expected. Reproducible: Always
emerge --info media-libs/opencv Portage 3.0.65 (python 3.12.3-final-0, default/linux/amd64/23.0/split-usr/desktop/plasma, gcc-13, glibc-2.39-r6, 6.10.1-git x86_64) ================================================================= System Settings ================================================================= System uname: Linux-6.10.1-git-x86_64-AMD_Ryzen_9_5950X_16-Core_Processor-with-glibc2.39 KiB Mem: 32777500 total, 21447088 free KiB Swap: 146483180 total, 146483180 free Timestamp of repository gentoo: Thu, 01 Aug 2024 01:45:00 +0000 Head commit of repository gentoo: 0365801e9cef58d1bcc0c94298812889b731ba1f Timestamp of repository Pauls: Thu, 04 Feb 2021 19:40:45 +0000 Timestamp of repository guru: Tue, 23 Apr 2024 10:35:11 +0000 Head commit of repository guru: ad73d0a456addb32004c9673529d157c6f5d8b23 Timestamp of repository steam-overlay: Thu, 04 Apr 2024 01:22:27 +0000 Head commit of repository steam-overlay: aca6eb772e0d5474b6d44072998af0082f36d08a sh dash 0.5.12 ld GNU ld (Gentoo 2.42 p3) 2.42.0 ccache version 4.9.1 [disabled] app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.2_p26-r6::gentoo dev-build/autoconf: 2.13-r8::gentoo, 2.71-r7::gentoo dev-build/automake: 1.16.5-r2::gentoo dev-build/cmake: 3.28.5::gentoo dev-build/libtool: 2.4.7-r4::gentoo dev-build/make: 4.4.1-r1::gentoo dev-build/meson: 1.4.1::gentoo dev-java/java-config: 2.3.4::gentoo dev-lang/perl: 5.38.2-r3::gentoo dev-lang/python: 3.12.3-r1::gentoo dev-lang/rust-bin: 1.79.0::gentoo dev-util/ccache: 4.9.1-r1::gentoo sys-apps/baselayout: 2.15::gentoo sys-apps/openrc: 0.54.2::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.8::gentoo sys-devel/gcc: 13.3.1_p20240614::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/lld: 17.0.6::gentoo, 18.1.8::gentoo sys-devel/llvm: 17.0.6::gentoo, 18.1.8-r1::gentoo sys-kernel/linux-headers: 6.9::gentoo (virtual/os-headers) sys-libs/glibc: 2.39-r6::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.uk.gentoo.org/gentoo-portage/ priority: -1000 volatile: False sync-rsync-verify-max-age: 3 sync-rsync-verify-jobs: 1 sync-rsync-extra-opts: sync-rsync-verify-metamanifest: yes Pauls location: /usr/local/overlay masters: gentoo volatile: True guru location: /var/db/repos/guru sync-type: git sync-uri: https://github.com/gentoo-mirror/guru.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/localrepo-crossdev masters: gentoo priority: 10 volatile: False ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA AdobeFlash-11.x" AR="llvm-ar" CBUILD="x86_64-pc-linux-gnu" CC="clang" CFLAGS="-march=bdver4 -mtune=znver3 -mno-fma4 -mno-lwp -mno-tbm -mno-xop -mno-xsaves -O2 -flto=thin" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CPP="clang-cpp" CXX="clang++" CXXFLAGS="-march=bdver4 -mtune=znver3 -mno-fma4 -mno-lwp -mno-tbm -mno-xop -mno-xsaves -O2 -flto=thin" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--ask --read-news --jobs 15 --load-average 31 --quiet-build y --quiet-fail y --buildpkg-exclude 'sys-kernel/*-sources games-simulation/flightgear-data media-video/v4l2loopback */*-bin'" 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="-march=bdver4 -mtune=znver3 -mno-fma4 -mno-lwp -mno-tbm -mno-xop -mno-xsaves -O2 -flto=thin" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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="-march=bdver4 -mtune=znver3 -mno-fma4 -mno-lwp -mno-tbm -mno-xop -mno-xsaves -O2 -flto=thin" GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo/ http://www.mirrorservice.org/sites/distfiles.gentoo.org/" LANG="en_GB.utf8" LDFLAGS="-fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind -Wl,--as-needed" LEX="flex" LINGUAS="en_GB en en_US" MAKEOPTS="-j32 -l31" NM="llvm-nm" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" RANLIB="llvm-ranlib" RUSTFLAGS="-C target-cpu=bdver4 -C target-feature=-fma4 -C target-feature=-lwp -C target-feature=-tbm -C target-feature=-xop -C target-feature=-xsaves" SHELL="/bin/bash" USE="X a52 aac acl acpi activities alsa amd64 bluetooth branding bzip2 cairo cdda cdr cet clang cleartype cmake corefonts crypt cups dbus declarative dri dts dvb dvd dvdr elogind encode exif ffmpeg flac fontconfig gdbm gif glibc-omitfp gpm gstremer gtk gui iconv icu id3 id3tag ipv6 java joystick jpeg kde kf6compat kwallet lcms libnotify libtirpc llvm-libunwind lm-sensors lto mad mdadm midi mmx mmxext mng mp3 mp4 mpeg multilib mysql ncurses nls nsplugin ogg opencl opengl openh264 openmp orc pam pango pcre pdf pipewire plasma png policykit popcnt ppds printsupport pulseaudio qml qt5 readline sdl seccomp sndfile sound spell split-usr sql sse sse2 sse3 sse4a ssl startup-notification suid svg test-rust threads tiff truetype udev udisks unicode usb v4l vaapi vdpau vorbis vpx vulkan wallpapers wayland widgets wxwidgets x264 xattr xcb xcomposite xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_12" 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" CAMERAS="sony ptp2 directory" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt 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 emu" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-GB en en-US" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LIBREOFFICE_EXTENSIONS="wiki-publisher" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PERL_FEATURES="ithreads" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby31 ruby32" SANE_BACKENDS="snapscan net" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, ARFLAGS, AS, ASFLAGS, CCLD, CONFIG_SHELL, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS ================================================================= Package Settings ================================================================= media-libs/opencv-4.8.1-r2::gentoo was built with the following: USE="contrib contribdnn eigen features2d ffmpeg jpeg opencl opengl openmp png python qt5 tiff v4l vaapi (-contribcvv) -contribfreetype (-contribhdf) (-contribovis) (-contribsfm) (-contribxfeatures2d) (-cuda) (-cudnn) -debug -dnnsamples -examples -gdal (-gflags) (-glog) -gphoto2 -gstreamer -gtk3 -ieee1394 -java -jpeg2k -lapack -non-free -opencvapps -openexr -qt6 -tbb (-tesseract) -testprograms (-vtk) -webp -xine" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="avx avx2 f16c fma3 popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3 -avx512f" PYTHON_TARGETS="python3_12 -python3_10 -python3_11" VIDEO_CARDS="-intel" CFLAGS="-march=bdver4 -mtune=znver3 -mno-fma4 -mno-lwp -mno-tbm -mno-xop -mno-xsaves -O2" CXXFLAGS="-march=bdver4 -mtune=znver3 -mno-fma4 -mno-lwp -mno-tbm -mno-xop -mno-xsaves -O2" LDFLAGS="-fuse-ld=mold -Wl,--as-needed"
Created attachment 898748 [details] build.log (gzipped) build.log showing the problem
https://github.com/opencv/opencv/blob/4.9.0/CMakeLists.txt#L522 Commented out for some reason in 4.9.0. https://gitweb.gentoo.org/repo/gentoo.git/tree/media-libs/opencv/opencv-4.9.0-r1.ebuild#n554
https://github.com/gentoo/portage/blob/master/bin/phase-functions.sh#L987-L989 > # Force configure scripts that automatically detect ccache to > # respect FEATURES="-ccache". > has ccache ${FEATURES} || export CCACHE_DISABLE=1 > CACHE_DISABLE > If you set the environment variable CCACHE_DISABLE then ccache will > just call the real compiler, bypassing the cache completely. So FEATURES=-ccache should be honoured even with `-DENABLE_CCACHE="no"` commented out.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e1b2bd8a6b2bdd06eac3060547b012f2ba27b7f commit 4e1b2bd8a6b2bdd06eac3060547b012f2ba27b7f Author: Paul Zander <negril.nx+gentoo@gmail.com> AuthorDate: 2024-10-15 12:08:36 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-11-05 02:02:31 +0000 media-libs/opencv: disable CCACHE again #937051 While portage exports CACHE_DISABLE=1 for FEATURES=-ccache to disable ccache usage, seeing the lookup logic causes confusion, so we disable it in the ebuild. One can still activate it via MYCMAKEARGS="-DENABLE_CCACHE=yes" Bug: https://bugs.gentoo.org/937051#c4 Closes: https://bugs.gentoo.org/937051 Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> Signed-off-by: Sam James <sam@gentoo.org> media-libs/opencv/opencv-4.10.0.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e1b2bd8a6b2bdd06eac3060547b012f2ba27b7f commit 4e1b2bd8a6b2bdd06eac3060547b012f2ba27b7f Author: Paul Zander <negril.nx+gentoo@gmail.com> AuthorDate: 2024-10-15 12:08:36 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-11-05 02:02:31 +0000 media-libs/opencv: disable CCACHE again #937051 While portage exports CACHE_DISABLE=1 for FEATURES=-ccache to disable ccache usage, seeing the lookup logic causes confusion, so we disable it in the ebuild. One can still activate it via MYCMAKEARGS="-DENABLE_CCACHE=yes" Bug: https://bugs.gentoo.org/937051#c4 Closes: https://bugs.gentoo.org/937051 Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> Signed-off-by: Sam James <sam@gentoo.org> media-libs/opencv/opencv-4.10.0.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)