Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 933764 - x86 stages & ISOs built after 20240513 cannot run on older CPUs: /usr/lib/libc.so.6: CPU ISA level is lower than required (caused by sys-libs/glibc-2.39-r6)
Summary: x86 stages & ISOs built after 20240513 cannot run on older CPUs: /usr/lib/lib...
Status: IN_PROGRESS
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal critical
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-07 16:52 UTC by Ben Kohler
Modified: 2024-07-02 18:28 UTC (History)
11 users (show)

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


Attachments
glibc-2.39-r6-build.log (build.tar.xz,128.00 KB, application/x-xz)
2024-06-07 17:27 UTC, immolo
Details
Cause - 0041-x86-Define-MINIMUM_X86_ISA_LEVEL-in-config.h-BZ-3167.patch (0041-x86-Define-MINIMUM_X86_ISA_LEVEL-in-config.h-BZ-3167.patch,3.59 KB, patch)
2024-06-07 22:21 UTC, immolo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Kohler gentoo-dev 2024-06-07 16:52:52 UTC
Releng x86 builds later than 20240513 seem unable to run on older CPUs.  20240513 is the last working, 20240520 is the first broken. I'm working in qemu to reproduce & troubleshoot.  The ISOs fail during initramfs startup.  Actual error is "[!!] init (/sbin/init) not found in mounted root" but I think some commands are failing due to the libc breakage.

Chroot fails with "/usr/lib/libc.so.6: CPU ISA level is lower than required"

Checking by -cpu type:

pentium  FAIL
pentium2  FAIL
pentium3  FAIL
coreduo-v1 SUCCESS
athlon-v1 SUCCESS

I'm not sure yet how to get qemu to use something pentium4-ish, so I don't know where the line of breakage is yet.


Here is emerge --info from the athlon-v1 attempt, obviously I can't run it on one of the FAIL cases.

--------------
Portage 3.0.63 (python 3.12.3-final-0, unavailable, gcc-13, glibc-2.39-r6, 6.6.30-gentoo-x86 i686)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.6.30-gentoo-x86-i686-QEMU_Virtual_CPU_version_2.5+-with-glibc2.39
KiB Mem:     2067344 total,   1688384 free
KiB Swap:          0 total,         0 free
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.42 p3) 2.42.0
dev-lang/python:          3.12.3::gentoo
sys-devel/binutils:       2.42-r1::gentoo
sys-kernel/linux-headers: 6.6-r1::gentoo (virtual/os-headers)
Repositories:

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://distfiles.gentoo.org/releases/x86/binpackages/23.0/i686

ACCEPT_LICENSE="* -@EULA"
CFLAGS="-O2 -march=i686 -pipe"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gentoo-release /etc/sandbox.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/var/cache/distfiles"
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 userfetch userpriv usersandbox usersync xattr"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
PKGDIR="/var/cache/binpkgs"
PORTAGE_TMPDIR="/var/tmp"
USE=""
Unset:  ACCEPT_KEYWORDS, CHOST, EMERGE_DEFAULT_OPTS, ENV_UNSET, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND

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

sys-libs/glibc-2.39-r6::gentoo was built with the following:
USE="abi_x86_32 elibc_glibc kernel_linux multiarch ssp static-libs x86 -audit -caps -cet -compile-locales -custom-cflags -doc -gd -hash-sysv-compat -headers-only -multilib -multilib-bootstrap -nscd -perl -profile -selinux -stack-realign -suid -systemd -systemtap -test -vanilla"
CHOST="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe -fcf-protection=none"
CXXFLAGS="-O2 -march=i686 -pipe -fcf-protection=none"
FEATURES="strict protect-owned unmerge-orphans userpriv multilib-strict parallel-fetch config-protect-if-modified unmerge-logs buildpkg-live pkgdir-index-trusted binpkg-multi-instance merge-wait preserve-libs userfetch fixlafiles ebuild-locks network-sandbox qa-unresolved-soname-deps assume-digests sfperms distlocks unknown-features-warn merge-sync sandbox binpkg-logs usersync clean-logs binpkg-docompress parallel-install ipc-sandbox buildpkg binpkg-dostrip pid-sandbox usersandbox"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
Comment 1 Ben Kohler gentoo-dev 2024-06-07 17:04:52 UTC
"ld.so --list-diagnostics" from non-working pentium VM:

