Summary: | net-wireless/bluez-5.72 fails to link with clang-17: ld.lld: error: version script assignment of 'global' to symbol 'error' failed: symbol not defined | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | ppw0 |
Component: | Current packages | Assignee: | Pacho Ramos <pacho> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | gentoo.qxrin, parona, StormByte, vadorovsky |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/bluez/bluez/pull/623 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 731004, 912821 | ||
Attachments: |
build log
emerge --info |
Created attachment 872165 [details]
emerge --info
parona, did you ever send this to the ML? (see comments on https://github.com/bluez/bluez/pull/623) clang-lld_tinderbox has reproduced this issue with version 5.72 - Updating summary. I don't see this patch being sent to the ML. And bluez doesn't accept Github pull requests. So far I just applied it to my private overlay and I can confirm it works: https://gitlab.com/vadorovsky/overlay/-/commit/4f3956048938ba1aa84d19f96cfeaa06f0aa3ea9 But it would be awesome to upstream it. |
Created attachment 872164 [details] build log In a clang-17[default-libcxx] environment, net-wireless/bluez-5.70 will fail to link during emerge with the following error message: ``` ld.lld: error: version script assignment of 'global' to symbol 'error' failed: symbol not defined ld.lld: error: version script assignment of 'global' to symbol 'debug' failed: symbol not defined clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: *** [Makefile:6203: src/bluetoothd] Error 1 make: *** [Makefile:4556: all] Error 2 ``` This can be avoided by passing "-Wl,--undefined-version" to LDFLAGS. Attaching logs.