Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
6.0.0
-
None
-
Fedora 33
GCC 10.2.1
-
-
2d4a40f93fd3f0fd31110ef7d19a12fc56c00967 (qt/qtbase/dev) 133e989cee5b4e3b32afa10618d700c0590a9c63 (qt/qtbase/6.0)
Description
When building qtbase 6.0.0 on Fedora 33 with GCC 10.2.1 and LTCG enabled I get linker error when linking libQt6Core.so.6.0.0:
FAILED: lib/libQt6Core.so.6.0.0 src/corelib/Core.version
/tmp/ccaFMQtU.s: Assembler messages:
/tmp/ccaFMQtU.s: Error: invalid attempt to declare external version name as default in symbol `qt_version_tag@@Qt_6.0'
lto-wrapper: fatal error: /usr/bin/c++ returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
I invoked configure like this:
../configure -cmake-generator Ninja -prefix /home/alexey/qt6/install -c++std c++17 -release -ltcg -sql-sqlite -system-sqlite -no-eglfs -no-linuxfb -gtk -xcb
Attachments
For Gerrit Dashboard: QTBUG-89426 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
329697,3 | CMake: Fix build with GCC and ltcg | dev | qt/qtbase | Status: MERGED | +2 | 0 |
329822,5 | CMake: Use -ffat-lto-objects for static libraries with ltcg and GCC | dev | qt/qtbase | Status: MERGED | +2 | 0 |
329916,2 | CMake: Use -ffat-lto-objects for static libraries with ltcg and GCC | 6.0 | qt/qtbase | Status: MERGED | +2 | 0 |
329918,2 | CMake: Fix build with GCC and ltcg | 6.0 | qt/qtbase | Status: MERGED | +2 | 0 |