/usr/bin/ld.so --list-diagnostics
dl_dst_lib="lib"
dl_hwcap=0x0
dl_hwcap_important=0x1
dl_hwcap2=0x0
dl_hwcap3=0x0
dl_hwcap4=0x0
dl_hwcaps_subdirs=""
dl_hwcaps_subdirs_active=0x0
dl_pagesize=0x1000
dl_platform="i586"
dl_profile_output="/var/tmp"
dl_string_platform=0x30
dso.ld="ld-linux.so.2"
dso.libc="libc.so.6"
env_filtered[0x0]="SHELL"
env_filtered[0x1]="LESS"
env_filtered[0x2]="CONFIG_PROTECT_MASK"
env_filtered[0x3]="EDITOR"
env_filtered[0x4]="PWD"
env_filtered[0x5]="CONFIG_PROTECT"
env_filtered[0x6]="LOGNAME"
env_filtered[0x7]="MANPATH"
env_filtered[0x8]="_"
env_filtered[0x9]="MOTD_SHOWN"
env_filtered[0xa]="HOME"
env[0xb]="LANG=C.UTF8"
env_filtered[0xc]="LS_COLORS"
env_filtered[0xd]="INFOPATH"
env_filtered[0xe]="TERM"
env_filtered[0xf]="LESSOPEN"
env_filtered[0x10]="USER"
env_filtered[0x11]="MANPAGER"
env_filtered[0x12]="SHLVL"
env_filtered[0x13]="PAGER"
env_filtered[0x14]="GCC_SPECS"
env_filtered[0x15]="HUSHLOGIN"
env[0x16]="PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/bin"
env_filtered[0x17]="MAIL"
path.prefix="/usr"
path.rtld="/lib/ld-linux.so.2"
path.sysconfdir="/etc"
path.system_dirs[0x0]="/lib/"
path.system_dirs[0x1]="/usr/lib/"
version.release="stable"
version.version="2.39"
auxv[0x0].a_type=0x20
auxv[0x0].a_val=0xb7f1f570
auxv[0x1].a_type=0x21
auxv[0x1].a_val=0xb7f1f000
auxv[0x2].a_type=0x33
auxv[0x2].a_val=0x3a0
auxv[0x3].a_type=0x10
auxv[0x3].a_val=0x8003bf
auxv[0x4].a_type=0x6
auxv[0x4].a_val=0x1000
auxv[0x5].a_type=0x11
auxv[0x5].a_val=0x64
auxv[0x6].a_type=0x3
auxv[0x6].a_val=0xb7f21034
auxv[0x7].a_type=0x4
auxv[0x7].a_val=0x20
auxv[0x8].a_type=0x5
auxv[0x8].a_val=0xa
auxv[0x9].a_type=0x7
auxv[0x9].a_val=0x0
auxv[0xa].a_type=0x8
auxv[0xa].a_val=0x0
auxv[0xb].a_type=0x9
auxv[0xb].a_val=0xb7f3f110
auxv[0xc].a_type=0xb
auxv[0xc].a_val=0x0
auxv[0xd].a_type=0xc
auxv[0xd].a_val=0x0
auxv[0xe].a_type=0xd
auxv[0xe].a_val=0x0
auxv[0xf].a_type=0xe
auxv[0xf].a_val=0x0
auxv[0x10].a_type=0x17
auxv[0x10].a_val=0x0
auxv[0x11].a_type=0x19
auxv[0x11].a_val=0xbfaa860b
auxv[0x12].a_type=0x1a
auxv[0x12].a_val=0x0
auxv[0x13].a_type=0x1f
auxv[0x13].a_val_string="/mnt/gentoo/usr/bin/ld.so"
auxv[0x14].a_type=0xf
auxv[0x14].a_val_string="i586"
auxv[0x15].a_type=0x1b
auxv[0x15].a_val=0x1c
auxv[0x16].a_type=0x1c
auxv[0x16].a_val=0x20
uname.sysname="Linux"
uname.nodename="livecd"
uname.release="6.6.30-gentoo-x86"
uname.version="#1 SMP PREEMPT_DYNAMIC Mon May 13 17:54:07 UTC 2024"
uname.machine="i586"
uname.domainname="(none)"
x86.cpu_features.basic.kind=0x1
x86.cpu_features.basic.max_cpuid=0x1
x86.cpu_features.basic.family=0x5
x86.cpu_features.basic.model=0x4
x86.cpu_features.basic.stepping=0x3
x86.cpu_features.features[0x0].cpuid[0x0]=0x543
x86.cpu_features.features[0x0].cpuid[0x1]=0x800
x86.cpu_features.features[0x0].cpuid[0x2]=0x80200000
x86.cpu_features.features[0x0].cpuid[0x3]=0x8003bf
x86.cpu_features.features[0x0].active[0x0]=0x0
x86.cpu_features.features[0x0].active[0x1]=0x0
x86.cpu_features.features[0x0].active[0x2]=0x0
x86.cpu_features.features[0x0].active[0x3]=0x800110
x86.cpu_features.features[0x1].cpuid[0x0]=0x0
x86.cpu_features.features[0x1].cpuid[0x1]=0x0
x86.cpu_features.features[0x1].cpuid[0x2]=0x0
x86.cpu_features.features[0x1].cpuid[0x3]=0x0
x86.cpu_features.features[0x1].active[0x0]=0x0
x86.cpu_features.features[0x1].active[0x1]=0x0
x86.cpu_features.features[0x1].active[0x2]=0x0
x86.cpu_features.features[0x1].active[0x3]=0x0
x86.cpu_features.features[0x2].cpuid[0x0]=0x0
x86.cpu_features.features[0x2].cpuid[0x1]=0x0
x86.cpu_features.features[0x2].cpuid[0x2]=0x0
x86.cpu_features.features[0x2].cpuid[0x3]=0x0
x86.cpu_features.features[0x2].active[0x0]=0x0
x86.cpu_features.features[0x2].active[0x1]=0x0
x86.cpu_features.features[0x2].active[0x2]=0x0
x86.cpu_features.features[0x2].active[0x3]=0x0
x86.cpu_features.features[0x3].cpuid[0x0]=0x0
x86.cpu_features.features[0x3].cpuid[0x1]=0x0
x86.cpu_features.features[0x3].cpuid[0x2]=0x0
x86.cpu_features.features[0x3].cpuid[0x3]=0x0
x86.cpu_features.features[0x3].active[0x0]=0x0
x86.cpu_features.features[0x3].active[0x1]=0x0
x86.cpu_features.features[0x3].active[0x2]=0x0
x86.cpu_features.features[0x3].active[0x3]=0x0
x86.cpu_features.features[0x4].cpuid[0x0]=0x0
x86.cpu_features.features[0x4].cpuid[0x1]=0x0
x86.cpu_features.features[0x4].cpuid[0x2]=0x0
x86.cpu_features.features[0x4].cpuid[0x3]=0x0
x86.cpu_features.features[0x4].active[0x0]=0x0
x86.cpu_features.features[0x4].active[0x1]=0x0
x86.cpu_features.features[0x4].active[0x2]=0x0
x86.cpu_features.features[0x4].active[0x3]=0x0
x86.cpu_features.features[0x5].cpuid[0x0]=0x0
x86.cpu_features.features[0x5].cpuid[0x1]=0x0
x86.cpu_features.features[0x5].cpuid[0x2]=0x0
x86.cpu_features.features[0x5].cpuid[0x3]=0x0
x86.cpu_features.features[0x5].active[0x0]=0x0
x86.cpu_features.features[0x5].active[0x1]=0x0
x86.cpu_features.features[0x5].active[0x2]=0x0
x86.cpu_features.features[0x5].active[0x3]=0x0
x86.cpu_features.features[0x6].cpuid[0x0]=0x0
x86.cpu_features.features[0x6].cpuid[0x1]=0x0
x86.cpu_features.features[0x6].cpuid[0x2]=0x0
x86.cpu_features.features[0x6].cpuid[0x3]=0x0
x86.cpu_features.features[0x6].active[0x0]=0x0
x86.cpu_features.features[0x6].active[0x1]=0x0
x86.cpu_features.features[0x6].active[0x2]=0x0
x86.cpu_features.features[0x6].active[0x3]=0x0
x86.cpu_features.features[0x7].cpuid[0x0]=0x0
x86.cpu_features.features[0x7].cpuid[0x1]=0x0
x86.cpu_features.features[0x7].cpuid[0x2]=0x0
x86.cpu_features.features[0x7].cpuid[0x3]=0x0
x86.cpu_features.features[0x7].active[0x0]=0x0
x86.cpu_features.features[0x7].active[0x1]=0x0
x86.cpu_features.features[0x7].active[0x2]=0x0
x86.cpu_features.features[0x7].active[0x3]=0x0
x86.cpu_features.features[0x8].cpuid[0x0]=0x0
x86.cpu_features.features[0x8].cpuid[0x1]=0x0
x86.cpu_features.features[0x8].cpuid[0x2]=0x0
x86.cpu_features.features[0x8].cpuid[0x3]=0x0
x86.cpu_features.features[0x8].active[0x0]=0x0
x86.cpu_features.features[0x8].active[0x1]=0x0
x86.cpu_features.features[0x8].active[0x2]=0x0
x86.cpu_features.features[0x8].active[0x3]=0x0
x86.cpu_features.features[0x9].cpuid[0x0]=0x0
x86.cpu_features.features[0x9].cpuid[0x1]=0x0
x86.cpu_features.features[0x9].cpuid[0x2]=0x0
x86.cpu_features.features[0x9].cpuid[0x3]=0x0
x86.cpu_features.features[0x9].active[0x0]=0x0
x86.cpu_features.features[0x9].active[0x1]=0x0
x86.cpu_features.features[0x9].active[0x2]=0x0
x86.cpu_features.features[0x9].active[0x3]=0x0
x86.cpu_features.preferred.Fast_Rep_String=0x0
x86.cpu_features.preferred.Fast_Copy_Backward=0x0
x86.cpu_features.preferred.Slow_BSF=0x0
x86.cpu_features.preferred.Fast_Unaligned_Load=0x0
x86.cpu_features.preferred.Prefer_PMINUB_for_stringop=0x0
x86.cpu_features.preferred.Fast_Unaligned_Copy=0x0
x86.cpu_features.preferred.I586=0x1
x86.cpu_features.preferred.I686=0x0
x86.cpu_features.preferred.Slow_SSE4_2=0x0
x86.cpu_features.preferred.AVX_Fast_Unaligned_Load=0x0
x86.cpu_features.preferred.Prefer_MAP_32BIT_EXEC=0x0
x86.cpu_features.preferred.Prefer_No_VZEROUPPER=0x0
x86.cpu_features.preferred.Prefer_ERMS=0x0
x86.cpu_features.preferred.Prefer_No_AVX512=0x1
x86.cpu_features.preferred.MathVec_Prefer_No_AVX512=0x0
x86.cpu_features.preferred.Prefer_FSRM=0x0
x86.cpu_features.preferred.Avoid_Short_Distance_REP_MOVSB=0x0
x86.cpu_features.isa_1=0x0
x86.cpu_features.xsave_state_size=0x0
x86.cpu_features.xsave_state_full_size=0x0
x86.cpu_features.data_cache_size=0xffffffff
x86.cpu_features.shared_cache_size=0xffffffff
x86.cpu_features.non_temporal_threshold=0x4000000
x86.cpu_features.rep_movsb_threshold=0x800
x86.cpu_features.rep_movsb_stop_threshold=0x4000000
x86.cpu_features.rep_stosb_threshold=0x800
x86.cpu_features.level1_icache_size=0xffffffff
x86.cpu_features.level1_icache_linesize=0xffffffff
x86.cpu_features.level1_dcache_size=0xffffffff
x86.cpu_features.level1_dcache_assoc=0xffffffff
x86.cpu_features.level1_dcache_linesize=0xffffffff
x86.cpu_features.level2_cache_size=0xffffffff
x86.cpu_features.level2_cache_assoc=0xffffffff
x86.cpu_features.level2_cache_linesize=0xffffffff
x86.cpu_features.level3_cache_size=0xffffffff
x86.cpu_features.level3_cache_assoc=0xffffffff
x86.cpu_features.level3_cache_linesize=0xffffffff
x86.cpu_features.level4_cache_size=0xffffffff
x86.cpu_features.cachesize_non_temporal_divisor=0x4
Comment 2 Ben Kohler gentoo-dev 2024-06-07 17:07:17 UTC
Same diagnostics from working coreduo-v1 VM:

