Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 823780 - <sys-devel/gcc-11.2.1_p20211127: fails to build sys-libs/glibc-2.34-r1 (libc.a(inet_addr.o): TLS transition from R_386_TLS_GOTIE to R_386_TLS_LE_32 against `__libc_tsd_CTYPE_B' at 0xf4 in section `.text' failed)
Summary: <sys-devel/gcc-11.2.1_p20211127: fails to build sys-libs/glibc-2.34-r1 (libc....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Gentoo Toolchain Maintainers
URL: https://www.sourceware.org/bugzilla/s...
Whiteboard: Bug in GCC 11. Fixed in gcc-11.2.1_p2...
Keywords:
: 823850 830745 (view as bug list)
Depends on: 833357
Blocks: gcc-11 glibc-2.34
  Show dependency tree
 
Reported: 2021-11-15 00:27 UTC by Andrew Udvare
Modified: 2022-08-20 00:32 UTC (History)
6 users (show)

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


Attachments
build log (build.log.gz,304.06 KB, application/x-gzip)
2021-11-15 00:28 UTC, Andrew Udvare
Details
A patch for glibc-2.34-r2.ebuild to fix the issue (fix.patch,564 bytes, patch)
2021-11-16 14:15 UTC, Jason A. Donenfeld
Details | Diff
Gcc 11 patch for root cause (gcc.git-eb8ff3cbc09e029ca0cbd0d8b09bcaba162ab95a.patch,6.73 KB, patch)
2021-11-22 11:13 UTC, Jason A. Donenfeld
Details | Diff
emerge info (emerge.inf,6.27 KB, text/plain)
2021-12-23 06:08 UTC, Geoff Madden
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Udvare 2021-11-15 00:27:36 UTC
Fails to build. Not sure of the exact issue.

/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sys-libs/glibc-2.34-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/libc.a(inet_addr.o): TLS transition from R_386_TLS_GOTIE to R_386_TLS_LE_32 against `__libc_tsd_CTYPE_B' at 0xf4 in section `.text' failed
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [../Rules:269: /var/tmp/portage/sys-libs/glibc-2.34-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/ldconfig] Error 1

Reproducible: Always

Steps to Reproduce:
1. ACCEPT_KEYWORDS="~amd64" in /etc/portage/make.conf
2. emerge -1 =sys-devel/glibc-2.34-r1
Actual Results:  
Fails to build.

Expected Results:  
Should build.

Portage 3.0.28 (python 3.9.8-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-11.2.0, glibc-2.33-r7, 5.15.2-gentoo-limelight x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.15.2-gentoo-limelight-x86_64-11th_Gen_Intel-R-_Core-TM-_i9-11900K_@_3.50GHz-with-glibc2.33
KiB Mem:    65715284 total,  26853756 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 14 Nov 2021 22:36:32 +0000
Head commit of repository gentoo: f3176efe5a045638d73e9ece77a8a6b8d64e6927

Timestamp of repository brave-overlay: Fri, 12 Nov 2021 18:51:25 +0000
Head commit of repository brave-overlay: 20d0fadf4b1131241b4ddff258b20d65881076c9

Head commit of repository guru: 9f71a7322cb2f5acb6a5ba70abd959217c4c801a

Timestamp of repository menelkir: Sun, 14 Nov 2021 21:51:28 +0000
Head commit of repository menelkir: 056abf014244c1bc1b78e6de96a601512848ab44

Head commit of repository tatsh-overlay: f6c8e6017eb29de524a818f261f94267bc89d970

Timestamp of repository torbrowser: Fri, 12 Nov 2021 19:51:23 +0000
Head commit of repository torbrowser: 089778326a19bc1c5e9eb8a633ff61b030554352

sh bash 5.1_p8
ld GNU ld (Gentoo 2.37_p1 p1) 2.37
app-shells/bash:          5.1_p8::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.8.12_p1::gentoo, 3.9.8::gentoo, 3.10.0_p1::gentoo
dev-lang/rust:            1.56.1::gentoo
dev-util/cmake:           3.21.4::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.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.15::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r7::gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -ggdb -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/clonehero/Custom /opt/clonehero/Screenshots /opt/clonehero/Songs /opt/clonehero/settings.ini /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/forticlient/config.db /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="-O2 -ggdb -march=native -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 15 --load-average 15 --quiet-build=y --verbose-conflicts"
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 cgroup clean-logs compressdebug 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 splitdebug strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ https://mirrors.rit.edu/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo"
INSTALL_MASK="/etc/conf.d /etc/init.d /etc/cron.daily /etc/cron.monthly /lib/rc /lib/modules-load.d/joycond.conf"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_GB en_US"
MAKEOPTS="--jobs=15 --load-average=15"
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"
USE="X a52 aac aacs acl acpi activities alsa amd64 aptx avahi bash-completion bluetooth bluray branding bzip2 cairo cdda cddb cdio cdr cjk clang cli colord crypt cuda cups curl dav1d dbus declarative dri dts dv dvd dvdr egl emboss encode exif faudio ffmpeg flac fluidsynth fortran gdbm gif gles2 gpm gsm gstreamer gui hardened heif hwaccel ibus iconv icu idn ipv6 jemalloc joystick jpeg jpeg2k kde kipi kwallet lame lcms ldac libass libcaca libglvnd libnotify libretro libtirpc lm-sensors lto lz4 lzma mad man matroska mng mod modplug mp3 mp4 mpeg multilib ncurses nls nptl nvenc ogg opencl opengl openmp opus pam pango pcre pdf pgo pipewire plasma png policykit ppds pulseaudio qml qt5 rar readline samba screencast sdl seccomp semantic-desktop snappy speex spell split-usr ssl startup-notification svg syslog system-av1 system-binutils system-boost system-bootloader system-cmark system-crontab system-ffmpeg system-harfbuzz system-heimdal system-info system-ipxe system-jpeg system-jsoncpp system-lcms system-leveldb system-libcxx system-libevent system-libs system-libvpx system-libyaml system-llvm system-lua system-lz4 system-man system-mathjax system-mesa system-mitkrb5 system-numpy system-python system-qemu system-seabios system-sqlite system-ssl system-tbb system-webp system-wfconfig system-wide system-wlroots system-zlib systemd taglib theora tiff truetype twolame udev udisks unicode upower usb v4l vaapi vcd vdpau vim-syntax vorbis vpx vulkan wavpack wayland webengine webp widgets wmf wxwidgets x264 x265 xattr xcb xml xpm xv xvid xxhash zeroconf zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2019" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 avx512f avx512dq avx512cd avx512bw avx512vl avx512vbmi f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 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" INPUT_DEVICES="evdev libinput joystick" KERNEL="linux" L10N="en en-GB en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="BPF NVPTX X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="nvidia v4l" 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, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS

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

sys-libs/glibc-2.33-r7::gentoo was built with the following:
USE="multiarch (multilib) ssp (static-libs) systemd -audit -caps (-cet) -compile-locales (-crypt) -custom-cflags -doc -gd -headers-only -multilib-bootstrap -nscd -profile (-selinux) -static-pie -suid -systemtap -test (-vanilla)" ABI_X86="(64)"
CFLAGS="-ggdb -march=native -pipe -O2"
CXXFLAGS="-ggdb -march=native -pipe -O2"
FEATURES="xattr usersandbox binpkg-dostrip splitdebug sandbox strict config-protect-if-modified compressdebug ebuild-locks preserve-libs multilib-strict fixlafiles ipc-sandbox protect-owned qa-unresolved-soname-deps unmerge-orphans sfperms parallel-fetch unmerge-logs usersync userpriv binpkg-docompress distlocks strict-keepdir news assume-digests pid-sandbox userfetch clean-logs network-sandbox cgroup binpkg-logs merge-sync unknown-features-warn binpkg-multi-instance"
Comment 1 Andrew Udvare 2021-11-15 00:28:10 UTC
Created attachment 751186 [details]
build log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-15 00:36:19 UTC
This is interesting.

I hit this on *one* machine of mine with only GCC 11, and GCC 10 worked. I assumed I'd broken something because I'd not seen it anywhere else at all.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-15 02:20:24 UTC
(In reply to Sam James from comment #2)
> This is interesting.
> 
> I hit this on *one* machine of mine with only GCC 11, and GCC 10 worked. I
> assumed I'd broken something because I'd not seen it anywhere else at all.

binutiils-9999 (I don't recommend trying this, I was just curious) at commit https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=da7ee7f9ce2fc8c278a46e0b360d44319a5a1e7a fails too.

I tried the tip of the gcc 11 branch upstream too about 2 weeks ago which didn't help.
Comment 4 Andrey Volkov 2021-11-15 05:22:06 UTC
I also hit this bug on machine with CFLAGS -march=tigerlake

I tried with:

-march=tigerlake - ERROR
-march=cooperlake - ERROR
-march=cascadelake - ERROR
-march=cannonlake - ERROR
-march=skylake-avx512 - ERROR
-march=skylake - OK

Switching to -march=skylake solves this.
It looks like avx512 related bug.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-15 05:22:46 UTC
(In reply to Andrey Volkov from comment #4)
> I also hit this bug on machine with CFLAGS -march=tigerlake
> 
> I tried with:
> 
> -march=tigerlake - ERROR
> -march=cooperlake - ERROR
> -march=cascadelake - ERROR
> -march=cannonlake - ERROR
> -march=skylake-avx512 - ERROR
> -march=skylake - OK
> 
> Switching to -march=skylake solves this.
> It looks like avx512 related bug.

This matches exactly with my experience. The one box I can hit this on is Tiger Lake. Thanks for investigating a bit more...
Comment 6 Andrew Udvare 2021-11-15 05:32:09 UTC
(In reply to Sam James from comment #5)
> (In reply to Andrey Volkov from comment #4)
> > I also hit this bug on machine with CFLAGS -march=tigerlake
> > 
> > I tried with:
> > 
> > -march=tigerlake - ERROR
> > -march=cooperlake - ERROR
> > -march=cascadelake - ERROR
> > -march=cannonlake - ERROR
> > -march=skylake-avx512 - ERROR
> > -march=skylake - OK
> > 
> > Switching to -march=skylake solves this.
> > It looks like avx512 related bug.
> 
> This matches exactly with my experience. The one box I can hit this on is
> Tiger Lake. Thanks for investigating a bit more...

I ran ebuild with -march=skylake and it builds for me. 11900K is Rocket Lake.

env CFLAGS="-ggdb -march=skylake -pipe -O2" ebuild /var/db/repos/gentoo/sys-libs/glibc/glibc-2.34-r1.ebuild install
Comment 7 Ionen Wolkens gentoo-dev 2021-11-15 17:31:47 UTC
*** Bug 823850 has been marked as a duplicate of this bug. ***
Comment 8 Jason A. Donenfeld gentoo-dev 2021-11-16 14:01:38 UTC
This is also being tracked on https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103275

A more minimal workaround is to add `-mno-avx512f` to your CFLAGS.
Comment 9 Jason A. Donenfeld gentoo-dev 2021-11-16 14:15:51 UTC
Created attachment 751682 [details, diff]
A patch for glibc-2.34-r2.ebuild to fix the issue

This is a quick and easy fix that should suffice until gcc releases something real. It has minimal impact on performance by only affecting the -m32 build but not the -m64 one. The gcc bug is only triggered, for glibc, in -m32 mode.
Comment 10 Larry the Git Cow gentoo-dev 2021-11-16 23:33:53 UTC
The bug has been closed via the following commit(s):

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

commit 876602ee223c6c4225371b428a346f0b2d7f2020
Author:     Jason A. Donenfeld <zx2c4@gentoo.org>
AuthorDate: 2021-11-16 23:30:13 +0000
Commit:     Jason A. Donenfeld <zx2c4@gentoo.org>
CommitDate: 2021-11-16 23:33:44 +0000

    sys-libs/glibc: add -mno-avx512f to -m32 build for gcc 11 bug
    
    No need to revbump as this only affects folks who cannot currently
    compile.
    
    Closes: https://bugs.gentoo.org/823780
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Jason A. Donenfeld <zx2c4@gentoo.org>

 sys-libs/glibc/glibc-2.34-r2.ebuild | 8 ++++++++
 1 file changed, 8 insertions(+)
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-17 00:52:16 UTC
Let’s keep it open so we backport the relevant fixes.
Comment 12 Jason A. Donenfeld gentoo-dev 2021-11-22 11:09:26 UTC
Okay there's now a gcc 11 patch available: https://gcc.gnu.org/g:eb8ff3cbc09e029ca0cbd0d8b09bcaba162ab95a

We should pick this into our gcc 11.2 ebuild, and then drop my temporary workaround in glibc.
Comment 13 Jason A. Donenfeld gentoo-dev 2021-11-22 11:11:43 UTC
(The related binutils assembler fix just causes the assembler to error out so that the linker doesn't do the same later on. Since it's just moving the error to the more proper place, we probably don't need to backport it. Instead we can simply address the root cause with the gcc patch.)
Comment 14 Jason A. Donenfeld gentoo-dev 2021-11-22 11:13:17 UTC
Created attachment 755054 [details, diff]
Gcc 11 patch for root cause
Comment 15 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-22 11:16:16 UTC
(In reply to Jason A. Donenfeld from comment #12)
> Okay there's now a gcc 11 patch available:
> https://gcc.gnu.org/g:eb8ff3cbc09e029ca0cbd0d8b09bcaba162ab95a
> 
> We should pick this into our gcc 11.2 ebuild, and then drop my temporary
> workaround in glibc.

Yeah, absolutely. 

So, there's two decisions to make:

1. Do we revbump with it? We probably should as it affects code generation (it's not a gcc build failure) and we're kind of fortunate that the linker the issue.

The case _against_ is that GCC 11.3 is hopefully soon?

2. If we're revbumping anyway, should we just include a rollup of the gcc-11 branch (which we're due and I've been planning on us doing)? I'm happy for us to do this, but if GCC 11.3 is going to come out next week, it's a bit cruel for users to have two GCC rebuilds in a short period.

I think it comes down to whether we can find out when GCC 11.3 is planned. If it's very soon, we'll wait. If not, we'll probably do a rollup of the backport branch.
Comment 16 Jason A. Donenfeld gentoo-dev 2021-11-22 11:20:39 UTC
I think your analysis makes sense. "Yes" and "yes", unless gcc 11.3 is around the corner for real. There were about 9 months between 10.2 and 10.3, and 11.2 was released about 4 months ago. I don't know how valid the extrapolation is though.
Comment 17 Jason A. Donenfeld gentoo-dev 2021-11-22 16:30:00 UTC
Just to keep this bug updated: asking maintainers, it seems like there's likely no gcc update coming up for a long while. So we can move ahead with the roll-up.
Comment 18 David Seifert gentoo-dev 2021-11-22 17:28:07 UTC
(In reply to Jason A. Donenfeld from comment #17)
> Just to keep this bug updated: asking maintainers, it seems like there's
> likely no gcc update coming up for a long while. So we can move ahead with
> the roll-up.

We will likely cut straight from the 11 tree. Give us a few days.
Comment 19 Larry the Git Cow gentoo-dev 2021-11-27 23:47:36 UTC
The bug has been referenced in the following commit(s):

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

commit 89a6a8647d74612648f0502baa27660008cc256c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-11-27 23:47:10 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-11-27 23:47:27 +0000

    sys-libs/glibc: don't apply GCC 11 AVX512 workaround to upcoming patch release
    
    Bug: https://bugs.gentoo.org/823780
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-libs/glibc/glibc-2.34-r2.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 20 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-28 18:34:01 UTC
commit c397cbff26bf100ae36eefe886497e8238e53515
Author: David Seifert <soap@gentoo.org>
Date:   Sun Nov 28 00:04:10 2021 +0100

    sys-devel/gcc: add 11.2.1_p20211127

    upstream has indicated that 11.3 is unlikely to be
    released soon, and 11.2 has accumulated enough bugs
    to require an intermediate release for Gentoo.

    Bug: https://bugs.gentoo.org/806482
    Bug: https://bugs.gentoo.org/811867
    Bug: https://bugs.gentoo.org/823780
    Signed-off-by: David Seifert <soap@gentoo.org>
    Signed-off-by: Sam James <sam@gentoo.org>
Comment 21 Geoff Madden 2021-12-23 06:08:59 UTC
Created attachment 760134 [details]
emerge info
Comment 22 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-23 06:10:53 UTC
(In reply to Geoff Madden from comment #21)
> Created attachment 760134 [details]
> emerge info

You shouldn't be hitting this issue anymore? Please upgrade GCC.
Comment 23 Geoff Madden 2021-12-23 06:14:53 UTC
On my machine glibc would not compile against gcc-11.2.1_p20211127,kept falling over with a similar msg.
My remedy was to drop back to gcc-11.2.0 ,recompile @world,then update glibc-2.34-r4 successfully.
Hope this helps over the holiday season.
Best wishes to all & a great New Year
Comment 24 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-23 06:15:31 UTC
(In reply to Geoff Madden from comment #23)
> On my machine glibc would not compile against gcc-11.2.1_p20211127,kept
> falling over with a similar msg.
> My remedy was to drop back to gcc-11.2.0 ,recompile @world,then update
> glibc-2.34-r4 successfully.
> Hope this helps over the holiday season.
> Best wishes to all & a great New Year

That sounds reaaaaaally odd. Nobody else has reported it and it seemed definitively fixed. Could you share the build.log from it failing with gcc-11.2.1_p20211127 then emerge -v1 glibc?
Comment 25 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-23 06:15:47 UTC
(In reply to Sam James from comment #24)
> > Hope this helps over the holiday season.
> > Best wishes to all & a great New Year
> 
(and best wishes to you too, of course!)
Comment 26 Mike Gilbert gentoo-dev 2022-01-11 17:27:10 UTC
*** Bug 830745 has been marked as a duplicate of this bug. ***
Comment 27 Andreas K. Hüttel archtester gentoo-dev 2022-02-12 17:42:44 UTC
Do we need a newer gcc stable?
Comment 28 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-07 07:09:42 UTC
Fixed GCC is stable on amd64 and this only affected that arch. Closing.
Comment 29 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-20 00:21:17 UTC
Note that technically Binutils 2.38 is needed for the other fix too.
Comment 30 Larry the Git Cow gentoo-dev 2022-08-20 00:32:54 UTC
The bug has been referenced in the following commit(s):

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

commit 4fd2400c18a36b8aad51328b3731fef55968e4fc
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-08-20 00:31:21 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-08-20 00:32:36 +0000

    sys-libs/glibc: restore GCC < 11.2.1_p* AVX512 sanity check
    
    It's cheap and it avoids build failures, so why not?
    
    Only really affects Tiger Lake or so though. Fixed
    in newer GCCs anyway.
    
    Bug: https://bugs.gentoo.org/823780
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-libs/glibc/glibc-2.35-r8.ebuild | 6 ++++++
 sys-libs/glibc/glibc-2.36.ebuild    | 6 ++++++
 sys-libs/glibc/glibc-9999.ebuild    | 6 ++++++
 3 files changed, 18 insertions(+)