Created attachment 896853 [details] the build log qtdeclarative-6.7.2 failed to build on AMD threadripper 1950 platform with gcc-14.1.1. 6.7.1 works fine but since the update of 6.7.2 came out, it failed to build. I have another Intel laptop with the similar setup on USE, but no such problem. FAILED: src/qmldom/CMakeFiles/QmlDomPrivate.dir/qqmldomitem.cpp.o /usr/bin/x86_64-pc-linux-gnu-g++ -DQMLDOM_LIBRARY -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_QMLDOM_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x050000 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_LEAN_HEADERS=1 -DQT_MOC_COMPAT -DQT_NETWORK_LIB -DQT_NO_AS_CONST -DQT_NO_AS_CONST=1 -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_FOREACH -DQT_NO_FOREACH=1 -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QEXCHANGE -DQT_QMLBUILTINS_LIB -DQT_QMLCOMPILER_LIB -DQT_QMLINTEGRATION_LIB -DQT_QML_LIB -DQT_USE_QSTRINGBUILDER -DQT_WARN_DEPRECATED_UP_TO=0x070000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/var/tmp/portage/dev-qt/qtdeclarative-6.7.2/work/qtdeclarative-everywhere-src-6.7.2_build/src/qmldom/QmlDomPrivate_autogen/include -I/var/tmp/portage/dev-qt/qtdeclarative-6.7.2/work/qtdeclarative-everywhere-src-6.7.2_build/include -I/var/tmp/portage/dev-qt/qtdeclarative-6.7.2/work/qtdeclarative-everywhere-src-6.7.2_build/include/QtQmlDom -I/var/tmp/portage/dev-qt/qtdeclarative-6.7.2/work/qtdeclarative-everywhere-src-6.7.2/src/qmldom -I/var/tmp/portage/dev-qt/qtdeclarative-6.7.2/work/qtdeclarative-everywhere-src-6.7.2_build/src/qmldom -I/var/tmp/portage/dev-qt/qtdeclarative-6.7.2/work/qtdeclarative-everywhere-src-6.7.2_build/include/QtQmlDom/6.7.2 -I/var/tmp/portage/dev-qt/qtdeclarative-6.7.2/work/qtdeclarative-everywhere-src-6.7.2_build/include/QtQmlDom/6.7.2/QtQmlDom -I/var/tmp/portage/dev-qt/qtdeclarative-6.7.2/work/qtdeclarative-everywhere-src-6.7.2_build/src/qml -I/var/tmp/portage/dev-qt/qtdeclarative-6.7.2/work/qtdeclarative-everywhere-src-6.7.2_build/include/QtQml/6.7.2 -I/var/tmp/portage/dev-qt/qtdeclarative-6.7.2/work/qtdeclarative-everywhere-src-6.7.2_build/include/QtQml/6.7.2/QtQml -I/var/tmp/portage/dev-qt/qtdeclarative-6.7.2/work/qtdeclarative-everywhere-src-6.7.2_build/include/QtQmlBuiltins/6.7.2 -I/var/tmp/portage/dev-qt/qtdeclarative-6.7.2/work/qtdeclarative-everywhere-src-6.7.2_build/include/QtQmlBuiltins/6.7.2/QtQmlBuiltins -I/var/tmp/portage/dev-qt/qtdeclarative-6.7.2/work/qtdeclarative-everywhere-src-6.7.2_build/include/QtQmlBuiltins -I/var/tmp/portage/dev-qt/qtdeclarative-6.7.2/work/qtdeclarative-everywhere-src-6.7.2_build/include/QtQml -I/var/tmp/portage/dev-qt/qtdeclarative-6.7.2/work/qtdeclarative-everywhere-src-6.7.2_build/include/QtQmlIntegration -I/var/tmp/portage/dev-qt/qtdeclarative-6.7.2/work/qtdeclarative-everywhere-src-6.7.2/src/qmlintegration -I/var/tmp/portage/dev-qt/qtdeclarative-6.7.2/work/qtdeclarative-everywhere-src-6.7.2_build/src/qmlintegration -I/var/tmp/portage/dev-qt/qtdeclarative-6.7.2/work/qtdeclarative-everywhere-src-6.7.2_build/src/qmlcompiler -I/var/tmp/portage/dev-qt/qtdeclarative-6.7.2/work/qtdeclarative-everywhere-src-6.7.2_build/include/QtQmlCompiler/6.7.2 -I/var/tmp/portage/dev-qt/qtdeclarative-6.7.2/work/qtdeclarative-everywhere-src-6.7.2_build/include/QtQmlCompiler/6.7.2/QtQmlCompiler -I/var/tmp/portage/dev-qt/qtdeclarative-6.7.2/work/qtdeclarative-everywhere-src-6.7.2_build/include/QtQmlCompiler -isystem /usr/include/qt6/QtCore/6.7.2 -isystem /usr/include/qt6/QtCore/6.7.2/QtCore -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtNetwork -march=native -O2 -pipe -std=c++17 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fno-exceptions -fPIC -Wsuggest-override -fcf-protection=full -MD -MT src/qmldom/CMakeFiles/QmlDomPrivate.dir/qqmldomitem.cpp.o -MF src/qmldom/CMakeFiles/QmlDomPrivate.dir/qqmldomitem.cpp.o.d -o src/qmldom/CMakeFiles/QmlDomPrivate.dir/qqmldomitem.cpp.o -c /var/tmp/portage/dev-qt/qtdeclarative-6.7.2/work/qtdeclarative-everywhere-src-6.7.2/src/qmldom/qqmldomitem.cpp In file included from /var/tmp/portage/dev-qt/qtdeclarative-6.7.2/work/qtdeclarative-everywhere-src-6.7.2/src/qmldom/qqmldomattachedinfo_p.h:19, from /var/tmp/portage/dev-qt/qtdeclarative-6.7.2/work/qtdeclarative-everywhere-src-6.7.2/src/qmldom/qqmldomitem.cpp:3: /var/tmp/portage/dev-qt/qtdeclarative-6.7.2/work/qtdeclarative-everywhere-src-6.7.2/src/qmldom/qqmldomitem_p.h: In constructor ‘constexpr QQmlJS::Dom::DomItem::DomItem()’: /var/tmp/portage/dev-qt/qtdeclarative-6.7.2/work/qtdeclarative-everywhere-src-6.7.2/src/qmldom/qqmldomitem_p.h:1186:5: internal compiler error: in hash_table_higher_prime_index, at hash-table.cc:99 1186 | DomItem() = default; | ^~~~~~~ 0x562e883c3174 internal_error(char const*, ...) ???:0 0x562e869cf113 fancy_abort(char const*, int, char const*) ???:0 0x562e86a07db4 hash_table<default_hash_traits<tree_node*>, false, xcallocator>::expand() ???:0 0x562e86aa7b90 hash_table<default_hash_traits<tree_node*>, false, xcallocator>::find_slot_with_hash(tree_node* const&, unsigned int, insert_option) ???:0 0x562e86aa65a9 emit_mem_initializers(tree_node*) ???:0 0x562e86ac3f36 synthesize_method(tree_node*) ???:0 0x562e86a883db mark_used(tree_node*, int) ???:0 0x562e869ea263 build_new_method_call(tree_node*, tree_node*, vec<tree_node*, va_gc, vl_embed>**, tree_node*, int, tree_node**, int) ???:0 0x562e869eb074 build_special_member_call(tree_node*, tree_node*, vec<tree_node*, va_gc, vl_embed>**, tree_node*, int, int) ???:0 0x562e86aa0154 build_value_init(tree_node*, int) ???:0 0x562e86c0f53c build_functional_cast(unsigned int, tree_node*, tree_node*, int) ???:0 0x562e86b7276b c_parse_file() ???:0 0x562e86c7c5ef c_common_parse_file() ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://bugs.gentoo.org/> for instructions.
Created attachment 896854 [details] emerge info
Created attachment 896855 [details] environment info
Please include the package category in the bug summary.
This is likely bad RAM or the classic znver1 issue (bug 724314) given where the ICE is and nobody else can hit it.
Try building it again and see if it fails in exactly the same spot (or at all), aka "qqmldomitem_p.h:1186:5: internal compiler error: in hash_table_higher_prime_index, at hash-table.cc:99". If it's random it's almost always bad ram, and should run a memtest. If it's the znver1 issue, could try clang as a workaround (albeit don't do that for qt5 as it's messy). Really not much we can do about a cpu bug. That it worked before doesn't mean anything is wrong in gcc or qt, stars merely aligned to trigger it.
(In reply to Ionen Wolkens from comment #5) > Try building it again and see if it fails in exactly the same spot (or at > all), aka "qqmldomitem_p.h:1186:5: internal compiler error: in > hash_table_higher_prime_index, at hash-table.cc:99". If it's random it's > almost always bad ram, and should run a memtest. > > If it's the znver1 issue, could try clang as a workaround (albeit don't do > that for qt5 as it's messy). Really not much we can do about a cpu bug. That > it worked before doesn't mean anything is wrong in gcc or qt, stars merely > aligned to trigger it. It always failed on the same position, and I will try to check whether clang can solve this. Also qtdeclarative-6.7.1 has no such issue.
OK, Using CLANG solved the problem, so it should be an issue of gcc, right?
(if someone runs into the same problem, please say so and give us the log + emerge --info rather than just CC to the bug, so far it's being assumed that this is due to znver1 hardware and likely nothing will be done about it)
(In reply to younky from comment #7) > OK, Using CLANG solved the problem, so it should be an issue of gcc, right? No, it doesn't mean it's a GCC bug. If you can consistently reproduce it with GCC, please attach preprocessed source (run the failing command manually in the workdir/builddir, then append -save-temps) per https://wiki.gentoo.org/wiki/GCC_ICE_reporting_guide. But you should really do a memtest and also check if you're overclocked.
I have the same error message with gcc 14.1.1 compiling dev-qt/qtdeclarative-6.7.2 on an AMD Ryzen Threadripper 2950X. I ran memtest86+ for more than 12 complete passes with no error and am not overclocked. https://gist.github.com/cfgauss/15e8b58168bb53e76e95f9de9c55861a is the build log. $ emerge --info Portage 3.0.65 (python 3.12.4-final-0, default/linux/amd64/23.0/split-usr/desktop, gcc-14, glibc-2.39-r9, 6.9.6-gentoo x86_64) ================================================================= System uname: Linux-6.9.6-gentoo-x86_64-AMD_Ryzen_Threadripper_2950X_16-Core_Processor-with-glibc2.39 KiB Mem: 131801080 total, 122275572 free KiB Swap: 524284 total, 524284 free Timestamp of repository gentoo: Sat, 06 Jul 2024 10:45:00 +0000 Head commit of repository gentoo: 35d25f36ce62f15dd1b5d76d40f946692f53a032 Timestamp of repository guru: Fri, 05 Jul 2024 21:07:06 +0000 Head commit of repository guru: d13b66aff1354e1273deec0c874dc8ac8e0c0562 Head commit of repository mbaraa-overlay: 0b1bd236af5fbb935a813e7dd97dfc902234f80b Timestamp of repository ppfeufer-gentoo-overlay: Fri, 05 Jul 2024 21:07:07 +0000 Head commit of repository ppfeufer-gentoo-overlay: 1b0a73f9a571bb17933de7f596f9f6c81d615922 Head commit of repository raiagent: 0c1c4e88cf5d7b8721a25669206982567791ae3d Head commit of repository rion: eee7fbd6e0caf4c975e5edda428070581130b54f Timestamp of repository slonko: Fri, 05 Jul 2024 21:07:08 +0000 Head commit of repository slonko: a06c621257b063157aafefbca259cf1b5e30ff83 Head commit of repository stefantalpalaru: 197e0130b9db77dffa52090f9f34e52072336e39 Head commit of repository trinity-official: f111d970c25006a47ea06c7e6297d031db9ba272 sh bash 5.2_p26-r5 ld GNU ld (Gentoo 2.42 p3) 2.42.0 app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.2_p26-r5::gentoo dev-build/autoconf: 2.72-r1::gentoo dev-build/automake: 1.16.5-r2::gentoo dev-build/cmake: 3.29.3::gentoo dev-build/libtool: 2.4.7-r4::gentoo dev-build/make: 4.4.1-r1::gentoo dev-build/meson: 1.4.1::gentoo dev-java/java-config: 2.3.3-r1::gentoo dev-lang/perl: 5.40.0::gentoo dev-lang/python: 2.7.18_p16-r2::gentoo, 3.12.4_p1::gentoo, 3.13.0_beta2_p9::gentoo dev-lang/rust: 1.78.0::gentoo sys-apps/baselayout: 2.15::gentoo sys-apps/openrc: 0.54::gentoo sys-apps/sandbox: 2.39::gentoo sys-devel/binutils: 2.42-r1::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 18.1.7::gentoo sys-devel/gcc: 14.1.1_p20240622::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/llvm: 18.1.7::gentoo sys-kernel/linux-headers: 6.9::gentoo (virtual/os-headers) sys-libs/glibc: 2.39-r9::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.namerica.gentoo.org/gentoo-portage priority: -1000 volatile: True sync-rsync-extra-opts: sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: no sync-rsync-verify-jobs: 1 guru location: /var/db/repos/guru sync-type: git sync-uri: https://github.com/gentoo-mirror/guru.git masters: gentoo volatile: False localrepo location: /var/db/repos/localrepo masters: gentoo volatile: False mbaraa-overlay location: /var/db/repos/mbaraa-overlay sync-type: git sync-uri: https://github.com/mbaraa/mbaraa-overlay masters: gentoo volatile: False ppfeufer-gentoo-overlay location: /var/db/repos/ppfeufer sync-type: git sync-uri: https://github.com/gentoo-mirror/ppfeufer-gentoo-overlay masters: gentoo volatile: False raiagent location: /var/db/repos/raiagent sync-type: git sync-uri: https://github.com/leycec/raiagent masters: gentoo volatile: False rion location: /var/db/repos/rion sync-type: git sync-uri: https://github.com/rion-overlay/rion-overlay masters: gentoo volatile: False slonko location: /var/db/repos/slonko sync-type: git sync-uri: https://github.com/gentoo-mirror/slonko/ masters: gentoo volatile: False stefantalpalaru location: /var/db/repos/stefantalpalaru sync-type: git sync-uri: https://github.com/stefantalpalaru/gentoo-overlay masters: gentoo guru volatile: False trinity-official location: /var/db/repos/trinity-official sync-type: git sync-uri: https://mirror.git.trinitydesktop.org/gitea/TDE/tde-packaging-gentoo.git masters: gentoo volatile: False Installed sets: @system ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/trinity/14/env /usr/trinity/14/share/config /usr/trinity/14/shutdown" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/vmware-installer" CXXFLAGS="-O2 -pipe -march=native" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--autounmask=n -j33 --changed-deps-report=n" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://www.gtlib.gatech.edu/pub/gentoo http://gentoo-mirror.flux.utah.edu/ http://gentoo.osuosl.org/" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs" LEX="flex" LINGUAS="en_US" MAKEOPTS="-j32 -l33" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" SHELL="/bin/bash" USE="X a52 aac acl acpi alsa also amd64 apache2 arts bitmap-fonts bluetooth branding bzip2 cairo cdda cdr cet corefonts crypt cups dbus dri dts dvd dvdr elogind emacs encode exif flac foomaticdb gdbm gif gpm gtk gui iconv icu imap ipv6 jpeg kdeenablefinal kf6compat lcms libnotify libtirpc lm_sensors mad mng mp3 mp4 mpeg mtp multilib ncurses nls nptl nptlonly nsplugin nvidia odbc ogg opengl openmp oss pam pango pcre pdf php png policykit ppds pulseaudio qt qt5 quicktime readline sdl seccomp sound spell split-usr ssl ssse3 startup-notification svg symlink test-rust tiff tk truetype truetype-fonts type1-fonts type3 udev udisks unicode upower usb vdpau vorbis vulkan wxwidgets x264 xattr xcb xft xinerama xml xv xvid xvmc zlib zsh-completion" ABI_X86="64 32" ADA_TARGET="gcc_12" ALSA_CARDS="hda-intel usb-audio" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias cgi" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" L10N="en-US" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PERL_FEATURES="ithreads quadmath" PHP_TARGETS="php7-1 php7-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby31" SANE_BACKENDS="hp" VIDEO_CARDS="nvidia nv vesa fbdev vga" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Thanks, although still worried it's The Infamous Boost Thing. Can you: 1) cd into /var/tmp/portage/dev-qt/qtdeclarative-6.7.2/work/qtdeclarative-everywhere-src-6.7.2_build 2) run the command under "FAILED: src/qmldom/CMakeFiles/QmlDomPrivate.dir/qqmldomerrormessage.cpp.o" but append -save-temps 3) find qqmldomerrormessage*ii and upload it here?
In the ..qtdeclarative-everywhere-src-6.7.2_build dir I can't seem to find a file with "FAILED" # find . -maxdepth 1 -type f -exec grep -i FAILED {} \; doesn't return anything.
(In reply to O. William McClung from comment #12) > In the ..qtdeclarative-everywhere-src-6.7.2_build dir I can't seem to find a > file with "FAILED" > > # find . -maxdepth 1 -type f -exec grep -i FAILED {} \; > > doesn't return anything. Sorry. I had successfully compiled with CLANG. I unmerged and will now find that error.
(In reply to O. William McClung from comment #13) > (In reply to O. William McClung from comment #12) > > In the ..qtdeclarative-everywhere-src-6.7.2_build dir I can't seem to find a > > file with "FAILED" > > > > # find . -maxdepth 1 -type f -exec grep -i FAILED {} \; > > > > doesn't return anything. > > Sorry. I had successfully compiled with CLANG. I unmerged and will now find > that error. Sorry. I'm not used to reading gcc compilation files. I'm assuming build.ninja contains commands and .ninja_log contains the associated error messages, but I couldn't find the error and associated command. If at all useful, here they are: build.ninja: https://gist.github.com/cfgauss/6b39c8d2151e1ad836070a820c51fa37 .ninja_log: https://gist.github.com/cfgauss/9eca3beef7369f232bae2fa1815498ea
(In reply to O. William McClung from comment #12) Look in the build log (not the build directory) for a line starting with FAILED. Portage will tell you where to find the build log when the failure happens. Directly under that line in the build log will be the command that failed. If you can't figure it out, just wait for somebody else, or join us in IRC for additional help.
(In reply to Mike Gilbert from comment #15) > (In reply to O. William McClung from comment #12) > > Look in the build log (not the build directory) for a line starting with > FAILED. Portage will tell you where to find the build log when the failure > happens. > > Directly under that line in the build log will be the command that failed. > > If you can't figure it out, just wait for somebody else, or join us in IRC > for additional help. Thanks There are four failures: # grep FAILED build.log FAILED: src/qmldom/CMakeFiles/QmlDomPrivate.dir/qqmldomattachedinfo.cpp.o FAILED: src/qmldom/CMakeFiles/QmlDomPrivate.dir/qqmldomexternalitems.cpp.o FAILED: src/qmldom/CMakeFiles/QmlDomPrivate.dir/qqmldomtop.cpp.o FAILED: src/qmldom/CMakeFiles/QmlDomPrivate.dir/qqmldomcomments.cpp.o I recompiled the first with -save-temps. qqmldomattachedinfo.cpp.ii: https://gist.github.com/cfgauss/31e83d991a2a58d84d41e37b2c6b3e83
(In reply to O. William McClung from comment #16) > (In reply to Mike Gilbert from comment #15) > > (In reply to O. William McClung from comment #12) > > > > Look in the build log (not the build directory) for a line starting with > > FAILED. Portage will tell you where to find the build log when the failure > > happens. > > > > Directly under that line in the build log will be the command that failed. > I recompiled the first with -save-temps. > > qqmldomattachedinfo.cpp.ii: > https://gist.github.com/cfgauss/31e83d991a2a58d84d41e37b2c6b3e83 For completeness, here are the other three: qqmldomexternalitems.cpp.ii: https://gist.github.com/cfgauss/97ee37df2f6f18013454d4fd7096859d qqmldomtop.cpp.ii: https://gist.github.com/cfgauss/c7700fb72f299bae478f6ae11c508f4b qqmldomcomments.cpp.ii: https://gist.github.com/cfgauss/16e8035ea7d53d9a060ac302b648fadb
O. William McClung, can you give me the build.log corresponding to that?
(In reply to Sam James from comment #18) > O. William McClung, can you give me the build.log corresponding to that? Also, please tell me what -march=native expands to for you using app-misc/resolve-march-native.
The orginal build.log disappeared when I shut my box off. Here's data from a new compilation. # grep FAILED build.log FAILED: src/qmldom/CMakeFiles/QmlDomPrivate.dir/qqmldomelements.cpp.o FAILED: src/qmldom/CMakeFiles/QmlDomPrivate.dir/qqmldomtop.cpp.o qqmldomelements.cpp.ii https://gist.github.com/cfgauss/5f7d91403e04a0debccea1b56b13d907 qqmldomtop.cpp.ii https://gist.github.com/cfgauss/9cd471486c237e67b1baea01c5d52929 build.log https://gist.github.com/cfgauss/ee1a71aa3a56a96b51d3db4b32d0b7bd # resolve-march-native -march=znver1 --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=512
Please attach that build.log too.
(In reply to Sam James from comment #21) > Please attach that build.log too. Ah, nevermind, sorry.
Sadly, I can't reproduce using qqmldomelements.cpp.ii. I tried using the same command line as your log under FAILED but with -c ... replaced, as well as with your -march=native expansion appended. Ionen, could you try, as your compiler isn't going to be built with the same checking presumably?
(In reply to Sam James from comment #23) > Ionen, could you try, as your compiler isn't going to be built with the same > checking presumably? Can't reproduce either using qqmldomelements.cpp.ii, compiles fine doing the same w/ gcc-14.1.1_p20240622. Does increasingly sound like the znver1 cpu bug.
...if anyone affected knows of CXXFLAGS that (by luck) lets it compile with gcc, please let me know -- I could potentially do a temporary ebuild workaround when znver1 is detected, like add/replace/strip some flag and try to remove that in the future, maybe Qt 6.8 Albeit if it's that bug, I'd personally advise to get a new cpu.
My /etc/portage/package.env now has two packages that throw ICE errors with gcc but compile with Clang and my CPU's znver1 architecture: dev-qt/qtdeclarative net-libs/webkit-gtk
#MeToo
Created attachment 902933 [details] biuld log build log
media ~ # emerge -pqv '=dev-qt/qtdeclarative-6.7.2::gentoo' [ebuild NS ] dev-qt/qtdeclarative-6.7.2 [5.15.14] USE="jit network%* opengl%* sql%* ssl%* svg%* vulkan widgets -accessibility% -qmlls% (-debug%) (-gles2-only%) (-localstorage%) (-test%)" media ~ # emerge --info '=dev-qt/qtdeclarative-6.7.2::gentoo' Portage 3.0.66 (python 3.12.6-final-0, default/linux/amd64/23.0/split-usr/desktop, gcc-14, glibc-2.40-r3, 6.10.0-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-6.10.0-gentoo-x86_64-AMD_Ryzen_5_PRO_2400GE_w-_Radeon_Vega_Graphics-with-glibc2.40 KiB Mem: 15793008 total, 5350308 free KiB Swap: 16777212 total, 15419900 free Timestamp of repository gentoo: Fri, 13 Sep 2024 20:18:53 +0000 Timestamp of repository guru: Fri, 13 Sep 2024 10:36:16 +0000 Head commit of repository guru: f11dc05a0b65403cd904a680d5b8c7f3336eb8f1 sh bash 5.2_p32-r1 ld GNU ld (Gentoo 2.43 p2) 2.43.1 app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.2_p32-r1::gentoo dev-build/autoconf: 2.13-r8::gentoo, 2.71-r7::gentoo, 2.72-r1::gentoo dev-build/automake: 1.16.5-r2::gentoo, 1.17-r1::gentoo dev-build/cmake: 3.30.3::gentoo dev-build/libtool: 2.4.7-r4::gentoo dev-build/make: 4.4.1-r1::gentoo dev-build/meson: 1.5.1::gentoo dev-lang/perl: 5.40.0::gentoo dev-lang/python: 3.11.9-r1::gentoo, 3.12.6::gentoo, 3.13.0_rc2::gentoo dev-lang/rust: 1.77.1::gentoo dev-lang/rust-bin: 1.80.1::gentoo sys-apps/baselayout: 2.15::gentoo sys-apps/openrc: 0.55::gentoo sys-apps/sandbox: 2.39::gentoo sys-devel/binutils: 2.43-r1::gentoo sys-devel/binutils-config: 5.5.2::gentoo sys-devel/clang: 15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo, 18.1.8::gentoo sys-devel/gcc: 14.2.1_p20240817::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/lld: 15.0.7::gentoo, 16.0.6::gentoo, 17.0.6::gentoo, 18.1.8::gentoo sys-devel/llvm: 15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6-r2::gentoo, 18.1.8-r4::gentoo sys-kernel/linux-headers: 6.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.40-r3::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 volatile: False sync-rsync-verify-max-age: 24 sync-rsync-extra-opts: sync-rsync-verify-jobs: 1 sync-rsync-verify-metamanifest: yes guru location: /var/db/repos/guru sync-type: git sync-uri: https://github.com/gentoo-mirror/guru.git masters: gentoo volatile: False ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--keep-going=y --backtrack=100 --autounmask-backtrack=y" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" FCFLAGS="-march=native -O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live candy clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sfperms unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-march=native -O2 -pipe" GENTOO_MIRRORS="http://gentoo.gossamerhost.com http://gentoo-mirror.flux.utah.edu/ http://gentoo.mirrors.tera-byte.com/ http://gentoo.osuosl.org/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs" LEX="flex" LINGUAS="en en_US" MAKEOPTS="-j4" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" PYTHONPATH="/usr/local/lib/python3.11/site-packages/" SHELL="/bin/bash" USE="X a52 aac acl acpi alsa amd64 archive avif bash-completion bluetooth branding btpclient bzip2 cairo caps cdp cdr cet crypt cups curl dav1d dbus dec265 dri dts dvb dvd dvdr edp elfutils elogind enc265 encode exif extra extras faad fdp ffmpeg flac flashrom fontconfig gdbm gdk-pixbuf gif gnutls gstreamer gtk gtk3 gui harfbuzz hdhomerun heif http http3 hwloc iconv icu iptv ipv6 jpeg kf6compat ladspa lcms libaom libdrm libmount libnotify libssh2 libtirpc libvisual libxml2 lm-sensors lv2 lzma mad mdnsresponder-compat minizip mng mp3 mp4 mpeg mplayer multilib na-dd na-dtv na-tvmedia ncat ncurses netlink network nfs nfsdcld nfsidmap nfsv4 nfsv41 nls nping nvme obex ogg opencl opengl openh264 openmp openssl opus osmesa pam pango pcre pdf pipewire pipewire-alsa pixeltool png policykit ppds pulseaudio python qml qt5 qt6 quic rav1e readline rpc rubberband rustfmt satip sdl seccomp sndio snmp sound spell spirv split-usr sqlite ssh ssl startup-notification suid svg svt-av1 system-info taglib test-rust theora tiff tk tools tpm truetype tv-check tv-combiner tv-pick-cgi twolame udev udisks uefi unicode upower uriparser usb utils uuid vaapi vdpau vorbis vpx vulkan wavpack webkit webp wxwidgets x264 x265 xattr xcb xcrypt xft xml xmltv xorg xpm xtables xv xvfb xvid zeroconf zimg zink zlib zstd" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu radeon radeonsi swrast" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
media ~ # /usr/bin/resolve-march-native -march=znver1 --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=512 So, yes, I also have znver1...
Unfortunately still nothing I can do about a cpu bug, I'd recommend to try clang as well for this package -- has a tendency to not trigger it.
(In reply to Ionen Wolkens from comment #31) > Unfortunately still nothing I can do about a cpu bug, I'd recommend to try > clang as well for this package -- has a tendency to not trigger it. (on a side-note, if setup a package.env entry, specify the slot aka qtdeclarative:6 given mixing gcc and clang works poorly with Qt5 and is fine with Qt6)
same here
Same issue -march=znver1.
As a quick workaround, you may use the ebuild compile to 'resume' compiling from where it failed. Do that repeatedly until you succeed. while [[ j != k ]]; do ebuild /usr/portage/dev-qt/qtdeclarative/qtdeclarative-6.7.2.ebuild compile && ebuild /usr/portage/dev-qt/qtdeclarative/qtdeclarative-6.7.2.ebuild install && ebuild /usr/portage/dev-qt/qtdeclarative/qtdeclarative-6.7.2.ebuild qmerge && break; done I'm not completely sure if this works, but -- while [[ j != k ]]; do ebuild /usr/portage/dev-qt/qtdeclarative/qtdeclarative-6.7.2.ebuild compile && break; done Definitely works, but you have to manually do the install phase. It happens that there are multiple sources where this bug hits, so doing this in loops in needed.
```` dilbert ~ # while [[ j != k ]]; do ebuild /usr/portage/dev-qt/qtdeclarative/qtdeclarative-6.7.2.ebuild compile && ebuild /usr/portage/dev-qt/qtdeclarative/qtdeclarative-6.7.2.ebuild install && ebuild /usr/portage/dev-qt/qtdeclarative/qtdeclarative-6.7.2.ebuild qmerge && break; done Appending /usr/portage to PORTDIR_OVERLAY... !!! Invalid PORTDIR_OVERLAY (not a dir): '/usr/portage' ebuild: /usr/portage/dev-qt/qtdeclarative/qtdeclarative-6.7.2.ebuild: does not exist Appending /usr/portage to PORTDIR_OVERLAY... !!! Invalid PORTDIR_OVERLAY (not a dir): '/usr/portage' ebuild: /usr/portage/dev-qt/qtdeclarative/qtdeclarative-6.7.2.ebuild: does not exist [repeats forever] ```` I thought /usr/portage went away years ago?
This 'works': ```` while [[ j != k ]]; do ebuild /var/db/repos/gentoo/dev-qt/qtdeclarative/qtdeclarative-6.7.2.ebuild compile && break; done ```` But it just keeps hitting the same bug over and over...
Much to my surprise, the while loop eventually completed a build of 6.7.2. Apologies to dE for doubting. I am now going to try on 6.7.3 to see if that works as well.
I would still recommend to use clang as a workaround instead, as far as I'm aware it should work every time and can be set and forgotten through package.env (as noted before, set it for dev-qt/qtdclarative:6 so it doesn't do that for :5 given qt5 takes mixing compilers badly, qt6 is fine) Albeit may want to try without now and then for new versions of gcc and/or qtdeclarative, stars may align for the code to no longer trigger the cpu bug eventually much like haven't heard of it on the boost package lately.. not to say another package won't start failing instead given the cpu bug will not have went away.
(In reply to Ionen Wolkens from comment #39) > I would still recommend to use clang as a workaround instead, Whenever I use a workaround, I forget about the original issue. By beating my head against the wall on it, I am reminded to keep bugs.gentoo.org up to date on the issue. I just tried the "while" workaround on 6.7.3, and it worked. Thanks dE for the workaround. I am now confident it really is a znver1 bug since it is intermittent enough that repeated builds eventually succeed. This is on an old HP minipc thing that I use as a media center. If it shows more issues it will get an early retirement.
(In reply to Gary E. Miller from comment #36) > ```` > dilbert ~ # > while [[ j != k ]]; do ebuild > /usr/portage/dev-qt/qtdeclarative/qtdeclarative-6.7.2.ebuild compile && > ebuild /usr/portage/dev-qt/qtdeclarative/qtdeclarative-6.7.2.ebuild install > && ebuild /usr/portage/dev-qt/qtdeclarative/qtdeclarative-6.7.2.ebuild > qmerge && break; done > Appending /usr/portage to PORTDIR_OVERLAY... > !!! Invalid PORTDIR_OVERLAY (not a dir): '/usr/portage' > ebuild: /usr/portage/dev-qt/qtdeclarative/qtdeclarative-6.7.2.ebuild: does > not exist > Appending /usr/portage to PORTDIR_OVERLAY... > !!! Invalid PORTDIR_OVERLAY (not a dir): '/usr/portage' > ebuild: /usr/portage/dev-qt/qtdeclarative/qtdeclarative-6.7.2.ebuild: does > not exist > > [repeats forever] > ```` > > I thought /usr/portage went away years ago? Of course tweak as per your system. Mine from is from 2009.