https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83847
Allan Jensen <linux at carewolf dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |linux at carewolf dot com --- Comment #3 from Allan Jensen <linux at carewolf dot com> --- Affects building Qt 5.10 QtCore, but only if optimizing for certain architectures. I triggered it with /opt/gcc/bin/g++-8 -c -pipe -march=skylake -g -O3 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -D_REENTRANT -fPIC -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DELF_INTERPRETER=\"/lib64/ld-linux-x86-64.so.2\" -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DPCRE2_CODE_UNIT_WIDTH=16 -I/src/qt5/qtbase/src/corelib -I. -Iglobal -I/src/qt5/qtbase/src/3rdparty/harfbuzz/src -I/src/qt5/qtbase/src/3rdparty/md5 -I/src/qt5/qtbase/src/3rdparty/md4 -I/src/qt5/qtbase/src/3rdparty/sha3 -I/src/qt5/qtbase/src/3rdparty/forkfd -I../../include -I../../include/QtCore -I../../include/QtCore/5.10.1 -I../../include/QtCore/5.10.1/QtCore -I.moc -I/src/qt5/qtbase/src/3rdparty/pcre2/src -isystem /usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/src/qt5/qtbase/mkspecs/linux-g++ -o .obj/qmetaobjectbuilder.o /src/qt5/qtbase/src/corelib/kernel/qmetaobjectbuilder.cpp Removing -march=skylake worked.