Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 232051 - Error merging sys-libs/glibc-2.8_p20080602: (/bin/date: wrong ELF class: ELFCLASS32)
Summary: Error merging sys-libs/glibc-2.8_p20080602: (/bin/date: wrong ELF class: ELFC...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-17 07:41 UTC by Pekka-Matti Nieminen
Modified: 2008-07-17 21:33 UTC (History)
0 users

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 Pekka-Matti Nieminen 2008-07-17 07:41:41 UTC
# emerge glibc -v

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] sys-libs/glibc-2.8_p20080602 [2.7-r2] USE="(multilib*) nls -debug -gd -glibc-compat20 -glibc-omitfp (-hardened) -profile (-selinux) -vanilla" 0 kB

[clip]

test ! -x /var/tmp/portage/sys-libs/glibc-2.8_p20080602/work/build-amd64-x86_64-pc-linux-gnu-nptl/elf/ldconfig || LC_ALL=C LANGUAGE=C \
          /var/tmp/portage/sys-libs/glibc-2.8_p20080602/work/build-amd64-x86_64-pc-linux-gnu-nptl/elf/ldconfig -r /var/tmp/portage/sys-libs/glibc-2.8_p20080602/image/ \
                                       /lib64 /usr/lib64
/var/tmp/portage/sys-libs/glibc-2.8_p20080602/work/build-amd64-x86_64-pc-linux-gnu-nptl/elf/ldconfig: Can't open configuration file /etc/ld.so.conf: No such file or directory
make[1]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.8_p20080602/work/glibc-2.8-20080602'
>>> Completed installing glibc-2.8_p20080602 into /var/tmp/portage/sys-libs/glibc-2.8_p20080602/image/

ecompressdir: bzip2 -9 /usr/share/man
ecompressdir: bzip2 -9 /usr/share/info
making executable: usr/lib32/libc.so
making executable: usr/lib32/libpthread.so
making executable: usr/lib64/libc.so
making executable: usr/lib64/libpthread.so
* checking 1647 files for package collisions
1000 files checked ...
>>> Merging sys-libs/glibc-2.8_p20080602 to /
/bin/date: error while loading shared libraries: /bin/date: wrong ELF class: ELFCLASS32
 *
 * ERROR: sys-libs/glibc-2.8_p20080602 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called pkg_preinst
 *             environment, line 3188:  Called die
 * The specific snippet of code:
 *           "${D}"/$(get_libdir)/ld-*.so --library-path "${D}"/$(get_libdir) ${x} > /dev/null || die "simple run test (${x}) failed";
 *  The die message:
 *   simple run test (/bin/date) failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.8_p20080602/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.8_p20080602/temp/environment'.
 *
!!! FAILED preinst: 1

Reproducible: Always

Steps to Reproduce:
1. emerge glibc





1. Running Xen (3.2.1) dom0 with xen-sources 2.6.18.8 kernel

2. /etc/ld.so.conf exists
# ls -la /etc/ld.so.conf
-rw-r--r-- 1 root root 981 2008-07-16 16:14 /etc/ld.so.conf

3. # emerge --info
Portage 2.2_rc1 (default/linux/amd64/2008.0/desktop, gcc-4.2.4, glibc-2.7-r2, 2.6.18.8 x86_64)
=================================================================
System uname: Linux-2.6.18.8-x86_64-Intel-R-_Core-TM-2_Quad_CPU_@_2.40GHz-with-glibc2.2.5
Timestamp of tree: Tue, 15 Jul 2008 22:45:03 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks nostrip parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ http://ftp.public.fix.fi/gentoo/ ftp://ftp.public.fix.fi/gentoo "
LANG="fi_FI.UTF8"
LC_ALL="fi_FI.UTF8"
LDFLAGS="-Wl,-O1"
LINGUAS="fi"
MAKEOPTS="-j5"
PKGDIR="/var/tmp/binpkgs"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://192.168.2.100/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apm audiofile bash-completion bzip2 cairo cddb cdparanoia cdr chm cracklib crypt cups curl cxx dbus dri dts dvd dvdr dvdread encode exif expat fbcon ffmpeg firefox flac ftp gif gpm hal hvm iconv ieee1394 imagemagick imap imlib java javascript jpeg jpeg2k kde lesstif libwww liemikuutio lircsettings lm_sensors mad midi mjpeg mmx mng mp3 mpeg mplayer msn multilib ncurses nls nntp nptl nsplugin ogg openal opengl pam pcre pdf perl plasma png posix python qt3 qt4 quicktime rdesktop readline recode samba sse sse2 ssl ssse3 startup-notification subtitles svg syslog sysvipc theora threads tiff truetype unicode usb vlm volctrl vorbis x264 xattr xcomposite xine xml xmlrpc xorg xpm xscreensaver xv xvid zlib" ALSA_CARDS="emu10k" ALSA_PCM_PLUGINS="iec958 dmix plug rate route share shm meter multi adpcm ioplug mulaw alaw asym copy dshare dsnoop empty extplug file hooks ladspa lfloat linear null softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fi" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Pekka-Matti Nieminen 2008-07-17 09:10:34 UTC
Just out of curiosity: got same result with gentoo-sources-2.6.24-r5 kernel.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2008-07-17 20:17:56 UTC
Could you figure out where /bin/date came from? It doesn't appear to be the 64-bit one you need. (I.e. is /bin/date of a later date than the sys-apps/coreutils package?)
Comment 3 Pekka-Matti Nieminen 2008-07-17 20:53:00 UTC
(In reply to comment #2)
> Could you figure out where /bin/date came from? It doesn't appear to be the
> 64-bit one you need. (I.e. is /bin/date of a later date than the
> sys-apps/coreutils package?)

Oh silly me. You are right. My /bin/date is part of binary package kindly provided by you :). (See bug #224483 comment #8 ). I just remained using this binary version of coreutils as I should have replaced it at most haste with self compiled from sources (emerge =coreutils-6.10-r2). It never occurred to me as /bin/date was working with soon-to-be replaced glibc.

Now I emerged coreutils and am waiting the results of emerging glibc. Most likely it will work now and this 'bug' is to be marked as invalid. 

Thank you for your trouble and sorry for inconvience.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2008-07-17 21:19:56 UTC
Very well. :)
Comment 5 Pekka-Matti Nieminen 2008-07-17 21:33:53 UTC
As it was expected: after re-emerging coreutils package from sources glibc upgraded nicely.