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.