Unsolved Getting error while configuring Qt source code
-
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 2Thanks in advance
-
@Gururaj_Deshpande
hmm your compiler itself crashed.
Can you retry with a different gcc version? -
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.
-
Hi and welcome to devnet,
Then can you try with something more recent like 4.9 or even 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.
-
ok thanks i will try with the newer version.
-
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 -
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.
-
@SGaist May i know what was the reason it didnt work in gcc 4.8 version? Why it was crashing ?
-
@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). -
@micland 2gb ram. Ya i read these issues were regarding memory but was not sure about that.
-
@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....