Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 924037 - Failed to build sys-libs/pam-1.5.3 (undefined reference to `libintl_dgettext')
Summary: Failed to build sys-libs/pam-1.5.3 (undefined reference to `libintl_dgettext')
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-08 07:25 UTC by Ilya Lukin
Modified: 2024-02-09 04:15 UTC (History)
3 users (show)

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


Attachments
Build log (build.log,100.26 KB, text/x-log)
2024-02-08 07:25 UTC, Ilya Lukin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Lukin 2024-02-08 07:25:43 UTC
Created attachment 884508 [details]
Build log

aarch64-linux-gnu-emerge --info '=sys-libs/pam-1.5.3::gentoo':

Portage 3.0.47 (python 3.11.3-final-0, embedded, gcc-12, unavailable, 6.3.4-201.fc38.x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.3.4-201.fc38.x86_64-x86_64-Intel-R-_Core-TM-_i5-10500_CPU_@_3.10GHz-with-glibc2.36
KiB Mem:    32623496 total,   1252344 free
KiB Swap:    8388604 total,      2880 free
sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.40 p5) 2.40.0
sys-kernel/linux-headers: 5.15-r3::gentoo (virtual/os-headers)
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: 24
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: no

delta
    location: /var/db/repos/delta
    masters: gentoo
    priority: 10
    volatile: False

ACCEPT_KEYWORDS="arm64 ~arm64"
ACCEPT_LICENSE="@FREE"
AR="gcc-ar"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -mcpu=cortex-a53+crc -O2 -fomit-frame-pointer -flto=6 -fuse-linker-plugin"
CHOST="aarch64-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-pipe -mcpu=cortex-a53+crc -O2 -fomit-frame-pointer -flto=6 -fuse-linker-plugin"
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 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news nodoc noinfo noman parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-Os -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LDFLAGS=" -Wl,--hash-style=gnu -Wl,--sort-common"
LEX="flex"
LINGUAS="en"
MAKEOPTS="-j6"
NM="gcc-nm"
PKGDIR="/usr/aarch64-linux-gnu/packages/"
PORTAGE_CONFIGROOT="/usr/aarch64-linux-gnu/"
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="/usr/aarch64-linux-gnu/tmp/"
RANLIB="gcc-ranlib"
SHELL="/bin/bash"
USE="arm64 split-usr verify-sig" KERNEL="linux" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10"
Unset:  ADDR2LINE, 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, MAKE, MAKEFLAGS, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

emerge -pqv '=sys-libs/pam-1.5.3::gentoo':
[ebuild     U ] sys-libs/pam-1.5.3 [1.5.2-r3] USE="(split-usr) -audit -berkdb -debug -filecaps -nis (-selinux)"
Comment 1 Eli Schwartz 2024-02-09 01:01:52 UTC
libtool: link: aarch64-linux-gnu-gcc -shared  -fPIC -DPIC  .libs/help_env.o .libs/misc_conv.o   -Wl,-rpath -Wl,/usr/aarch64-linux-gnu/tmp/portage/sys-libs/pam-1.5.3/work/Linux-PAM-1.5.3-.default/libpam/.libs ../libpam/.libs/libpam.so  -mcpu=cortex-a53+crc -O2 -flto=6 -fuse-linker-plugin -Wl,--version-script=/usr/aarch64-linux-gnu/tmp/portage/sys-libs/pam-1.5.3/work/Linux-PAM-1.5.3/libpam_misc/libpam_misc.map -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--as-needed -Wl,--no-undefined -Wl,-O1   -Wl,-soname -Wl,libpam_misc.so.0 -o .libs/libpam_misc.so.0.82.1

Interesting. libpam_misc directly uses gettext functions, and links to libpam.so which per the related bug was updated to link to @LTLIBINTL@ (i.e. -lintl). This is only an indirect availability, and appears to fail during LTO?
Comment 2 Ilya Lukin 2024-02-09 04:15:12 UTC
Without LTO the same:

libtool: link: aarch64-linux-gnu-gcc -shared  -fPIC -DPIC  .libs/help_env.o .libs/misc_conv.o   -Wl,-rpath -Wl,/usr/aarch64-linux-gnu/tmp/portage/sys-libs/pam-1.5.3/work/Linux-PAM-1.5.3-.default/libpam/.libs ../libpam/.libs/libpam.so  -mcpu=cortex-a53+crc -O2 -fuse-linker-plugin -Wl,--version-script=/usr/aarch64-linux-gnu/tmp/portage/sys-libs/pam-1.5.3/work/Linux-PAM-1.5.3/libpam_misc/libpam_misc.map -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--as-needed -Wl,--no-undefined -Wl,-O1   -Wl,-soname -Wl,libpam_misc.so.0 -o .libs/libpam_misc.so.0.82.1
/usr/libexec/gcc/aarch64-linux-gnu/ld: .libs/misc_conv.o: in function `misc_conv':
misc_conv.c:(.text+0x82c): undefined reference to `libintl_dgettext'