dl_dst_lib="lib"
dl_hwcap=0x1
dl_hwcap_important=0x1
dl_hwcap2=0x0
dl_hwcap3=0x0
dl_hwcap4=0x0
dl_hwcaps_subdirs=""
dl_hwcaps_subdirs_active=0x0
dl_pagesize=0x1000
dl_platform="i686"
dl_profile_output="/var/tmp"
dl_string_platform=0x31
dso.ld="ld-linux.so.2"
dso.libc="libc.so.6"
env_filtered[0x0]="SHELL"
env_filtered[0x1]="LESS"
env_filtered[0x2]="CONFIG_PROTECT_MASK"
env_filtered[0x3]="EDITOR"
env_filtered[0x4]="PWD"
env_filtered[0x5]="CONFIG_PROTECT"
env_filtered[0x6]="LOGNAME"
env_filtered[0x7]="MANPATH"
env_filtered[0x8]="_"
env_filtered[0x9]="MOTD_SHOWN"
env_filtered[0xa]="HOME"
env[0xb]="LANG=C.UTF8"
env_filtered[0xc]="LS_COLORS"
env_filtered[0xd]="INFOPATH"
env_filtered[0xe]="TERM"
env_filtered[0xf]="LESSOPEN"
env_filtered[0x10]="USER"
env_filtered[0x11]="MANPAGER"
env_filtered[0x12]="SHLVL"
env_filtered[0x13]="PAGER"
env_filtered[0x14]="GCC_SPECS"
env_filtered[0x15]="HUSHLOGIN"
env[0x16]="PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/bin"
env_filtered[0x17]="MAIL"
path.prefix="/usr"
path.rtld="/lib/ld-linux.so.2"
path.sysconfdir="/etc"
path.system_dirs[0x0]="/lib/"
path.system_dirs[0x1]="/usr/lib/"
version.release="stable"
version.version="2.39"
auxv[0x0].a_type=0x20
auxv[0x0].a_val=0xb7f4f570
auxv[0x1].a_type=0x21
auxv[0x1].a_val=0xb7f4f000
auxv[0x2].a_type=0x33
auxv[0x2].a_val=0x5a0
auxv[0x3].a_type=0x10
auxv[0x3].a_val=0x788fbff
auxv[0x4].a_type=0x6
auxv[0x4].a_val=0x1000
auxv[0x5].a_type=0x11
auxv[0x5].a_val=0x64
auxv[0x6].a_type=0x3
auxv[0x6].a_val=0xb7f51034
auxv[0x7].a_type=0x4
auxv[0x7].a_val=0x20
auxv[0x8].a_type=0x5
auxv[0x8].a_val=0xa
auxv[0x9].a_type=0x7
auxv[0x9].a_val=0x0
auxv[0xa].a_type=0x8
auxv[0xa].a_val=0x0
auxv[0xb].a_type=0x9
auxv[0xb].a_val=0xb7f6f110
auxv[0xc].a_type=0xb
auxv[0xc].a_val=0x0
auxv[0xd].a_type=0xc
auxv[0xd].a_val=0x0
auxv[0xe].a_type=0xd
auxv[0xe].a_val=0x0
auxv[0xf].a_type=0xe
auxv[0xf].a_val=0x0
auxv[0x10].a_type=0x17
auxv[0x10].a_val=0x0
auxv[0x11].a_type=0x19
auxv[0x11].a_val=0xbfed59bb
auxv[0x12].a_type=0x1a
auxv[0x12].a_val=0x0
auxv[0x13].a_type=0x1f
auxv[0x13].a_val_string="/mnt/gentoo/usr/bin/ld.so"
auxv[0x14].a_type=0xf
auxv[0x14].a_val_string="i686"
auxv[0x15].a_type=0x1b
auxv[0x15].a_val=0x1c
auxv[0x16].a_type=0x1c
auxv[0x16].a_val=0x20
uname.sysname="Linux"
uname.nodename="livecd"
uname.release="6.6.30-gentoo-x86"
uname.version="#1 SMP PREEMPT_DYNAMIC Mon May 13 17:54:07 UTC 2024"
uname.machine="i686"
uname.domainname="(none)"
x86.cpu_features.basic.kind=0x1
x86.cpu_features.basic.max_cpuid=0xa
x86.cpu_features.basic.family=0x6
x86.cpu_features.basic.model=0xe
x86.cpu_features.basic.stepping=0x8
x86.cpu_features.features[0x0].cpuid[0x0]=0x6e8
x86.cpu_features.features[0x0].cpuid[0x1]=0x800
x86.cpu_features.features[0x0].cpuid[0x2]=0x80200001
x86.cpu_features.features[0x0].cpuid[0x3]=0xf89fbff
x86.cpu_features.features[0x0].active[0x0]=0x0
x86.cpu_features.features[0x0].active[0x1]=0x0
x86.cpu_features.features[0x0].active[0x2]=0x1
x86.cpu_features.features[0x0].active[0x3]=0x7888110
x86.cpu_features.features[0x1].cpuid[0x0]=0x0
x86.cpu_features.features[0x1].cpuid[0x1]=0x0
x86.cpu_features.features[0x1].cpuid[0x2]=0x0
x86.cpu_features.features[0x1].cpuid[0x3]=0x0
x86.cpu_features.features[0x1].active[0x0]=0x0
x86.cpu_features.features[0x1].active[0x1]=0x0
x86.cpu_features.features[0x1].active[0x2]=0x0
x86.cpu_features.features[0x1].active[0x3]=0x0
x86.cpu_features.features[0x2].cpuid[0x0]=0x6e8
x86.cpu_features.features[0x2].cpuid[0x1]=0x0
x86.cpu_features.features[0x2].cpuid[0x2]=0x0
x86.cpu_features.features[0x2].cpuid[0x3]=0x100000
x86.cpu_features.features[0x2].active[0x0]=0x0
x86.cpu_features.features[0x2].active[0x1]=0x0
x86.cpu_features.features[0x2].active[0x2]=0x0
x86.cpu_features.features[0x2].active[0x3]=0x0
x86.cpu_features.features[0x3].cpuid[0x0]=0x0
x86.cpu_features.features[0x3].cpuid[0x1]=0x0
x86.cpu_features.features[0x3].cpuid[0x2]=0x0
x86.cpu_features.features[0x3].cpuid[0x3]=0x0
x86.cpu_features.features[0x3].active[0x0]=0x0
x86.cpu_features.features[0x3].active[0x1]=0x0
x86.cpu_features.features[0x3].active[0x2]=0x0
x86.cpu_features.features[0x3].active[0x3]=0x0
x86.cpu_features.features[0x4].cpuid[0x0]=0x0
x86.cpu_features.features[0x4].cpuid[0x1]=0x0
x86.cpu_features.features[0x4].cpuid[0x2]=0x0
x86.cpu_features.features[0x4].cpuid[0x3]=0x0
x86.cpu_features.features[0x4].active[0x0]=0x0
x86.cpu_features.features[0x4].active[0x1]=0x0
x86.cpu_features.features[0x4].active[0x2]=0x0
x86.cpu_features.features[0x4].active[0x3]=0x0
x86.cpu_features.features[0x5].cpuid[0x0]=0x24
x86.cpu_features.features[0x5].cpuid[0x1]=0x0
x86.cpu_features.features[0x5].cpuid[0x2]=0x0
x86.cpu_features.features[0x5].cpuid[0x3]=0x0
x86.cpu_features.features[0x5].active[0x0]=0x0
x86.cpu_features.features[0x5].active[0x1]=0x0
x86.cpu_features.features[0x5].active[0x2]=0x0
x86.cpu_features.features[0x5].active[0x3]=0x0
x86.cpu_features.features[0x6].cpuid[0x0]=0x0
x86.cpu_features.features[0x6].cpuid[0x1]=0x0
x86.cpu_features.features[0x6].cpuid[0x2]=0x0
x86.cpu_features.features[0x6].cpuid[0x3]=0x0
x86.cpu_features.features[0x6].active[0x0]=0x0
x86.cpu_features.features[0x6].active[0x1]=0x0
x86.cpu_features.features[0x6].active[0x2]=0x0
x86.cpu_features.features[0x6].active[0x3]=0x0
x86.cpu_features.features[0x7].cpuid[0x0]=0x0
x86.cpu_features.features[0x7].cpuid[0x1]=0x0
x86.cpu_features.features[0x7].cpuid[0x2]=0x0
x86.cpu_features.features[0x7].cpuid[0x3]=0x0
x86.cpu_features.features[0x7].active[0x0]=0x0
x86.cpu_features.features[0x7].active[0x1]=0x0
x86.cpu_features.features[0x7].active[0x2]=0x0
x86.cpu_features.features[0x7].active[0x3]=0x0
x86.cpu_features.features[0x8].cpuid[0x0]=0x0
x86.cpu_features.features[0x8].cpuid[0x1]=0x0
x86.cpu_features.features[0x8].cpuid[0x2]=0x0
x86.cpu_features.features[0x8].cpuid[0x3]=0x0
x86.cpu_features.features[0x8].active[0x0]=0x0
x86.cpu_features.features[0x8].active[0x1]=0x0
x86.cpu_features.features[0x8].active[0x2]=0x0
x86.cpu_features.features[0x8].active[0x3]=0x0
x86.cpu_features.features[0x9].cpuid[0x0]=0x0
x86.cpu_features.features[0x9].cpuid[0x1]=0x0
x86.cpu_features.features[0x9].cpuid[0x2]=0x0
x86.cpu_features.features[0x9].cpuid[0x3]=0x0
x86.cpu_features.features[0x9].active[0x0]=0x0
x86.cpu_features.features[0x9].active[0x1]=0x0
x86.cpu_features.features[0x9].active[0x2]=0x0
x86.cpu_features.features[0x9].active[0x3]=0x0
x86.cpu_features.preferred.Fast_Rep_String=0x0
x86.cpu_features.preferred.Fast_Copy_Backward=0x0
x86.cpu_features.preferred.Slow_BSF=0x0
x86.cpu_features.preferred.Fast_Unaligned_Load=0x0
x86.cpu_features.preferred.Prefer_PMINUB_for_stringop=0x0
x86.cpu_features.preferred.Fast_Unaligned_Copy=0x0
x86.cpu_features.preferred.I586=0x1
x86.cpu_features.preferred.I686=0x1
x86.cpu_features.preferred.Slow_SSE4_2=0x0
x86.cpu_features.preferred.AVX_Fast_Unaligned_Load=0x0
x86.cpu_features.preferred.Prefer_MAP_32BIT_EXEC=0x0
x86.cpu_features.preferred.Prefer_No_VZEROUPPER=0x0
x86.cpu_features.preferred.Prefer_ERMS=0x0
x86.cpu_features.preferred.Prefer_No_AVX512=0x1
x86.cpu_features.preferred.MathVec_Prefer_No_AVX512=0x0
x86.cpu_features.preferred.Prefer_FSRM=0x0
x86.cpu_features.preferred.Avoid_Short_Distance_REP_MOVSB=0x0
x86.cpu_features.isa_1=0x1
x86.cpu_features.xsave_state_size=0x0
x86.cpu_features.xsave_state_full_size=0x0
x86.cpu_features.data_cache_size=0x8000
x86.cpu_features.shared_cache_size=0x1000000
x86.cpu_features.non_temporal_threshold=0xc00000
x86.cpu_features.rep_movsb_threshold=0x800
x86.cpu_features.rep_movsb_stop_threshold=0xc00000
x86.cpu_features.rep_stosb_threshold=0x800
x86.cpu_features.level1_icache_size=0x8000
x86.cpu_features.level1_icache_linesize=0x40
x86.cpu_features.level1_dcache_size=0x8000
x86.cpu_features.level1_dcache_assoc=0x8
x86.cpu_features.level1_dcache_linesize=0x40
x86.cpu_features.level2_cache_size=0x200000
x86.cpu_features.level2_cache_assoc=0x8
x86.cpu_features.level2_cache_linesize=0x40
x86.cpu_features.level3_cache_size=0x1000000
x86.cpu_features.level3_cache_assoc=0x10
x86.cpu_features.level3_cache_linesize=0x40
x86.cpu_features.level4_cache_size=0x0
x86.cpu_features.cachesize_non_temporal_divisor=0x4
Comment 3 Ben Kohler gentoo-dev 2024-06-07 17:17:15 UTC
Here's a diff and I'm this time comparing pentium3 (BAD) vs coreduo-v1 (GOOD):  

