Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Investigating stuck compiler
Forum Updated to NodeBB v4.3 + New Features

Investigating stuck compiler

Scheduled Pinned Locked Moved Solved Mobile and Embedded
14 Posts 6 Posters 1.4k Views 3 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.
  • jsulmJ jsulm

    @J.Hilk Is it always same source code file?

    J.HilkJ Offline
    J.HilkJ Offline
    J.Hilk
    Moderators
    wrote on last edited by J.Hilk
    #3

    @jsulm yes, from what I can see, MainWindow.cpp. It's 12000 line long.
    Don't ask why😑 , my contribution to it is minimal or it would be significantly smaller.


    Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


    Q: What's that?
    A: It's blue light.
    Q: What does it do?
    A: It turns blue.

    jsulmJ 1 Reply Last reply
    1
    • J.HilkJ J.Hilk

      @jsulm yes, from what I can see, MainWindow.cpp. It's 12000 line long.
      Don't ask why😑 , my contribution to it is minimal or it would be significantly smaller.

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

      @J.Hilk Maybe you can comment out as much as possible and if it compiles uncomment small pieces until it hangs again?

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

      J.HilkJ 1 Reply Last reply
      4
      • jsulmJ jsulm

        @J.Hilk Maybe you can comment out as much as possible and if it compiles uncomment small pieces until it hangs again?

        J.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote on last edited by
        #5

        @jsulm mmh, possible. Will take me a while to do it, but I'll give it a try.
        Could very well help narrowing the issue down.


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #6

          You could also use git bisect if this issue began showing up recently.

          (Z(:^

          1 Reply Last reply
          3
          • mranger90M Offline
            mranger90M Offline
            mranger90
            wrote on last edited by
            #7

            Are you using jom ? When I've had compile problems I set to -j1 to remove the multiple jobs.

            1 Reply Last reply
            1
            • J.HilkJ Offline
              J.HilkJ Offline
              J.Hilk
              Moderators
              wrote on last edited by J.Hilk
              #8

              So some updates 😆

              @sierdzio said:

              You could also use git bisect if this issue began showing up recently.

              Sadly no, it never compiled (release) for armv8 successfully

              @mranger90 said:

              Are you using jom ? When I've had compile problems I set to -j1 to remove the multiple jobs.

              Yes I do, running 4 parallel jobs, I went and reduced it down to only 1 task running. Sadly no difference.

              I went as @jsulm suggested and commented stuff out.

              In the end, I had only the constructor the destructor and and the (designer) ui file/setup in the mainwindow class.
              And the Compiler was still stuck.

              So I removed the ui part as well and now it works....

              This can only be the UIC that's causing trouble. Right? But I don't understand why it's only with this particular precompiled Qt the case.

              I should now be able to make a minimal example, with some effort, maybe time to bring this to an actual bug report.


              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


              Q: What's that?
              A: It's blue light.
              Q: What does it do?
              A: It turns blue.

              1 Reply Last reply
              0
              • J.HilkJ Offline
                J.HilkJ Offline
                J.Hilk
                Moderators
                wrote on last edited by
                #9

                actually, simply removing

                ui->setupUi(this);
                

                makes the compiler complete its task. The app is unusable of course. x) but It compiles.


                Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                Q: What's that?
                A: It's blue light.
                Q: What does it do?
                A: It turns blue.

                JKSHJ 1 Reply Last reply
                0
                • J.HilkJ J.Hilk

                  actually, simply removing

                  ui->setupUi(this);
                  

                  makes the compiler complete its task. The app is unusable of course. x) but It compiles.

                  JKSHJ Offline
                  JKSHJ Offline
                  JKSH
                  Moderators
                  wrote on last edited by
                  #10

                  @j-hilk said in Investigating stuck compiler:

                  The app is unusable of course. x) but It compiles.

                  "Dude. It compiles." https://thedailywtf.com/articles/Flawless-Compilation

                  Jokes aside, what happens if you manually copy the UIC-generated code into your files?

                  Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                  1 Reply Last reply
                  0
                  • J.HilkJ Offline
                    J.HilkJ Offline
                    J.Hilk
                    Moderators
                    wrote on last edited by
                    #11

                    So,

                    I removed about 1/3 of the (QWidget) ui and replaced it with QML based code. Was on my to do list anyway.

                    And low and behold it now compiles for armv8. It takes about 8 minutes compared to armv7 2min, but I can live with that.

                    Jokes aside, what happens if you manually copy the UIC-generated code into your files?

                    Haven't tried that, setupUi is like 15k lines long, so I didn't really want to mess with that x)


                    Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                    Q: What's that?
                    A: It's blue light.
                    Q: What does it do?
                    A: It turns blue.

                    aha_1980A 1 Reply Last reply
                    0
                    • J.HilkJ J.Hilk

                      So,

                      I removed about 1/3 of the (QWidget) ui and replaced it with QML based code. Was on my to do list anyway.

                      And low and behold it now compiles for armv8. It takes about 8 minutes compared to armv7 2min, but I can live with that.

                      Jokes aside, what happens if you manually copy the UIC-generated code into your files?

                      Haven't tried that, setupUi is like 15k lines long, so I didn't really want to mess with that x)

                      aha_1980A Offline
                      aha_1980A Offline
                      aha_1980
                      Lifetime Qt Champion
                      wrote on last edited by
                      #12

                      @j-hilk said in Investigating stuck compiler:

                      And low and behold it now compiles for armv8. It takes about 8 minutes

                      Sigh.

                      Haven't tried that, setupUi is like 15k lines long

                      Double sigh.

                      Qt has to stay free or it will die.

                      J.HilkJ 1 Reply Last reply
                      0
                      • aha_1980A aha_1980

                        @j-hilk said in Investigating stuck compiler:

                        And low and behold it now compiles for armv8. It takes about 8 minutes

                        Sigh.

                        Haven't tried that, setupUi is like 15k lines long

                        Double sigh.

                        J.HilkJ Offline
                        J.HilkJ Offline
                        J.Hilk
                        Moderators
                        wrote on last edited by J.Hilk
                        #13

                        @aha_1980
                        what can I say, the original designer made everything with the QtDesigner in one single ui file.

                        Since then I have started splitting sections of,
                        but it's a big application 😟


                        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                        Q: What's that?
                        A: It's blue light.
                        Q: What does it do?
                        A: It turns blue.

                        aha_1980A 1 Reply Last reply
                        2
                        • J.HilkJ J.Hilk

                          @aha_1980
                          what can I say, the original designer made everything with the QtDesigner in one single ui file.

                          Since then I have started splitting sections of,
                          but it's a big application 😟

                          aha_1980A Offline
                          aha_1980A Offline
                          aha_1980
                          Lifetime Qt Champion
                          wrote on last edited by
                          #14

                          @j-hilk I feel with you.

                          Qt has to stay free or it will die.

                          1 Reply Last reply
                          1

                          • Login

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