QT 6.2.4 MacOS Build from Source
-
I am having issue building QT 6.2.4 MacOS build from source. The build failed somewhere in qtdeclarative module.
Here is my macOS and Xcode version:
System Version: macOS 11.6.5
Xcode: 13.2.1Below is my configuration option:
../configure -release -nomake examples -nomake tests -skip qtwebengineHere is where it failed to compile:
PN123456:build kenko$ cmake --build . --parallel
[7307/14966] Running rcc for resource builtins
FAILED: qtdeclarative/src/qmlcompiler/.rcc/qrc_builtins.cpp /Users/kenko/Qt/6.2.4/Src/build/qtdeclarative/src/qmlcompiler/.rcc/qrc_builtins.cpp
cd /Users/kenko/Qt/6.2.4/Src/build/qtdeclarative/src/qmlcompiler && /Users/kenko/Qt/6.2.4/Src/build/qtbase/libexec/rcc --output /Users/kenko/Qt/6.2.4/Src/build/qtdeclarative/src/qmlcompiler/.rcc/qrc_builtins.cpp --name builtins /Users/kenko/Qt/6.2.4/Src/build/qtdeclarative/src/qmlcompiler/.rcc/builtins.qrc --no-zstd
/bin/sh: line 1: 36689 Killed: 9 /Users/kenko/Qt/6.2.4/Src/build/qtbase/libexec/rcc --output /Users/kenko/Qt/6.2.4/Src/build/qtdeclarative/src/qmlcompiler/.rcc/qrc_builtins.cpp --name builtins /Users/kenko/Qt/6.2.4/Src/build/qtdeclarative/src/qmlcompiler/.rcc/builtins.qrc --no-zstdHave anyone experience this or any potential fix?
Thanks in advance.
-
Hi and welcome to devnet,
Restart your build removing the parallel flag. This should point you to the actual source of failure.
-
Hi SGaist,
I rebuilt from source without the parallel flag. Not see much a different in failed compile output. Appreciate any additional help! Thanks!
PN123456:build kenko$ cmake --build .
[7297/14966] Running rcc for resource builtins
FAILED: qtdeclarative/src/qmlcompiler/.rcc/qrc_builtins.cpp /Users/kenko/Qt/6.2.4/Src/build/qtdeclarative/src/qmlcompiler/.rcc/qrc_builtins.cpp
cd /Users/kenko/Qt/6.2.4/Src/build/qtdeclarative/src/qmlcompiler && /Users/kenko/Qt/6.2.4/Src/build/qtbase/libexec/rcc --output /Users/kenko/Qt/6.2.4/Src/build/qtdeclarative/src/qmlcompiler/.rcc/qrc_builtins.cpp --name builtins /Users/kenko/Qt/6.2.4/Src/build/qtdeclarative/src/qmlcompiler/.rcc/builtins.qrc --no-zstd
/bin/sh: line 1: 32753 Killed: 9 /Users/kenko/Qt/6.2.4/Src/build/qtbase/libexec/rcc --output /Users/kenko/Qt/6.2.4/Src/build/qtdeclarative/src/qmlcompiler/.rcc/qrc_builtins.cpp --name builtins /Users/kenko/Qt/6.2.4/Src/build/qtdeclarative/src/qmlcompiler/.rcc/builtins.qrc --no-zstd
[7302/14966] Automatic MOC for target QSCNetworkReachabilityNetworkInformationPlugin
FAILED: qtbase/src/plugins/networkinformation/scnetworkreachability/QSCNetworkReachabilityNetworkInformationPlugin_autogen/timestamp qtbase/src/plugins/networkinformation/scnetworkreachability/QSCNetworkReachabilityNetworkInformationPlugin_autogen/mocs_compilation.cpp /Users/kenko/Qt/6.2.4/Src/build/qtbase/src/plugins/networkinformation/scnetworkreachability/QSCNetworkReachabilityNetworkInformationPlugin_autogen/timestamp /Users/kenko/Qt/6.2.4/Src/build/qtbase/src/plugins/networkinformation/scnetworkreachability/QSCNetworkReachabilityNetworkInformationPlugin_autogen/mocs_compilation.cpp
cd /Users/kenko/Qt/6.2.4/Src/build/qtbase/src/plugins/networkinformation/scnetworkreachability && /opt/local/bin/cmake -E cmake_autogen /Users/kenko/Qt/6.2.4/Src/build/qtbase/src/plugins/networkinformation/scnetworkreachability/CMakeFiles/QSCNetworkReachabilityNetworkInformationPlugin_autogen.dir/AutogenInfo.json Release && /opt/local/bin/cmake -E touch /Users/kenko/Qt/6.2.4/Src/build/qtbase/src/plugins/networkinformation/scnetworkreachability/QSCNetworkReachabilityNetworkInformationPlugin_autogen/timestamp && /opt/local/bin/cmake -E cmake_transform_depfile Ninja gccdepfile /Users/kenko/Qt/6.2.4/Src /Users/kenko/Qt/6.2.4/Src/qtbase/src/plugins/networkinformation/scnetworkreachability /Users/kenko/Qt/6.2.4/Src/build /Users/kenko/Qt/6.2.4/Src/build/qtbase/src/plugins/networkinformation/scnetworkreachability /Users/kenko/Qt/6.2.4/Src/build/qtbase/src/plugins/networkinformation/scnetworkreachability/QSCNetworkReachabilityNetworkInformationPlugin_autogen/deps /Users/kenko/Qt/6.2.4/Src/build/CMakeFiles/d/f3b2e2c1b99e6a63080924121eccee761f3733c77be49c50d41f73c8bd3b2a23.dAutoMoc subprocess error
The moc process failed to compile
"SRC:/qtbase/src/plugins/networkinformation/scnetworkreachability/qscnetworkreachabilitynetworkinformationbackend.mm"
into
"SRC:/build/qtbase/src/plugins/networkinformation/scnetworkreachability/QSCNetworkReachabilityNetworkInformationPlugin_autogen/include/qscnetworkreachabilitynetworkinformationbackend.moc"
included by
"SRC:/qtbase/src/plugins/networkinformation/scnetworkreachability/qscnetworkreachabilitynetworkinformationbackend.mm"Command
/Users/kenko/Qt/6.2.4/Src/build/qtbase/libexec/moc -DGL_SILENCE_DEPRECATION -DQSCNetworkReachabilityNetworkInformationPlugin_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_PLUGIN -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/Users/kenko/Qt/6.2.4/Src/qtbase/src/plugins/networkinformation/scnetworkreachability -I/Users/kenko/Qt/6.2.4/Src/build/qtbase/src/plugins/networkinformation/scnetworkreachability -I/Users/kenko/Qt/6.2.4/Src/build/qtbase/include -I/Users/kenko/Qt/6.2.4/Src/build/qtbase/src/network -I/Users/kenko/Qt/6.2.4/Src/build/qtbase/include/QtNetwork/6.2.4 -I/Users/kenko/Qt/6.2.4/Src/build/qtbase/include/QtNetwork/6.2.4/QtNetwork -I/Users/kenko/Qt/6.2.4/Src/build/qtbase/src/corelib -I/Users/kenko/Qt/6.2.4/Src/build/qtbase/include/QtCore/6.2.4 -I/Users/kenko/Qt/6.2.4/Src/build/qtbase/include/QtCore/6.2.4/QtCore -I/Users/kenko/Qt/6.2.4/Src/build/qtbase/include/QtCore -I/Users/kenko/Qt/6.2.4/Src/build/qtbase/lib/QtCore.framework/Headers -I/Users/kenko/Qt/6.2.4/Src/qtbase/mkspecs/macx-clang -I/Users/kenko/Qt/6.2.4/Src/build/qtbase/include/QtNetwork -I/Users/kenko/Qt/6.2.4/Src/build/qtbase/lib/QtNetwork.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1 -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -F /Users/kenko/Qt/6.2.4/Src/build/qtbase/lib --include /Users/kenko/Qt/6.2.4/Src/build/qtbase/src/plugins/networkinformation/scnetworkreachability/QSCNetworkReachabilityNetworkInformationPlugin_autogen/moc_predefs.h --output-dep-file -o /Users/kenko/Qt/6.2.4/Src/build/qtbase/src/plugins/networkinformation/scnetworkreachability/QSCNetworkReachabilityNetworkInformationPlugin_autogen/include/qscnetworkreachabilitynetworkinformationbackend.moc /Users/kenko/Qt/6.2.4/Src/qtbase/src/plugins/networkinformation/scnetworkreachability/qscnetworkreachabilitynetworkinformationbackend.mm
Output
[7306/14966] Automatic MOC for target QSecureTransportBackendPlugin
FAILED: qtbase/src/plugins/tls/securetransport/QSecureTransportBackendPlugin_autogen/timestamp qtbase/src/plugins/tls/securetransport/QSecureTransportBackendPlugin_autogen/mocs_compilation.cpp /Users/kenko/Qt/6.2.4/Src/build/qtbase/src/plugins/tls/securetransport/QSecureTransportBackendPlugin_autogen/timestamp /Users/kenko/Qt/6.2.4/Src/build/qtbase/src/plugins/tls/securetransport/QSecureTransportBackendPlugin_autogen/mocs_compilation.cpp
cd /Users/kenko/Qt/6.2.4/Src/build/qtbase/src/plugins/tls/securetransport && /opt/local/bin/cmake -E cmake_autogen /Users/kenko/Qt/6.2.4/Src/build/qtbase/src/plugins/tls/securetransport/CMakeFiles/QSecureTransportBackendPlugin_autogen.dir/AutogenInfo.json Release && /opt/local/bin/cmake -E touch /Users/kenko/Qt/6.2.4/Src/build/qtbase/src/plugins/tls/securetransport/QSecureTransportBackendPlugin_autogen/timestamp && /opt/local/bin/cmake -E cmake_transform_depfile Ninja gccdepfile /Users/kenko/Qt/6.2.4/Src /Users/kenko/Qt/6.2.4/Src/qtbase/src/plugins/tls/securetransport /Users/kenko/Qt/6.2.4/Src/build /Users/kenko/Qt/6.2.4/Src/build/qtbase/src/plugins/tls/securetransport /Users/kenko/Qt/6.2.4/Src/build/qtbase/src/plugins/tls/securetransport/QSecureTransportBackendPlugin_autogen/deps /Users/kenko/Qt/6.2.4/Src/build/CMakeFiles/d/7a08c45a288a961878074b01cf92ad0bda5e41d67318cd4acbbdf948ec82f8e7.dAutoMoc subprocess error
The moc process failed to compile
"SRC:/qtbase/src/plugins/tls/securetransport/qtlsbackend_st_p.h"
into
"SRC:/build/qtbase/src/plugins/tls/securetransport/QSecureTransportBackendPlugin_autogen/EWIEGA46WW/moc_qtlsbackend_st_p.cpp"Command
/Users/kenko/Qt/6.2.4/Src/build/qtbase/libexec/moc -DGL_SILENCE_DEPRECATION -DQSecureTransportBackendPlugin_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_PLUGIN -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/Users/kenko/Qt/6.2.4/Src/qtbase/src/plugins/tls/securetransport -I/Users/kenko/Qt/6.2.4/Src/build/qtbase/src/plugins/tls/securetransport -I/Users/kenko/Qt/6.2.4/Src/build/qtbase/include -I/Users/kenko/Qt/6.2.4/Src/build/qtbase/src/network -I/Users/kenko/Qt/6.2.4/Src/build/qtbase/include/QtNetwork/6.2.4 -I/Users/kenko/Qt/6.2.4/Src/build/qtbase/include/QtNetwork/6.2.4/QtNetwork -I/Users/kenko/Qt/6.2.4/Src/build/qtbase/src/corelib -I/Users/kenko/Qt/6.2.4/Src/build/qtbase/include/QtCore/6.2.4 -I/Users/kenko/Qt/6.2.4/Src/build/qtbase/include/QtCore/6.2.4/QtCore -I/Users/kenko/Qt/6.2.4/Src/build/qtbase/include/QtCore -I/Users/kenko/Qt/6.2.4/Src/build/qtbase/lib/QtCore.framework/Headers -I/Users/kenko/Qt/6.2.4/Src/qtbase/mkspecs/macx-clang -I/Users/kenko/Qt/6.2.4/Src/build/qtbase/include/QtNetwork -I/Users/kenko/Qt/6.2.4/Src/build/qtbase/lib/QtNetwork.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1 -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -F /Users/kenko/Qt/6.2.4/Src/build/qtbase/lib --include /Users/kenko/Qt/6.2.4/Src/build/qtbase/src/plugins/tls/securetransport/QSecureTransportBackendPlugin_autogen/moc_predefs.h --output-dep-file -o /Users/kenko/Qt/6.2.4/Src/build/qtbase/src/plugins/tls/securetransport/QSecureTransportBackendPlugin_autogen/EWIEGA46WW/moc_qtlsbackend_st_p.cpp /Users/kenko/Qt/6.2.4/Src/qtbase/src/plugins/tls/securetransport/qtlsbackend_st_p.h
Output
[7314/14966] Automatic MOC for target BundledOpenwnn
ninja: build stopped: subcommand failed. -
I tested the build with the sources but on a more recent version of macOS and it went fine using the same options as you.