--- pentium3	2024-06-07 12:16:34.834889061 -0500
+++ coreduo-v1	2024-06-07 12:16:11.868865179 -0500
@@ -1,5 +1,5 @@
 dl_dst_lib="lib"
-dl_hwcap=0x0
+dl_hwcap=0x1
 dl_hwcap_important=0x1
 dl_hwcap2=0x0
 dl_hwcap3=0x0
@@ -20,22 +20,22 @@
 env_filtered[0x5]="CONFIG_PROTECT"
 env_filtered[0x6]="LOGNAME"
 env_filtered[0x7]="MANPATH"
-env_filtered[0x8]="MOTD_SHOWN"
-env_filtered[0x9]="HOME"
-env[0xa]="LANG=C.UTF8"
-env_filtered[0xb]="LS_COLORS"
-env_filtered[0xc]="INFOPATH"
-env_filtered[0xd]="TERM"
-env_filtered[0xe]="LESSOPEN"
-env_filtered[0xf]="USER"
-env_filtered[0x10]="MANPAGER"
-env_filtered[0x11]="SHLVL"
-env_filtered[0x12]="PAGER"
-env_filtered[0x13]="GCC_SPECS"
-env_filtered[0x14]="HUSHLOGIN"
-env[0x15]="PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/bin"
-env_filtered[0x16]="MAIL"
-env_filtered[0x17]="_"
+env_filtered[0x8]="_"
+env_filtered[0x9]="MOTD_SHOWN"
+env_filtered[0xa]="HOME"
+env[0xb]="LANG=C.UTF8"
+env_filtered[0xc]="LS_COLORS"
+env_filtered[0xd]="INFOPATH"
+env_filtered[0xe]="TERM"
+env_filtered[0xf]="LESSOPEN"
+env_filtered[0x10]="USER"
+env_filtered[0x11]="MANPAGER"
+env_filtered[0x12]="SHLVL"
+env_filtered[0x13]="PAGER"
+env_filtered[0x14]="GCC_SPECS"
+env_filtered[0x15]="HUSHLOGIN"
+env[0x16]="PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/bin"
+env_filtered[0x17]="MAIL"
 path.prefix="/usr"
 path.rtld="/lib/ld-linux.so.2"
 path.sysconfdir="/etc"
@@ -44,19 +44,19 @@
 version.release="stable"
 version.version="2.39"
 auxv[0x0].a_type=0x20
-auxv[0x0].a_val=0xb7f2f570
+auxv[0x0].a_val=0xb7f4f570
 auxv[0x1].a_type=0x21
-auxv[0x1].a_val=0xb7f2f000
+auxv[0x1].a_val=0xb7f4f000
 auxv[0x2].a_type=0x33
 auxv[0x2].a_val=0x5a0
 auxv[0x3].a_type=0x10
-auxv[0x3].a_val=0x382fbff
+auxv[0x3].a_val=0x788fbff
 auxv[0x4].a_type=0x6
 auxv[0x4].a_val=0x1000
 auxv[0x5].a_type=0x11
 auxv[0x5].a_val=0x64
 auxv[0x6].a_type=0x3
-auxv[0x6].a_val=0xb7f31034
+auxv[0x6].a_val=0xb7f51034
 auxv[0x7].a_type=0x4
 auxv[0x7].a_val=0x20
 auxv[0x8].a_type=0x5
@@ -66,7 +66,7 @@
 auxv[0xa].a_type=0x8
 auxv[0xa].a_val=0x0
 auxv[0xb].a_type=0x9
-auxv[0xb].a_val=0xb7f4f110
+auxv[0xb].a_val=0xb7f6f110
 auxv[0xc].a_type=0xb
 auxv[0xc].a_val=0x0
 auxv[0xd].a_type=0xc
@@ -78,7 +78,7 @@
 auxv[0x10].a_type=0x17
 auxv[0x10].a_val=0x0
 auxv[0x11].a_type=0x19
-auxv[0x11].a_val=0xbfbe68fb
+auxv[0x11].a_val=0xbfed59bb
 auxv[0x12].a_type=0x1a
 auxv[0x12].a_val=0x0
 auxv[0x13].a_type=0x1f
@@ -96,18 +96,18 @@
 uname.machine="i686"
 uname.domainname="(none)"
 x86.cpu_features.basic.kind=0x1
-x86.cpu_features.basic.max_cpuid=0x3
+x86.cpu_features.basic.max_cpuid=0xa
 x86.cpu_features.basic.family=0x6
-x86.cpu_features.basic.model=0x7
-x86.cpu_features.basic.stepping=0x3
-x86.cpu_features.features[0x0].cpuid[0x0]=0x673
+x86.cpu_features.basic.model=0xe
+x86.cpu_features.basic.stepping=0x8
+x86.cpu_features.features[0x0].cpuid[0x0]=0x6e8
 x86.cpu_features.features[0x0].cpuid[0x1]=0x800
-x86.cpu_features.features[0x0].cpuid[0x2]=0x80200000
-x86.cpu_features.features[0x0].cpuid[0x3]=0x383fbff
+x86.cpu_features.features[0x0].cpuid[0x2]=0x80200001
+x86.cpu_features.features[0x0].cpuid[0x3]=0xf89fbff
 x86.cpu_features.features[0x0].active[0x0]=0x0
 x86.cpu_features.features[0x0].active[0x1]=0x0
-x86.cpu_features.features[0x0].active[0x2]=0x0
-x86.cpu_features.features[0x0].active[0x3]=0x3808110
+x86.cpu_features.features[0x0].active[0x2]=0x1
+x86.cpu_features.features[0x0].active[0x3]=0x7888110
 x86.cpu_features.features[0x1].cpuid[0x0]=0x0
 x86.cpu_features.features[0x1].cpuid[0x1]=0x0
 x86.cpu_features.features[0x1].cpuid[0x2]=0x0
@@ -116,10 +116,10 @@
 x86.cpu_features.features[0x1].active[0x1]=0x0
 x86.cpu_features.features[0x1].active[0x2]=0x0
 x86.cpu_features.features[0x1].active[0x3]=0x0
-x86.cpu_features.features[0x2].cpuid[0x0]=0x0
+x86.cpu_features.features[0x2].cpuid[0x0]=0x6e8
 x86.cpu_features.features[0x2].cpuid[0x1]=0x0
 x86.cpu_features.features[0x2].cpuid[0x2]=0x0
-x86.cpu_features.features[0x2].cpuid[0x3]=0x0
+x86.cpu_features.features[0x2].cpuid[0x3]=0x100000
 x86.cpu_features.features[0x2].active[0x0]=0x0
 x86.cpu_features.features[0x2].active[0x1]=0x0
 x86.cpu_features.features[0x2].active[0x2]=0x0
@@ -140,7 +140,7 @@
 x86.cpu_features.features[0x4].active[0x1]=0x0
 x86.cpu_features.features[0x4].active[0x2]=0x0
 x86.cpu_features.features[0x4].active[0x3]=0x0
-x86.cpu_features.features[0x5].cpuid[0x0]=0x0
+x86.cpu_features.features[0x5].cpuid[0x0]=0x24
 x86.cpu_features.features[0x5].cpuid[0x1]=0x0
 x86.cpu_features.features[0x5].cpuid[0x2]=0x0
 x86.cpu_features.features[0x5].cpuid[0x3]=0x0
@@ -197,7 +197,7 @@
 x86.cpu_features.preferred.MathVec_Prefer_No_AVX512=0x0
 x86.cpu_features.preferred.Prefer_FSRM=0x0
 x86.cpu_features.preferred.Avoid_Short_Distance_REP_MOVSB=0x0
-x86.cpu_features.isa_1=0x0
+x86.cpu_features.isa_1=0x1
 x86.cpu_features.xsave_state_size=0x0
 x86.cpu_features.xsave_state_full_size=0x0
 x86.cpu_features.data_cache_size=0x8000
Comment 4 immolo 2024-06-07 17:27:24 UTC
Created attachment 895331 [details]
glibc-2.39-r6-build.log

