Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.9
-
None
Description
Following error has been happening randomly for long time in CI builds, but it always goes away on the next build. Haven't been able to reproduce it locally until now:
AutoMoc: Generating "BIN:/src/jsonrpc/JsonRpcPrivate_autogen/EWIEGA46WW/moc_qtypedjson_p.cpp", because it doesn't exist, from "SRC:/src/jsonrpc/qtypedjson_p.h" /home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/recipe-sysroot-native/usr/libexec/moc -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_JSONRPC_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_MOC_COMPAT -DQT_NO_AS_CONST=1 -DQT_NO_CAST_TO_ASCII -DQT_NO_CONTEXTLESS_CONNECT -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_FOREACH -DQT_NO_FOREACH=1 -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QASCONST -DQT_NO_QEXCHANGE -DQT_NO_QSNPRINTF -DQT_USE_QSTRINGBUILDER -D_GLIBCXX_ASSERTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/build/include -I/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/build/include/QtJsonRpc -I/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/git/src/jsonrpc -I/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/build/src/jsonrpc -I/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/build/include/QtJsonRpc/6.8.2 -I/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/build/include/QtJsonRpc/6.8.2/QtJsonRpc -I/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/recipe-sysroot/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/include/QtCore -I/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/recipe-sysroot/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/lib/mkspecs/linux-g++ -I/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/recipe-sysroot/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/include -I/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/recipe-sysroot-native/usr/lib/x86_64-pokysdk-linux/gcc/x86_64-pokysdk-linux/14.2.0/include -I/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/recipe-sysroot-native/usr/lib/x86_64-pokysdk-linux/gcc/x86_64-pokysdk-linux/14.2.0/include-fixed -I/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/recipe-sysroot/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/include/c++/14.2.0 "-I/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/recipe-sysroot/usr/local/oe-sGNU assembler version 2.43.1 (x86_64-pokysdk-linux) using BFD version (GNU Binutils) 2.43.1" -I/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/recipe-sysroot/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/include/c++/14.2.0/backward -I/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/recipe-sysroot/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/lib/x86_64-pokysdk-linux/14.2.0/include --include /home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/build/src/jsonrpc/JsonRpcPrivate_autogen/moc_predefs.h --output-json --output-dep-file -o /home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/build/src/jsonrpc/JsonRpcPrivate_autogen/EWIEGA46WW/moc_qtypedjson_p.cpp /home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/git/src/jsonrpc/qtypedjson_p.hAutoMoc subprocess error ------------------------ The moc process failed to compile "SRC:/src/jsonrpc/qtypedjson_p.h" into "BIN:/src/jsonrpc/JsonRpcPrivate_autogen/EWIEGA46WW/moc_qtypedjson_p.cpp" Process failed with return value 1Command ------- /home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/recipe-sysroot-native/usr/libexec/moc -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_JSONRPC_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_MOC_COMPAT -DQT_NO_AS_CONST=1 -DQT_NO_CAST_TO_ASCII -DQT_NO_CONTEXTLESS_CONNECT -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_FOREACH -DQT_NO_FOREACH=1 -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QASCONST -DQT_NO_QEXCHANGE -DQT_NO_QSNPRINTF -DQT_USE_QSTRINGBUILDER -D_GLIBCXX_ASSERTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/build/include -I/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/build/include/QtJsonRpc -I/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/git/src/jsonrpc -I/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/build/src/jsonrpc -I/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/build/include/QtJsonRpc/6.8.2 -I/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/build/include/QtJsonRpc/6.8.2/QtJsonRpc -I/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/recipe-sysroot/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/include/QtCore -I/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/recipe-sysroot/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/lib/mkspecs/linux-g++ -I/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/recipe-sysroot/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/include -I/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/recipe-sysroot-native/usr/lib/x86_64-pokysdk-linux/gcc/x86_64-pokysdk-linux/14.2.0/include -I/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/recipe-sysroot-native/usr/lib/x86_64-pokysdk-linux/gcc/x86_64-pokysdk-linux/14.2.0/include-fixed -I/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/recipe-sysroot/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/include/c++/14.2.0 "-I/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/recipe-sysroot/usr/local/oe-sGNU assembler version 2.43.1 (x86_64-pokysdk-linux) using BFD version (GNU Binutils) 2.43.1" -I/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/recipe-sysroot/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/include/c++/14.2.0/backward -I/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/recipe-sysroot/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/lib/x86_64-pokysdk-linux/14.2.0/include --include /home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/build/src/jsonrpc/JsonRpcPrivate_autogen/moc_predefs.h --output-json --output-dep-file -o /home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/build/src/jsonrpc/JsonRpcPrivate_autogen/EWIEGA46WW/moc_qtypedjson_p.cpp /home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/git/src/jsonrpc/qtypedjson_p.hOutput ------ home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/recipe-sysroot/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/include/c++/14.2.0/type_trait:65:1: error: Parse error at "std" ninja: build stopped: subcommand failed. WARNING: exit code 1 from a shell command.
Only difference between working build is the bad include path used for moc:
"-I/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/recipe-sysroot/usr/local/oe-sGNU assembler version 2.43.1 (x86_64-pokysdk-linux) using BFD version (GNU Binutils) 2.43.1"
From build/CMakeFiles/3.30.2/CMakeCXXCompiler.cmake
set(CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES "/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/recipe-sysroot-native/usr/lib/x86_64-pokysdk-linux/gcc/x86_64-pokysdk-linux/14.2.0/include;/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlangua geserver/6.8.2/recipe-sysroot-native/usr/lib/x86_64-pokysdk-linux/gcc/x86_64-pokysdk-linux/14.2.0/include-fixed;/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/recipe-sysroot/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/include/c++/14.2.0;/ home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/recipe-sysroot/usr/local/oe-sGNU assembler version 2.43.1 (x86_64-pokysdk-linux) using BFD version (GNU Binutils) 2.43.1;/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/ recipe-sysroot/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/include/c++/14.2.0/backward;/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/recipe-sysroot/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/lib/x86_64-pokysdk -linux/14.2.0/include;/home/sapiippo/qt6/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtlanguageserver/6.8.2/recipe-sysroot/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/include")