Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 729600 - app-text/xmlstarlet fails to compile with lld and profile 17.1
Summary: app-text/xmlstarlet fails to compile with lld and profile 17.1
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sebastian Pipping
Depends on:
Blocks: LD-is-lld, systemwide-lld
  Show dependency tree
Reported: 2020-06-25 11:48 UTC by Agostino Sarubbo
Modified: 2021-01-31 19:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

build.log (build.log,23.02 KB, text/plain)
2020-06-25 11:48 UTC, Agostino Sarubbo

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-06-25 11:48:46 UTC
@@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.
Comment 1 Agostino Sarubbo gentoo-dev 2020-06-25 11:48:51 UTC
Created attachment 646306 [details]

build log and emerge --info
Comment 2 Sebastian Pipping gentoo-dev 2020-06-27 16:54:13 UTC
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?
Comment 3 Agostino Sarubbo gentoo-dev 2020-08-03 09:09:26 UTC
this is because of -L/usr/lib in the link command line
Comment 4 Sebastian Pipping gentoo-dev 2020-08-03 11:35:59 UTC
(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.
Comment 5 Sebastian Pipping gentoo-dev 2021-01-31 18:38:36 UTC
Confirming for command:

  CC=clang CXX=clang++ LD=ld.lld LDFLAGS=-fuse-ld=lld ebuild xmlstarlet-1.6.1.ebuild manifest clean compile
Comment 6 Larry the Git Cow gentoo-dev 2021-01-31 19:03:38 UTC
The bug has been closed via the following commit(s):

commit 50b1b854dcc2c8edf99916c8acfc1610619adce3
Author:     Sebastian Pipping <>
AuthorDate: 2021-01-31 19:00:59 +0000
Commit:     Sebastian Pipping <>
CommitDate: 2021-01-31 19:02:51 +0000

    app-text/xmlstarlet: Fix linking for lld + profile 17.1 + amd64
    Signed-off-by: Sebastian Pipping <>
    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(-)