Details
-
Bug
-
Resolution: Invalid
-
P1: Critical
-
6.10
-
None
Description
when building with -Werror (which seems to be the default using the configure script), qtdeclarative fails to build on ubuntu 24.10 with gcc-14:
FAILED: qtdeclarative/src/qml/CMakeFiles/Qml.dir/__/3rdparty/masm/wtf/FilePrintStream.cpp.o /usr/bin/ccache /usr/bin/c++ -DBUILDING_QT__ -DENABLE_ASSEMBLER_WX_EXCLUSIVE=1 -DENABLE_DFG_JIT=0 -DENABLE_DFG_JIT_UTILITY_METHODS=1 -DENABLE_JIT_CONSTANT_BLINDING=0 -DENABLE_LLINT=0 -DJS_EXPORT_PRIVATE="" -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_QML_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_LEAN_HEADERS=1 -DQT_MOC_COMPAT -DQT_NETWORK_LIB -DQT_NO_AS_CONST=1 -DQT_NO_CAST_TO_ASCII -DQT_NO_EXCEPTIONS -DQT_NO_FOREACH -DQT_NO_FOREACH=1 -DQT_NO_INTEGER_EVENT_COORDINATES -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QASCONST -DQT_NO_QEXCHANGE -DQT_NO_QSNPRINTF -DQT_NO_QSNPRINTF=1 -DQT_NO_STD_FORMAT_SUPPORT -DQT_NO_URL_CAST_FROM_STRING -DQT_QMLINTEGRATION_LIB -DQT_STRICT_QLIST_ITERATORS -DQT_USE_QSTRINGBUILDER -DQml_EXPORTS -DWTFInvokeCrashHook=qmlWTFInvokeCrashHook -DWTFReportAssertionFailure=qmlWTFReportAssertionFailure -DWTFReportAssertionFailureWithMessage=qmlWTFReportAssertionFailureWithMessage -DWTFReportBacktrace=qmlWTFReportBacktrace -DWTF_EXPORT_PRIVATE="" -DWTF_USE_UDIS86=0 -D_GLIBCXX_ASSERTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/home/tim/build/build-qt-android-host/qtdeclarative/src/qml/Qml_autogen/include -I/home/tim/build/build-qt-android-host/qtbase/include -I/home/tim/build/build-qt-android-host/qtbase/include/QtQml -I/home/tim/dev/qt6-dev/qtdeclarative/src/qml -I/home/tim/build/build-qt-android-host/qtdeclarative/src/qml -I/home/tim/build/build-qt-android-host/qtdeclarative/src/qml/.generated -I/home/tim/build/build-qt-android-host/qtdeclarative/src/qml/compiler -I/home/tim/build/build-qt-android-host/qtdeclarative/src/qml/jsruntime -I/home/tim/build/build-qt-android-host/qtdeclarative/src/qml/memory -I/home/tim/build/build-qt-android-host/qtdeclarative/src/qml/qml -I/home/tim/build/build-qt-android-host/qtdeclarative/src/qml/qmldirparser -I/home/tim/dev/qt6-dev/qtdeclarative/src/qml/../3rdparty/masm -I/home/tim/dev/qt6-dev/qtdeclarative/src/qml/../3rdparty/masm/assembler -I/home/tim/dev/qt6-dev/qtdeclarative/src/qml/../3rdparty/masm/disassembler -I/home/tim/dev/qt6-dev/qtdeclarative/src/qml/../3rdparty/masm/disassembler/udis86 -I/home/tim/dev/qt6-dev/qtdeclarative/src/qml/../3rdparty/masm/jit -I/home/tim/dev/qt6-dev/qtdeclarative/src/qml/../3rdparty/masm/runtime -I/home/tim/dev/qt6-dev/qtdeclarative/src/qml/../3rdparty/masm/stubs -I/home/tim/dev/qt6-dev/qtdeclarative/src/qml/../3rdparty/masm/stubs/runtime -I/home/tim/dev/qt6-dev/qtdeclarative/src/qml/../3rdparty/masm/stubs/wtf -I/home/tim/dev/qt6-dev/qtdeclarative/src/qml/../3rdparty/masm/wtf -I/home/tim/dev/qt6-dev/qtdeclarative/src/qml/compiler -I/home/tim/dev/qt6-dev/qtdeclarative/src/qml/debugger -I/home/tim/dev/qt6-dev/qtdeclarative/src/qml/jsruntime -I/home/tim/dev/qt6-dev/qtdeclarative/src/qml/memory -I/home/tim/dev/qt6-dev/qtdeclarative/src/qml/qml -I/home/tim/dev/qt6-dev/qtdeclarative/src/qml/qmldirparser -I/home/tim/build/build-qt-android-host/qtbase/include/QtQml/6.10.0 -I/home/tim/build/build-qt-android-host/qtbase/include/QtQml/6.10.0/QtQml -I/home/tim/build/build-qt-android-host/qtbase/include/QtCore -I/home/tim/build/build-qt-android-host/qtbase/mkspecs/linux-g++ -I/home/tim/build/build-qt-android-host/qtbase/include/QtQmlIntegration -I/home/tim/dev/qt6-dev/qtdeclarative/src/qmlintegration -I/home/tim/build/build-qt-android-host/qtdeclarative/src/qmlintegration -I/home/tim/build/build-qt-android-host/qtbase/include/QtNetwork -I/home/tim/build/build-qt-android-host/qtdeclarative/src/qml/.generated/debug -I/home/tim/build/build-qt-android-host/qtdeclarative/src/qml/jit -I/home/tim/dev/qt6-dev/qtdeclarative/src/qml/jit -I/home/tim/dev/qt6-dev/qtdeclarative/src/qml/animations -I/home/tim/build/build-qt-android-host/qtbase/src/corelib -I/home/tim/build/build-qt-android-host/qtbase/include/QtCore/6.10.0 -I/home/tim/build/build-qt-android-host/qtbase/include/QtCore/6.10.0/QtCore -g -std=gnu++17 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fPIC -Werror -Wno-error=cpp -Wno-error=deprecated-declarations -Wno-error=strict-overflow -Wno-error=implicit-fallthrough -Wno-error=deprecated-copy -Wno-error=redundant-move -Wno-error=init-list-lifetime -Wno-error=format-overflow -Wno-error=stringop-overflow -Wno-error=stringop-overread -Wno-error=deprecated-enum-enum-conversion -Wno-error=deprecated-enum-float-conversion -Wsuggest-override -fcf-protection=full -ftrivial-auto-var-init=pattern -fstack-protector-strong -fstack-clash-protection -fno-exceptions -Winvalid-pch -include /home/tim/build/build-qt-android-host/qtdeclarative/src/qml/CMakeFiles/Qml.dir/cmake_pch.hxx -MD -MT qtdeclarative/src/qml/CMakeFiles/Qml.dir/__/3rdparty/masm/wtf/FilePrintStream.cpp.o -MF qtdeclarative/src/qml/CMakeFiles/Qml.dir/__/3rdparty/masm/wtf/FilePrintStream.cpp.o.d -o qtdeclarative/src/qml/CMakeFiles/Qml.dir/__/3rdparty/masm/wtf/FilePrintStream.cpp.o -c /home/tim/dev/qt6-dev/qtdeclarative/src/3rdparty/masm/wtf/FilePrintStream.cpp In file included from /home/tim/dev/qt6-dev/qtdeclarative/src/qml/../3rdparty/masm/wtf/Platform.h:37, from /home/tim/dev/qt6-dev/qtdeclarative/src/qml/../3rdparty/masm/config.h:7, from /home/tim/dev/qt6-dev/qtdeclarative/src/3rdparty/masm/wtf/FilePrintStream.cpp:26: /home/tim/dev/qt6-dev/qtdeclarative/src/qml/../3rdparty/masm/wtf/Compiler.h:123:1: error: this use of "defined" may not be portable [-Werror=expansion-to-defined] 123 | #if defined(__GNUC__) && !COMPILER(RVCT) | ^~~~~~~~~~~~~~~~~ /home/tim/dev/qt6-dev/qtdeclarative/src/qml/../3rdparty/masm/wtf/Compiler.h:133:1: error: this use of "defined" may not be portable [-Werror=expansion-to-defined] 133 | #if COMPILER(GCC) && !COMPILER(CLANG) | ^~~~~~~~~~~~~~~~ /home/tim/dev/qt6-dev/qtdeclarative/src/qml/../3rdparty/masm/wtf/Compiler.h:133:1: error: this use of "defined" may not be portable [-Werror=expansion-to-defined] 133 | #if COMPILER(GCC) && !COMPILER(CLANG) | ^~~~~~~~~~~~~~~~~~ /home/tim/dev/qt6-dev/qtdeclarative/src/qml/../3rdparty/masm/wtf/Compiler.h:191:1: error: this use of "defined" may not be portable [-Werror=expansion-to-defined] 191 | #if COMPILER(GCC) && defined(NDEBUG) && !COMPILER(MINGW) | ^~~~~~~~~~~~~~~~ /home/tim/dev/qt6-dev/qtdeclarative/src/qml/../3rdparty/masm/wtf/Compiler.h:191:1: error: this use of "defined" may not be portable [-Werror=expansion-to-defined] 191 | #if COMPILER(GCC) && defined(NDEBUG) && !COMPILER(MINGW) | ^~~~~~~~~~~~~~~~~~ /home/tim/dev/qt6-dev/qtdeclarative/src/qml/../3rdparty/masm/wtf/Compiler.h:193:1: error: this use of "defined" may not be portable [-Werror=expansion-to-defined] 193 | #elif (COMPILER(MSVC) || COMPILER(RVCT)) && defined(NDEBUG) | ^~~~~~~~~~~~~~~~~ /home/tim/dev/qt6-dev/qtdeclarative/src/qml/../3rdparty/masm/wtf/Compiler.h:193:1: error: this use of "defined" may not be portable [-Werror=expansion-to-defined] /home/tim/dev/qt6-dev/qtdeclarative/src/qml/../3rdparty/masm/wtf/Compiler.h:204:1: error: this use of "defined" may not be portable [-Werror=expansion-to-defined] 204 | #if COMPILER(GCC) | ^~~~~~~~~~~~~~~~
an easy workaround could be to disable the warning for now