Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
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
jody
l33t
l33t


Joined: 16 Oct 2007
Posts: 676
Location: Switzerland

PostPosted: Mon May 27, 2024 1:26 pm    Post subject: glibc-2.39-r6 |configuration not matched in ../abi- Reply with quote

[Administrator note: this post, and the first 4 responses, were originally attached to the solved topic [Solved] glibc-2.39-r6 |configuration not matched in ../abi-. This poster has a different problem, so I split it out. The split out post had no title, so I added one. -Hu]

I get the same error "glibc cannot be compiled without optimization" even though i have set "-O2" in my flags:
Code:
 $ grep "^CX*FLAGS" /etc/portage/make.conf
CFLAGS="-march=skylake-avx512 -O2 -pipe"
CXXFLAGS="-march=skylake-avx512 -O2 -pipe"


Code:
 $ sudo emerge --info
Portage 3.0.63 (python 3.11.9-final-0, default/linux/amd64/17.1/desktop, gcc-12, glibc-2.38-r13, 6.1.67-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-6.1.67-gentoo-x86_64-x86_64-Intel-R-_Xeon-R-_W-2195_CPU_@_2.30GHz-with-glibc2.38
KiB Mem:   131576788 total, 118773652 free
KiB Swap:    3145724 total,   3145724 free
Timestamp of repository gentoo: Mon, 27 May 2024 07:30:00 +0000
Head commit of repository gentoo: 17996658c63556ceff95d780a5ec6b40508512cb
Timestamp of repository brave-overlay: Wed, 30 Aug 2023 14:16:44 +0000
Head commit of repository brave-overlay: 6633c093c271deda5b29101a4ed5a611810268e1

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.40 p7) 2.40.0
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.9.19_p2::gentoo, 3.11.9::gentoo, 3.12.3::gentoo
dev-lang/rust:             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.40-r9::gentoo, 2.41-r5::gentoo, 2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             6.4.0-r5::gentoo, 7.3.0-r6::gentoo, 12.3.1_p20240209::gentoo, 13.2.1_p20240210::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/llvm:            16.0.6::gentoo, 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://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24

brave-overlay
    location: /var/db/repos/brave-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/brave-overlay.git
    masters: gentoo
    volatile: False

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=skylake-avx512 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/php/apache2-php8.2/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=skylake-avx512 -O2 -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="-march=skylake-avx512 -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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 splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=skylake-avx512 -O2 -pipe"
GENTOO_MIRRORS="http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://ftp.halifax.rwth-aachen.de/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j8"
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 a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus dri dts dvd dvdr elogind encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls ogg opengl openmp pam pango pcre pdf png policykit ppds qt5 readline sdl seccomp sound spell split-usr ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wxwidgets x264 xattr xcb xft xml xv xvid 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="mmx mmxext sse sse2" 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="evdev" 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 ruby32" 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, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, 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


Is there another setting i need to tweak to get optimization going?
Back to top
View user's profile Send private message
jody
l33t
l33t


Joined: 16 Oct 2007
Posts: 676
Location: Switzerland

PostPosted: Tue Jun 11, 2024 6:43 am    Post subject: Reply with quote

The final lines emerge's output for [b]sys-libs/glibc[\b] are
Code:
 /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
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
.././scripts/mkinstalldirs /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/csu
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"
      |   ^~~~~
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....
touch /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/libc-abis.stamp
touch /var/tmp/portage/sys-libs/glibc-2.39-r6/work/build-x86-x86_64-pc-linux-gnu-nptl/dl-tunable-list.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
 *


As stated above, i have "-O2" in my CFLAGS (and CXXFLAGS) as well as he arch as returned by resolve-march-native.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22684

PostPosted: Tue Jun 11, 2024 11:57 am    Post subject: Reply with quote

OP's problem was solved by adding -O2. Yours is not. This suggests you have a different triggering condition leading to the same error message. The output you provided does not appear to me to be sufficient to debug your problem. I see you posted emerge --info above. Please also follow the other instructions Portage prints when a build fails.
Back to top
View user's profile Send private message
jody
l33t
l33t


Joined: 16 Oct 2007
Posts: 676
Location: Switzerland

PostPosted: Wed Jun 12, 2024 7:15 am    Post subject: Reply with quote

Here are the required outputs:

emerge --info '=sys-libs/glibc-2.39-r6::gentoo'
Code:
 $ emerge --info '=sys-libs/glibc-2.39-r6::gentoo'
