Created attachment 867283 [details] emerge --info and build log compressed with xz dev-qt/qtwayland-6.5.2 appends -O2 after CXXFLAGS set in make.conf thus overriding -O3, below are just a couple of lines showing the issue, the rest are in the log [262/720] /usr/bin/x86_64-pc-linux-gnu-g++ -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_WAYLANDCLIENT_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x050000 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_GUI_LIB -DQT_MOC_COMPAT -DQT_NO_AS_CONST=1 -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_USE_QSTRINGBUILDER -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DQT_WAYLANDGLOBAL_LIB -DWaylandClient_EXPORTS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2_build/src/client/WaylandClient_autogen/include -I/var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2_build/include -I/var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2_build/include/QtWaylandClient -I/var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2/src/client -I/var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2_build/src/client -I/var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2/src/client/../shared -I/var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2/src/client/global -I/var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2/src/client/hardwareintegration -I/var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2/src/client/inputdeviceintegration -I/var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2/src/client/shellintegration -I/var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2_build/include/QtWaylandClient/6.5.2 -I/var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2_build/include/QtWaylandClient/6.5.2/QtWaylandClient -I/var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2_build/include/QtWaylandGlobal -I/var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2/src -I/var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2_build/src -I/var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2_build/include/QtWaylandGlobal/6.5.2 -I/var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2_build/include/QtWaylandGlobal/6.5.2/QtWaylandGlobal -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtCore/6.5.2 -isystem /usr/include/qt6/QtCore/6.5.2/QtCore -isystem /usr/include/qt6/QtGui/6.5.2 -isystem /usr/include/qt6/QtGui/6.5.2/QtGui -march=native -O3 -pipe -flto=auto -fno-semantic-interposition -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -O2 -std=c++17 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fno-exceptions -fPIC -Wsuggest-override -MD -MT src/client/CMakeFiles/WaylandClient.dir/hardwareintegration/qwaylandclientbufferintegration.cpp.o -MF src/client/CMakeFiles/WaylandClient.dir/hardwareintegration/qwaylandclientbufferintegration.cpp.o.d -o src/client/CMakeFiles/WaylandClient.dir/hardwareintegration/qwaylandclientbufferintegration.cpp.o -c /var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2/src/client/hardwareintegration/qwaylandclientbufferintegration.cpp [263/720] /usr/bin/x86_64-pc-linux-gnu-g++ -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_WAYLANDCLIENT_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x050000 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_GUI_LIB -DQT_MOC_COMPAT -DQT_NO_AS_CONST=1 -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_USE_QSTRINGBUILDER -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DQT_WAYLANDGLOBAL_LIB -DWaylandClient_EXPORTS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2_build/src/client/WaylandClient_autogen/include -I/var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2_build/include -I/var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2_build/include/QtWaylandClient -I/var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2/src/client -I/var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2_build/src/client -I/var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2/src/client/../shared -I/var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2/src/client/global -I/var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2/src/client/hardwareintegration -I/var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2/src/client/inputdeviceintegration -I/var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2/src/client/shellintegration -I/var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2_build/include/QtWaylandClient/6.5.2 -I/var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2_build/include/QtWaylandClient/6.5.2/QtWaylandClient -I/var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2_build/include/QtWaylandGlobal -I/var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2/src -I/var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2_build/src -I/var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2_build/include/QtWaylandGlobal/6.5.2 -I/var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2_build/include/QtWaylandGlobal/6.5.2/QtWaylandGlobal -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtCore/6.5.2 -isystem /usr/include/qt6/QtCore/6.5.2/QtCore -isystem /usr/include/qt6/QtGui/6.5.2 -isystem /usr/include/qt6/QtGui/6.5.2/QtGui -march=native -O3 -pipe -flto=auto -fno-semantic-interposition -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -O2 -std=c++17 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fno-exceptions -fPIC -Wsuggest-override -MD -MT src/client/CMakeFiles/WaylandClient.dir/hardwareintegration/qwaylandserverbufferintegration.cpp.o -MF src/client/CMakeFiles/WaylandClient.dir/hardwareintegration/qwaylandserverbufferintegration.cpp.o.d -o src/client/CMakeFiles/WaylandClient.dir/hardwareintegration/qwaylandserverbufferintegration.cpp.o -c /var/tmp/portage/dev-qt/qtwayland-6.5.2/work/qtwayland-everywhere-src-6.5.2/src/client/hardwareintegration/qwaylandserverbufferintegration.cpp
*** This bug has been marked as a duplicate of bug 911822 ***