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.6k 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.
  • F franzhelmut
    24 Jun 2023, 08:37

    @SimonSchroeder I actually don't know, where do I check that?

    J Offline
    J Offline
    JonB
    wrote on 24 Jun 2023, 08:46 last edited by
    #4

    @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 1 Reply Last reply 24 Jun 2023, 09:10
    0
    • J JonB
      24 Jun 2023, 08:46

      @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 24 Jun 2023, 09:10 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?

      J J S 3 Replies Last reply 24 Jun 2023, 09:59
      0
      • F franzhelmut
        24 Jun 2023, 09:10

        @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?

        J Offline
        J Offline
        JonB
        wrote on 24 Jun 2023, 09:59 last edited by JonB
        #6

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

        1 Reply Last reply
        0
        • F franzhelmut
          24 Jun 2023, 09:10

          @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?

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 26 Jun 2023, 06:19 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 10 Jul 2023, 06:20
          0
          • F franzhelmut
            24 Jun 2023, 09:10

            @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 26 Jun 2023, 07:14 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
            • J jsulm
              26 Jun 2023, 06:19

              @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 10 Jul 2023, 06:20 last edited by
              #9

              @jsulm I am using qmake

              J 1 Reply Last reply 10 Jul 2023, 06:22
              0
              • F franzhelmut
                10 Jul 2023, 06:20

                @jsulm I am using qmake

                J Offline
                J Offline
                jsulm
                Lifetime Qt Champion
                wrote on 10 Jul 2023, 06:22 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 13 Jul 2023, 12:15
                0
                • J jsulm
                  10 Jul 2023, 06:22

                  @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 13 Jul 2023, 12:15 last edited by
                  #11

                  @jsulm I do see the MakeFile

                  J F 2 Replies Last reply 13 Jul 2023, 12:18
                  0
                  • F franzhelmut
                    13 Jul 2023, 12:15

                    @jsulm I do see the MakeFile

                    J Offline
                    J Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on 13 Jul 2023, 12:18 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

                    C 1 Reply Last reply 13 Jul 2023, 14:54
                    0
                    • J jsulm
                      13 Jul 2023, 12:18

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

                      C Offline
                      C Offline
                      Christian Ehrlicher
                      Lifetime Qt Champion
                      wrote on 13 Jul 2023, 14:54 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
                        13 Jul 2023, 12:15

                        @jsulm I do see the MakeFile

                        F Offline
                        F Offline
                        franzhelmut
                        wrote on 13 Jul 2023, 14:58 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