Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 522900 - sys-libs/glibc: src_install on no-multilib profiles breaks various libdir paths
Summary: sys-libs/glibc: src_install on no-multilib profiles breaks various libdir paths
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal critical with 1 vote (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 523290 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-09-15 18:41 UTC by Xavier Miller (RETIRED)
Modified: 2014-09-21 05:46 UTC (History)
7 users (show)

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


Attachments
build.log.gz (build.log.gz,320.08 KB, application/gzip)
2014-09-16 06:50 UTC, Xavier Miller (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xavier Miller (RETIRED) gentoo-dev 2014-09-15 18:41:09 UTC
emerging gligc-2.19-r1 in a no-multilib profile fails at end with:
   usr/bin/pldd
   usr/bin/sprof
   usr/lib/audit/sotruss-lib.so
>>> Completed installing glibc-2.19-r1 into /var/tmp/portage/sys-libs/glibc-2.19-r1/image/

ecompressdir: bzip2 -9 /usr/share/info
ecompressdir: bzip2 -9 /usr/share/man
making executable: usr/lib/libc.so
making executable: usr/lib/libpthread.so

>>> Installing (1 of 6) sys-libs/glibc-2.19-r1::gentoo
 * Defaulting /etc/host.conf:multi to on
/usr/portage/sys-libs/glibc/files/eblits/pkg_preinst.eblit: line 32: ./ld-*.so: No such file or directory
 * ERROR: sys-libs/glibc-2.19-r1::gentoo failed (preinst phase):
 *   simple run test (/usr/bin/cal) failed
 * 
 * Call stack:
 *           ebuild.sh, line   93:  Called pkg_preinst
 *         environment, line 2896:  Called eblit-run 'pkg_preinst'
 *         environment, line 1015:  Called eblit-glibc-pkg_preinst
 *   pkg_preinst.eblit, line   54:  Called glibc_sanity_check
 *   pkg_preinst.eblit, line   33:  Called die
 * The specific snippet of code:
 *              ./ld-*.so --library-path . ${x} > /dev/null \
 *                      || die "simple run test (${x}) failed"
 * 
 * If you need support, post the output of `emerge --info '=sys-libs/glibc-2.19-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/glibc-2.19-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.19-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.19-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-libs/glibc-2.19-r1/image/lib64'
 * S: '/var/tmp/portage/sys-libs/glibc-2.19-r1/work/glibc-2.19'
!!! FAILED preinst: 1

>>> Failed to install sys-libs/glibc-2.19-r1, Log file:



Reproducible: Always




# emerge --info '=sys-libs/glibc-2.19-r1::gentoo'
Portage 2.2.12 (python 2.7.8-final-0, default/linux/amd64/13.0/no-multilib, gcc-4.8.3, glibc-2.19-r1, 3.16.2-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.16.2-gentoo-x86_64-AMD_Athlon-tm-64_X2_Dual_Core_Processor_4400+-with-gentoo-2.2
KiB Mem:     2054916 total,    411104 free
KiB Swap:    2097148 total,   2094344 free
Timestamp of tree: Mon, 15 Sep 2014 16:00:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
distcc 3.1 x86_64-gentoo-linux-gnu [enabled]
app-shells/bash:          4.2_p47
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.8
dev-util/cmake:           2.8.12.2-r2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.1
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo local proaudio pd-overlay
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE as-is freedist"
CBUILD="x86_64-gentoo-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=k8-sse3 -mtune=k8"
CHOST="x86_64-gentoo-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/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="-O2 -pipe -fomit-frame-pointer -march=k8-sse3 -mtune=k8"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy config-protect-if-modified distcc distcc-pump distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="fr_BE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/var/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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/overlay /var/lib/layman/pro-audio /var/lib/layman/pd-overlay"
USE="3dnow 3dnowext X a52 aac acpi alsa amd64 apng branding bzip2 cairo cdda cli cracklib crypt cryptsetup cups cxx dbus dlna dri dts dvd exif flac gif gpm gtk gudev iconv jack jpeg lcms libcanberra libnotify libsamplerate mad mmx mng modules mp3 mpeg ncurses nls nptl ocr ogg opengl openmp osc pam pango pcre pdf png qt4 readline samba sane scanner sdl session sna sndfile snmp spell sqlite sse sse2 ssl startup-notification svg tcpd tiff truetype udev unicode upnp usb uxa vorbis wmf x264 xcb xinerama xml xosd xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="ice1712 hda-intel usb-audio virmidi" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" 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" LINGUAS="fr fr_BE fr_FR nl nl_BE" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="nouveau" 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"
USE_PYTHON="2.7"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC

=================================================================
                        Package Settings
=================================================================

sys-libs/glibc-2.19-r1 was built with the following:
USE="-debug -gd (-hardened) (-multilib) -nscd -profile (-selinux) -suid -systemtap -vanilla"
CFLAGS="-pipe -mtune=k8 -O2 -fno-strict-aliasing -fno-stack-protector"
CXXFLAGS="-pipe -mtune=k8 -O2 -fno-strict-aliasing -fno-stack-protector"
Comment 1 Ben Kohler gentoo-dev 2014-09-15 18:45:46 UTC
FWIW, several users have reported this issue in #gentoo the last few days.  I think you'll find that ${D}/lib64/ld-linux-x86-64.so.2 is a symlink to itself rather than to ld-2.19.so as it should be.  Why, and what to do with that, I do not know.
Comment 2 Xavier Miller (RETIRED) gentoo-dev 2014-09-15 19:01:26 UTC
It compiled fine on 2014-08-27
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-09-16 06:25:23 UTC
Please attach the entire build log to this bug report.
Comment 4 Xavier Miller (RETIRED) gentoo-dev 2014-09-16 06:50:15 UTC
Created attachment 384820 [details]
build.log.gz

here it is
Comment 5 Hoess 2014-09-16 12:19:04 UTC
I experience the same issue: 

glibc-emerging works on my hardened/multilib-machines, but
fails on two hardened/NOmultilib-machines.

I also find that ${D}/lib64/ld-linux-x86-64.so.2 is a symlink to itself.

One of these machines was able to emerge glibc-2.19-r1 earlier on Aug 14, 2014, but re-emerging fails now. 

I tried emerging earlier versions of glibc but this fails with the 
same error.

Upgrading or downgrading sys-app/portage from current stable did not help.
Comment 6 Michael Orlitzky gentoo-dev 2014-09-16 13:48:39 UTC
Same here, on all of my machines. The ChangeLog shows a bunch of changes to files/eblits/src_install.eblit on Sep 10 which I would be suspect of.
Comment 7 Maxim Reznik 2014-09-16 14:20:22 UTC
Couple of notes:

* There is nothing in lib64 except this broken link
* ld-2.19.so located in ../lib/
* There is no lib32 directory at all

# ls -l /var/tmp/portage/sys-libs/glibc-2.19-r1/image/lib64
total 0
lrwxrwxrwx 1 root root 29 Sep 16 16:47 ld-linux-x86-64.so.2 -> ../lib64/ld-linux-x86-64.so.2

# ls -l /var/tmp/portage/sys-libs/glibc-2.19-r1/image/lib/ld-*
-rwxr-xr-x 1 root root 140584 Sep 16 16:48 /var/tmp/portage/sys-libs/glibc-2.19-r1/image/lib/ld-2.19.so
lrwxrwxrwx 1 root root     10 Sep 16 16:47 /var/tmp/portage/sys-libs/glibc-2.19-r1/image/lib/ld-linux-x86-64.so.2 -> ld-2.19.so

# ls -l /var/tmp/portage/sys-libs/glibc-2.19-r1/image/
total 24
drwxr-xr-x 3 root root 4096 Sep 16 16:48 etc
drwxr-xr-x 2 root root 4096 Sep 16 16:48 lib
drwxr-xr-x 2 root root 4096 Sep 16 16:47 lib64
drwxr-xr-x 2 root root 4096 Sep 16 16:48 sbin
drwxr-xr-x 8 root root 4096 Sep 16 16:47 usr
drwxr-xr-x 3 root root 4096 Sep 16 16:47 var
Comment 8 Maxim Reznik 2014-09-16 14:24:16 UTC
And it works fine on multilib, while fails on no-multilib
Comment 9 Ben Kohler gentoo-dev 2014-09-16 16:40:15 UTC
I can confirm it is this commit that introduced the problem:

  10 Sep 2014; Mike Frysinger <vapier@gentoo.org> files/eblits/common.eblit,
  files/eblits/src_compile.eblit, files/eblits/src_install.eblit,
  files/eblits/src_test.eblit:
  Combine ABI for loops into one helper.
Comment 10 Ben Kohler gentoo-dev 2014-09-16 16:40:57 UTC
I can confirm it is this commit that introduced the problem:

  10 Sep 2014; Mike Frysinger <vapier@gentoo.org> files/eblits/common.eblit,
  files/eblits/src_compile.eblit, files/eblits/src_install.eblit,
  files/eblits/src_test.eblit:
  Combine ABI for loops into one helper.
Comment 11 SpanKY gentoo-dev 2014-09-18 16:48:20 UTC
should be all set now in the tree; thanks for the report!

Commit message: Move away from has_multilib_profile and rely on USE=multilib now that the flag should be sane across profiles
http://sources.gentoo.org/sys-libs/glibc/files/eblits/common.eblit?r1=1.42&r2=1.43
http://sources.gentoo.org/sys-libs/glibc/files/eblits/src_configure.eblit?r1=1.1&r2=1.2
Comment 12 Hoess 2014-09-18 18:00:51 UTC
I can confirm that glibc successfully emerges on amd64-nomultilib(hardened)-profile now (and still does on multilib(hardened) :) ).

Thanks for the fix!!
Comment 13 SpanKY gentoo-dev 2014-09-21 05:46:31 UTC
*** Bug 523290 has been marked as a duplicate of this bug. ***