Installing Qt5 from source produces compiler error
-
Hello,
i am trying to install qt5.10 on Raspbian with a Raspberry Pi.
The error happens after i use the commandmake
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
-
Hello,
i am trying to install qt5.10 on Raspbian with a Raspberry Pi.
The error happens after i use the commandmake
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
@Xenoshell
Other than submitting a bug report (to be clear, it seems to be happening when compiling to buildqprintdevice.o
), as it says, I suspect someone might ask you to check what version ofgcc
you are using, and to make sure it's as up-to-date a version as possible? -
@Xenoshell
Other than submitting a bug report (to be clear, it seems to be happening when compiling to buildqprintdevice.o
), as it says, I suspect someone might ask you to check what version ofgcc
you 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?
@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 forqprintdevice.o
, since I would have thought others have managed it. So I'd check your setup/installation/make
instructions etc. first.... -
@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 forqprintdevice.o
, since I would have thought others have managed it. So I'd check your setup/installation/make
instructions etc. first....@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 :/ -
@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 :/@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.... -
@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.... -
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.