Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 935404 - dev-qt/qtdeclarative-6.7.2 src/qmldom/qqmldomitem_p.h:1186:5: internal compiler error: in hash_table_higher_prime_index, at hash-table.cc:99
Summary: dev-qt/qtdeclarative-6.7.2 src/qmldom/qqmldomitem_p.h:1186:5: internal compil...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-03 13:37 UTC by younky
Modified: 2024-07-14 22:43 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
the build log (build.log.gz,55.96 KB, application/gzip)
2024-07-03 13:37 UTC, younky
Details
emerge info (emerge_info.txt,6.45 KB, text/plain)
2024-07-03 13:37 UTC, younky
Details
environment info (environment,129.62 KB, text/plain)
2024-07-03 13:37 UTC, younky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description younky 2024-07-03 13:37:09 UTC
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.
Comment 1 younky 2024-07-03 13:37:34 UTC
Created attachment 896854 [details]
emerge info
Comment 2 younky 2024-07-03 13:37:50 UTC
Created attachment 896855 [details]
environment info
Comment 3 Mike Gilbert gentoo-dev 2024-07-03 14:28:40 UTC
Please include the package category in the bug summary.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-04 01:33:07 UTC
This is likely bad RAM or the classic znver1 issue (bug 724314) given where the ICE is and nobody else can hit it.
Comment 5 Ionen Wolkens gentoo-dev 2024-07-04 02:08:03 UTC
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.
Comment 6 younky 2024-07-04 04:48:04 UTC
(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.
Comment 7 younky 2024-07-04 10:30:38 UTC
OK, Using CLANG solved the problem, so it should be an issue of gcc, right?
Comment 8 Ionen Wolkens gentoo-dev 2024-07-07 01:08:50 UTC
(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)
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-07 02:12:04 UTC
(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.
Comment 10 O. William McClung 2024-07-07 02:27:18 UTC
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
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-07 04:48:22 UTC
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?
Comment 12 O. William McClung 2024-07-07 15:21:23 UTC
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.
Comment 13 O. William McClung 2024-07-07 15:39:40 UTC
(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.
Comment 14 O. William McClung 2024-07-07 16:18:19 UTC
(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
Comment 15 Mike Gilbert gentoo-dev 2024-07-07 16:36:05 UTC
(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.
Comment 16 O. William McClung 2024-07-07 17:25:59 UTC
(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
Comment 17 O. William McClung 2024-07-07 19:38:45 UTC
(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
Comment 18 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-08 03:16:36 UTC
O. William McClung, can you give me the build.log corresponding to that?
Comment 19 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-08 03:17:53 UTC
(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.
Comment 20 O. William McClung 2024-07-08 13:38:55 UTC
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
Comment 21 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-08 13:42:17 UTC
Please attach that build.log too.
Comment 22 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-08 13:42:25 UTC
(In reply to Sam James from comment #21)
> Please attach that build.log too.

Ah, nevermind, sorry.
Comment 23 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-08 13:46:03 UTC
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?
Comment 24 Ionen Wolkens gentoo-dev 2024-07-08 18:30:07 UTC
(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.
Comment 25 Ionen Wolkens gentoo-dev 2024-07-08 18:45:59 UTC
...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.
Comment 26 O. William McClung 2024-07-14 22:43:38 UTC
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