Some some further testing I have found this is a requirement of SSE2, you can confirm this in QEMU by using -cpu pentium3,+sse2 as the CPU type which matches what iamben has said above as both althon and core2duo in QEMU have this enabled. (A real AlthonXP will likely fail as not many had sse2 enabled though)

So far I have found none of the 2.38 are affected by this and know 2.39-r2 does work as I'm running that on a Pentium2 system, so this gives us a rough timeline of when the breakage happened.

The log provided is built on read hardware and running readelf shows x86-64-baseline and x86-64-v3 ISAs are be selected even on a full x86 system.

# readelf -n libc.so && readelf -n elf/ld-linux.so.2

Displaying notes found in: .note.gnu.property
  Owner                Data size 	Description
  GNU                  0x00000024	NT_GNU_PROPERTY_TYPE_0
      Properties: x86 ISA needed: x86-64-baseline
	x86 feature used: x86, x87, XMM
	x86 ISA used: x86-64-baseline

Displaying notes found in: .note.ABI-tag
  Owner                Data size 	Description
  GNU                  0x00000010	NT_GNU_ABI_TAG (ABI version tag)
    OS: Linux, ABI: 3.2.0

Displaying notes found in: .note.gnu.property
  Owner                Data size 	Description
  GNU                  0x00000018	NT_GNU_PROPERTY_TYPE_0
      Properties: x86 feature used: x86, x87, FXSR, XSAVE, XSAVEC
	x86 ISA used: x86-64-baseline, x86-64-v3
Comment 5 immolo 2024-06-07 17:50:24 UTC
Last known working machine info:

# readelf -n /usr/lib/libc.
libc.a     libc.so    libc.so.6
root@MisterSkinnyLegs ~ # readelf -n /usr/lib/libc.
libc.a     libc.so    libc.so.6
root@MisterSkinnyLegs ~ # readelf -n /usr/lib/libc.
libc.a     libc.so    libc.so.6
root@MisterSkinnyLegs ~ # readelf -n /usr/lib/libc.so.6

Displaying notes found in: .note.ABI-tag
  Owner                Data size 	Description
  GNU                  0x00000010	NT_GNU_ABI_TAG (ABI version tag)
    OS: Linux, ABI: 3.2.0

Displaying notes found in: .note.gnu.property
  Owner                Data size 	Description
  GNU                  0x00000018	NT_GNU_PROPERTY_TYPE_0
      Properties: x86 feature used: x86, x87, XMM
	x86 ISA used: x86-64-baseline, x86-64-v2

# ld.so --list-diagnostics
dl_dst_lib="lib"
dl_hwcap=0x0
dl_hwcap_important=0x1
dl_hwcap2=0x0
dl_hwcaps_subdirs=""
dl_hwcaps_subdirs_active=0x0
dl_pagesize=0x1000
dl_platform="i686"
dl_profile_output="/var/tmp"
dl_string_platform=0x31
dso.ld="ld-linux.so.2"
dso.libc="libc.so.6"
env_filtered[0x0]="SHELL"
env_filtered[0x1]="LESS"
env_filtered[0x2]="CONFIG_PROTECT_MASK"
env_filtered[0x3]="EDITOR"
env_filtered[0x4]="PWD"
env_filtered[0x5]="CONFIG_PROTECT"
env_filtered[0x6]="LOGNAME"
env_filtered[0x7]="MANPATH"
env_filtered[0x8]="HOME"
env[0x9]="LANG=C.UTF8"
env_filtered[0xa]="INFOPATH"
env_filtered[0xb]="TERM"
env_filtered[0xc]="LESSOPEN"
env_filtered[0xd]="USER"
env_filtered[0xe]="MANPAGER"
env_filtered[0xf]="SHLVL"
env_filtered[0x10]="PAGER"
env_filtered[0x11]="LEX"
env_filtered[0x12]="GCC_SPECS"
env[0x13]="PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/bin"
env_filtered[0x14]="_"
path.prefix="/usr"
path.rtld="/lib/ld-linux.so.2"
path.sysconfdir="/etc"
path.system_dirs[0x0]="/lib/"
path.system_dirs[0x1]="/usr/lib/"
version.release="stable"
version.version="2.39"
auxv[0x0].a_type=0x20
auxv[0x0].a_val=0xb7f28570
auxv[0x1].a_type=0x21
auxv[0x1].a_val=0xb7f28000
auxv[0x2].a_type=0x33
auxv[0x2].a_val=0x5a0
auxv[0x3].a_type=0x10
auxv[0x3].a_val=0x182f9ff
auxv[0x4].a_type=0x6
auxv[0x4].a_val=0x1000
auxv[0x5].a_type=0x11
auxv[0x5].a_val=0x64
auxv[0x6].a_type=0x3
auxv[0x6].a_val=0xb7f2a034
auxv[0x7].a_type=0x4
auxv[0x7].a_val=0x20
auxv[0x8].a_type=0x5
auxv[0x8].a_val=0xa
auxv[0x9].a_type=0x7
auxv[0x9].a_val=0x0
auxv[0xa].a_type=0x8
auxv[0xa].a_val=0x0
auxv[0xb].a_type=0x9
auxv[0xb].a_val=0xb7f448c0
auxv[0xc].a_type=0xb
auxv[0xc].a_val=0x0
auxv[0xd].a_type=0xc
auxv[0xd].a_val=0x0
auxv[0xe].a_type=0xd
auxv[0xe].a_val=0x0
auxv[0xf].a_type=0xe
auxv[0xf].a_val=0x0
auxv[0x10].a_type=0x17
auxv[0x10].a_val=0x0
auxv[0x11].a_type=0x19
auxv[0x11].a_val=0xbfd9066b
auxv[0x12].a_type=0x1a
auxv[0x12].a_val=0x0
auxv[0x13].a_type=0x1f
auxv[0x13].a_val_string="/usr/bin/ld.so"
auxv[0x14].a_type=0xf
auxv[0x14].a_val_string="i686"
auxv[0x15].a_type=0x1b
auxv[0x15].a_val=0x1c
auxv[0x16].a_type=0x1c
auxv[0x16].a_val=0x20
uname.sysname="Linux"
uname.nodename="MisterSkinnyLegs"
uname.release="6.6.21-gentoo-dist"
uname.version="#1 SMP PREEMPT_DYNAMIC Wed Mar  6 20:03:47 -00 2024"
uname.machine="i686"
uname.domainname="(none)"
x86.cpu_features.basic.kind=0x1
x86.cpu_features.basic.max_cpuid=0x2
x86.cpu_features.basic.family=0x6
x86.cpu_features.basic.model=0x5
x86.cpu_features.basic.stepping=0x2
x86.cpu_features.features[0x0].cpuid[0x0]=0x652
x86.cpu_features.features[0x0].cpuid[0x1]=0x0
x86.cpu_features.features[0x0].cpuid[0x2]=0x0
x86.cpu_features.features[0x0].cpuid[0x3]=0x183f9ff
x86.cpu_features.features[0x0].active[0x0]=0x0
x86.cpu_features.features[0x0].active[0x1]=0x0
x86.cpu_features.features[0x0].active[0x2]=0x0
x86.cpu_features.features[0x0].active[0x3]=0x1808110
x86.cpu_features.features[0x1].cpuid[0x0]=0x0
x86.cpu_features.features[0x1].cpuid[0x1]=0x0
x86.cpu_features.features[0x1].cpuid[0x2]=0x0
x86.cpu_features.features[0x1].cpuid[0x3]=0x0
x86.cpu_features.features[0x1].active[0x0]=0x0
x86.cpu_features.features[0x1].active[0x1]=0x0
x86.cpu_features.features[0x1].active[0x2]=0x0
x86.cpu_features.features[0x1].active[0x3]=0x0
x86.cpu_features.features[0x2].cpuid[0x0]=0x0
x86.cpu_features.features[0x2].cpuid[0x1]=0x0
x86.cpu_features.features[0x2].cpuid[0x2]=0x0
x86.cpu_features.features[0x2].cpuid[0x3]=0x0
x86.cpu_features.features[0x2].active[0x0]=0x0
x86.cpu_features.features[0x2].active[0x1]=0x0
x86.cpu_features.features[0x2].active[0x2]=0x0
x86.cpu_features.features[0x2].active[0x3]=0x0
x86.cpu_features.features[0x3].cpuid[0x0]=0x0
x86.cpu_features.features[0x3].cpuid[0x1]=0x0
x86.cpu_features.features[0x3].cpuid[0x2]=0x0
x86.cpu_features.features[0x3].cpuid[0x3]=0x0
x86.cpu_features.features[0x3].active[0x0]=0x0
x86.cpu_features.features[0x3].active[0x1]=0x0
x86.cpu_features.features[0x3].active[0x2]=0x0
x86.cpu_features.features[0x3].active[0x3]=0x0
x86.cpu_features.features[0x4].cpuid[0x0]=0x0
x86.cpu_features.features[0x4].cpuid[0x1]=0x0
x86.cpu_features.features[0x4].cpuid[0x2]=0x0
x86.cpu_features.features[0x4].cpuid[0x3]=0x0
x86.cpu_features.features[0x4].active[0x0]=0x0
x86.cpu_features.features[0x4].active[0x1]=0x0
x86.cpu_features.features[0x4].active[0x2]=0x0
x86.cpu_features.features[0x4].active[0x3]=0x0
x86.cpu_features.features[0x5].cpuid[0x0]=0x0
x86.cpu_features.features[0x5].cpuid[0x1]=0x0
x86.cpu_features.features[0x5].cpuid[0x2]=0x0
x86.cpu_features.features[0x5].cpuid[0x3]=0x0
x86.cpu_features.features[0x5].active[0x0]=0x0
x86.cpu_features.features[0x5].active[0x1]=0x0
x86.cpu_features.features[0x5].active[0x2]=0x0
x86.cpu_features.features[0x5].active[0x3]=0x0
x86.cpu_features.features[0x6].cpuid[0x0]=0x0
x86.cpu_features.features[0x6].cpuid[0x1]=0x0
x86.cpu_features.features[0x6].cpuid[0x2]=0x0
x86.cpu_features.features[0x6].cpuid[0x3]=0x0
x86.cpu_features.features[0x6].active[0x0]=0x0
x86.cpu_features.features[0x6].active[0x1]=0x0
x86.cpu_features.features[0x6].active[0x2]=0x0
x86.cpu_features.features[0x6].active[0x3]=0x0
x86.cpu_features.features[0x7].cpuid[0x0]=0x0
x86.cpu_features.features[0x7].cpuid[0x1]=0x0
x86.cpu_features.features[0x7].cpuid[0x2]=0x0
x86.cpu_features.features[0x7].cpuid[0x3]=0x0
x86.cpu_features.features[0x7].active[0x0]=0x0
x86.cpu_features.features[0x7].active[0x1]=0x0
x86.cpu_features.features[0x7].active[0x2]=0x0
x86.cpu_features.features[0x7].active[0x3]=0x0
x86.cpu_features.features[0x8].cpuid[0x0]=0x0
x86.cpu_features.features[0x8].cpuid[0x1]=0x0
x86.cpu_features.features[0x8].cpuid[0x2]=0x0
x86.cpu_features.features[0x8].cpuid[0x3]=0x0
x86.cpu_features.features[0x8].active[0x0]=0x0
x86.cpu_features.features[0x8].active[0x1]=0x0
x86.cpu_features.features[0x8].active[0x2]=0x0
x86.cpu_features.features[0x8].active[0x3]=0x0
x86.cpu_features.features[0x9].cpuid[0x0]=0x0
x86.cpu_features.features[0x9].cpuid[0x1]=0x0
x86.cpu_features.features[0x9].cpuid[0x2]=0x0
x86.cpu_features.features[0x9].cpuid[0x3]=0x0
x86.cpu_features.features[0x9].active[0x0]=0x0
x86.cpu_features.features[0x9].active[0x1]=0x0
x86.cpu_features.features[0x9].active[0x2]=0x0
x86.cpu_features.features[0x9].active[0x3]=0x0
x86.cpu_features.preferred.Fast_Rep_String=0x0
x86.cpu_features.preferred.Fast_Copy_Backward=0x0
x86.cpu_features.preferred.Slow_BSF=0x0
x86.cpu_features.preferred.Fast_Unaligned_Load=0x0
x86.cpu_features.preferred.Prefer_PMINUB_for_stringop=0x0
x86.cpu_features.preferred.Fast_Unaligned_Copy=0x0
x86.cpu_features.preferred.I586=0x1
x86.cpu_features.preferred.I686=0x1
x86.cpu_features.preferred.Slow_SSE4_2=0x0
x86.cpu_features.preferred.AVX_Fast_Unaligned_Load=0x0
x86.cpu_features.preferred.Prefer_MAP_32BIT_EXEC=0x0
x86.cpu_features.preferred.Prefer_No_VZEROUPPER=0x0
x86.cpu_features.preferred.Prefer_ERMS=0x0
x86.cpu_features.preferred.Prefer_No_AVX512=0x1
x86.cpu_features.preferred.MathVec_Prefer_No_AVX512=0x0
x86.cpu_features.preferred.Prefer_FSRM=0x0
x86.cpu_features.preferred.Avoid_Short_Distance_REP_MOVSB=0x0
x86.cpu_features.isa_1=0x0
x86.cpu_features.xsave_state_size=0x0
x86.cpu_features.xsave_state_full_size=0x0
x86.cpu_features.data_cache_size=0x4000
x86.cpu_features.shared_cache_size=0x80000
x86.cpu_features.non_temporal_threshold=0x60000
x86.cpu_features.rep_movsb_threshold=0x800
x86.cpu_features.rep_movsb_stop_threshold=0x60000
x86.cpu_features.rep_stosb_threshold=0x800
x86.cpu_features.level1_icache_size=0x4000
x86.cpu_features.level1_icache_linesize=0x20
x86.cpu_features.level1_dcache_size=0x4000
x86.cpu_features.level1_dcache_assoc=0x4
x86.cpu_features.level1_dcache_linesize=0x20
x86.cpu_features.level2_cache_size=0x80000
x86.cpu_features.level2_cache_assoc=0x4
x86.cpu_features.level2_cache_linesize=0x20
x86.cpu_features.level3_cache_size=0x0
x86.cpu_features.level3_cache_assoc=0x0
x86.cpu_features.level3_cache_linesize=0x0
x86.cpu_features.level4_cache_size=0x0
x86.cpu_features.cachesize_non_temporal_divisor=0x4

