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. Getting error while configuring Qt source code
Qt 6.11 is out! See what's new in the release blog

Getting error while configuring Qt source code

Scheduled Pinned Locked Moved Unsolved General and Desktop
12 Posts 4 Posters 6.1k Views 2 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.
  • G Offline
    G Offline
    Gururaj_Deshpande
    wrote on last edited by
    #1

    Hi all

    While using make command, I am facing problem while configuring Qt source code, Pls find below the error which i got in the terminal and guide me further in this concern.

    g++: internal compiler error: Segmentation fault (program cc1plus)
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
    make[6]: *** [.obj/qdesigner_components.o] Error 4
    make[6]: Leaving directory /root/qt-build/qttools/src/designer/src/components/lib' make[5]: *** [sub-lib-make_first] Error 2 make[5]: Leaving directory /root/qt-build/qttools/src/designer/src/components'
    make[4]: *** [sub-components-make_first] Error 2
    make[4]: Leaving directory /root/qt-build/qttools/src/designer/src' make[3]: *** [sub-src-make_first] Error 2 make[3]: Leaving directory /root/qt-build/qttools/src/designer'
    make[2]: *** [sub-designer-make_first] Error 2
    make[2]: Leaving directory /root/qt-build/qttools/src' make[1]: *** [sub-src-make_first] Error 2 make[1]: Leaving directory /root/qt-build/qttools'
    make: *** [module-qttools-make_first] Error 2

    Thanks in advance

    raven-worxR 1 Reply Last reply
    0
    • G Gururaj_Deshpande

      Hi all

      While using make command, I am facing problem while configuring Qt source code, Pls find below the error which i got in the terminal and guide me further in this concern.

      g++: internal compiler error: Segmentation fault (program cc1plus)
      Please submit a full bug report,
      with preprocessed source if appropriate.
      See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
      make[6]: *** [.obj/qdesigner_components.o] Error 4
      make[6]: Leaving directory /root/qt-build/qttools/src/designer/src/components/lib' make[5]: *** [sub-lib-make_first] Error 2 make[5]: Leaving directory /root/qt-build/qttools/src/designer/src/components'
      make[4]: *** [sub-components-make_first] Error 2
      make[4]: Leaving directory /root/qt-build/qttools/src/designer/src' make[3]: *** [sub-src-make_first] Error 2 make[3]: Leaving directory /root/qt-build/qttools/src/designer'
      make[2]: *** [sub-designer-make_first] Error 2
      make[2]: Leaving directory /root/qt-build/qttools/src' make[1]: *** [sub-src-make_first] Error 2 make[1]: Leaving directory /root/qt-build/qttools'
      make: *** [module-qttools-make_first] Error 2

      Thanks in advance

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by raven-worx
      #2

      @Gururaj_Deshpande
      hmm your compiler itself crashed.
      Can you retry with a different gcc version?

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • G Offline
        G Offline
        Gururaj_Deshpande
        wrote on last edited by
        #3

        The compiler version is
        gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
        Copyright (C) 2013 Free Software Foundation, Inc.
        This is free software; see the source for copying conditions. There is NO
        warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

        I also reinstalled this using the command

        sudo apt-get --reinstall install g++-4.8

        still the same problem exists.

        raven-worxR miclandM 2 Replies Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi and welcome to devnet,

          Then can you try with something more recent like 4.9 or even 5 ?

          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
          • G Gururaj_Deshpande

            The compiler version is
            gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
            Copyright (C) 2013 Free Software Foundation, Inc.
            This is free software; see the source for copying conditions. There is NO
            warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

            I also reinstalled this using the command

            sudo apt-get --reinstall install g++-4.8

            still the same problem exists.

            raven-worxR Offline
            raven-worxR Offline
            raven-worx
            Moderators
            wrote on last edited by
            #5

            @Gururaj_Deshpande said:

            I also reinstalled this using the command
            sudo apt-get --reinstall install g++-4.8
            still the same problem exists.

            thats why i said you should try a different version. When this version has a bug it will crash again of course.

            --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
            If you have a question please use the forum so others can benefit from the solution in the future

            1 Reply Last reply
            0
            • G Offline
              G Offline
              Gururaj_Deshpande
              wrote on last edited by
              #6

              ok thanks i will try with the newer version.

              1 Reply Last reply
              0
              • G Offline
                G Offline
                Gururaj_Deshpande
                wrote on last edited by
                #7

                I installed 4.9 version of gcc, after installing i ran make command once again, i am getting the following error

                In file included from <command-line>:0:0:
                /usr/include/stdc-predef.h:59:1: error: one or more PCH files were found, but they were invalid
                #endif
                ^
                /usr/include/stdc-predef.h:59:1: error: use -Winvalid-pch for more information
                /usr/include/stdc-predef.h:59:1: fatal error: .pch/Qt5DesignerComponents: No such file or directory
                compilation terminated.
                make[6]: *** [.obj/qttreepropertybrowser.o] Error 1
                make[6]: Leaving directory /root/qt-build/qttools/src/designer/src/components/lib' make[5]: *** [sub-lib-make_first] Error 2 make[5]: Leaving directory /root/qt-build/qttools/src/designer/src/components'
                make[4]: *** [sub-components-make_first] Error 2
                make[4]: Leaving directory /root/qt-build/qttools/src/designer/src' make[3]: *** [sub-src-make_first] Error 2 make[3]: Leaving directory /root/qt-build/qttools/src/designer'
                make[2]: *** [sub-designer-make_first] Error 2
                make[2]: Leaving directory /root/qt-build/qttools/src' make[1]: *** [sub-src-make_first] Error 2 make[1]: Leaving directory /root/qt-build/qttools'
                make: *** [module-qttools-make_first] Error 2

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

                  Nuke your current build and do a full rebuild including the configuration part.

                  Also, you should logout from root, it's really not the right account for development.

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

                  G 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    Nuke your current build and do a full rebuild including the configuration part.

                    Also, you should logout from root, it's really not the right account for development.

                    G Offline
                    G Offline
                    Gururaj_Deshpande
                    wrote on last edited by
                    #9

                    @SGaist May i know what was the reason it didnt work in gcc 4.8 version? Why it was crashing ?

                    1 Reply Last reply
                    0
                    • G Gururaj_Deshpande

                      The compiler version is
                      gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
                      Copyright (C) 2013 Free Software Foundation, Inc.
                      This is free software; see the source for copying conditions. There is NO
                      warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

                      I also reinstalled this using the command

                      sudo apt-get --reinstall install g++-4.8

                      still the same problem exists.

                      miclandM Offline
                      miclandM Offline
                      micland
                      wrote on last edited by
                      #10

                      @Gururaj_Deshpande
                      Other idea: How much RAM is installed on your machine?
                      (I had compiler crashes on a RasPi which could be solved in my case by expanding the swap file to 2GB. Some Qt parts are very memory hungry during compilation and cc1plus dies when running out of memory).

                      G 1 Reply Last reply
                      0
                      • miclandM micland

                        @Gururaj_Deshpande
                        Other idea: How much RAM is installed on your machine?
                        (I had compiler crashes on a RasPi which could be solved in my case by expanding the swap file to 2GB. Some Qt parts are very memory hungry during compilation and cc1plus dies when running out of memory).

                        G Offline
                        G Offline
                        Gururaj_Deshpande
                        wrote on last edited by Gururaj_Deshpande
                        #11

                        @micland 2gb ram. Ya i read these issues were regarding memory but was not sure about that.

                        miclandM 1 Reply Last reply
                        0
                        • G Gururaj_Deshpande

                          @micland 2gb ram. Ya i read these issues were regarding memory but was not sure about that.

                          miclandM Offline
                          miclandM Offline
                          micland
                          wrote on last edited by
                          #12

                          @Gururaj_Deshpande said:

                          @micland 2gb ram. Ya i read these issues were regarding memory but was not sure about that.

                          Ok I think 2 GB should be enough (but I'm not sure). The build fails with the same error if you have less than 1GB. In my case I was able build Qt with 750MB RAM + 2GB swap file but I don't know what's the absolute required minimum....

                          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