Portage 3.0.63 (python 3.12.3-final-0, default/linux/amd64/23.0/split-usr/desktop/gnome, gcc-12, glibc-2.38-r13, 6.1.67-gentoo-x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.1.67-gentoo-x86_64-x86_64-Intel-R-_Xeon-R-_W-2195_CPU_@_2.30GHz-with-glibc2.38
KiB Mem:   131576788 total,  50394724 free
KiB Swap:    3145724 total,   3145724 free
Timestamp of repository gentoo: Tue, 11 Jun 2024 06:30:00 +0000
Head commit of repository gentoo: 83296c79ee741ed5b5814c4947f99ba98789c4a4
Timestamp of repository brave-overlay: Wed, 30 Aug 2023 14:16:44 +0000
Head commit of repository brave-overlay: 6633c093c271deda5b29101a4ed5a611810268e1

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.40 p7) 2.40.0
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.9.19_p3::gentoo, 3.11.9-r1::gentoo, 3.12.3-r1::gentoo
dev-lang/rust:             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.40-r9::gentoo, 2.41-r5::gentoo, 2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             6.4.0-r5::gentoo, 7.3.0-r6::gentoo, 12.3.1_p20240209::gentoo, 13.2.1_p20240210::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/llvm:            16.0.6::gentoo, 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://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1

brave-overlay
    location: /var/db/repos/brave-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/brave-overlay.git
    masters: gentoo
    volatile: False

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=skylake-avx512 -O2 -pipe"
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/php/apache2-php8.2/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=skylake-avx512 -O2 -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="-march=skylake-avx512 -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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 splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=skylake-avx512 -O2 -pipe"
GENTOO_MIRRORS="http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://ftp.halifax.rwth-aachen.de/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j8"
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"
PYTHONPATH="/home/jody/progs/QHG4/tools_qdf:/home/jody/progs/QHG4/useful_stuff:"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cet colord crypt cups dbus dri dts dvd dvdr eds elogind encode evo exif flac gdbm gif gnome gnome-keyring gnome-online-accounts gnome-shell gpm gstreamer gtk gui iconv icu introspection ipv6 jpeg keyring lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline sdl seccomp sound spell split-usr ssl startup-notification svg sysprof test-rust tiff tracker truetype udev udisks unicode upower usb vorbis vulkan wayland wxwidgets x264 xattr xcb xft xml xv xvid 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="mmx mmxext sse sse2" 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="evdev" 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-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby31 ruby32" 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, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS


emerge -pqv '=sys-libs/glibc-2.39-r6::gentoo'
Code:
 $ emerge -pqv '=sys-libs/glibc-2.39-r6::gentoo'
[ebuild     U ] sys-libs/glibc-2.39-r6 [2.38-r13] USE="cet* multiarch (multilib) ssp stack-realign (static-libs) -audit -caps -compile-locales (-custom-cflags) -doc -gd -hash-sysv-compat -headers-only -multilib-bootstrap -nscd -perl -profile (-selinux) -suid -systemd -systemtap -test (-vanilla) (-crypt%)"

!!! The following installed packages are masked:
- sys-kernel/gentoo-sources-5.4.48::gentoo (masked by: package.mask)
/var/db/repos/gentoo/profiles/package.mask:
# Sam James <sam@gentoo.org> (2023-12-14)
# Gentoo's kernel maintainers have decided to discontinue gentoo-sources and
# gentoo-kernel for old kernel LTS branches because of the resources to require
# testing and patching them, combined with changing kernel lifecycles.
#
# The new policy is to support kernels with genpatches for 3 years after their
# release.
#
# Specifically, 4.14/4.19/5.4 have been dropped. See https://www.mpagano.com/blog/?p=315
# and http://www.kroah.com/log/blog/2018/08/24/what-stable-kernel-should-i-use/.
#
# sys-kernel/vanilla-sources will continue to be provided for all branches
# until they reach formal upstream EOL.
#

- sys-kernel/gentoo-sources-5.4.72::gentoo (masked by: package.mask)
- sys-kernel/gentoo-sources-5.4.80-r1::gentoo (masked by: package.mask)
- sys-kernel/gentoo-sources-4.19.86::gentoo (masked by: package.mask)
- sys-kernel/gentoo-sources-5.4.38::gentoo (masked by: package.mask)
- sys-kernel/gentoo-sources-4.19.66::gentoo (masked by: package.mask)
- sys-kernel/gentoo-sources-5.4.28::gentoo (masked by: package.mask)
- sys-kernel/gentoo-sources-4.19.97::gentoo (masked by: package.mask)
- sys-kernel/gentoo-sources-5.4.92::gentoo (masked by: package.mask)
- sys-kernel/gentoo-sources-5.4.60::gentoo (masked by: package.mask)
- sys-kernel/gentoo-sources-4.19.82::gentoo (masked by: package.mask)
- sys-kernel/gentoo-sources-4.19.72::gentoo (masked by: package.mask)
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.


