The 23.0 profile enables LDFLAGS=-Wl,-z,pack-relative-relocs This breaks intel_clc (own package, but part of mesa) Compilation of mesa throws the error: "Failed to find build-id" when compiling shaders. If the option above is disabled, intel_clc and mesa can be compiled Reproducible: Always Steps to Reproduce: 1. use any 23.0 based profile on amd64 2. enable VIDEO_CARDS="intel" 3. compile intel_clc and mesa Actual Results: compilation breaks with "Failed to find build-id" Expected Results: compilation should finish intel_clc and mesa do some dladdr/dl_iterate_phdr stuff with peeking into internal dynamic linking stuff. See src/util/build_id.c build_id_find_nhdr_for_addr line 118 and build_id_find_nhdr_callback line 56, in line 83 the if note->nhdr.n_type == NT_GNU_BUILD_ID is never matched when the new compact -Wl,-z,pack-relative-relocs is enabled. Disabling this (in the profiles/default/linux/amd64/23.0/make.default), recompiling intel_clc then mesa compiles. Not sure how to fix this in an ebuild. Portage 3.0.65 (python 3.12.5-final-0, default/linux/amd64/23.0/split-usr, gcc-14, glibc-2.40, 6.9.3-gentoo-x86_64 x86_64) ================================================================= System uname: Linux-6.9.3-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i7-8750H_CPU_@_2.20GHz-with-glibc2.40 KiB Mem: 16224396 total, 7133932 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Sun, 11 Aug 2024 10:30:00 +0000 Head commit of repository gentoo: 8c6f58b86ec4f8c8f158eb96ad29ae6f6aace5d7 Timestamp of repository pf4public: Sat, 10 Aug 2024 14:22:16 +0000 Head commit of repository pf4public: 5ea42757e0fc48b9d9d74f38117381efaa269657 Timestamp of repository steam-overlay: Sat, 10 Aug 2024 14:21:51 +0000 Head commit of repository steam-overlay: f58515ef7cbf5a30fa9ebab679166065dc0f36e5 sh bash 5.2_p32 ld GNU ld (Gentoo 2.37_p1 p0) 2.37 app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.2_p32::gentoo dev-build/autoconf: 2.13-r8::gentoo, 2.69-r5::gentoo, 2.71-r7::gentoo, 2.72-r1::gentoo dev-build/automake: 1.16.5-r2::gentoo, 1.17-r1::gentoo dev-build/cmake: 3.30.2::gentoo dev-build/libtool: 2.4.7-r4::gentoo dev-build/make: 4.4.1-r1::gentoo dev-build/meson: 1.5.1::gentoo dev-java/java-config: 2.3.4::gentoo dev-lang/perl: 5.40.0::gentoo dev-lang/python: 2.7.18_p16::gentoo, 3.9.16::gentoo, 3.10.14_p2::gentoo, 3.11.9_p1::gentoo, 3.12.5::gentoo, 3.13.0_rc1_p1::gentoo dev-lang/rust: 1.78.0::gentoo dev-lang/rust-bin: 1.79.0::gentoo sys-apps/baselayout: 2.15::gentoo sys-apps/openrc: 0.54.2::gentoo sys-apps/sandbox: 2.39::gentoo sys-devel/binutils: 2.30-r4::gentoo, 2.31.1-r4::gentoo, 2.32-r1::gentoo, 2.33.1::gentoo, 2.34-r2::gentoo, 2.35.2::gentoo, 2.36.1-r1::gentoo, 2.37_p1::gentoo, 2.38-r2::gentoo, 2.39-r4::gentoo, 2.40-r4::gentoo, 2.41-r4::gentoo, 2.42-r1::gentoo, 2.43::gentoo sys-devel/binutils-config: 5.5.2::gentoo sys-devel/clang: 12.0.1::gentoo, 14.0.6-r1::gentoo, 15.0.7-r1::gentoo, 16.0.6::gentoo, 17.0.6::gentoo, 18.1.8::gentoo sys-devel/gcc: 7.4.0-r1::gentoo, 8.2.0-r6::gentoo, 8.3.0-r3::gentoo, 8.4.0-r2::gentoo, 9.1.0-r1::gentoo, 9.2.0-r2::gentoo, 10.3.0-r2::gentoo, 11.3.1_p20230120-r1::gentoo, 12.3.1_p20240502::gentoo, 13.3.1_p20240614::gentoo, 14.2.0::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/lld: 15.0.7::gentoo, 16.0.6::gentoo, 17.0.6::gentoo, 18.1.8::gentoo sys-devel/llvm: 12.0.1::gentoo, 14.0.6-r4::gentoo, 15.0.7::gentoo, 16.0.6::gentoo, 17.0.6-r2::gentoo, 18.1.8-r4::gentoo sys-kernel/linux-headers: 6.9::gentoo (virtual/os-headers) sys-libs/glibc: 2.40::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-max-age: 24 sync-rsync-extra-opts: sync-rsync-verify-jobs: 1 ACCEPT_KEYWORDS="amd64 x86 ~amd64 ~x86" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native" 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/php/apache2-php8.3/ext-active/ /etc/php/cgi-php8.3/ext-active/ /etc/php/cli-php8.3/ext-active/ /etc/php/fpm-php8.3/ext-active/ /etc/php/phpdbg-php8.3/ext-active/ /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="-O2 -pipe -march=native" 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 -march=native" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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 -march=native" GENTOO_MIRRORS="https://ftp.fau.de/gentoo" LANG="de_DE.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" MAKEOPTS="-j13" 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 acl amd64 bluetooth bzip2 cet crypt cups elogind gdbm iconv ipv6 lcms libtirpc multilib ncurses nls opencl opengl openmp pam pcre pipewire qt6 readline seccomp split-usr ssl test-rust unicode vulkan wayland xattr xinerama zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_core authn_dbm authn_file authz_core 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 socache_shmcb speling status unique_id unixd 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 sse sse2 sse3 sse4_1 sse4_2 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" INPUT_DEVICES="synaptics libinput keyboard mouse" KERNEL="linux" L10N="en eb.US de" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-3" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_12 python3_11 python3_10" RUBY_TARGETS="ruby26 ruby31" VIDEO_CARDS="nvidia intel" 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, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, 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
Please include the full build.log, but I think the issue is that you need to select a newer binutils with `binutils-config`. You should also depclean after world upgrades.