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. GNU C++ error
Forum Updated to NodeBB v4.3 + New Features

GNU C++ error

Scheduled Pinned Locked Moved Unsolved General and Desktop
14 Posts 3 Posters 1.2k 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.
  • SGaistS SGaist

    Just to be sure, you run a 32bit distribution to build your application in 32bit and that fails ?

    P Offline
    P Offline
    Publicnamer
    wrote on last edited by Publicnamer
    #5

    @SGaist Yes, that's correct.
    Previously I was running 64-bit Raspberry pi OS to build a 64-bit executable and that built just fine.
    Update: The 64-bit OS is really Debian whereas the 32-bit Rpi OS is their own creation.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #6

      Since it's your code, where exactly does it fail ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      P 1 Reply Last reply
      0
      • SGaistS SGaist

        Since it's your code, where exactly does it fail ?

        P Offline
        P Offline
        Publicnamer
        wrote on last edited by Publicnamer
        #7

        @SGaist It fails in the MOC code, which is not my code.
        But it gives very little by way of clues, just the one line:

        usr/include/c++/8/bits/functexcept.:42: Parse error at "std"
        

        That is in a .h file and here is the line:

        namespace std _GLIBCXX_VISIBILITY(default)
        
        

        Update: If you look closely, it is actually /usr/lib/qt5/bin/moc that produces the error.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #8

          That part is clear, but moc is running on one of your class so it would be good to know what you are using for it.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          P 1 Reply Last reply
          0
          • SGaistS SGaist

            That part is clear, but moc is running on one of your class so it would be good to know what you are using for it.

            P Offline
            P Offline
            Publicnamer
            wrote on last edited by Publicnamer
            #9

            @SGaist I'm doing threading (main GUI thread and worker thread) and signals and slots.

            Update: I think see the issue. Even though I ran qmake, the Makefile still has references to aarch64.

            I type:

            rm Makefile
            qmake
            grep aarch64 Makefile
            

            ... and it still makes reference to aarch64.

            1 Reply Last reply
            0
            • JoeCFDJ Offline
              JoeCFDJ Offline
              JoeCFD
              wrote on last edited by
              #10

              @Publicnamer said in GNU C++ error:

              usr/include/c++/8/bits/functexcept.:42: Parse error at "std"

              https://bugreports.qt.io/browse/QTBUG-31496

              P 1 Reply Last reply
              1
              • JoeCFDJ JoeCFD

                @Publicnamer said in GNU C++ error:

                usr/include/c++/8/bits/functexcept.:42: Parse error at "std"

                https://bugreports.qt.io/browse/QTBUG-31496

                P Offline
                P Offline
                Publicnamer
                wrote on last edited by
                #11

                @JoeCFD So glad they fixed it back in 2013. Too bad I'm still encountering it in 2021 ;)

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #12

                  You should completely nuke the build folder to ensure you do a clean build.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  P 1 Reply Last reply
                  1
                  • SGaistS SGaist

                    You should completely nuke the build folder to ensure you do a clean build.

                    P Offline
                    P Offline
                    Publicnamer
                    wrote on last edited by
                    #13

                    @SGaist
                    I seem to have fixed it. I deleted the file .qmake.stash, which I hadn't noticed before, and now I'm able to build. Thanks.

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #14

                      That's why nuking the build folder and not just deleting its content is usually a good idea :-)

                      Glad you have it working and thanks for the feedback.

                      Please mark the thread as solved using the "Topic Tools" button or the three doted menu beside the answer you deem correct so that other forum members may know a solution has been found :-)

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      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