Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.15.0 Beta1
-
None
Description
On Arch we have
QMAKE_CFLAGS_RELEASE += $$(CFLAGS)
in our mkspecs/common/gcc-base.conf so that system CFLAGS are picked up from the environment at build time by qmake projects. This works fine in all projects, including all Qt modules, except in qtwebengine. For some reason, the spaces in CFLAGS are escaped, which causes the build to fail:
FAILED: obj/QtWebEngineCore/touch_selection_menu_controller.o /usr/bin/g++ -MMD -MF obj/QtWebEngineCore/touch_selection_menu_controller.o.d -DCHROMIUM_VERSION=\"77.0.3865.129\" -DUSE_UDEV -DUSE_AURA=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DNO_TCMALLOC -DOFFICIAL_BUILD -DCHROMIUM_BUILD -DTOOLKIT_QT -D_FILE_OFFSET_BIT S=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -D NVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DQT_NO_LINKED_LIST -DQT_NO_KEYWORDS -DQT_USE_QSTRINGBUILDER -DQ_FORWARD_DECLARE_OB JC_CLASS=QT_FORWARD_DECLARE_CLASS -DQTWEBENGINECORE_VERSION_STR=\"5.15.0\" -DQTWEBENGINEPROCESS_NAME=\"QtWebEngineProcess\" - DBUILDING_CHROMIUM -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_GUI_LIB -DQ T_QMLMODELS_LIB -DQT_WEBCHANNEL_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_POSITIONING_LIB -DQT_CORE_LIB -DQT_WEBENGINECOREHEADER S_LIB -DGL_GLEXT_PROTOTYPES -DUSE_GLX -DUSE_EGL -DVK_NO_PROTOTYPES -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_ST ATIC -DUCHAR_TYPE=uint16_t -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DHAVE_PTHREAD -DWEBRTC_NON_STAT IC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_POSIX -DWEBRTC_LINUX -DABSL_ALLOCATOR_NOTHROW=1 -DNO_MAIN_THREAD_W RAPPING -DSK_GL -DSK_HAS_PNG_LIBRARY -DSK_HAS_WEBP_LIBRARY -DSK_USER_CONFIG_HEADER=\"../../skia/config/SkUserConfig.h\" -DSK_ HAS_JPEG_LIBRARY -DSK_VULKAN_HEADER=\"../../skia/config/SkVulkanConfig.h\" -DSK_VULKAN=1 -DSK_SUPPORT_GPU=1 -DSK_GPU_WORKAROU NDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\" -DVK_NO_PROTOTYPES -DLEVELDB_PLATFORM_CHROMIUM=1 -DLEVELDB_PLAT FORM_CHROMIUM=1 -DV8_DEPRECATION_WARNINGS -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DUCHAR_TYPE=uint16_ t -DPERFETTO_BUILD_WITH_EMBEDDER -DPERFETTO_BUILD_WITH_CHROMIUM -DPERFETTO_FORCE_DLOG=0 -DWEBRTC_USE_X11 -I../../../../qtwebe ngine-everywhere-src-5.15.0-beta1/src/3rdparty/chromium/skia/config -I../../../../qtwebengine-everywhere-src-5.15.0-beta1/src /3rdparty/chromium/third_party -I../../../../qtwebengine-everywhere-src-5.15.0-beta1/src/3rdparty/chromium/third_party/boring ssl/src/include -I../../../../qtwebengine-everywhere-src-5.15.0-beta1/src/3rdparty/chromium/third_party/skia/include/core -Ig en -I../../../../qtwebengine-everywhere-src-5.15.0-beta1/src/3rdparty/chromium -I/build/qt5-webengine/src/qtwebengine-everywh ere-src-5.15.0-beta1/src/core -I/build/qt5-webengine/src/qtwebengine-everywhere-src-5.15.0-beta1/src/core/api -I/usr/include/ qt/QtQuick/5.15.0 -I/usr/include/qt/QtQuick/5.15.0/QtQuick -I/usr/include/qt/QtGui/5.15.0 -I/usr/include/qt/QtGui/5.15.0/QtGu i -I/usr/include/qt -I/usr/include/qt/QtQuick -I/usr/include/qt/QtGui -I/usr/include/qt/QtQmlModels/5.15.0 -I/usr/include/qt/ QtQmlModels/5.15.0/QtQmlModels -I/usr/include/qt/QtQml/5.15.0 -I/usr/include/qt/QtQml/5.15.0/QtQml -I/usr/include/qt/QtCore/5 .15.0 -I/usr/include/qt/QtCore/5.15.0/QtCore -I/usr/include/qt/QtQmlModels -I/usr/include/qt/QtWebChannel -I/usr/include/qt/Q tQml -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtPositioning -I/usr/include/qt/QtCore -I/build/qt5-webengine/src/qtwebeng ine-everywhere-src-5.15.0-beta1/include -I/build/qt5-webengine/src/qtwebengine-everywhere-src-5.15.0-beta1/include/QtWebEngin eCore -I/build/qt5-webengine/src/qtwebengine-everywhere-src-5.15.0-beta1/include/QtWebEngineCore/5.15.0 -I/build/qt5-webengin e/src/qtwebengine-everywhere-src-5.15.0-beta1/include/QtWebEngineCore/5.15.0/QtWebEngineCore -I/build/qt5-webengine/src/build /include -I/build/qt5-webengine/src/build/include/QtWebEngineCore -I/build/qt5-webengine/src/build/include/QtWebEngineCore/5. 15.0 -I/build/qt5-webengine/src/build/include/QtWebEngineCore/5.15.0/QtWebEngineCore -I.moc -Igen/.moc -I/usr/lib/qt/mkspecs/ linux-g++ -Igen -Igen -Igen -Igen -I../../../../qtwebengine-everywhere-src-5.15.0-beta1/src/3rdparty/chromium/third_party/lib yuv/include -Igen -Igen -Igen -Igen -Igen -Igen -I../../../../qtwebengine-everywhere-src-5.15.0-beta1/src/3rdparty/chromium/t hird_party/vulkan/include -Igen -Igen -Igen -Igen -I../../../../qtwebengine-everywhere-src-5.15.0-beta1/src/3rdparty/chromium /third_party/khronos -I../../../../qtwebengine-everywhere-src-5.15.0-beta1/src/3rdparty/chromium/gpu -Igen -Igen/third_party/ dawn -I../../../../qtwebengine-everywhere-src-5.15.0-beta1/src/3rdparty/chromium/third_party/dawn/src/include -I../../../../q twebengine-everywhere-src-5.15.0-beta1/src/3rdparty/chromium/third_party/jsoncpp/source/include -I../../../../qtwebengine-eve rywhere-src-5.15.0-beta1/src/3rdparty/chromium/third_party/jsoncpp/generated -Igen -I../../../../qtwebengine-everywhere-src-5 .15.0-beta1/src/3rdparty/chromium/third_party/boringssl/src/include -I../../../../qtwebengine-everywhere-src-5.15.0-beta1/src /3rdparty/chromium/third_party/ced/src -I../../../../qtwebengine-everywhere-src-5.15.0-beta1/src/3rdparty/chromium/third_part y/protobuf/src -I../../../../qtwebengine-everywhere-src-5.15.0-beta1/src/3rdparty/chromium/third_party/protobuf/src -Igen/pro toc_out -I../../../../qtwebengine-everywhere-src-5.15.0-beta1/src/3rdparty/chromium/third_party/webrtc_overrides -I../../../. ./qtwebengine-everywhere-src-5.15.0-beta1/src/3rdparty/chromium/third_party/webrtc -Igen/third_party/webrtc -I../../../../qtw ebengine-everywhere-src-5.15.0-beta1/src/3rdparty/chromium/third_party/abseil-cpp -I../../../../qtwebengine-everywhere-src-5. 15.0-beta1/src/3rdparty/chromium/third_party/skia -I../../../../qtwebengine-everywhere-src-5.15.0-beta1/src/3rdparty/chromium /third_party/vulkan/include -I../../../../qtwebengine-everywhere-src-5.15.0-beta1/src/3rdparty/chromium/third_party/skia/thir d_party/vulkanmemoryallocator -I../../../../qtwebengine-everywhere-src-5.15.0-beta1/src/3rdparty/chromium/third_party/vulkan/ include -I../../../../qtwebengine-everywhere-src-5.15.0-beta1/src/3rdparty/chromium/third_party/leveldatabase -I../../../../q twebengine-everywhere-src-5.15.0-beta1/src/3rdparty/chromium/third_party/leveldatabase/src -I../../../../qtwebengine-everywhe re-src-5.15.0-beta1/src/3rdparty/chromium/third_party/leveldatabase/src/include -I../../../../qtwebengine-everywhere-src-5.15 .0-beta1/src/3rdparty/chromium/third_party/libwebm/source -I../../../../qtwebengine-everywhere-src-5.15.0-beta1/src/3rdparty/ chromium/v8/include -Igen/v8/include -I../../../../qtwebengine-everywhere-src-5.15.0-beta1/src/3rdparty/chromium/third_party/ perfetto/include -Igen/third_party/perfetto/protos -Igen/third_party/perfetto/protos -Igen/third_party/perfetto/protos -Igen/ third_party/perfetto/protos -Igen/third_party/perfetto/protos -Igen/third_party/perfetto/protos -I../../../../qtwebengine-eve rywhere-src-5.15.0-beta1/src/3rdparty/chromium/third_party/mesa_headers -fno-strict-aliasing --param=ssp-buffer-size=4 -fstac k-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pipe -pthread -m64 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_S OURCE=2 -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -Wno-comments -Wno-packed-not-aligne d -Wno-dangling-else -Wno-missing-field-initializers -Wno-unused-parameter -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g0 -fvisibility=hidden -pipe -O2 -march=x86-64\ -mtune=generic\ -O2\ -pipe\ -fno-plt -fno-exception s -Wall -Wextra -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -std=gnu++14 -Wno-narrowing -Wno-class-memaccess -Wno-att ributes -Wno-class-memaccess -Wno-subobject-linkage -Wno-invalid-offsetof -Wno-return-type -Wno-deprecated-copy -fno-exceptio ns -fno-rtti -fvisibility-inlines-hidden -pipe -O2 -march=x86-64\ -mtune=generic\ -O2\ -pipe\ -fno-plt -std=gnu++1y -fno-exce ptions -Wall -Wextra -D_REENTRANT -Wno-unused-parameter -Wno-unused-variable -Wno-deprecated-declarations -c /build/qt5-weben gine/src/qtwebengine-everywhere-src-5.15.0-beta1/src/core/touch_selection_menu_controller.cpp -o obj/QtWebEngineCore/touch_se lection_menu_controller.o cc1plus: error: bad value ('x86-64 -mtune=generic -O2 -pipe -fno-plt') for '-march=' switch