Installing Qt5 from source produces compiler error
i am trying to install qt5.10 on Raspbian with a Raspberry Pi.
The error happens after i use the command
makeand 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: *** [.obj/qprintdevice.o] Fehler 4 make: Verzeichnis „/home/pi/opt/qt5/qtbase/src/printsupport“ wird verlassen Makefile:660: die Regel für Ziel „sub-printsupport-make_first“ scheiterte make: *** [sub-printsupport-make_first] Fehler 2 make: Verzeichnis „/home/pi/opt/qt5/qtbase/src“ wird verlassen Makefile:48: die Regel für Ziel „sub-src-make_first“ scheiterte make: *** [sub-src-make_first] Fehler 2 make: 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 6.3.0 20170516 (Raspbian 6.3.0-18+rpi1)
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
gccyou are using, and to make sure it's as up-to-date a version as possible?
@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?
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
gccwill fall over compiling for
qprintdevice.o, since I would have thought others have managed it. So I'd check your setup/installation/
makeinstructions etc. first....
@JonB here is my
./configure: -opensource -confirm-license -gui -widgets -dbuslinked -opengl -pulseaudio -alsa -gstreamer
I also wanted to include
-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 :/
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....
@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?
You should first check with the folks from Raspbian to see whether they apply patches to Qt.