Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Windows release build hangs during linking
Forum Updated to NodeBB v4.3 + New Features

Windows release build hangs during linking

Scheduled Pinned Locked Moved Unsolved General and Desktop
build failedqml c++ engine
14 Posts 5 Posters 1.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • JonBJ JonB

    @franzhelmut
    It would be "unusual" for a linker to "hang". It would suggest a bug in the linker, which is used by "millions" of people, nothing to do with Qt.

    I don't know anything about QML, but can't you show the complete linker command line being executed (so that we can see what it is) and any responses/hanging? In Creator there is a "Build [or Compiler] Output" pane, I kind of assume QML still goes through this route?

    F Offline
    F Offline
    franzhelmut
    wrote on last edited by
    #5

    @JonB I just tried it again with link optimization on and now I get the message that the compiler ran out of heap space. Is there anything I can do about that?

    JonBJ jsulmJ S 3 Replies Last reply
    0
    • F franzhelmut

      @JonB I just tried it again with link optimization on and now I get the message that the compiler ran out of heap space. Is there anything I can do about that?

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #6

      @franzhelmut Probably depends on whatever compiler/linker you are using...

      1 Reply Last reply
      0
      • F franzhelmut

        @JonB I just tried it again with link optimization on and now I get the message that the compiler ran out of heap space. Is there anything I can do about that?

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #7

        @franzhelmut said in Windows release build hangs during linking:

        I can do about that?

        Reduce the number of parallel compiler jobs (processes).
        If you're using make to build you can use -j NUMBER_OF_BUILD_JOBS parameter.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        F 1 Reply Last reply
        0
        • F franzhelmut

          @JonB I just tried it again with link optimization on and now I get the message that the compiler ran out of heap space. Is there anything I can do about that?

          S Offline
          S Offline
          SimonSchroeder
          wrote on last edited by
          #8

          @franzhelmut said in Windows release build hangs during linking:

          I just tried it again with link optimization on and now I get the message that the compiler ran out of heap space.

          I was asking if you have link time optimization on because it could either use up a lot of RAM or it could just take an insane amount of time to link, i.e. it "hangs". That would've been an explanation and was not meant as a suggestion to turn it on. Since you now turned it on means you didn't have it before. So, this does not seem to have been your problem.

          As @JonB suggested you should share the complete linker command so we can have a look at it.

          1 Reply Last reply
          0
          • jsulmJ jsulm

            @franzhelmut said in Windows release build hangs during linking:

            I can do about that?

            Reduce the number of parallel compiler jobs (processes).
            If you're using make to build you can use -j NUMBER_OF_BUILD_JOBS parameter.

            F Offline
            F Offline
            franzhelmut
            wrote on last edited by
            #9

            @jsulm I am using qmake

            jsulmJ 1 Reply Last reply
            0
            • F franzhelmut

              @jsulm I am using qmake

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #10

              @franzhelmut qmake either generates make files or (on Windows) files for Ninja. So, do you use make or Ninja? If you do not know then look into the build folder and see whether you find Makefile inside or something like Ninja.build.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              F 1 Reply Last reply
              0
              • jsulmJ jsulm

                @franzhelmut qmake either generates make files or (on Windows) files for Ninja. So, do you use make or Ninja? If you do not know then look into the build folder and see whether you find Makefile inside or something like Ninja.build.

                F Offline
                F Offline
                franzhelmut
                wrote on last edited by
                #11

                @jsulm I do see the MakeFile

                jsulmJ F 2 Replies Last reply
                0
                • F franzhelmut

                  @jsulm I do see the MakeFile

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #12

                  @franzhelmut Then try to reduce the amount of parallel builds using -j parameter like I suggested before.

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  Christian EhrlicherC 1 Reply Last reply
                  0
                  • jsulmJ jsulm

                    @franzhelmut Then try to reduce the amount of parallel builds using -j parameter like I suggested before.

                    Christian EhrlicherC Offline
                    Christian EhrlicherC Offline
                    Christian Ehrlicher
                    Lifetime Qt Champion
                    wrote on last edited by
                    #13

                    Also make sure you're using the 64bit cl.exe and not the 32bit one.

                    Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                    Visit the Qt Academy at https://academy.qt.io/catalog

                    1 Reply Last reply
                    0
                    • F franzhelmut

                      @jsulm I do see the MakeFile

                      F Offline
                      F Offline
                      franzhelmut
                      wrote on last edited by
                      #14

                      @franzhelmut this process works on my Windows10 PC, with the 2015 compiler. On Windows11 I cannot install the 2015 compiler. The 2019 compiler seems to need more resources like heap space.

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved