Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1441

Using static Qt version: slow build times, linker fails due to excessive number of files

    XMLWordPrintable

Details

    • Linux/X11, Linux/Other display system
    • 3f80c821e939cd908651d20940fb41b2522dc199 (qbs/qbs/1.13)

    Description

      The attached example project shows an issue with Qbs 1.13.0 when being built using a static version of Qt. I've used Qt 5.12.3 for testing, using GCC as toolchain.

      On my computer, the linker reports:

      /usr/bin/ld.gold: fatal error: out of file descriptors and couldn't close any

      I'm observing several issues:

      • The linker command line for the final application is extremely long, repeating the same libraries several times
      • There are static import code generated and built for each of the 20 libraries. As far as I know this would only have been necessary for the application, not the libraries.
      • Building this project takes a long time because of the plugin imports being built over and over again
      • QtCreator is very slow at "processing" the project, much slower than what is to be expected from such a small project

       To reproduce, please built the attached project using a static build of Qt 5.12.3 using a gcc toolchain (clang might give similar results).

      I would claim that it should not be necessary to add an empty list of "pluginsByType" as the syntax and content is difficult to figure out. It does not scale well "out of the box" like this. It's better to add missing bits when necessary instead of having to switch a lot of "clutter" off.

       

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            olathorsen Ola Røer Thorsen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes