Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 905818 - sys-devel/gcc: huge memory usage when building www-client/chromium-113.0.5672.63 (evaluate_prg_hwy.cc) on arm64
Summary: sys-devel/gcc: huge memory usage when building www-client/chromium-113.0.5672...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-06 12:17 UTC by Leonid Kopylov
Modified: 2023-05-28 16:02 UTC (History)
1 user (show)

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


Attachments
build.log.xz (build.log.xz,382.09 KB, application/xz)
2023-05-06 12:17 UTC, Leonid Kopylov
Details
build.log.xz (build.log.xz,398.91 KB, application/xz)
2023-05-09 14:24 UTC, Leonid Kopylov
Details
evaluate_prg_hwy.ii.xz (evaluate_prg_hwy.ii.xz,433.55 KB, application/octet-stream)
2023-05-09 20:13 UTC, Leonid Kopylov
Details
evaluate_prg_hwy.ii.xz (evaluate_prg_hwy.ii.xz,483.06 KB, application/octet-stream)
2023-05-09 20:26 UTC, Leonid Kopylov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leonid Kopylov 2023-05-06 12:17:40 UTC
# emerge -pqv '=www-client/chromium-113.0.5672.63::gentoo'
[ebuild  N    ] www-client/chromium-113.0.5672.63  USE="X cups gtk4 hangouts kerberos official (pic) proprietary-codecs pulseaudio qt5 screencast suid system-harfbuzz system-icu system-png wayland (-component-build) -custom-cflags -debug (-headless) -libcxx -lto -pax-kernel (-pgo) (-selinux) (-system-av1) (-system-ffmpeg) -vaapi (-widevine)" CPU_FLAGS_ARM="(-neon)" L10N="he ru -af -am -ar -bg -bn -ca -cs -da -de -el -en-GB -es -es-419 -et -fa -fi -fil -fr -gu -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt-BR -pt-PT -ro -sk -sl -sr -sv -sw -ta -te -th -tr -uk -ur -vi -zh-CN -zh-TW"

