@@This is an auto-filed bug@@
Feel free to change the summary at your convenience.
Issue: app-text/xmlstarlet fails to compile.
Discovered on: amd64
This machine uses a clang/LLVM toolchain.
If you think that this issue is strictly related to clang/LLVM please mention it in the summary and block bug 408963. If you need further logs, feel free to ask.
Created attachment 646306 [details]
build log and emerge --info
I tried to reproduce the issue but it alls works for me. I did:
# CC=x86_64-pc-linux-gnu-clang-10 CFLAGS="-O2 -pipe -march=native -frecord-gcc-switches -fno-diagnostics-color" \
LDFLAGS="-Wl,-O1 -Wl,--as-needed -fuse-ld=lld -Wl,--defsym=__gentoo_check_ldflags__=0" \
ebuild xmlstarlet-1.6.1.ebuild manifest clean install
Error "is incompatible with elf_x86_64" does not look like xmlstarlet's fault to me. What do you think?
this is because of -L/usr/lib in the link command line
(In reply to Agostino Sarubbo from comment #3)
> this is because of -L/usr/lib in the link command line
So it's due to profile 17.1 (rather than 17.0) if I am not mistaken.
Confirming for command:
CC=clang CXX=clang++ LD=ld.lld LDFLAGS=-fuse-ld=lld ebuild xmlstarlet-1.6.1.ebuild manifest clean compile
The bug has been closed via the following commit(s):
Author: Sebastian Pipping <email@example.com>
AuthorDate: 2021-01-31 19:00:59 +0000
Commit: Sebastian Pipping <firstname.lastname@example.org>
CommitDate: 2021-01-31 19:02:51 +0000
app-text/xmlstarlet: Fix linking for lld + profile 17.1 + amd64
Signed-off-by: Sebastian Pipping <email@example.com>
Package-Manager: Portage-3.0.14, Repoman-3.0.2
app-text/xmlstarlet/xmlstarlet-1.6.1.ebuild | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)