Hi,
I'm trying to update my gentoo system but glibc fails to compile. Can please anybody help me to solve this problem?
Here's the Log-File:
Code: Select all
* Package: sys-libs/glibc-2.40-r5:2.2
* Repository: gentoo
* Maintainer: toolchain@gentoo.org
* USE: abi_x86_64 amd64 cet elibc_glibc kernel_linux multiarch multilib ssp stack-realign static-libs systemd
* FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox
* Checking whether python3_13 is suitable ...
* dev-lang/python:3.13 ... [ !! ]
* Checking whether python3_12 is suitable ...
* dev-lang/python:3.12 ... [ ok ]
* Using python3.12 to build (via PYTHON_COMPAT iteration)
>>> Unpacking source...
* Checking general environment sanity.
make -j5 glibc-test
x86_64-pc-linux-gnu-gcc -m64 -march=native -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -march=native -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs glibc-test.c -o glibc-test
* Checking if the system can execute 32-bit binaries ...
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/13/libgcc.a when searching for -lgcc
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lgcc: No such file or directory
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/13/libgcc_s.so.1 when searching for libgcc_s.so.1
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/13/libgcc_s.so.1 when searching for libgcc_s.so.1
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find libgcc_s.so.1: No such file or directory
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/13/libgcc_s.so.1 when searching for libgcc_s.so.1
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/13/libgcc.a when searching for -lgcc
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lgcc: No such file or directory
collect2: error: ld returned 1 exit status
* Failed to compile the ABI test. Broken host glibc? [ ok ]
* Checking running kernel version (6.6.62-gentoo >= 3.2.0) ... [ ok ]
* Checking linux-headers version (6.6.0 >= 3.2.0) ... [ ok ]
>>> Unpacking glibc-2.40.tar.xz to /var/tmp/portage/sys-libs/glibc-2.40-r5/work
>>> Unpacking glibc-2.40-patches-5.tar.xz to /var/tmp/portage/sys-libs/glibc-2.40-r5/work
>>> Unpacking glibc-systemd-20210729.tar.gz to /var/tmp/portage/sys-libs/glibc-2.40-r5/work
>>> Source unpacked in /var/tmp/portage/sys-libs/glibc-2.40-r5/work
>>> Preparing source in /var/tmp/portage/sys-libs/glibc-2.40-r5/work/glibc-2.40 ...
* Applying Gentoo Glibc patchset 2.40-5
* Applying patches from /var/tmp/portage/sys-libs/glibc-2.40-r5/work/patches ...
* 0001-Replace-advisories-directory.patch ... [ ok ]
* 0002-Disable-ldconfig-during-install.patch ... [ ok ]
* 0003-Adapt-to-Gentoo-specific-etc-mail-aliases.patch ... [ ok ]
* 0004-Force-O0-in-conform-tests-to-survive-CC-changes.patch ... [ ok ]
* 0005-linux-Use-getdents64-on-non-LFS-readdir.patch ... [ ok ]
* 0006-support-Add-xreallocarray.patch ... [ ok ]
* 0007-linux-Set-internal-DIR-filepos-as-off64_t-BZ-23960-B.patch ... [ ok ]
* 0008-Mitigation-for-clone-on-sparc-might-fail-with-EFAULT.patch ... [ ok ]
* 0009-resolv-Allow-short-error-responses-to-match-any-quer.patch ... [ ok ]
* 0010-resolv-Do-not-wait-for-non-existing-second-DNS-respo.patch ... [ ok ]
* 0011-manual-Do-not-mention-STATIC_TLS-in-dynamic-linker-h.patch ... [ ok ]
* 0012-Fix-version-number-in-NEWS-file.patch ... [ ok ]
* 0013-malloc-avoid-global-locks-in-tst-aligned_alloc-lib.c.patch ... [ ok ]
* 0014-malloc-add-multi-threaded-tests-for-aligned_alloc-ca.patch ... [ ok ]
* 0015-manual-stdio-Clarify-putc-and-putwc.patch ... [ ok ]
* 0016-manual-make-setrlimit-description-less-ambiguous.patch ... [ ok ]
* 0017-Enhance-test-coverage-for-strnlen-wcsnlen.patch ... [ ok ]
* 0018-Enhanced-test-coverage-for-strncmp-wcsncmp.patch ... [ ok ]
* 0019-linux-Update-the-mremap-C-implementation-BZ-31968.patch ... [ ok ]
* 0020-mremap-Update-manual-entry.patch ... [ ok ]
* 0021-Add-mremap-tests.patch ... [ ok ]
* 0022-resolv-Fix-tst-resolv-short-response-for-older-GCC-b.patch ... [ ok ]
* 0023-x86-Tunables-may-incorrectly-set-Prefer_PMINUB_for_s.patch ... [ ok ]
* 0024-Fix-name-space-violation-in-fortify-wrappers-bug-320.patch ... [ ok ]
* 0025-manual-stdio-Further-clarify-putc-putwc-getc-and-get.patch ... [ ok ]
* 0026-support-Add-options-list-terminator-to-the-test-driv.patch ... [ ok ]
* 0027-x86-64-Remove-sysdeps-x86_64-x32-dl-machine.h.patch ... [ ok ]
* 0028-x32-cet-Support-shadow-stack-during-startup-for-Linu.patch ... [ ok ]
* 0029-x86-Fix-bug-in-strchrnul-evex512-BZ-32078.patch ... [ ok ]
* 0030-Define-__libc_initial-for-the-static-libc.patch ... [ ok ]
* 0031-string-strerror-strsignal-cannot-use-buffer-after-dl.patch ... [ ok ]
* 0032-support-Add-FAIL-test-failure-helper.patch ... [ ok ]
* 0033-stdio-common-Add-test-for-vfscanf-with-matches-longe.patch ... [ ok ]
* 0034-Make-tst-ungetc-use-libsupport.patch ... [ ok ]
* 0035-ungetc-Fix-uninitialized-read-when-putting-into-unus.patch ... [ ok ]
* 0036-ungetc-Fix-backup-buffer-leak-on-program-exit-BZ-278.patch ... [ ok ]
* 0037-posix-Use-support-check.h-facilities-in-tst-truncate.patch ... [ ok ]
* 0038-nptl-Use-support-check.h-facilities-in-tst-setuid3.patch ... [ ok ]
* 0039-elf-Clarify-and-invert-second-argument-of-_dl_alloca.patch ... [ ok ]
* 0040-elf-Avoid-re-initializing-already-allocated-TLS-in-d.patch ... [ ok ]
* 0041-elf-Fix-tst-dlopen-tlsreinit1.out-test-dependency.patch ... [ ok ]
* 0042-debug-Fix-read-error-handling-in-pcprofiledump.patch ... [ ok ]
* 0043-libio-Attempt-wide-backup-free-only-for-non-legacy-c.patch ... [ ok ]
* 0044-stdio-common-Add-new-test-for-fdopen.patch ... [ ok ]
* 0045-Add-tests-of-fread.patch ... [ ok ]
* 0046-Test-errno-setting-on-strtod-overflow-in-tst-strtod-.patch ... [ ok ]
* 0047-More-thoroughly-test-underflow-errno-in-tst-strtod-r.patch ... [ ok ]
* 0048-Fix-strtod-subnormal-rounding-bug-30220.patch ... [ ok ]
* 0049-Make-__strtod_internal-tests-type-generic.patch ... [ ok ]
* 0050-Improve-NaN-payload-testing.patch ... [ ok ]
* 0051-Do-not-set-errno-for-overflowing-NaN-payload-in-strt.patch ... [ ok ]
* 0052-powerpc64le-Build-new-strtod-tests-with-long-double-.patch ... [ ok ]
* 0053-Make-tst-strtod2-and-tst-strtod5-type-generic.patch ... [ ok ]
* 0054-Add-more-tests-of-strtod-end-pointer.patch ... [ ok ]
* 0055-Add-tests-of-more-strtod-special-cases.patch ... [ ok ]
* 0056-Disable-_FILE_OFFSET_BITS-if-the-compiler-defaults-t.patch ... [ ok ]
* 0057-Disable-_TIME_BITS-if-the-compiler-defaults-to-it.patch ... [ ok ]
* 0058-libio-Set-_vtable_offset-before-calling-_IO_link_in-.patch ... [ ok ]
* Done.
* Using GNU config files from /usr/share/gnuconfig
* Updating scripts/config.sub ... [ ok ]
* Updating scripts/config.guess ... [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-libs/glibc-2.40-r5/work/glibc-2.40 ...
make -j5 glibc-test
x86_64-pc-linux-gnu-gcc -m64 -march=native -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -march=native -O2 -pipe -m32 -mfpmath=sse -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs glibc-test.c -o glibc-test
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/13/libgcc.a when searching for -lgcc
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lgcc: No such file or directory
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/13/libgcc_s.so.1 when searching for libgcc_s.so.1
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/13/libgcc_s.so.1 when searching for libgcc_s.so.1
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find libgcc_s.so.1: No such file or directory
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/13/libgcc_s.so.1 when searching for libgcc_s.so.1
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/13/libgcc.a when searching for -lgcc
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lgcc: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [<builtin>: glibc-test] Error 1
emake failed
* Auto adding -march=i686 to CFLAGS_x86 #185404 (ABI=x86)
* Running do_src_configure for ABI x86
* ==== glibc build environment ========================================================
* ABI: x86
* CBUILD: x86_64-pc-linux-gnu
* CHOST: x86_64-pc-linux-gnu
* CTARGET: x86_64-pc-linux-gnu
* CBUILD_OPT: i686-pc-linux-gnu
* CTARGET_OPT: i686-pc-linux-gnu
* CC: x86_64-pc-linux-gnu-gcc -m32 -mfpmath=sse -march=i686 -mstackrealign -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs
* CXX: x86_64-pc-linux-gnu-g++ -m32 -mfpmath=sse -march=i686 -mstackrealign -O2 -pipe
* CPP: x86_64-pc-linux-gnu-gcc -E -m32 -mfpmath=sse -march=i686 -mstackrealign -O2 -pipe
* LD:
* ASFLAGS:
* CFLAGS: -O2 -pipe
* CPPFLAGS:
* CXXFLAGS: -O2 -pipe
* LDFLAGS: -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs
* MAKEINFO: /dev/null
* NM: x86_64-pc-linux-gnu-nm
* AR:
* AS:
* STRIP:
* RANLIB:
* OBJCOPY:
* STRINGS:
* OBJDUMP:
* READELF: x86_64-pc-linux-gnu-readelf
* =====================================================================================
/var/tmp/portage/sys-libs/glibc-2.40-r5/work/glibc-2.40/configure --enable-stack-protector=strong --enable-kernel=3.2.0 --without-selinux --disable-werror --enable-bind-now --enable-fortify-source --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --disable-profile --without-gd --with-headers=/usr/include --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=$(prefix)/lib --mandir=$(prefix)/share/man --infodir=$(prefix)/share/info --libexecdir=$(libdir)/misc/glibc --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion=Gentoo 2.40-r5 (patchset 5) --disable-systemtap --disable-nscd ac_cv_path_PERL=no libc_cv_complocaledir=${exec_prefix}/lib/locale libc_cv_aarch64_sve_asm=yes --disable-timezone-tools
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for i686-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc -m32 -mfpmath=sse -march=i686 -mstackrealign -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether x86_64-pc-linux-gnu-gcc -m32 -mfpmath=sse -march=i686 -mstackrealign -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc -m32 -mfpmath=sse -march=i686 -mstackrealign -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs option to enable C11 features... none needed
checking whether the compiler supports GNU C++... yes
checking whether x86_64-pc-linux-gnu-g++ -m32 -mfpmath=sse -march=i686 -mstackrealign -O2 -pipe accepts -g... yes
checking for x86_64-pc-linux-gnu-g++ -m32 -mfpmath=sse -march=i686 -mstackrealign -O2 -pipe option to enable C++11 features... unsupported
checking for x86_64-pc-linux-gnu-g++ -m32 -mfpmath=sse -march=i686 -mstackrealign -O2 -pipe option to enable C++98 features... unsupported
checking whether x86_64-pc-linux-gnu-g++ -m32 -mfpmath=sse -march=i686 -mstackrealign -O2 -pipe can link programs... no
checking for sysdeps preconfigure fragments... aarch64 alpha arc arm csky hppa i386 loongarch m68k microblaze checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
mips nios2 or1k powerpc riscv s390 sh checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/grep -E
sparc x86_64
checking for a BSD-compatible install... /var/tmp/portage/._portage_reinstall_.gurb17py/bin/ebuild-helpers/xattr/install -c
checking whether ln -s works... yes
checking for /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld... /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld
checking version of /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld... 2.43.1, ok
checking for gnumake... no
checking for gmake... gmake
checking version of gmake... 4.4.1, ok
checking for gnumsgfmt... no
checking for gmsgfmt... gmsgfmt
checking version of gmsgfmt... 0.22.4, ok
checking for makeinfo... /dev/null
checking version of /dev/null... v. ?.??, bad
checking for sed... sed
checking version of sed... 4.9, ok
checking for gawk... gawk
checking version of gawk... 5.3.0, ok
checking for bison... bison
checking version of bison... 3.8.2, ok
checking if x86_64-pc-linux-gnu-gcc -m32 -mfpmath=sse -march=i686 -mstackrealign -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs is sufficient to build libc... yes
checking for python3... python3
checking version of python3... 3.12.3, ok
configure: WARNING:
*** These auxiliary programs are missing or incompatible versions: makeinfo
*** some features or tests will be disabled.
*** Check the INSTALL file for required versions.
checking for use of fpu sysdeps directories... yes
checking for -fstack-protector... no
checking for -fstack-protector-strong... no
checking for -fstack-protector-all... no
checking for assembler and linker STT_GNU_IFUNC support... yes
checking for gcc attribute ifunc support... yes
checking whether the linker supports textrels along with ifunc... yes
checking for GNU attribute retain support... no
checking if compiler warns about alias for function with incompatible types... yes
checking sysdep dirs... sysdeps/unix/sysv/linux/i386/i686 sysdeps/i386/i686/nptl sysdeps/unix/sysv/linux/i386 sysdeps/unix/sysv/linux/x86 sysdeps/x86/nptl sysdeps/i386/nptl sysdeps/unix/sysv/linux sysdeps/nptl sysdeps/pthread sysdeps/gnu sysdeps/unix/inet sysdeps/unix/sysv sysdeps/unix/i386 sysdeps/unix sysdeps/posix sysdeps/i386/i686/fpu/multiarch sysdeps/i386/i686/fpu sysdeps/i386/i686/multiarch sysdeps/i386/i686 sysdeps/i386/fpu sysdeps/x86/fpu sysdeps/i386 sysdeps/x86 sysdeps/wordsize-32 sysdeps/ieee754/float128 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754 sysdeps/generic
checking LD_LIBRARY_PATH variable... ok
checking for bash... /usr/bin/bash
checking for perl... (cached) no
checking for install-info... /usr/bin/install-info
checking for .set assembler directive... yes
checking linker support for protected data symbol... yes
checking linker support for INSERT in linker script... no
checking for broken __attribute__((alias()))... yes
configure: error: working alias attribute support required
* ERROR: sys-libs/glibc-2.40-r5::gentoo failed (configure phase):
* failed to configure glibc
*
* Call stack:
* ebuild.sh, line 136: Called src_configure
* environment, line 3612: Called foreach_abi 'do_src_configure'
* environment, line 1612: Called do_src_configure
* environment, line 1279: Called glibc_do_configure 'nptl'
* environment, line 2101: Called die
* The specific snippet of code:
* "$@" || die "failed to configure glibc";
*
* If you need support, post the output of `emerge --info '=sys-libs/glibc-2.40-r5::gentoo'`,
* the complete build log and the output of `emerge -pqv '=sys-libs/glibc-2.40-r5::gentoo'`.
* The complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.40-r5/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.40-r5/temp/environment'.
* Working directory: '/var/tmp/portage/sys-libs/glibc-2.40-r5/work/build-x86-x86_64-pc-linux-gnu-nptl'
* S: '/var/tmp/portage/sys-libs/glibc-2.40-r5/work/glibc-2.40'


