Summary: | gnome-base/libgtop fails to build with LD="lld": error: no such file or directory: './.libs/libgtop-2.0.so' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
other.tar.bz2 |
Description
Agostino Sarubbo
![]() Created attachment 645840 [details]
build.log
build log and emerge --info
Created attachment 645842 [details]
other.tar.bz2
other logs
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" |