Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 915089 - dev-qt/qtbluetooth-5.15.10 fails to link with clang-17: ld.lld: error: version script assignment of 'Qt_5.15' to symbol 'qt_version_tag' failed: symbol not defined
Summary: dev-qt/qtbluetooth-5.15.10 fails to link with clang-17: ld.lld: error: versio...
Status: RESOLVED DUPLICATE of bug 915203
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-02 23:15 UTC by ppw0
Modified: 2023-10-07 15:09 UTC (History)
0 users

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


Attachments
build log (dev-qt:qtbluetooth-5.15.10-r1:20231002-230538.log,338.17 KB, text/x-log)
2023-10-02 23:15 UTC, ppw0
Details
emerge --info (emerge_info.log,7.36 KB, text/x-log)
2023-10-02 23:15 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 23:15:13 UTC
Created attachment 872060 [details]
build log

In a clang-17[default-libcxx] environment, qtbluetooth-5.15.10-r1 will fail to link with the following error:
---
ld.lld: error: version script assignment of 'Qt_5.15' to symbol 'qt_version_tag' failed: symbol not defined
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [Makefile:399: ../../lib/libQt5Bluetooth.so.5.15.10] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-qt/qtbluetooth-5.15.10-r1/work/qtconnectivity-everywhere-src-5.15.10_build/src/bluetooth'
make[1]: *** [Makefile:48: sub-bluetooth-make_first] Error 2
make[1]: Leaving directory '/var/tmp/portage/dev-qt/qtbluetooth-5.15.10-r1/work/qtconnectivity-everywhere-src-5.15.10_build/src'
make: *** [Makefile:49: sub-src-make_first] Error 2
---

This error can be avoided by passing "-Wl,--undefined-version" to LDFLAGS.

Attaching logs.
Comment 1 ppw0 2023-10-02 23:15:44 UTC
Created attachment 872061 [details]
emerge --info
Comment 2 Andreas Sturmlechner gentoo-dev 2023-10-07 15:09:24 UTC

*** This bug has been marked as a duplicate of bug 915203 ***