Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 729290 - gnome-base/libgtop fails to build with LD="lld": error: no such file or directory: './.libs/libgtop-2.0.so'
Summary: gnome-base/libgtop fails to build with LD="lld": error: no such file or direc...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-23 11:46 UTC by Agostino Sarubbo
Modified: 2020-06-24 07:25 UTC (History)
0 users

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


Attachments
build.log (build.log,86.06 KB, text/plain)
2020-06-23 11:46 UTC, Agostino Sarubbo
Details
other.tar.bz2 (other.tar.bz2,249 bytes, application/x-bzip-compressed-tar)
2020-06-23 11:46 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-06-23 11:46:46 UTC
@@This is an auto-filed bug@@
If you think that a different summary clarifies the issue better, feel free to change it.

Issue: gnome-base/libgtop fails to compile.
Discovered on: amd64

NOTE:
If yout think this issue is related to CLANG, please block bug 408963. If you need further logs, feel free to ask.
Comment 1 Agostino Sarubbo gentoo-dev 2020-06-23 11:46:52 UTC
Created attachment 645840 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2020-06-23 11:46:56 UTC
Created attachment 645842 [details]
other.tar.bz2

other logs
Comment 3 Arfrever Frehtes Taifersar Arahesis 2020-06-24 07:25:49 UTC
Actually problem was caused by invalid LD="lld" setting.

`lld` cannot be called directly without specifying its flavor, because `lld` is actually 5 linkers in one file:
https://github.com/llvm/llvm-project/blob/53ff95254df4be3365a0bf4da2677e75ccbf32ba/lld/tools/lld/lld.cpp#L9-L24
https://github.com/llvm/llvm-project/blob/53ff95254df4be3365a0bf4da2677e75ccbf32ba/lld/tools/lld/lld.cpp#L46-L53
https://github.com/llvm/llvm-project/blob/53ff95254df4be3365a0bf4da2677e75ccbf32ba/lld/tools/lld/lld.cpp#L60-L68
https://github.com/llvm/llvm-project/blob/53ff95254df4be3365a0bf4da2677e75ccbf32ba/lld/tools/lld/lld.cpp#L139-L163

Valid values of LD variable (with equivalent meaning) for LLD linker, GNU flavor:
- LD="ld.lld"             (recommended)
- LD="lld -flavor ld"
- LD="lld -flavor ld.lld"
- LD="lld -flavor gnu"