Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 661702 - relocation errors break world update after upgrade to sys-apps/attr-2.4.48-r2
Summary: relocation errors break world update after upgrade to sys-apps/attr-2.4.48-r2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal critical (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 915000
  Show dependency tree
 
Reported: 2018-07-20 22:12 UTC by Steve Arnold
Modified: 2023-10-01 06:16 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Arnold archtester gentoo-dev 2018-07-20 22:12:59 UTC
World upgrade on arm64 fails with:

>>> Original instance of package unmerged safely.
>>> sys-apps/attr-2.4.48-r2 merged.
>>> Regenerating /etc/ld.so.cache...

>>> Emerging (20 of 98) dev-libs/libgpg-error-1.32::gentoo
 * libgpg-error-1.32.tar.bz2 BLAKE2B SHA512 size ;-) ...                 [ ok ]

/usr/bin/install: relocation error: /lib64/libacl.so.1: symbol getxattr version ATTR_1.0 not defined in file libattr.so.1 with link time reference
 
* ERROR: dev-libs/libgpg-error-1.32::gentoo failed (unpack phase):
 *   Failed to create dir '/var/tmp/portage/dev-libs/libgpg-error-1.32/work'
 *
 * Call stack:
 *            ebuild.sh, line  792:  Called __ebuild_main 'unpack'
 *   phase-functions.sh, line 1067:  Called __dyn_unpack
 *   phase-functions.sh, line  251:  Called die
 * The specific snippet of code:
sed: relocation error: /lib64/libacl.so.1: symbol getxattr version ATTR_1.0 not defined in file libattr.so.1 with link time reference
sed: relocation error: /lib64/libacl.so.1: symbol getxattr version ATTR_1.0 not defined in file libattr.so.1 with link time reference
 *
 * If you need support, post the output of `emerge --info '=dev-libs/libgpg-error-1.32::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/libgpg-error-1.32::gentoo'`.
 * The complete build log is located at '/var/log/portage/dev-libs:libgpg-error-1.32:20180720-174302.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-libs/libgpg-error-1.32/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libgpg-error-1.32/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/libgpg-error-1.32/homedir'
 * S: '/var/tmp/portage/dev-libs/libgpg-error-1.32/work/libgpg-error-1.32'

>>> Failed to emerge dev-libs/libgpg-error-1.32, Log file:

At this point, everything linking against libacl/libattr is now broken.

I've been spending too much time with wonky x86 hardware, so I'm not sure how "universal" this might be, as I've only seen it on arm64 so far.  Right now I'm about to tear down the hardware and manually hack the SSD to recover.  I can post more system info after...
Comment 1 Steve Arnold archtester gentoo-dev 2018-07-20 23:24:00 UTC
$ emerge --info
Portage 2.3.43 (python 2.7.15-final-0, default/linux/arm64/17.0, gcc-7.2.0, glibc-2.27-r5, 4.14.3-aarch64-r0 aarch64)
=================================================================
System uname: Linux-4.14.3-aarch64-r0-aarch64-with-gentoo-2.6
KiB Mem:     1015828 total,    476800 free
KiB Swap:    1310712 total,   1310712 free
Head commit of repository gentoo: 61e27b90a816783784ecf03acea6657289f0d09a

Head commit of repository nerdboy: 62cf166ec7a526a434db4ca263b1232ea52d5f06