# emerge --info '=www-client/chromium-113.0.5672.63::gentoo'
Portage 3.0.47 (python 3.11.3-final-0, default/linux/arm64/17.0/desktop/gnome/systemd/merged-usr, gcc-13, glibc-2.37-r2, 6.3.1-gentoo-arm64 aarch64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.3.1-gentoo-arm64-aarch64-with-glibc2.37
KiB Mem:    32817680 total,  23360876 free
KiB Swap:    8388604 total,   1417352 free
Timestamp of repository gentoo: Sat, 06 May 2023 06:30:01 +0000
Head commit of repository gentoo: 9c8714d2a78efce984e1a0c1c690dc5af5457606
sh bash 5.2_p15-r2
ld GNU ld (Gentoo 2.40 p4) 2.40.0
ccache version 4.8 [disabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r2::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.1-r1::gentoo
dev-lang/python:           3.10.11::gentoo, 3.11.3::gentoo, 3.12.0_alpha7::gentoo
dev-lang/rust:             1.69.0-r1::gentoo
dev-util/ccache:           4.8::gentoo
dev-util/cmake:            3.26.3::gentoo
dev-util/meson:            1.1.0::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/sandbox:          2.30-r1::gentoo
sys-apps/systemd:          253.4::gentoo
sys-devel/autoconf:        2.13-r8::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r4::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           14.0.6-r1::gentoo, 15.0.7-r1::gentoo, 16.0.3::gentoo
sys-devel/gcc:             12.2.1_p20230428-r1::gentoo, 13.1.0-r1::gentoo
sys-devel/gcc-config:      2.10::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/llvm:            14.0.6-r2::gentoo, 15.0.7::gentoo, 16.0.3::gentoo
sys-devel/make:            4.4.1::gentoo
sys-kernel/linux-headers:  6.3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r2::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://server.kopylovs.net/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24

HomeAssistantRepository
    location: /var/lib/layman/HomeAssistantRepository
    sync-type: laymansync
    sync-uri: https://git.edevau.net/onkelbeh/HomeAssistantRepository.git
    masters: gentoo
    priority: 50
    volatile: True

guru
    location: /var/lib/layman/guru
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/repo/proj/guru.git
    masters: gentoo
    priority: 50
    volatile: True

kde
    location: /var/lib/layman/kde
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/proj/kde.git
    masters: gentoo
    priority: 50
    volatile: True

ACCEPT_KEYWORDS="arm64 ~arm64"
ACCEPT_LICENSE="* -@EULA android AnyDesk-TOS geekbench Microsoft-vscode TeamViewer Vivaldi"
CBUILD="aarch64-unknown-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer"
CHOST="aarch64-unknown-linux-gnu"
CONFIG_PROTECT=""/var/lib/mythtv" /etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/apache2-php8.0/ext-active/ /etc/php/apache2-php8.2/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cgi-php8.0/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/php/cli-php8.0/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/fpm-php7.4/ext-active/ /etc/php/fpm-php8.0/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php7.4/ext-active/ /etc/php/phpdbg-php8.0/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer"
DISTDIR="/var/cache/distfiles"
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 -fomit-frame-pointer"
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 multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync warn-on-large-env xattr"
FFLAGS="-O2 -pipe -fomit-frame-pointer"
GENTOO_MIRRORS="https://mirror.isoc.org.il/pub/gentoo/"
LANG="en_US.utf8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j6"
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"
SHELL="/bin/bash"
USE="X a52 aac aalib accessibility acl acpi activities alsa ao appindicator archive arm64 aspell audit bash-completion berkdb bidi bluetooth bluray boost branding brotli btrfs bzip2 cairo cdda cddb cdio cdr cgi cli colord contrib cron crypt cryptsetup cups curl dbi dbus designer device-mapper djvu doc dri dts dv dvb dvdr eds emacs enchant encode evdev evo examples executable exif expat experimental extra extras fam fastcgi fbcon ffmpeg fftw flac fluidsynth fontconfig fontforge fortran freetds ftp fuse gamepad games gcrypt gd gdbm gdk-pixbuf geoip geolocation gif git glade glib glusterfs gme gmp gnome gnome-keyring gnome-online-accounts gnuplot gnutls go gpg gphoto2 gpm graphite graphviz gsm gssapi gstreamer gtk gtk-doc gtk3 gui guile harfbuzz hdf5 heif highlight hscolour html http http2 ibus iconv icu idn imagemagick imap imlib introspection iodbc ipv6 jack java javascript jbig jemalloc joystick jpeg jpeg2k jpegxl json kde kerberos ladspa lame latex lcms ldap libass libcaca libevent libglvnd libnotify libsamplerate libsecret libtirpc libxml2 lmdb lua lv2 lvm lz4 lzma lzo mad magic maildir man mbedtls mbox memcached midi mmap mng modplug mp3 mp4 mpeg mplayer mtp multimedia musepack mysql nas nautilus ncurses netlink nettle network networkmanager nfs nls nptl nss ntlm odbc offensive ogg openal openexr opengl openmp openssl opus pam pango pcap pcre pdf perl phonon pkcs11 plasma plugins png policykit portaudio postgres postscript ppds pulseaudio python qdbm qml qrcode qt5 raw rdma readline redis rss samba sasl screencast sctp sdl seccomp semantic-desktop sftp share skey smp smtp snappy sndfile sndio snmp sound source sox speech speex spell sql sqlite ssh ssl startup-notification svg symlink syslog systemd taglib tbb tcl tcpd telemetry telepathy test-rust theora threads tiff tk tools tracker tremor truetype twolame udev udisks unicode unwind upnp upower usb utils uuid v4l vala vcd vim-syntax vnc vorbis vpx wavpack wayland webengine webkit webp websockets widgets wmf wxwidgets x264 x265 xattr xcb xface xft xinerama xml xmp xpm xscreensaver xv xvid yaml zeroconf zip zlib zsh-completion zstd" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words stage" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp thumb vfp vfpv3 vfpv4 vfp-d32 aes sha1 sha2 crc32 v4 v5 v6 v7 v8 thumb2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev joystick libinput" KERNEL="linux" L10N="en en-US he ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11 python3_10" RUBY_TARGETS="ruby30 ruby31 ruby32" USERLAND="GNU" VIDEO_CARDS="virgl" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LD, LFLAGS, LIBTOOL, LINGUAS, 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
Comment 1 Leonid Kopylov 2023-05-06 12:17:58 UTC
Created attachment 861217 [details]
build.log.xz
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-06 12:23:22 UTC
{standard input}: Assembler messages:
{standard input}:4191: Warning: end of file not at end of a line; newline inserted
{standard input}:4231: Error: unknown mnemonic `as' -- `as'
g++-12: fatal error: Killed signal terminated program cc1plus
compilation terminated.

Can you verify you didn't OOM?
Comment 3 Leonid Kopylov 2023-05-06 12:24:48 UTC
(In reply to Sam James from comment #2)
> {standard input}: Assembler messages:
> {standard input}:4191: Warning: end of file not at end of a line; newline
> inserted
> {standard input}:4231: Error: unknown mnemonic `as' -- `as'
> g++-12: fatal error: Killed signal terminated program cc1plus
> compilation terminated.
> 
> Can you verify you didn't OOM?

22 GB of ram + 8 GB of swap - shouldn't it be enough?
Comment 4 Leonid Kopylov 2023-05-06 12:26:31 UTC
i can try add more swap, but 30GB of free ram should be more than enough for this, no?
Comment 5 Leonid Kopylov 2023-05-06 14:17:14 UTC
(In reply to Sam James from comment #2)
> {standard input}: Assembler messages:
> {standard input}:4191: Warning: end of file not at end of a line; newline
> inserted
> {standard input}:4231: Error: unknown mnemonic `as' -- `as'
> g++-12: fatal error: Killed signal terminated program cc1plus
> compilation terminated.
> 
> Can you verify you didn't OOM?

 * MemTotal:       32817680 kB
 * SwapTotal:      29360120 kB

i increases swap to 30 GB - it didn't helped - so it can't be OOM

# free -m
               total        used        free      shared  buff/cache   available
Mem:           32048        4233       23159        4182        4655       23266
Swap:          28671        6931       21740
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-09 13:03:24 UTC
Did dmesg include any OOM messages?
Comment 7 Leonid Kopylov 2023-05-09 14:23:11 UTC
(In reply to Sam James from comment #6)
> Did dmesg include any OOM messages?

yes, it's OOO, but at moment of failure:

# free -m
               total        used        free      shared  buff/cache   available
Mem:           32048       26892         526        4214        4629         617
Swap:          44031       43164         867



32GB RAM + 40G of swap - and it's not enough - something very wrong with it.

after failure:
# free -m
               total        used        free      shared  buff/cache   available
Mem:           32048        4245       23098        4196        4705       23213
Swap:          44031        7279       36752


so RAM can't be issue. something cause to "eat" all memory - and each time - at exactly same step
Comment 8 Leonid Kopylov 2023-05-09 14:24:00 UTC
Created attachment 861396 [details]
build.log.xz
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-09 14:29:47 UTC
Could be a compiler bug. We had something similar with qtwebengine but that was gcc-10 only. I'll give you some steps in a minute.
Comment 10 Leonid Kopylov 2023-05-09 14:31:48 UTC
(In reply to Sam James from comment #9)
> Could be a compiler bug. We had something similar with qtwebengine but that
> was gcc-10 only. I'll give you some steps in a minute.

for now chromium set to gcc-12
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-09 15:53:08 UTC
Could you try running:

/usr/bin/g++-12 -MMD -MF obj/third_party/distributed_point_functions/distributed_point_functions/evaluate_prg_hwy.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_56 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56 -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0 -DHAVE_PTHREAD -I../.. -Igen -I../../third_party/distributed_point_functions -I../../third_party/distributed_point_functions/code -Igen/third_party/distributed_point_functions -Igen/shim_headers/zlib_shim -I../../third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -Igen/shim_headers/icui18n_shim -Igen/shim_headers/icuuc_shim -I../../third_party/protobuf/src -Igen/protoc_out -I../../third_party/abseil-cpp -I../../third_party/highway/src -I../../third_party/boringssl/src/include -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pipe -pthread -fno-omit-frame-pointer -fvisibility=hidden -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -Wno-comments -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi/include -std=gnu++2a -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -Wno-narrowing -Wno-class-memaccess -O2 -pipe -fno-tree-vectorize -c ../../third_party/distributed_point_functions/code/dpf/internal/evaluate_prg_hwy.cc -o obj/third_party/distributed_point_functions/distributed_point_functions/evaluate_prg_hwy.o

in '/var/tmp/portage/www-client/chromium-113.0.5672.63/work/chromium-113.0.5672.63/build/release (I think)?

If that OOMs, please let me know, and we can go from there.
Comment 12 Leonid Kopylov 2023-05-09 19:31:24 UTC
(In reply to Sam James from comment #11)
> Could you try running:
> 
> /usr/bin/g++-12 -MMD -MF
> obj/third_party/distributed_point_functions/distributed_point_functions/
> evaluate_prg_hwy.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1
> -DOFFICIAL_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
> -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -DNDEBUG -DNVALGRIND
> -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_56
> -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56 -DGOOGLE_PROTOBUF_NO_RTTI
> -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
> -DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0 -DHAVE_PTHREAD -I../..
> -Igen -I../../third_party/distributed_point_functions
> -I../../third_party/distributed_point_functions/code
> -Igen/third_party/distributed_point_functions -Igen/shim_headers/zlib_shim
> -I../../third_party/perfetto/include -Igen/third_party/perfetto/build_config
> -Igen/third_party/perfetto -Igen/shim_headers/icui18n_shim
> -Igen/shim_headers/icuuc_shim -I../../third_party/protobuf/src
> -Igen/protoc_out -I../../third_party/abseil-cpp
> -I../../third_party/highway/src -I../../third_party/boringssl/src/include
> -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector
> -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pipe -pthread
> -fno-omit-frame-pointer -fvisibility=hidden -Wno-unused-local-typedefs
> -Wno-maybe-uninitialized -Wno-deprecated-declarations -Wno-comments
> -Wno-packed-not-aligned -Wno-missing-field-initializers
> -Wno-unused-parameter -Wno-psabi -I/usr/include/glib-2.0
> -I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi/include -std=gnu++2a
> -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -Wno-narrowing
> -Wno-class-memaccess -O2 -pipe -fno-tree-vectorize -c
> ../../third_party/distributed_point_functions/code/dpf/internal/
> evaluate_prg_hwy.cc -o
> obj/third_party/distributed_point_functions/distributed_point_functions/
> evaluate_prg_hwy.o
> 
> in
> '/var/tmp/portage/www-client/chromium-113.0.5672.63/work/chromium-113.0.5672.
> 63/build/release (I think)?
> 
> If that OOMs, please let me know, and we can go from there.

in this directory:
/var/tmp/portage/www-client/chromium-113.0.5672.63/work/chromium-113.0.5672.63/build

i can't find "release" directory
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-09 20:01:58 UTC
sorry, /var/tmp/portage/www-client/chromium-113.0.5672.63/work/chromium-113.0.5672/out/Release.
Comment 14 Leonid Kopylov 2023-05-09 20:05:33 UTC
(In reply to Sam James from comment #13)
> sorry,
> /var/tmp/portage/www-client/chromium-113.0.5672.63/work/chromium-113.0.5672/
> out/Release.

{standard input}: Assembler messages:
{standard input}:4191: Warning: end of file not at end of a line; newline inserted
{standard input}:4231: Error: unknown mnemonic `as' -- `as'
g++-12: fatal error: Killed signal terminated program cc1plus
compilation terminated
Comment 15 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-09 20:08:01 UTC
Can you run the same command but with -save-temps at the end (it'll still fail), and then look for evaluate_prg_hwy.ii and upload it?
Comment 16 Leonid Kopylov 2023-05-09 20:13:22 UTC
Created attachment 861407 [details]
evaluate_prg_hwy.ii.xz
Comment 17 Leonid Kopylov 2023-05-09 20:14:07 UTC
/var/tmp/portage/www-client/chromium-113.0.5672.63/work/chromium-113.0.5672.63/out/Release/obj/third_party/distributed_point_functions/distributed_point_functions/evaluate_prg_hwy.ii


location of file
Comment 18 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-09 20:18:36 UTC
So far this is using 12GB to build (which definitely looks like a memory-hog bug).

Can you try gcc-13 and do the same thing for me, giving me the .ii? I'd rather report it upstream against 13 if possible.
Comment 19 Leonid Kopylov 2023-05-09 20:23:03 UTC
(In reply to Sam James from comment #18)
> So far this is using 12GB to build (which definitely looks like a memory-hog
> bug).
> 
> Can you try gcc-13 and do the same thing for me, giving me the .ii? I'd
> rather report it upstream against 13 if possible.

you mean /usr/bin/g++-13 at the beginning?
Comment 20 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-09 20:23:21 UTC
(In reply to Leonid Kopylov from comment #19)
> (In reply to Sam James from comment #18)
> > So far this is using 12GB to build (which definitely looks like a memory-hog
> > bug).
> > 
> > Can you try gcc-13 and do the same thing for me, giving me the .ii? I'd
> > rather report it upstream against 13 if possible.
> 
> you mean /usr/bin/g++-13 at the beginning?

yes please
Comment 21 Leonid Kopylov 2023-05-09 20:26:13 UTC
Created attachment 861408 [details]
evaluate_prg_hwy.ii.xz
Comment 22 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-09 20:33:41 UTC
thank you, I've reported this upstream to gcc at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109794. I'll let you know if I need anything more too.
Comment 23 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-21 01:00:45 UTC
There's a patch at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109505#c18 (https://gcc.gnu.org/pipermail/gcc-patches/2023-May/619070.html) but I don't want to add it until it's reviewed because it affects all targets.
Comment 24 Larry the Git Cow gentoo-dev 2023-05-27 02:09:29 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbf440b4c0367889ea2a682e0627d77cc4df6568

commit dbf440b4c0367889ea2a682e0627d77cc4df6568
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-05-27 02:09:12 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-27 02:09:12 +0000

    sys-devel/gcc: keyword 12.3.1_p20230526
    
    Closes: https://bugs.gentoo.org/905818
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/gcc/gcc-12.3.1_p20230526.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Comment 25 Larry the Git Cow gentoo-dev 2023-05-28 16:02:07 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8cba73661e286989eae65f5b1c26dbc2eb899568

commit 8cba73661e286989eae65f5b1c26dbc2eb899568
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-05-28 16:01:43 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-28 16:01:43 +0000

    sys-devel/gcc: keyword 13.1.1_p20230527
    
    Closes: https://bugs.gentoo.org/869536
    Closes: https://bugs.gentoo.org/905818
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/gcc/gcc-13.1.1_p20230527.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)