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. Installing Qt5 from source produces compiler error
Forum Updated to NodeBB v4.3 + New Features

Installing Qt5 from source produces compiler error

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt5
8 Posts 3 Posters 2.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.
  • X Offline
    X Offline
    Xenoshell
    wrote on last edited by Xenoshell
    #1

    Hello,
    i am trying to install qt5.10 on Raspbian with a Raspberry Pi.
    The error happens after i use the command make and this is the error output:

    g++: internal compiler error: Speicherzugriffsfehler (program cc1plus)
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
    Makefile:5889: die Regel für Ziel „.obj/qprintdevice.o“ scheiterte
    make[3]: *** [.obj/qprintdevice.o] Fehler 4
    make[3]: Verzeichnis „/home/pi/opt/qt5/qtbase/src/printsupport“ wird verlassen
    Makefile:660: die Regel für Ziel „sub-printsupport-make_first“ scheiterte
    make[2]: *** [sub-printsupport-make_first] Fehler 2
    make[2]: Verzeichnis „/home/pi/opt/qt5/qtbase/src“ wird verlassen
    Makefile:48: die Regel für Ziel „sub-src-make_first“ scheiterte
    make[1]: *** [sub-src-make_first] Fehler 2
    make[1]: Verzeichnis „/home/pi/opt/qt5/qtbase“ wird verlassen
    Makefile:84: die Regel für Ziel „module-qtbase-make_first“ scheiterte
    make: *** [module-qtbase-make_first] Fehler 2
    

    I know its in german and probably not that readable but it seems to be a segmentation fault.
    Something is wrong with the g++ compiler, but what can i do?
    gcc version: gcc version 6.3.0 20170516 (Raspbian 6.3.0-18+rpi1)

    Greets,

    Xeno

    JonBJ 1 Reply Last reply
    0
    • X Xenoshell

      Hello,
      i am trying to install qt5.10 on Raspbian with a Raspberry Pi.
      The error happens after i use the command make and this is the error output:

      g++: internal compiler error: Speicherzugriffsfehler (program cc1plus)
      Please submit a full bug report,
      with preprocessed source if appropriate.
      See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
      Makefile:5889: die Regel für Ziel „.obj/qprintdevice.o“ scheiterte
      make[3]: *** [.obj/qprintdevice.o] Fehler 4
      make[3]: Verzeichnis „/home/pi/opt/qt5/qtbase/src/printsupport“ wird verlassen
      Makefile:660: die Regel für Ziel „sub-printsupport-make_first“ scheiterte
      make[2]: *** [sub-printsupport-make_first] Fehler 2
      make[2]: Verzeichnis „/home/pi/opt/qt5/qtbase/src“ wird verlassen
      Makefile:48: die Regel für Ziel „sub-src-make_first“ scheiterte
      make[1]: *** [sub-src-make_first] Fehler 2
      make[1]: Verzeichnis „/home/pi/opt/qt5/qtbase“ wird verlassen
      Makefile:84: die Regel für Ziel „module-qtbase-make_first“ scheiterte
      make: *** [module-qtbase-make_first] Fehler 2
      

      I know its in german and probably not that readable but it seems to be a segmentation fault.
      Something is wrong with the g++ compiler, but what can i do?
      gcc version: gcc version 6.3.0 20170516 (Raspbian 6.3.0-18+rpi1)

      Greets,

      Xeno

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

      @Xenoshell
      Other than submitting a bug report (to be clear, it seems to be happening when compiling to build qprintdevice.o), as it says, I suspect someone might ask you to check what version of gcc you are using, and to make sure it's as up-to-date a version as possible?

      X 1 Reply Last reply
      1
      • JonBJ JonB

        @Xenoshell
        Other than submitting a bug report (to be clear, it seems to be happening when compiling to build qprintdevice.o), as it says, I suspect someone might ask you to check what version of gcc you are using, and to make sure it's as up-to-date a version as possible?

        X Offline
        X Offline
        Xenoshell
        wrote on last edited by
        #3

        @JonB where should i report the bug? I already saw that there is a general linux bug report website. Should i take that or is there something special for qt?

        JonBJ 1 Reply Last reply
        0
        • X Xenoshell

          @JonB where should i report the bug? I already saw that there is a general linux bug report website. Should i take that or is there something special for qt?

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

          @Xenoshell
          I know no more than the error message which states:

          Please submit a full bug report,
          with preprocessed source if appropriate.
          See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
          

          !! There won't be something special just because it's Qt....

          However, purely at a guess, it seems (to me) "unlikely" that gcc will fall over compiling for qprintdevice.o, since I would have thought others have managed it. So I'd check your setup/installation/make instructions etc. first....

          X 1 Reply Last reply
          0
          • JonBJ JonB

            @Xenoshell
            I know no more than the error message which states:

            Please submit a full bug report,
            with preprocessed source if appropriate.
            See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
            

            !! There won't be something special just because it's Qt....

            However, purely at a guess, it seems (to me) "unlikely" that gcc will fall over compiling for qprintdevice.o, since I would have thought others have managed it. So I'd check your setup/installation/make instructions etc. first....

            X Offline
            X Offline
            Xenoshell
            wrote on last edited by Xenoshell
            #5

            @JonB here is my ./configure: -opensource -confirm-license -gui -widgets -dbuslinked -opengl -pulseaudio -alsa -gstreamer

            I also wanted to include -webengine-alsa -webengine-pulseaudio and -device-option CROSS_COMPILE=/usr/bin -device linux-rpi3-g++ but that produced errors so i had to cut them out. Quite strange to be honest but i just wanted this to work... I am now working with Raspbian and on Ubuntu Mate the same commands worked :/

            JonBJ 1 Reply Last reply
            1
            • X Xenoshell

              @JonB here is my ./configure: -opensource -confirm-license -gui -widgets -dbuslinked -opengl -pulseaudio -alsa -gstreamer

              I also wanted to include -webengine-alsa -webengine-pulseaudio and -device-option CROSS_COMPILE=/usr/bin -device linux-rpi3-g++ but that produced errors so i had to cut them out. Quite strange to be honest but i just wanted this to work... I am now working with Raspbian and on Ubuntu Mate the same commands worked :/

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

              @Xenoshell
              To be clear, I don't use C++, I don't compile Qt, and I'm not a Qt expert! So I'm not the right person to ask....

              X 1 Reply Last reply
              0
              • JonBJ JonB

                @Xenoshell
                To be clear, I don't use C++, I don't compile Qt, and I'm not a Qt expert! So I'm not the right person to ask....

                X Offline
                X Offline
                Xenoshell
                wrote on last edited by
                #7

                @JonB thats allright, i still have a somewhat basic question. I see a lot of patch files being used all around the linux community, but how do i use those?

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

                  Hi,

                  You should first check with the folks from Raspbian to see whether they apply patches to Qt.

                  Here is a small introduction about using the patch and diff commands.

                  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
                  1

                  • Login

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