Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 915068 - dev-libs/libbsd-0.11.7-r2 fails to link with clang-17: ld.lld: error: version script assignment of 'LIBBSD_0.10.0' to symbol 'vwarn' failed: symbol not defined
Summary: dev-libs/libbsd-0.11.7-r2 fails to link with clang-17: ld.lld: error: version...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: LD-is-lld, systemwide-lld 912821
  Show dependency tree
 
Reported: 2023-10-02 07:57 UTC by ppw0
Modified: 2024-01-21 11:19 UTC (History)
3 users (show)

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


Attachments
build log (dev-libs:libbsd-0.11.7-r2:20231002-074908.log,47.81 KB, text/x-log)
2023-10-02 07:57 UTC, ppw0
Details
emerge --info (emerge_info.log,7.36 KB, text/x-log)
2023-10-02 07:58 UTC, ppw0
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ppw0 2023-10-02 07:57:30 UTC
Created attachment 872002 [details]
build log

clang-17 will fail to link libbsd-0.11.7-r2 with the following errors:
---

ld.lld: error: version script assignment of 'LIBBSD_0.10.0' to symbol 'vwarn' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBBSD_0.10.0' to symbol 'vwarnx' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBBSD_0.10.0' to symbol 'warn' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBBSD_0.10.0' to symbol 'warnx' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBBSD_0.10.0' to symbol 'verr' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBBSD_0.10.0' to symbol 'verrx' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBBSD_0.10.0' to symbol 'err' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBBSD_0.10.0' to symbol 'errx' failed: symbol not defined
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [Makefile:577: libbsd.la] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-libs/libbsd-0.11.7-r2/work/libbsd-0.11.7-abi_x86_64.amd64/src'
make[1]: *** [Makefile:414: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/dev-libs/libbsd-0.11.7-r2/work/libbsd-0.11.7-abi_x86_64.amd64'
make: *** [Makefile:346: all] Error 2
---

The temporary workaround is to add "-Wl,--undefined-version" to LDFLAGS.

Attaching logs.
Comment 1 ppw0 2023-10-02 07:58:30 UTC
Created attachment 872003 [details]
emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2024-01-14 03:40:30 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32f6b6137ac36f8bd2d6aaf30e31a6ae64fc2e27

commit 32f6b6137ac36f8bd2d6aaf30e31a6ae64fc2e27
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-01-14 03:21:06 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-01-14 03:28:10 +0000

    dev-libs/libbsd: add 0.11.8
    
    Bug: https://bugs.gentoo.org/911726
    Closes: https://bugs.gentoo.org/898312
    Closes: https://bugs.gentoo.org/915068
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/libbsd/Manifest             |  2 ++
 dev-libs/libbsd/libbsd-0.11.8.ebuild | 44 ++++++++++++++++++++++++++++++++++++
 2 files changed, 46 insertions(+)
Comment 3 Larry the Git Cow gentoo-dev 2024-01-21 11:19:40 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a66e9174d502778cb4f26d46f80a474b2b869ec7

commit a66e9174d502778cb4f26d46f80a474b2b869ec7
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-01-21 11:18:08 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-01-21 11:18:08 +0000

    dev-libs/libbsd: restore LLD 17 workaround
    
    Closes: https://bugs.gentoo.org/922342
    Bug: https://bugs.gentoo.org/915068
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/libbsd/libbsd-0.11.7-r2.ebuild | 5 ++++-
 dev-libs/libbsd/libbsd-0.11.8.ebuild    | 3 +++
 2 files changed, 7 insertions(+), 1 deletion(-)