https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: sys-devel/dwz-0.15 calls readelf directly. Discovered on: amd64 (internal ref: ci) NOTE: As per QA policy, toolchain tools must not be called directly because they can cause issue in cross-compiling and because is not possible use a different READELF implementation (like llvm-readelf). To reproduce, please use sys-devel/gcc-config[-native-symlinks], sys-devel/binutils-config[-native-symlinks].
Created attachment 858413 [details] build.log build log and emerge --info
Error(s) that match a know pattern: /bin/sh: line 1: readelf: command not found dwz.c:42:10: fatal error: xxhash.h: No such file or directory dwz.c:42:10: fatal error: xxhash.h: No such file or directory
ci has reproduced this issue with version 0.15-r1 - Updating summary.
Created attachment 907733 [details, diff] readelf.patch This patch allows compilation with sys-devel/binutils-config[-native-symlinks]. It will not in fact build with llvm-readelf*, so still needs additionally setting READELF="x86_64-pc-linux-gnu-readelf" when building the package to make it actually compile, but it might fix cross compilation completely. Note there are other occurrences of readelf, in the package tests, that this patch patch doesn't cover, so dwz[test] will probably still not compile, but this at least gets compilation working when "readelf" is not GNU readelf (or the readelf for the correct arch) * llvm-readelf: error: unknown argument '-w'
ci has reproduced this issue with version 0.15-r2 - Updating summary.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7c4e417ac9c0e113dbf679baca04019dcb85723 commit c7c4e417ac9c0e113dbf679baca04019dcb85723 Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me> AuthorDate: 2024-11-22 06:55:13 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-12-01 11:25:58 +0000 sys-devel/dwz: fix hardcoded readelf, pull error-standalone Closes: https://bugs.gentoo.org/829239 Closes: https://bugs.gentoo.org/902197 Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me> Signed-off-by: Sam James <sam@gentoo.org> sys-devel/dwz/dwz-0.15-r3.ebuild | 72 ++++++++++++++++++++++++++++++ sys-devel/dwz/files/dwz-0.15-readelf.patch | 43 ++++++++++++++++++ 2 files changed, 115 insertions(+) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ccf7e0e8dae6c81674d1f0ded6b0f16e54db378 commit 0ccf7e0e8dae6c81674d1f0ded6b0f16e54db378 Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me> AuthorDate: 2024-11-30 11:12:07 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-12-01 11:25:57 +0000 sys-libs/error-standalone: new package, add 1.0 Needed for sys-devel/dwz and dev-util/debugedit, see referenced bugs. Tested on: * Ryzen: amd64, x86 * RockPro64: arm, arm64 * StarFive VisionFive2: riscv Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me> Bug: https://bugs.gentoo.org/902197 Bug: https://bugs.gentoo.org/829239 Signed-off-by: Sam James <sam@gentoo.org> sys-libs/error-standalone/Manifest | 1 + sys-libs/error-standalone/error-standalone-1.0.ebuild | 12 ++++++++++++ sys-libs/error-standalone/metadata.xml | 12 ++++++++++++ 3 files changed, 25 insertions(+)