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

ar MRI scripts with Link time optimization breaks Qt build

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.9.2
    • 5.9.0
    • Build System
    • None
    • Linux ARCH: 4.11.3-1-ARCH

      x86_64-w64-mingw32-g++ (GCC) 7.1.1 20170516

      build configuration is visible in the attached build log
    • 8bebded9ab02b8eec67c44bfddf802d6bf9cda3c

    Description

      As a developer, i want to build a mingw windows cross-compiled Qt version with the same build configuration as i use for my Linux build. I use as much optimized build settings as possible, with at least as possible enabled dependencies. This is the reason why i use the Qt configure -ltcg flag to enable link time optimization.

      Using the gcc 7.1.1 and no cross-compilation builds fine. Using the mingw and cross-compilation does break the build, because of missing symbols in pcre2. Details are shown in the attached build log.

      Update:

      rename ticket "Mingw Link time optimization breaks Qt build" to "ar MRI scripts with link time optimization breaks Qt build"

      As explained by Martin Schulze, the problem affects a broader range. Everyone who wants to build Qt with:

      • (current) compiler stack producing slim lto objects
      • using a make spec where qmake generates mri scripts for ar (e.g. based on QMAKE_LINK_OBJECT_MAX)

      We think it should be reevaluated if this ticket is out of scope of the Qt build system. We think that at least the Linux to Windows cross compilation should generate the same ar calls as the native Linux compilation does.

      Attachments

        1. MingwBuildLog.txt
          86 kB
          Christian Günther
        2. nonSilentBuildLog.txt
          667 kB
          Christian Günther

        Issue Links

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

          Activity

            People

              buddenha Oswald Buddenhagen
              cguenther.tu.chemnitz Christian Günther
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes