Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 828439 - sys-devel/gcc-11.2.1_p20211127[go] - mv: cannot stat 'cpugen.o': No such file or directory
Summary: sys-devel/gcc-11.2.1_p20211127[go] - mv: cannot stat 'cpugen.o': No such file...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Toolchain Maintainers
URL: https://gcc.gnu.org/bugzilla/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-11 833357
  Show dependency tree
 
Reported: 2021-12-06 00:02 UTC by Dennis Schridde
Modified: 2022-04-07 19:21 UTC (History)
4 users (show)

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


Attachments
build.log.xz (build.log.xz,248.27 KB, application/x-xz)
2021-12-06 00:03 UTC, Dennis Schridde
Details
gcc-11.2.1_p20220115-build.log.xz (gcc-11.2.1_p20220115-build.log.xz,339.34 KB, application/x-xz)
2022-03-27 11:13 UTC, pva
Details
gcc-11.2.1_p20220115-build.log.xz (gcc-11.2.1_p20220115-build.log.xz,338.94 KB, application/x-xz)
2022-04-07 18:52 UTC, pva
Details
emerge --info (emerge--info.txt,7.88 KB, text/plain)
2022-04-07 18:52 UTC, pva
Details
qlist output (qlist.txt,59.89 KB, text/plain)
2022-04-07 18:52 UTC, pva
Details
qlop output (qlop.txt.xz,220.05 KB, application/x-xz)
2022-04-07 18:53 UTC, pva
Details
config.log (config.log.xz,6.93 KB, application/x-xz)
2022-04-07 19:21 UTC, pva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2021-12-06 00:02:31 UTC
When building sys-devel/gcc-11.2.1_p20211127:
/bin/bash ../libtool  --tag=CXX   --mode=compile /var/tmp/portage/sys-devel/gcc-11.2.1_p20211127/work/build/./gcc/xgcc -shared-libgcc -B/var/tmp/portage/sys-devel/gcc-11.2.1_p20211127/work/build/./gcc -nostdinc++ -L/var/tmp/portage/sys-devel/gcc-11.2.1_p20211127/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/src -L/var/tmp/portage/sys-devel/gcc-11.2.1_p20211127>
libtool: compile: mv -f "cpugen.o" "internal/.libs/cpu.o"
mv: cannot stat 'cpugen.o': No such file or directory
make[4]: *** [Makefile:3001: internal/cpu.lo] Error 1
make[4]: Leaving directory '/var/tmp/portage/sys-devel/gcc-11.2.1_p20211127/work/build/x86_64-pc-linux-gnu/libgo'
make[3]: *** [Makefile:2327: all-recursive] Error 1
libtool: compile:  /var/tmp/portage/sys-devel/gcc-11.2.1_p20211127/work/build/./gcc/xgcc -shared-libgcc -B/var/tmp/portage/sys-devel/gcc-11.2.1_p20211127/work/build/./gcc -nostdinc++ -L/var/tmp/portage/sys-devel/gcc-11.2.1_p20211127/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/src -L/var/tmp/portage/sys-devel/gcc-11.2.1_p20211127/work/build/x86_64-pc-linux-gn>
make[3]: Leaving directory '/var/tmp/portage/sys-devel/gcc-11.2.1_p20211127/work/build/x86_64-pc-linux-gnu/libgo'
make[2]: *** [Makefile:1198: all] Error 2
make[2]: Leaving directory '/var/tmp/portage/sys-devel/gcc-11.2.1_p20211127/work/build/x86_64-pc-linux-gnu/libgo'
make[1]: *** [Makefile:21736: all-target-libgo] Error 2
make[1]: *** Waiting for unfinished jobs....


Reproducible: Always




Portage 3.0.28 (python 3.9.9-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-11.2.0, glibc-2.34-r3, 5.15.6 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.15.6-x86_64-AMD_Ryzen_5_2400G_with_Radeon_Vega_Graphics-with-glibc2.34
KiB Mem:    14185384 total,    730012 free
KiB Swap:    7092220 total,   6620488 free
Timestamp of repository gentoo: Sun, 05 Dec 2021 10:15:01 +0000
Head commit of repository gentoo: b53c7b708075db85613d6fd6e1d7d1e09a019c0f
Timestamp of repository haskell: Sat, 04 Dec 2021 17:36:35 +0000
Head commit of repository haskell: 0c1f8a6225cde46d0ab7d1cad51c03c87e438316

Head commit of repository local: 667b505eb3a00822b9f17fa9ba2aaf83961db289

sh bash 5.1_p12
ld GNU ld (Gentoo 2.37_p1 p1) 2.37
ccache version 4.5.1 [disabled]
app-shells/bash:          5.1_p12::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.34.0-r5::gentoo
dev-lang/python:          2.7.18_p13::gentoo, 3.9.9::gentoo, 3.10.0_p1::gentoo
dev-lang/rust:            1.56.1::gentoo
dev-util/ccache:          4.5.1::gentoo
dev-util/cmake:           3.22.0::gentoo
sys-apps/baselayout:      2.8::gentoo
sys-apps/sandbox:         2.29::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.5::gentoo
sys-devel/binutils:       2.37_p1-r1::gentoo
sys-devel/gcc:            11.2.0::gentoo
sys-devel/gcc-config:     2.5-r1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.15-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.34-r3::gentoo
Repositories:

gentoo
    location: /var/cache/portage/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: --new-compress

haskell
    location: /var/db/repos/haskell
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/haskell.git
    masters: gentoo

crossdev
    location: /var/cache/portage/crossdev
    masters: gentoo
    priority: 100

local
    location: /var/cache/portage/local
    sync-type: git
    sync-uri: https://github.com/devurandom/gentoo-overlay.git
    masters: gentoo
    priority: 1000

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=znver1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.8/conf"
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"
CXXFLAGS="-pipe -O2 -march=znver1"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildsyspkg cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles ipc-sandbox merge-sync mount-sandbox multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.fau.de/gentoo http://ftp.halifax.rwth-aachen.de/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6 -l4"
PKGDIR="/var/cache/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--new-compress"
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="/tmp"
USE="7z 7zip X a52 aac aacplus aacs acl acpi activities aio alsa amd64 amr appindicator appstream aptx archive audit avahi avif ayatana bdplus blake2 blas bluetooth bluray bpf branding brotli bs2b btrfs bzip2 cairo caps cdda cddb cdio cdr celt cet chromaprint cjk cli clipboard color-management colord conntrack crypt cups curl d3d9 dav1d dbus declarative device-mapper dirac djvu dmabuf dri drm dts dvb dvd dvdr ed25519 editorconfig egl elf emboss emoji encode epub evdev exif faudio fax fdk ffmpeg fftw filecaps firefox firewalld fish-completion fits flac fontconfig fontforge fortran fribidi gamepad gbm gdal gdbm geoclue geolocation gif git gles2 gles3 gmp gnome-online-accounts gnupg google googledrive gpg gps graphicsmagick gstreamer gtk gtk3 gui gzip harfbuzz hdf5 heif http2 hugepages ibus iconv icu id3tag idn imlib inotify introspection ipv6 iwd jemalloc jpeg jpeg2k json kde kipi kms kwallet lapack latex lcms ldac libatomic libglvnd libidn2 libinput libnotify libproxy libsecret libsoxr libtirpc libvirt lm-sensors lrz lto lv2 lvm lz4 lzma lzo mad magic man mariadb markdown mbim mercurial mjpeg mng mobi modemmanager modplug mp3 mp4 mpeg mplayer mpris mtp multilib mysql ncurses netlink networkmanager nftables nls nptl numa office ofx ogg openal opencl opencv openexr opengl openh264 openmax openmp opus otf pam pango pcap pch pcre pcre2 pdf pgo pipewire pixman pkcs11 pkcs7 plasma pm-utils png policykit postscript ppds prison pulseaudio python qml qrcode qt5 rav1e raw rdp readline rtmp rubberband samba sasl scanner schroedinger screencast sctp sdl sdl2 seatd seccomp semantic-desktop share smartcard snappy sparse speech speex spell spice srt ssl startup-notification steamruntime stemmer svg systemd tbb teamd telemetry telepathy tga theora threads thunderbolt tiff timezone tmux tpm truetype udev udisks uinput unicode unwind upnp upnp-av upower usb utempter v4l v4l2 vaapi vamp vdpau vkd3d vorbis vpx vtk vulkan wasm wavpack wayland webchannel webengine webp widgets wireguard wmf woff2 wps x264 x265 xattr xcb xinerama xkb xml xmp xrandr xscreensaver xv xvid xwayland xxhash xz yaml zeroconf zeromq zimg zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2020" ALSA_CARDS="hda-intel" 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" CAMERAS="ptp2" 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 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="joystick libinput" KERNEL="linux" L10N="de de-DE en en-GB ar fa tr ja ko zh zh-CN zh-TW" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-javascript wiki-publisher" LLVM_TARGETS="AMDGPU BPF RISCV WebAssembly" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1 lua5-4 luajit" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9 pypy pypy3" QEMU_SOFTMMU_TARGETS="riscv32 riscv64 x86_64" QEMU_USER_TARGETS="riscv32 riscv64" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, RUSTFLAGS

=================================================================
                        Package Settings
=================================================================

sys-devel/gcc-11.2.0::gentoo was built with the following:
USE="(cxx) fortran go graphite lto (multilib) nls nptl objc openmp pch pgo (pie) sanitize ssp zstd (-ada) -custom-cflags -d -debug -doc (-fixed-point) (-hardened) -jit (-libssp) -objc++ -objc-gc -systemtap -test -valgrind -vanilla -vtv" ABI_X86="(64)"
CFLAGS="-pipe -march=znver1 -O2"
CXXFLAGS="-pipe -march=znver1 -O2"
FEATURES="parallel-fetch mount-sandbox news binpkg-logs unknown-features-warn protect-owned usersandbox config-protect-if-modified assume-digests unmerge-logs binpkg-dostrip compressdebug distlocks sfperms cgroup fakeroot binpkg-multi-instance fixlafiles multilib-strict strict userpriv merge-sync sandbox ipc-sandbox ebuild-locks pid-sandbox userfetch qa-unresolved-soname-deps splitdebug buildsyspkg parallel-install preserve-libs unmerge-orphans usersync xattr network-sandbox binpkg-docompress"
Comment 1 Dennis Schridde 2021-12-06 00:03:15 UTC
Created attachment 757531 [details]
build.log.xz
Comment 2 PaX Team 2021-12-15 10:30:25 UTC
i can reproduce this too. i'm no golang/automake/libtool person but it seems that there's a mismatch between what the makefiles expect as output from gccgo and what it actually produces and that's why mv fails. for example, this:

/tmp/portage/sys-devel/gcc-11.2.1_p20211127/work/build/./gcc/gccgo -B/tmp/portage/sys-devel/gcc-11.2.1_p20211127/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -fchecking=1 -minline-all-stringops -O2 -g -I . -c -fgo-pkgpath=internal/cpu /tmp/portage/sys-devel/gcc-11.2.1_p20211127/work/gcc-11-20211127/libgo/go/internal/cpu/cpu.go /tmp/portage/sys-devel/gcc-11.2.1_p20211127/work/gcc-11-20211127/libgo/go/internal/cpu/cpu_amd64.go /tmp/portage/sys-devel/gcc-11.2.1_p20211127/work/gcc-11-20211127/libgo/go/internal/cpu/cpu_x86.go cpugen.go

produces cpu.o and not cpugen.o that the next libtool command expects. maybe that's enough of a hint for someone to figure it out?
Comment 3 Dennis Schridde 2022-03-08 10:13:44 UTC
(In reply to PaX Team from comment #2)
> i can reproduce this too. i'm no golang/automake/libtool person but it seems
> that there's a mismatch between what the makefiles expect as output from
> gccgo and what it actually produces and that's why mv fails. for example,
> this:
> 
> /tmp/portage/sys-devel/gcc-11.2.1_p20211127/work/build/./gcc/gccgo
> -B/tmp/portage/sys-devel/gcc-11.2.1_p20211127/work/build/./gcc/
> -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem
> /usr/x86_64-pc-linux-gnu/include -isystem
> /usr/x86_64-pc-linux-gnu/sys-include -fchecking=1 -minline-all-stringops -O2
> -g -I . -c -fgo-pkgpath=internal/cpu
> /tmp/portage/sys-devel/gcc-11.2.1_p20211127/work/gcc-11-20211127/libgo/go/
> internal/cpu/cpu.go
> /tmp/portage/sys-devel/gcc-11.2.1_p20211127/work/gcc-11-20211127/libgo/go/
> internal/cpu/cpu_amd64.go
> /tmp/portage/sys-devel/gcc-11.2.1_p20211127/work/gcc-11-20211127/libgo/go/
> internal/cpu/cpu_x86.go cpugen.go
> 
> produces cpu.o and not cpugen.o that the next libtool command expects. maybe
> that's enough of a hint for someone to figure it out?

I can confirm that USE=-go allows me to build sys-devel/gcc-11.2.1_p20220115.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-18 02:06:17 UTC
Thanks. I don't see anything obvious at a quick glance.

Reported upstream at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104973.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-18 03:09:52 UTC
Dennis (or PaX Team), could you upload cpugen.go so I can pass it on to upstream (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104973#c1)?

Also, ideally a compressed version of WORKDIR?

I can't yet reproduce it :(
Comment 6 PaX Team 2022-03-18 08:35:21 UTC
(In reply to Sam James from comment #5)
> Dennis (or PaX Team), could you upload cpugen.go so I can pass it on to
> upstream (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104973#c1)?
> 
> Also, ideally a compressed version of WORKDIR?
> 
> I can't yet reproduce it :(
it's a production box i saw this on but i'll try to get the stuff. i've got a gcc bugzilla account already so i can upload there directly but i think the WORKDIR archive will be rather big... suggestions to share it somehow instead of a bugzilla upload?

re patches/etc, i've got nothing special here, just whatever the ebuilds do to the gcc sources. for reproduction maybe my CFLAGS can help:

CFLAGS="-Wl,-z,relro,-z,now -march=znver1 -O2 -pipe -g3 -frecord-gcc-switches -fno-stack-protector -fno-var-tracking"

another idea, if it's not a gcc change per se then it has to be some other package, automake or similar. did something relevant change around that time (say, last november/december)? for reference, i've got sys-devel/automake-1.16.5 (last updated on 2021.10.15) and sys-devel/libtool-2.4.6-r6 (last updated in 2019) at the moment. let me know if any other detail would help.
Comment 7 Reuben Martin 2022-03-20 04:00:26 UTC
Encountered same issue. Let me know if I can provide anything that might be useful for diagnosis in the upstream bug report.
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-22 19:32:34 UTC
(In reply to PaX Team from comment #6)
> (In reply to Sam James from comment #5)
> > Dennis (or PaX Team), could you upload cpugen.go so I can pass it on to
> > upstream (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104973#c1)?
> > 
> > Also, ideally a compressed version of WORKDIR?
> > 
> > I can't yet reproduce it :(
> it's a production box i saw this on but i'll try to get the stuff. i've got
> a gcc bugzilla account already so i can upload there directly but i think
> the WORKDIR archive will be rather big... suggestions to share it somehow
> instead of a bugzilla upload?
> 
> re patches/etc, i've got nothing special here, just whatever the ebuilds do
> to the gcc sources. for reproduction maybe my CFLAGS can help:
> 
> CFLAGS="-Wl,-z,relro,-z,now -march=znver1 -O2 -pipe -g3
> -frecord-gcc-switches -fno-stack-protector -fno-var-tracking"
> 
> another idea, if it's not a gcc change per se then it has to be some other
> package, automake or similar. did something relevant change around that time
> (say, last november/december)? for reference, i've got
> sys-devel/automake-1.16.5 (last updated on 2021.10.15) and
> sys-devel/libtool-2.4.6-r6 (last updated in 2019) at the moment. let me know
> if any other detail would help.

The odd thing is, I've got everything up to date too, and I've tried in ~arch. I can try a stable chroot though with a bunch of builds.

I've so far:
- had other Gentoo developers try and fail in a loop
- asked someone with access to a decent amount of fast machines to try a bunch of USE combinations
- tried myself repeatedly in a loop
- tried on machines with more cores and high -jN count for MAKEOPTS
... and got nowhere.

I don't understand the upstream comment about cpugen given it seems to be the same issue for everyone in this bug, or at least related though.

I'd be happy to give you scp-only access to some server to dump the files on.
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-22 19:33:31 UTC
(In reply to Reuben Martin from comment #7)
> Encountered same issue. Let me know if I can provide anything that might be
> useful for diagnosis in the upstream bug report.

Uploading your log & emerge --info & possibly qlop log might be useful. We want to try identify what makes your system special.

Could everyone hitting this also share their config.log and full build.log (if you didn't already)? There's got to be some detail in here about why your systems are different.

Also, to all of you who hit this: can you hit it *every time*? Or does it seem like a race condition?
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-22 20:30:20 UTC
oh, and: if someone hitting it could do a build with USE=vanilla and confirm if that fails or not, that'd be helpful.
Comment 11 pva 2022-03-27 11:13:50 UTC
Created attachment 767963 [details]
gcc-11.2.1_p20220115-build.log.xz

Here is a build.log with USE=vanilla:

 * USE:        abi_x86_64 amd64 cxx elibc_glibc fortran go graphite jit kernel_linux lto multilib nls nptl openmp pie sanitize ssp userland_GNU vanilla zstd
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-06 22:21:45 UTC
(In reply to pva from comment #11)
Please include the other details I mentioned (all).

Also, please use LC_MESSAGES=C.
Comment 13 pva 2022-04-07 18:52:14 UTC
Created attachment 769289 [details]
gcc-11.2.1_p20220115-build.log.xz
Comment 14 pva 2022-04-07 18:52:30 UTC
Created attachment 769292 [details]
emerge --info
Comment 15 pva 2022-04-07 18:52:49 UTC
Created attachment 769295 [details]
qlist output
Comment 16 pva 2022-04-07 18:53:38 UTC
Created attachment 769298 [details]
qlop output
Comment 17 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-07 19:06:10 UTC
(In reply to Sam James from comment #12)
> (In reply to pva from comment #11)
> Please include the other details I mentioned (all).
> 
> Also, please use LC_MESSAGES=C.

Could you include config.log & tell me whether it happens every time or not? Or does it seem like a race condition?
Comment 18 pva 2022-04-07 19:21:45 UTC
Created attachment 769301 [details]
config.log

I don't think this is a race condition. I've tried with -j1 and got the same result. Also if I do ebuild gcc-11.2.1_p20220115.ebuild compile it fails the same way.