sh bash 4.4_p23
ld GNU gold (Gentoo 2.29.1 p3 2.29.1) 1.14
distcc 3.2rc1 aarch64-unknown-linux-gnu [disabled]
ccache version 3.3.4 [enabled]
app-shells/bash:          4.4_p23::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.4.6-r1::gentoo, 3.5.5-r1::gentoo
dev-util/ccache:          3.3.4::gentoo
dev-util/cmake:           3.10.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6::gentoo
sys-apps/openrc:          0.34.8::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.13.4-r1::gentoo, 1.14.1::gentoo, 1.15.1-r1::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo, 2.27::gentoo, 2.29::gentoo, 2.29.1-r1::gentoo, 2.30::gentoo
sys-devel/gcc:            4.9.4::gentoo, 5.4.0-r3::gentoo, 6.4.0::ada, 7.2.0::ada
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r2::gentoo
sys-kernel/linux-headers: 4.17::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r5::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-umask: 022
    sync-uri: git://github.com/gentoo/gentoo.git
    sync-user: portage:portage
    priority: -1000
    eclass-overrides: nerdboy

nerdboy
    location: /usr/local/portage
    sync-type: git
    sync-umask: 022
    sync-uri: https://github.com/sarnold/portage-overlay.git
    sync-user: portage:portage
    masters: gentoo
    priority: 0

arm_support
    location: /usr/local/arm
    masters: gentoo
    priority: 1

musl
    location: /usr/local/musl
    masters: gentoo
    priority: 2

ada
    location: /var/lib/layman/ada
    sync-type: laymansync
    sync-umask: 022
    sync-uri: git://github.com/sarnold/ada-overlay.git
    sync-user: portage:portage
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="arm64 ~arm64"
ACCEPT_LICENSE="* -@EULA @GPL-COMPATIBLE @OSI-APPROVED @EULA dlj-1.1 Oracle-BCLA-JavaSE"
CBUILD="aarch64-unknown-linux-gnu"
CFLAGS="-march=armv8-a+crc+fp+simd -mabi=lp64 -mcpu=cortex-a53+crc+fp+simd -O2 -pipe -ftree-vectorize -ftree-loop-distribution -fvect-cost-model=cheap -flto=4"
CHOST="aarch64-unknown-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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=armv8-a+crc+fp+simd -mabi=lp64 -mcpu=cortex-a53+crc+fp+simd -O2 -pipe -ftree-vectorize -ftree-loop-distribution -fvect-cost-model=cheap -flto=4"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news nodoc parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-march=armv8-a+crc+fp+simd -mabi=lp64 -mcpu=cortex-a53+crc+fp+simd -O2 -pipe -ftree-vectorize -ftree-loop-distribution -fvect-cost-model=cheap -flto=4 -fuse-linker-plugin"
LINGUAS="en_US en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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"
USE="acl alsa arm64 bzip2 caps cli consolekit crypt curl cxx dnotify dri drm evdev fam fbcon fortran gcrypt gdbm gnutls gpm gudev guile iconv inotify ipv6 jpeg json kms libav libtirpc logrotate lto lua lzma modules multilib ncurses nls nolvmstatic nptl openmp pam pcre pic png python qt readline seccomp spell ssh ssl tcpd threads tls tslib udev unicode vala wheel xattr zip zlib" ALSA_CARDS="usb-audio" APACHE2_MODULES="actions alias auth_digest auth_basic authn_alias access_compat authn_core authn_dbd authz_core cache_disk cern_meta cgi cgid charset_lite authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_connect proxy_http rewrite setenvif speling status unique_id userdir usertrack vhost_alias unixd socache_shmcb" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp neon thumb vfp vfpv3 vfpv4 vfp-d32 aes sha1 sha2 crc32 v4 v5 v6 v7 v8 thumb2" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="aivdm ashtech earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 navcom ntrip oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tnt tripmate tsip ublox nmea0183 nmea2000 passthrough" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby21 ruby23" USERLAND="GNU" VIDEO_CARDS="fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Joshua Kinard gentoo-dev 2018-09-01 18:53:24 UTC
This appears to break MIPS/uclibc-ng as well, although in a much more subtle, silent way.  It causes the 'patch' binary to just hang when trying to apply a patch.  No relocation errors or any other outward sign that something is wrong, or that libattr is to blame.

