Solved Compiling Qt6 fails
-
Hey, I am trying to compile Qt6 and set it up for contribution, but for some reason it fails while compiling, the steps I take are exactly these:
git clone git://code.qt.io/qt/qt5.git qt6 cd qt6 perl init-repository --module-subset=qtbase,qttools,qtdoc,qtdeclarative,qtconnectivity --codereview-username creapermann git checkout dev && git submodule foreach "git checkout dev" cd .. mkdir qt6-buil cd qt6-build ../qt6/configure -developer-build -DCMAKE_BUILD_TYPE=Debug -DQT_BUILD_TESTS=ON -DQT_BUILD_TESTS_BY_DEFAULT=OFF -DQT_BUILD_EXAMPLES=ON -DQT_BUILD_EXAMPLES_BY_DEFAULT=OFF cmake --build . --parallel
I have set up my gerrit account, ...
Half done with the compilation, I get the error:
[2678/6445] Building CXX object qtbase/tests/auto/corelib/kernel/qmetatype/CMakeFiles/tst_qmetatype.dir/tst_qmetatype.cpp.o FAILED: qtbase/tests/auto/corelib/kernel/qmetatype/CMakeFiles/tst_qmetatype.dir/tst_qmetatype.cpp.o /usr/bin/c++ -DCMAKE_BUILD_TYPE=Debug -DQT_BUILD_EXAMPLES=ON -DQT_BUILD_EXAMPLES_BY_DEFAULT=OFF -DQT_BUILD_TESTS=ON -DQT_BUILD_TESTS_BY_DEFAULT=OFF -DQT_CORE_LIB -DQT_DISABLE_DEPRECATED_UP_TO=0x050000 -DQT_GUI_LIB -DQT_LEAN_HEADERS=1 -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_STRICT_QLIST_ITERATORS -DQT_TESTCASE_BUILDDIR=\"/home/creapermann/Programming/qt6-build/qtbase/tests/auto/corelib/kernel/qmetatype\" -DQT_TESTCASE_SOURCEDIR=\"/home/creapermann/Programming/qt6/qtbase/tests/auto/corelib/kernel/qmetatype\" -DQT_TESTLIB_LIB -DQT_WARN_DEPRECATED_UP_TO=0x070000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/home/creapermann/Programming/qt6-build/qtbase/tests/auto/corelib/kernel/qmetatype/tst_qmetatype_autogen/include -I/home/creapermann/Programming/qt6/qtbase/tests/auto/corelib/kernel/qmetatype-I/home/creapermann/Programming/qt6-build/qtbase/tests/auto/corelib/kernel/qmetatype -I/home/creapermann/Programming/qt6-build/qtbase/include -I/home/creapermann/Programming/qt6/qtbase/tests/auto/corelib/kernel/qmetatype/../../../other/qvariant_common -I/home/creapermann/Programming/qt6-build/qtbase/src/corelib -I/home/creapermann/Programming/qt6-build/qtbase/include/QtCore/6.5.0 -I/home/creapermann/Programming/qt6-build/qtbase/include/QtCore/6.5.0/QtCore -I/home/creapermann/Programming/qt6-build/qtbase/include/QtCore -I/home/creapermann/Programming/qt6-build/qtbase/mkspecs/linux-g++ -I/home/creapermann/Programming/qt6-build/qtbase/include/QtGui -I/home/creapermann/Programming/qt6-build/qtbase/include/QtTest -g -fPIE -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fPIC -Wsuggest-override -std=gnu++17 -MD -MTqtbase/tests/auto/corelib/kernel/qmetatype/CMakeFiles/tst_qmetatype.dir/tst_qmetatype.cpp.o -MF qtbase/tests/auto/corelib/kernel/qmetatype/CMakeFiles/tst_qmetatype.dir/tst_qmetatype.cpp.o.d -o qtbase/tests/auto/corelib/kernel/qmetatype/CMakeFiles/tst_qmetatype.dir/tst_qmetatype.cpp.o -c /home/creapermann/Programming/qt6/qtbase/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp c++: fatal error: Killed signal terminated program cc1plus compilation terminated. [2691/6445] Building CXX object qtbase/tests/auto/corelib/kernel/qmetatype/CMakeFiles/tst_qmetatype.dir/tst_qmetatype3.cpp.o ninja: build stopped: subcommand failed.
Does anyone have an idea why the compilation fails?
Thanks in advance
(I am on KDE Manjaro.) -
@Creaperdown Could be out of memory because of many parallel build jobs. Try to limit number of such build jobs. When using make you can use -j parameter to specify how many parallel build jobs should be executed.
-
@Creaperdown Could be out of memory because of many parallel build jobs. Try to limit number of such build jobs. When using make you can use -j parameter to specify how many parallel build jobs should be executed.
-
@jsulm I see, I'll try limiting it to 6 cores now