Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-89426

Error when building qtbase 6.0.0 with LTCG

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 6.0.1, 6.1.0 Alpha
    • 6.0.0
    • Core: Other
    • None
    • Fedora 33
      GCC 10.2.1
    • Linux/X11
    • 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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            equeim Alexey
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes