Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] glibc-2.39-r6 |configuration not matched in ../abi-
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Chili0_
Tux's lil' helper
Tux's lil' helper


Joined: 09 Oct 2017
Posts: 75

PostPosted: Sat May 25, 2024 1:45 am    Post subject: [Solved] glibc-2.39-r6 |configuration not matched in ../abi- Reply with quote

Hi,

Got an error on emerging new stable sys-libs/glibc-2.39-r6: 'This configuration not matched in ../abi-tags'; exit 1
Thanks for any advice.

Code:

sudo emerge -qv =sys-libs/glibc-2.39-r6
...
/bin/sh ../scripts/move-if-change /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/libc-abis.hT /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/libc-abis.h
mkdir -p -- /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/csu
.././scripts/mkinstalldirs /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/csu
mkdir -p -- /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/gnu
mkdir -p -- /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/csu
mkdir -p -- /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/gnu
/bin/sh ../scripts/move-if-change /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/bits/std_abs.hT /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/bits/std_abs.h
/bin/sh ../scripts/move-if-change /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/cstdlibT /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/cstdlib
/bin/sh ../scripts/move-if-change /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/cmathT /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/cmath
mv -f /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/abi-versions.hT /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/abi-versions.h
/bin/sh ../scripts/move-if-change /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/dl-tunable-list.T /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/dl-tunable-list.h
rm -f /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/csu/abi-tag.h.new
{ \
 echo '/* This file is automatically generated.';\
 echo '   It defines macros to allow user program to find the shared'; \
 echo '   library files which come as part of GNU libc.  */'; \
 echo '#ifndef __GNU_LIB_NAMES_H'; \
 echo '#define __GNU_LIB_NAMES_H   1'; \
 echo ''; \
  \
   echo '#if !defined __x86_64__'; echo '# include <gnu/lib-names-32.h>'; echo '#endif';   echo '#if defined __x86_64__ && defined __LP64__'; echo '# include <gnu/lib-names-64.h>'; echo '#endif';   echo '#if defined __x86_64__ && defined __ILP32__'; echo '# include <gnu/lib-names-x32.h>'; echo '#endif'; \
 echo ''; \
 echo '#endif   /* gnu/lib-names.h */'; \
} >  /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/gnu/lib-names.h
{ \
  echo '/* This file is automatically generated.  */'; echo '#ifndef __GNU_LIB_NAMES_H'; echo '# error "Never use <gnu/lib-names-32.h> directly; include <gnu/lib-names.h> instead."'; echo '#endif'; \
 echo ''; \
 ( echo ld=ld-linux.so.2;  echo libc=libc.so.6;  echo libBrokenLocale=libBrokenLocale.so.1;  echo libpthread=libpthread.so.0;  echo libthread_db=libthread_db.so.1;  echo libdl=libdl.so.2;  echo libgcc_s=libgcc_s.so.1;  echo libnsl=libnsl.so.1;  echo libc_malloc_debug=libc_malloc_debug.so.0;  echo libutil=libutil.so.1;  echo libnss_ldap=libnss_ldap.so.2;  echo libnss_dns=libnss_dns.so.2;  echo libnss_compat=libnss_compat.so.2;  echo libmvec=libmvec.so.1;  echo libresolv=libresolv.so.2;  echo libnss_db=libnss_db.so.2;  echo libm=libm.so.6;  echo libnss_files=libnss_files.so.2;  echo librt=librt.so.1;  echo libnss_hesiod=libnss_hesiod.so.2;  echo libanl=libanl.so.1;) \
 | LC_ALL=C gawk -f ../scripts/lib-names.awk | LC_ALL=C sort; \
  \
} >  /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/gnu/lib-names-32.T
echo '' > /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/csu/stamp.oST
In file included from <command-line>:
./../include/libc-symbols.h:75:3: error: #error "glibc cannot be compiled without optimization"
   75 | # error "glibc cannot be compiled without optimization"
      |   ^~~~~
sed -e 's/#.*$//' -e '/^[   ]*$/d' ../abi-tags | \
while read conf tagos tagver; do \
  test `expr 'i686-pc-linux-gnu' \
       : "$conf"` != 0 || continue; \
  ( echo "$tagos" | \
    sed -e 's/[^0-9xXa-fA-F    ]//' \
   -e 's/^/#define __ABI_TAG_OS /'; \
    echo "#ifndef __ABI_TAG_VERSION"; \
    echo "$tagver" | \
    sed -e 's/[^0-9xXa-fA-F]/ /g' -e 's/ *$//' \
      -e 's/ /,/g' -e 's/^/# define __ABI_TAG_VERSION /'; \
    echo "#endif" ) > /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/csu/abi-tag.h.new; \
done
touch /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/libc-abis.stamp
make[2]: *** [../Makeconfig:1247: /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/gcc-macros.h.in] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/csu/stamp.oST /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/csu/stamp.oS
/bin/sh ../scripts/move-if-change /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/gnu/lib-names-32.T /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/gnu/lib-names-32.h
touch /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/dl-tunable-list.stmp
touch /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/gnu/lib-names-32.stmp
if test -r /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/csu/abi-tag.h.new; then mv -f /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/csu/abi-tag.h.new /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/csu/abi-tag.h; \
else echo >&2 'This configuration not matched in ../abi-tags'; exit 1; fi
make[2]: Leaving directory '/var/tmp/portage/sys-libs/glibc-2.39-r6/work/glibc-2.39/csu'
make[1]: *** [Makefile:485: csu/subdir_lib] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-libs/glibc-2.39-r6/work/glibc-2.39'
make: *** [Makefile:9: all] Error 2
make: Leaving directory '/var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl'
 * ERROR: sys-libs/glibc-2.39-r6::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-libs/glibc-2.39-r6::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/glibc-2.39-r6::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.39-r6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.39-r6/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-libs/glibc-2.39-r6/work/glibc-2.39'
 * S: '/var/tmp/portage/sys-libs/glibc-2.39-r6/work/glibc-2.39'