# emerge --info

Portage 3.0.63 (python 3.11.8-final-0, default/linux/x86/23.0/i686, gcc-14, glibc-2.39-r2, 6.6.21-gentoo-dist i686)
=================================================================
System uname: Linux-6.6.21-gentoo-dist-i686-Pentium_II_-Deschutes-with-glibc2.39
KiB Mem:      393584 total,    180916 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Tue, 02 Apr 2024 12:00:00 +0000
Head commit of repository gentoo: 28556cfce7a8d5512860ff78d2d4aa19eac3f9dd
sh bash 5.2_p26
ld GNU ld (Gentoo 2.40 p5) 2.40.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26::gentoo
dev-build/autoconf:        2.71-r7::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.29.0::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.4.0-r1::gentoo
dev-lang/perl:             5.38.2-r2::gentoo
dev-lang/python:           3.11.8_p1::gentoo, 3.12.2_p1::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/openrc:           0.54::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.40-r5::gentoo, 2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             13.2.1_p20230826::gentoo, 14.0.1_pre20240331::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-kernel/linux-headers:  6.7-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r2::gentoo
Repositories:

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

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://gentoo.osuosl.org/releases/x86/binpackages/17.0/i686

ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="@FREE"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=native -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d"
CXXFLAGS="-Os -march=native -pipe"
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="-Os -march=native -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 userfetch userpriv usersandbox usersync xattr"
FFLAGS="-Os -march=native -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
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="acl bzip2 crypt gdbm iconv ipv6 libtirpc lzma ncurses nls openmp pam pcre readline seccomp ssl test-rust unicode x86 xattr zlib zstd" ABI_X86="32" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx sse" 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" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy" 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, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, 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 7 immolo 2024-06-07 22:21:37 UTC
Created attachment 895370 [details, diff]
Cause - 0041-x86-Define-MINIMUM_X86_ISA_LEVEL-in-config.h-BZ-3167.patch

I found the breakage started at 2.39-r4 which shows 0041-x86-Define-MINIMUM_X86_ISA_LEVEL-in-config.h-BZ-3167.patch as the offender, removing this patch allows glibc to work as it did previously.

As discussed on #gentoo-toolchain, this isn't within my skillset to fix however I hope this is all the information someone else needs to do the final fix.
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-09 08:42:37 UTC
We made some progress in #gentoo-toolchain earlier with awilfox (thanks!).

Filed upstream at https://sourceware.org/bugzilla/show_bug.cgi?id=31867.
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-09 09:05:22 UTC
With stage3-i686-openrc-20240603T164904Z.tar.xz, with no changes:
```
x86 ~ # readelf -n /lib/ld-linux.so.2

Displaying notes found in: .note.gnu.property
Owner                Data size        Description
GNU                  0x00000018       NT_GNU_PROPERTY_TYPE_0
Properties: x86 feature used: x86, FXSR, XSAVE, XSAVEC
x86 ISA used: x86-64-baseline, x86-64-v3
```

After rebuilding glibc with no changes:
```
x86 ~ # readelf -n /lib/ld-linux.so.2

Displaying notes found in: .note.gnu.property
Owner                Data size        Description
GNU                  0x00000018       NT_GNU_PROPERTY_TYPE_0
Properties: x86 feature used: x86, FXSR, XSAVE, XSAVEC
x86 ISA used: x86-64-baseline, x86-64-v3
```

After rebuilding with a candidate patch from awilfox:
```
# readelf -n /lib/ld-linux.so.2

Displaying notes found in: .note.gnu.property
Owner                Data size        Description
GNU                  0x00000018       NT_GNU_PROPERTY_TYPE_0
Properties: x86 feature used: x86, FXSR, XSAVE, XSAVEC
x86 ISA used: x86-64-baseline, x86-64-v3
```
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-09 09:47:53 UTC
At the moment, I think awilfox's patch is probably right, but not sufficient. I'm looking at where the v3 marker comes from.

Reverting the patch immolo mentions doesn't seem to help me.
Comment 12 A. Wilcox (awilfox) 2024-06-09 14:00:26 UTC
FWIW, tested on a Pentium 3 machine:

# lscpu
Architecture:           i686
  CPU op-mode(s):       32-bit
  Address sizes:        36 bits physical, 32 bits virtual
  Byte Order:           Little Endian
CPU(s):                 1
  On-line CPU(s) list:  0
Vendor ID:              GenuineIntel
  BIOS Vendor ID:       Intel
  Model name:           Pentium III (Coppermine)
    BIOS Model name:    Pentium(R) III processor 733 MHz  CPU @ 0.7GHz
    BIOS CPU family:    17
    CPU family:         6
    Model:              8
    Thread(s) per core: 1
    Core(s) per socket: 1
    Socket(s):          1
    Stepping:           3
    BogoMIPS:           1461.90
    Flags:              fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36 mmx fxsr sse cpuid
Vulnerabilities:        
  Gather data sampling: Not affected
  Itlb multihit:        KVM: Mitigation: VMX unsupported
  L1tf:                 Vulnerable
  Mds:                  Vulnerable: Clear CPU buffers attempted, no microcode; SMT disabled
  Meltdown:             Vulnerable
  Mmio stale data:      Unknown: No mitigations
  Retbleed:             Not affected
  Spec rstack overflow: Not affected
  Spec store bypass:    Vulnerable
  Spectre v1:           Mitigation; usercopy/swapgs barriers and __user pointer sanitization
  Spectre v2:           Mitigation; Retpolines, STIBP disabled, RSB filling, PBRSB-eIBRS Not affected
  Srbds:                Not affected
  Tsx async abort:      Not affected


Before patch:

# chroot /opt/gentoo /bin/bash
/usr/lib/libc.so.6: CPU ISA level is lower than required

After patch:

# chroot /opt/gentoo /bin/bash
dircolors: CPU ISA level is lower than required
root@fj / #

sys-apps/coreutils needs a rebuild but otherwise it is working, i.e. (this is an empty stage3):

root@fj / # /lib/libc.so.6
GNU C Library (Gentoo 2.39-r6 (patchset 6)) stable release version 2.39.
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 13.2.1 20240210.
libc ABIs: UNIQUE IFUNC ABSOLUTE
Minimum supported kernel: 3.2.0
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
oot@fj / # emerge --info
setlocale: unsupported locale setting
!!! Section 'gentoo' in repos.conf has location attribute set to nonexistent directory: '/var/db/repos/gentoo'
!!! Invalid Repository Location (not a dir): '/var/db/repos/gentoo'
setlocale: unsupported locale setting
WARNING: One or more repositories have missing repo_name entries:

	/var/db/repos/gentoo/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.


Portage 3.0.63 (python 3.12.3-final-0, unavailable, gcc-13, glibc-2.39-r6, 5.15.132-mc6-easy i686)
=================================================================
System uname: Linux-5.15.132-mc6-easy-i686-with-glibc2.39
KiB Mem:      504032 total,     21004 free
KiB Swap:          0 total,         0 free
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.42 p3) 2.42.0
dev-lang/python:          3.12.3::gentoo
sys-devel/binutils:       2.42-r1::gentoo
sys-kernel/linux-headers: 6.6-r1::gentoo (virtual/os-headers)
Repositories:

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://distfiles.gentoo.org/releases/x86/binpackages/23.0/i686

ACCEPT_LICENSE="* -@EULA"
CFLAGS="-O2 -march=i686 -pipe"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gentoo-release /etc/sandbox.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/var/cache/distfiles"
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 userfetch userpriv usersandbox usersync xattr"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
PKGDIR="/var/cache/binpkgs"
PORTAGE_TMPDIR="/var/tmp"
USE=""
Unset:  ACCEPT_KEYWORDS, CHOST, EMERGE_DEFAULT_OPTS, ENV_UNSET, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND
Comment 13 immolo 2024-06-10 16:57:56 UTC
I've tested the upstream patch https://sourceware.org/bugzilla/attachment.cgi?id=15573&action=diff&collapsed=&headers=1&format=raw by H.J. Lu and found the following.

On my Pentium 3 machine I have confirmed this fixes the issue.

Enabling tests causes one fail in localedata/sort-test but I'm fairly confident this is known issue which doesn't matter to the patch in question.

Below are my findings:

# readelf -n /lib/libc.so.6

Displaying notes found in: .note.ABI-tag
  Owner                Data size 	Description
  GNU                  0x00000010	NT_GNU_ABI_TAG (ABI version tag)
    OS: Linux, ABI: 3.2.0

Displaying notes found in: .note.gnu.property
  Owner                Data size 	Description
  GNU                  0x00000018	NT_GNU_PROPERTY_TYPE_0
      Properties: x86 feature used: x86, x87, XMM
	x86 ISA used: x86-64-baseline

Test suite results:

UNSUPPORTED: debug/tst-fortify-syslog
UNSUPPORTED: elf/tst-decorate-maps
UNSUPPORTED: elf/tst-dlopen-self-container
UNSUPPORTED: elf/tst-dlopen-tlsmodid-container
UNSUPPORTED: elf/tst-env-setuid
UNSUPPORTED: elf/tst-env-setuid-static
UNSUPPORTED: elf/tst-env-setuid-tunables
UNSUPPORTED: elf/tst-glibc-hwcaps-prepend-cache
UNSUPPORTED: elf/tst-gnu2-tls2
XPASS: elf/tst-ifunc-isa-1
XPASS: elf/tst-ifunc-isa-1-static
UNSUPPORTED: elf/tst-ifunc-isa-2
UNSUPPORTED: elf/tst-ifunc-isa-2-static
UNSUPPORTED: elf/tst-ldconfig-bad-aux-cache
UNSUPPORTED: elf/tst-ldconfig-ld_so_conf-update
UNSUPPORTED: elf/tst-pldd
UNSUPPORTED: elf/tst-preload-pthread-libc
XPASS: elf/tst-protected1a
XPASS: elf/tst-protected1b
UNSUPPORTED: elf/tst-rootdir
UNSUPPORTED: elf/tst-valgrind-smoke
UNSUPPORTED: io/tst-getcwd-abspath
UNSUPPORTED: io/tst-getcwd-smallbuff
UNSUPPORTED: locale/tst-localedef-path-norm
FAIL: localedata/sort-test
UNSUPPORTED: localedata/tst-localedef-hardlinks
UNSUPPORTED: math/test-fenv-sse-2
UNSUPPORTED: misc/tst-adjtimex
UNSUPPORTED: misc/tst-adjtimex-time64
UNSUPPORTED: misc/tst-clock_adjtime
UNSUPPORTED: misc/tst-clock_adjtime-time64
UNSUPPORTED: misc/tst-mount
UNSUPPORTED: misc/tst-ntp_adjtime
UNSUPPORTED: misc/tst-ntp_adjtime-time64
UNSUPPORTED: misc/tst-pidfd_getpid
UNSUPPORTED: misc/tst-pkey
UNSUPPORTED: misc/tst-syslog
UNSUPPORTED: misc/tst-syslog-long-progname
UNSUPPORTED: misc/tst-ttyname-namespace
UNSUPPORTED: nptl/test-cond-printers
UNSUPPORTED: nptl/test-condattr-printers
UNSUPPORTED: nptl/test-mutex-printers
UNSUPPORTED: nptl/test-mutexattr-printers
UNSUPPORTED: nptl/test-rwlock-printers
UNSUPPORTED: nptl/test-rwlockattr-printers
UNSUPPORTED: nptl/tst-pthread-gdb-attach
UNSUPPORTED: nptl/tst-pthread-gdb-attach-static
UNSUPPORTED: nptl/tst-pthread-getattr
XPASS: nptl/tst-sched1
UNSUPPORTED: nss/mtrace-tst-nss-gai-hv2-canonname
UNSUPPORTED: nss/tst-initgroups1
UNSUPPORTED: nss/tst-initgroups2
UNSUPPORTED: nss/tst-nss-compat1
UNSUPPORTED: nss/tst-nss-db-endgrent
UNSUPPORTED: nss/tst-nss-db-endpwent
UNSUPPORTED: nss/tst-nss-files-alias-leak
UNSUPPORTED: nss/tst-nss-files-alias-truncated
UNSUPPORTED: nss/tst-nss-files-hosts-erange
UNSUPPORTED: nss/tst-nss-files-hosts-getent
UNSUPPORTED: nss/tst-nss-files-hosts-long
UNSUPPORTED: nss/tst-nss-files-hosts-multi
UNSUPPORTED: nss/tst-nss-files-hosts-v4mapped
UNSUPPORTED: nss/tst-nss-gai-actions
UNSUPPORTED: nss/tst-nss-gai-hv2-canonname
UNSUPPORTED: nss/tst-nss-test3
UNSUPPORTED: nss/tst-reload1
UNSUPPORTED: nss/tst-reload2
UNSUPPORTED: posix/bug-ga2
UNSUPPORTED: posix/bug-ga2-mem
UNSUPPORTED: posix/tst-spawn-cgroup
UNSUPPORTED: posix/tst-sysconf-empty-chroot
UNSUPPORTED: posix/tst-vfork3
UNSUPPORTED: posix/tst-vfork3-mem
UNSUPPORTED: resolv/mtrace-tst-leaks2
UNSUPPORTED: resolv/tst-leaks2
UNSUPPORTED: resolv/tst-resolv-res_init
UNSUPPORTED: resolv/tst-resolv-res_init-thread
UNSUPPORTED: resolv/tst-resolv-threads
UNSUPPORTED: rt/tst-bz28213
UNSUPPORTED: rt/tst-mqueue1
UNSUPPORTED: rt/tst-mqueue1-time64
UNSUPPORTED: rt/tst-mqueue10
UNSUPPORTED: rt/tst-mqueue10-time64
UNSUPPORTED: rt/tst-mqueue2
UNSUPPORTED: rt/tst-mqueue2-time64
UNSUPPORTED: rt/tst-mqueue3
UNSUPPORTED: rt/tst-mqueue4
UNSUPPORTED: rt/tst-mqueue4-time64
UNSUPPORTED: rt/tst-mqueue5
UNSUPPORTED: rt/tst-mqueue6
UNSUPPORTED: rt/tst-mqueue8
UNSUPPORTED: rt/tst-mqueue8-time64
UNSUPPORTED: rt/tst-mqueue8x
UNSUPPORTED: stdio-common/tst-popen3
UNSUPPORTED: stdlib/tst-secure-getenv
UNSUPPORTED: stdlib/tst-system
UNSUPPORTED: string/tst-memchr-rtm
UNSUPPORTED: string/tst-memcmp-rtm
UNSUPPORTED: string/tst-memmove-rtm
UNSUPPORTED: string/tst-memrchr-rtm
UNSUPPORTED: string/tst-memset-rtm
UNSUPPORTED: string/tst-strcasecmp-rtm
UNSUPPORTED: string/tst-strchr-rtm
UNSUPPORTED: string/tst-strcmp-rtm
UNSUPPORTED: string/tst-strcpy-rtm
UNSUPPORTED: string/tst-strerror
UNSUPPORTED: string/tst-strlen-rtm
UNSUPPORTED: string/tst-strncasecmp-rtm
UNSUPPORTED: string/tst-strncmp-rtm
UNSUPPORTED: string/tst-strrchr-rtm
UNSUPPORTED: string/tst-strsignal
UNSUPPORTED: string/tst-wcscmp-rtm
UNSUPPORTED: string/tst-wcsncmp-rtm
UNSUPPORTED: sunrpc/tst-svc_register
XPASS: support/tst-support_descriptors
UNSUPPORTED: time/tst-clock_settime
UNSUPPORTED: time/tst-clock_settime-time64
UNSUPPORTED: time/tst-settimeofday
UNSUPPORTED: time/tst-settimeofday-time64
UNSUPPORTED: time/tst-strftime4
UNSUPPORTED: time/tst-y2039
make[1]: Leaving directory '/var/tmp/portage/sys-libs/glibc-2.39-r6/work/glibc-2.39'
make[1]: Entering directory '/var/tmp/portage/sys-libs/glibc-2.39-r6/work/glibc-2.39'
		=== Summary of results ===