I put the build log in https://pastebin.com/shsN5yVQ
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1921

PostPosted: Wed Jun 12, 2024 12:41 pm    Post subject: Reply with quote

jody wrote:
I put the build log in https://pastebin.com/shsN5yVQ

How did the CFLAGS change between emerge --info and the build log? Is there some local override in the environment or package.env or /etc/portage/env?
Code:
 * Running do_src_configure for ABI amd64
 * ==== glibc build environment ========================================================
 *          CFLAGS:   -fno-builtin-strlen
 *        CPPFLAGS:   
 *        CXXFLAGS:   -march=skylake-avx512 -O2 -pipe
 * =====================================================================================

This does not happen on my systems. Try to find where this -fno-builtin-strlen comes from.
Back to top
View user's profile Send private message
mkes
n00b
n00b


Joined: 12 Jun 2024
Posts: 2

PostPosted: Wed Jun 12, 2024 7:44 pm    Post subject: Reply with quote

grknight wrote:
jody wrote:
I put the build log in https://pastebin.com/shsN5yVQ

How did the CFLAGS change between emerge --info and the build log? Is there some local override in the environment or package.env or /etc/portage/env?
Code:
 * Running do_src_configure for ABI amd64
 * ==== glibc build environment ========================================================
 *          CFLAGS:   -fno-builtin-strlen
 *        CPPFLAGS:   
 *        CXXFLAGS:   -march=skylake-avx512 -O2 -pipe
 * =====================================================================================

This does not happen on my systems. Try to find where this -fno-builtin-strlen comes from.


I have a similar problem on my system ...

Code:
emerge --info
  ...
 CFLAGS="-march=skylake -O2 -pipe"
 CXXFLAGS="-march=skylake -O2 -pipe"


Code:
* ==== glibc build environment ========================================================
 *          CFLAGS:   -fno-builtin-strlen -g
 *        CPPFLAGS:   
 *        CXXFLAGS:   -march=skylake -O2 -pipe -g


It looks like the override comes from the portage settings
Code:
grep -r CFLAGS /etc/portage
/etc/portage/env/no-builtin-strlen.conf:CFLAGS= -fno-builtin-strlen
/etc/portage/env/debug.conf:CFLAGS="${CFLAGS} -g"
/etc/portage/make.conf:CFLAGS="${COMMON_FLAGS}"
/etc/portage/make.conf:FCFLAGS="${COMMON_FLAGS}"


but I don't know what causes those settings being applied for the glibc build


Last edited by mkes on Wed Jun 12, 2024 8:18 pm; edited 2 times in total
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1921

PostPosted: Wed Jun 12, 2024 8:16 pm    Post subject: Reply with quote

mkes wrote:
It looks like the override comes from portage settings
Code:
grep -r CFLAGS /etc/portage
/etc/portage/env/no-builtin-strlen.conf:CFLAGS= -fno-builtin-strlen

Not sure where this bad advice comes from as it is both removing make.conf settings, because there is no $CFLAGS pulled in, and is rather dangerous particularly for glibc which is the source of strlen. I would remove this file or at least move it out of /etc/portage/env.
mkes wrote:
but I don't know what causes those settings being applied for the glibc build

It would be nice to see the result of grep -r . /etc/portage/package.env in this case.

Edit: A quick search of the wiki indicates that valgrind may be in play for the flag. But if you are not actively debugging with valgrind, it is completely unnecessary. Plus, the implementation shown in this file is broken compared to what the wiki shows.


Last edited by grknight on Wed Jun 12, 2024 8:23 pm; edited 1 time in total
Back to top
View user's profile Send private message
mkes
n00b
n00b


Joined: 12 Jun 2024
Posts: 2

PostPosted: Wed Jun 12, 2024 8:19 pm    Post subject: Reply with quote

Actually, I found it now ...
Code:
cat /etc/portage/package.env/glibc
# Store debug info before ELF striping for later use by various debuggers.
# Added for Valgrind which needs glibc debug symbols.
#
sys-libs/glibc no-builtin-strlen.conf debug.conf
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