Code:

emerge --info
Portage 3.0.63 (python 3.12.3-final-0, default/linux/amd64/23.0/split-usr, gcc-13, glibc-2.38-r13, 6.6.30-gentoo-gentoo-dist x86_64)
=================================================================
System uname: Linux-6.6.30-gentoo-gentoo-dist-x86_64-13th_Gen_Intel-R-_Core-TM-_i9-13900F-with-glibc2.38
KiB Mem:    32671976 total,  24284452 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Fri, 24 May 2024 08:45:00 +0000
Head commit of repository gentoo: 46b5c98512c59d4e45d3819229fe541c567a66c8
Timestamp of repository gentoo-zh: Thu, 23 May 2024 05:33:46 +0000
Head commit of repository gentoo-zh: 3d4365e26bc54108f73fad90dd1e80d901ae9a83

Timestamp of repository edgets: Mon, 20 May 2024 17:23:37 +0000
Head commit of repository edgets: 13f22d78f9f3bc3b3e38df2650cdf633b78e1282

Timestamp of repository guru: Wed, 22 May 2024 13:05:49 +0000
Head commit of repository guru: 16f9fa91119e048bbead2eb09c25a658595b8d85

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.42 p3) 2.42.0
distcc 3.4 x86_64-pc-linux-gnu [disabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.28.5::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-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.2-r3::gentoo
dev-lang/python:           3.8.19_p1::gentoo, 3.10.14_p1::gentoo, 3.11.9::gentoo, 3.12.3::gentoo
dev-lang/rust-bin:         1.77.1::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/openrc:           0.54::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           17.0.6::gentoo
sys-devel/gcc:             13.2.1_p20240210::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/llvm:            17.0.6::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r13::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=36864"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=36864"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 3"
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="-march=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=36864"
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="-march=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=36864"
GENTOO_MIRRORS="https://mirrors.tuna.tsinghua.edu.cn/gentoo https://mirrors.ircam.fr/pub/gentoo-distfiles/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ http://tux.rainside.sk/gentoo/ http://gentoo.mirrors.tds.net/gentoo"
LANG="en_US.utf8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j24"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X acl alsa amd64 bluetooth bzip2 cet crypt dbus gdbm iconv ipv6 libtirpc modules-sign multilib ncurses nls openmp otf pam pcre pulseaudio readline seccomp split-usr ssl test-rust truetype ttf unicode verify-sig wayland xattr zlib" ABI_X86="64" 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="aes avx avx2 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 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en" 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 python3_12" RUBY_TARGETS="ruby31 ruby32" SANE_BACKENDS="hp" VIDEO_CARDS="nvidia" 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, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

_________________
Regards.


Last edited by Chili0_ on Sat May 25, 2024 8:51 am; edited 1 time in total
Back to top
View user's profile Send private message
Phoenix591
Guru
Guru


Joined: 17 Sep 2007
Posts: 488

PostPosted: Sat May 25, 2024 2:26 am    Post subject: Reply with quote

That's not the actual error, it was an else block. It was further above
Code:

In file included from <command-line>:
./../include/libc-symbols.h:75:3: error: #error "glibc cannot be compiled without optimization"
   75 | # error "glibc cannot be compiled without optimization"
      |   ^~~~~


Your CFLAGS and CXXFLAGS don't have any -O (Optimization level) in them, stick -O2 back in there, it's the recommended default. You probably also want -pipe in there too, it speeds up compilation a tiny bit in exchange for using a tiny bit more ram.
Back to top
View user's profile Send private message
Chili0_
Tux's lil' helper
Tux's lil' helper


Joined: 09 Oct 2017
Posts: 75

PostPosted: Sat May 25, 2024 8:50 am    Post subject: Reply with quote

Thank you so much, Phoenix591! Your advice was spot on. I used the output of resolve-march-native as my CFLAGS and initially removed -O2 and -pipe. After adding those flags back, I was able to successfully emerge glibc as usual.
Phoenix591 wrote:
That's not the actual error, it was an else block. It was fur

ther above
Code:

In file included from <command-line>:
./../include/libc-symbols.h:75:3: error: #error "glibc cannot be compiled without optimization"
   75 | # error "glibc cannot be compiled without optimization"
      |   ^~~~~


Your CFLAGS and CXXFLAGS don't have any -O (Optimization level) in them, stick -O2 back in there, it's the recommended default. You probably also want -pipe in there too, it speeds up compilation a tiny bit in exchange for using a tiny bit more ram.

_________________
Regards.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21918

PostPosted: Sat May 25, 2024 3:17 pm    Post subject: Reply with quote

I think that resolve-march-native is only intended to tell you what text should replace -march=native. It is not meant to provide the full CFLAGS.
Back to top
View user's profile Send private message
Chili0_
Tux's lil' helper
Tux's lil' helper


Joined: 09 Oct 2017
Posts: 75

PostPosted: Wed May 29, 2024 11:59 am    Post subject: Reply with quote

Hu wrote:
I think that resolve-march-native is only intended to tell you what text should replace -march=native. It is not meant to provide the full CFLAGS.


YES!
_________________
Regards.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum