Created attachment 874067 [details] build.log (using dev-libs/glib as an example) Filing this as a bug with musl as this seems to have been an oversight in the 1.2.4 release (which added support for RELR). Musl's elf.h defines the various macros for RELR support (DT_RELRSZ, DT_RELR, DT_RELRENT, SHT_RELR), but does not include the typedefs for the Elf64_Relr and Elf32_Relr types. Elfutils 0.190 (which added support for RELR) assumes that the Elf64_Relr and Elf32_Relr types are defined if SHT_RELR is defined, which causes a build failure for anything using gelf.h (but not for dev-libs/elfutils itself). emerge --info: Portage 3.0.54 (python 3.12.0-final-0, default/linux/amd64/23.0/musl/llvm, [unavailable], musl-1.2.4, 6.5.9-gentoo-dist-hardened x86_64) ================================================================= System uname: Linux-6.5.9-gentoo-dist-hardened-x86_64-AMD_Ryzen_7_7700X_8-Core_Processor-with-libc KiB Mem: 32560972 total, 6570000 free KiB Swap: 0 total, 0 free Head commit of repository gentoo: d4d5c2d0f81876b9ab6cf82b02f6b173aa150fd9 Head commit of repository guru: f3c8cfbd6c882d32f2ab353b9c9e1b4477a17cca Head commit of repository haskell: d505f277c875f7b8630a86ef45e9801676e14da6 Head commit of repository llvm: 9b5b17ee8361156a54de14874a51ca2a05b703f5 Head commit of repository vimproved: af673218665e92ae85fb9f8202c5007ab8704e0f sh dash 0.5.12 ld LLD 17.0.4 (compatible with GNU linkers) ccache version 4.8.3 [disabled] app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.2_p15-r7::gentoo dev-lang/perl: 5.38.0-r1::gentoo dev-lang/python: 3.11.6::gentoo, 3.12.0_p1::gentoo dev-lang/rust: 1.73.0::gentoo dev-util/ccache: 4.8.3::gentoo dev-util/cmake: 3.27.7::gentoo dev-util/meson: 1.2.3::gentoo sys-apps/baselayout: 2.14::gentoo sys-apps/openrc: 0.51::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/clang: 17.0.4-r1::llvm sys-devel/libtool: 2.4.7-r1::gentoo sys-devel/lld: 17.0.4-r1::llvm sys-devel/llvm: 16.0.6::gentoo, 17.0.4-r1::llvm sys-devel/make: 4.4.1-r1::gentoo sys-kernel/linux-headers: 6.6::gentoo (virtual/os-headers) sys-libs/musl: 1.2.4::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: git sync-uri: https://github.com/gentoo/gentoo.git priority: -1000 volatile: False guru location: /var/db/repos/guru sync-type: git sync-uri: https://github.com/gentoo/guru.git masters: gentoo volatile: False haskell location: /var/db/repos/haskell sync-type: git sync-uri: https://github.com/gentoo-haskell/gentoo-haskell.git masters: gentoo volatile: False llvm location: /var/db/repos/llvm sync-type: git sync-uri: https://codeberg.org/vimproved/llvm-overlay.git masters: gentoo volatile: False vimproved location: /var/db/repos/vimproved sync-type: git sync-uri: https://codeberg.org/vimproved/overlay.git masters: gentoo haskell volatile: False Installed sets: @vimproved-fonts, @vimproved-utils, @vimproved-wayland ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="@FREE" ADDR2LINE="llvm-addr2line" AR="llvm-ar" AS="clang -c" CBUILD="x86_64-gentoo-linux-musl" CC="clang" CFLAGS="-march=znver4 -O3 -pipe -flto=thin" CHOST="x86_64-gentoo-linux-musl" CONFIG_PROTECT="/etc /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/sandbox.d" CPP="clang-cpp" CXX="clang++" CXXFLAGS="-march=znver4 -O3 -pipe -flto=thin" DISTDIR="/var/cache/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 candy config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync 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://distfiles.gentoo.org" INSTALL_MASK="charset.alias /usr/share/locale/locale.alias" LANG="C.UTF-8" LD="ld.lld" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--as-needed" LEX="reflex" MAKEOPTS="-j16" NM="llvm-nm" OBJCOPY="llvm-objcopy" OBJDUMP="llvm-objdump" PKGDIR="/var/cache/binpkgs" PORTAGE_COMPRESS="gzip" 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" READELF="llvm-readelf" RUSTFLAGS="-C target-cpu=znver4" SHELL="/bin/bash" STRINGS="llvm-strings" STRIP="llvm-strip" USE="amd64 bzip2 cet clang crypt dist-kernel hardened iconv ipv6 libtirpc llvm-libunwind lzma ncurses nptl pam pcre pie readline seccomp ssl ssp test-rust unicode xattr xtpax zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2021" 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 avx2 avx512f avx512dq avx512cd avx512bw avx512vl avx512vbmi f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="musl" 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="libinput" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="X86" LUA_SINGLE_TARGET="luajit" LUA_TARGETS="luajit" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_11 python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="amdgpu radeonsi" 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" YACC="byacc" Unset: ARFLAGS, ASFLAGS, CCLD, CONFIG_SHELL, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LC_ALL, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SIZE, YFLAGS
Created attachment 874068 [details, diff] patch
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6167c89db9b5c6f986d8fe7f54e72953d0e9026c commit 6167c89db9b5c6f986d8fe7f54e72953d0e9026c Author: Sam James <sam@gentoo.org> AuthorDate: 2023-11-09 00:56:25 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-11-09 00:56:25 +0000 sys-libs/musl: fix header compat w/ elfutils-0.190 Per #musl, this is similar to what will be pushed in musl git soon. Closes: https://bugs.gentoo.org/916857 Signed-off-by: Sam James <sam@gentoo.org> .../files/musl-1.2.4-elfutils-0.190-relr.patch | 73 ++++++++ sys-libs/musl/musl-1.2.4-r1.ebuild | 204 +++++++++++++++++++++ 2 files changed, 277 insertions(+)