>>> Installing (27 of 106) sys-apps/attr-2.4.48-r2::gentoo
/sbin/ldconfig: You should remove `/lib' from `/etc/ld.so.conf'
/sbin/ldconfig: You should remove `/usr/lib' from `/etc/ld.so.conf'
/sbin/ldconfig: You should remove `/lib' from `/etc/ld.so.conf'
/sbin/ldconfig: You should remove `/usr/lib' from `/etc/ld.so.conf'

>>> Emerging (28 of 106) dev-libs/libgpg-error-1.32::gentoo
 * libgpg-error-1.32.tar.bz2 BLAKE2B SHA512 size ;-) ...                                                                                                      [ ok ]
>>> Unpacking source...
>>> Unpacking libgpg-error-1.32.tar.bz2 to /var/tmp/portage/dev-libs/libgpg-error-1.32/work
>>> Source unpacked in /var/tmp/portage/dev-libs/libgpg-error-1.32/work
>>> Preparing source in /var/tmp/portage/dev-libs/libgpg-error-1.32/work/libgpg-error-1.32 ...
 * Running elibtoolize in: libgpg-error-1.32/
 *   Applying target-nm/2.4.2 patch ...

^-- Updating a uclibc-ng/mips2 chroot on my Octane stopped here for close to 8 hours trying to apply that patch.  Ctrl+C doesn't work to kill it, either.  You have to kill -9 the patch process, followed by the emerge and sandbox processes to wake it back up.
Comment 3 Joshua Kinard gentoo-dev 2018-09-01 18:57:48 UTC
Portage 2.3.27 (python 3.6.4-final-0, default/linux/uclibc/mips, gcc-7.3.0, uclibc-ng-1.0.29, 4.17.19-mipsgit-20180705 mips64)
=================================================================
System uname: Linux-4.17.19-mipsgit-20180705-mips64-R14000_V2.4_FPU_V0.0-with-gentoo-2.6
KiB Mem:     2079808 total,    113024 free
KiB Swap:    3145536 total,   3120704 free
Timestamp of repository gentoo: Thu, 30 Aug 2018 04:45:01 +0000
Head commit of repository gentoo: 5b56a3b6abb6972109f8e95ed661a82d9f3d5b91
sh bash 4.4_p19
ld GNU ld (Gentoo 2.30 p1) 2.30.0
app-shells/bash:          4.4_p19::gentoo
dev-lang/perl:            5.26.1-r2::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.8::gentoo, 3.5.4-r1::gentoo, 3.6.4::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo, 2.30::gentoo
sys-devel/gcc:            6.4.0::gentoo, 7.3.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.17::gentoo (virtual/os-headers)
sys-libs/uclibc-ng:       1.0.29::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: no
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts:

ACCEPT_KEYWORDS="mips ~mips"
ACCEPT_LICENSE="* -@EULA"
CBUILD="mips-unknown-linux-uclibc"
CFLAGS="-Os -pipe -march=mips2 -mtune=mips2 -mplt"
CHOST="mips-unknown-linux-uclibc"
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 /etc/terminfo"
CXXFLAGS="-Os -pipe -march=mips2 -mtune=mips2 -mplt"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
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"
USE="bindist cli crypt cxx dri fortran iconv ipv6 mips modules ncurses nptl openmp pcre readline seccomp ssl tcpd uclibc unicode xattr zlib" ABI_MIPS="o32" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="uclibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6 python3_4 python3_5" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Thomas Deutschmann (RETIRED) gentoo-dev 2018-09-01 22:31:26 UTC
I pushed sys-apps/attr-2.4.48-r3 which has a small chance to fix your issue, please re-test!
Comment 5 Joshua Kinard gentoo-dev 2020-07-26 19:34:12 UTC
(In reply to Thomas Deutschmann from comment #4)
> I pushed sys-apps/attr-2.4.48-r3 which has a small chance to fix your issue,
> please re-test!

This ended up fixing the issue for me.  Closing the bug.