make[1]: Leaving directory '/var/tmp/portage/sys-libs/glibc-2.39-r6/work/glibc-2.39'
make[1]: Entering directory '/var/tmp/portage/sys-libs/glibc-2.39-r6/work/glibc-2.39'
      1 FAIL
   4783 PASS
    114 UNSUPPORTED
     16 XFAIL

Tested-by: Ian Jordan <immoloism@gmail.com>
Comment 14 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-12 04:36:28 UTC
commit 7df301dc89c4fb028895dfe837e3e3f2d21e2994
Author: Andreas K. Hüttel <dilfridge@gentoo.org>
Date:   Tue Jun 11 22:14:05 2024 +0200

sys-libs/glibc: add 2.39 patchlevel 8

Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

... but it's not yet keyworded and the patch needs to be fixed up. Nearly there.
Comment 15 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-12 23:21:51 UTC
commit 172d2d0406fc7241aef756bf2aee1c978b699533 (HEAD -> master, origin/master, origin/HEAD)
Author: Andreas K. Hüttel <dilfridge@gentoo.org>
Date:   Thu Jun 13 01:15:37 2024 +0200

sys-libs/glibc: drop broken 2.39-r8, add fixed patchset 9 in 2.39-r9

Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Comment 16 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-14 04:08:07 UTC
commit b1377ca21ebf6775928e9491260548401a26459e
Author: Andreas K. Hüttel <dilfridge@gentoo.org>
Date:   Thu Jun 13 15:55:55 2024 +0200

sys-libs/glibc: keyword 2.39-r9

Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

--

The next step will be to rebuild stages with clean binpkgs.
Comment 17 Larry the Git Cow gentoo-dev 2024-06-14 12:46:09 UTC
The bug has been referenced in the following commit(s):

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

commit 4dea6def615f8c1d66ce6284e172eea097e66b2d
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2024-06-14 12:44:19 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2024-06-14 12:45:58 +0000

    sys-libs/glibc: stabilize 2.39-r9 for x86
    
    Bug: https://bugs.gentoo.org/933764
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 sys-libs/glibc/glibc-2.39-r9.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 18 solamour 2024-06-14 23:12:53 UTC
I just tried "install-x86-minimal-20240614T123642Z.iso" and encountered the following error message.

[ 2024-06-14 22:41:16.807353 ] [!!] init (/sbin/init) not found in mounted root device (UNKNOWN)!

A different machine that I updated to "glibc-2.39-r9" also showed the same message, thus became unbootable.
Comment 19 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-14 23:17:05 UTC
(In reply to solamour from comment #18)
> I just tried "install-x86-minimal-20240614T123642Z.iso" and encountered the
> following error message.

The fix isn't even in any ISO yet...

> 
> [ 2024-06-14 22:41:16.807353 ] [!!] init (/sbin/init) not found in mounted
> root device (UNKNOWN)!
> 
> A different machine that I updated to "glibc-2.39-r9" also showed the same
> message, thus became unbootable.

I feel like that's a coincidence given the above?
Comment 20 solamour 2024-06-14 23:44:08 UTC
(In reply to Sam James from comment #19)
> I feel like that's a coincidence given the above?

Most likely yes. I'll wait for the next ISO build.
Comment 21 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-14 23:45:37 UTC
I have a theory as to why your existing setup broke.

1) The ISO is just broken like it was before (so it's just not fixed in there yet, as glibc-2.39-r9 isn't in there).

2) While it can't happen if you do the whole thing natively on a previously working setup because of the glibc sanity check -> you never get a bad point, I think it can happen if
2a) you build binpkgs for an x86 system where a bad glibc is produced but works on that machine (w/ SSE2)
2b) you install the fixed version of glibc (via binpkg or not, doesn't matter as the sanity check passes)
2c) you install a coreutils binpkg built against bad glibc OR your coreutils was already built against a bad glibc (and now it becomes broken because the commit immolo identified before is what makes ld.so abort early)

Maybe. We'll see...
Comment 22 Andreas K. Hüttel archtester gentoo-dev 2024-06-15 00:47:53 UTC
20240614T220409Z  <= this should be the first "good" x86 upload again

Also, if you use binary packages from our mirrors, make sure they have been built after that ^ timestamp (and you deleted local copies of old ones). 

The old ones should get removed from the mirrors automatically, however, that can take time...
Comment 23 solamour 2024-06-15 04:56:25 UTC
After installing "glibc-2.39-r9", I somehow managed to break "env" command, which prevents me from installing many other packages.

# env
env: CPU ISA level is lower than required

If there is an easy fix, I'd like to try, before wiping out and starting from scratch.
Comment 24 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-15 05:58:33 UTC
(In reply to solamour from comment #23)
> After installing "glibc-2.39-r9", I somehow managed to break "env" command,
> which prevents me from installing many other packages.
> 
> # env
> env: CPU ISA level is lower than required
> 
> If there is an easy fix, I'd like to try, before wiping out and starting
> from scratch.

Let me list my rough thoughts on what we do next, then we can try figure out what the best thing for you to try is:

* Obviously, we'll do a news item shortly (next day or two hopefully) once we're clear this definitely works & we have fixed media
* Several suboptions (do we do some? all?)
** Instruct x86 users to run a command which strips the x86 ISA marker notes as a one-off (I need to play with the most elegant way of doing this)
** We put out a patched glibc with the revert for the ld.so abort (so it ignores the ISA markers temporarily) on x86
** We tell users to install clean binpkgs when they're available
** ???
Comment 25 solamour 2024-06-17 06:43:44 UTC
(In reply to Sam James from comment #24)
> Let me list my rough thoughts on what we do next, then we can try figure out
> what the best thing for you to try is:
> 
> * Obviously, we'll do a news item shortly (next day or two hopefully) once
> we're clear this definitely works & we have fixed media
> * Several suboptions (do we do some? all?)
> ** Instruct x86 users to run a command which strips the x86 ISA marker notes
> as a one-off (I need to play with the most elegant way of doing this)
> ** We put out a patched glibc with the revert for the ld.so abort (so it
> ignores the ISA markers temporarily) on x86
> ** We tell users to install clean binpkgs when they're available
> ** ???

That sure doesn't look like an easy fix, and I couldn't put my system offline long, so I went ahead and started from scratch with "install-x86-minimal-20240614T220409Z.iso" and "stage3-i486-openrc-20240614T220409Z.tar.xz". It did solve the problem, although it's more of a cowardly solution. At least the system is up and running.
Comment 26 solamour 2024-07-02 18:28:59 UTC
I have another x86 system that had the same problem, but I left it alone, lest I'd break it. I finally updated, and the process went smoothly. No issues.