Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 330369 - sys-libs/glibc-2.11.2 emerge fails sanity check on mips lemote fuloong 2e
Summary: sys-libs/glibc-2.11.2 emerge fails sanity check on mips lemote fuloong 2e
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: MIPS Linux
: High normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-29 15:17 UTC by Andrea Palomba
Modified: 2010-09-14 20:35 UTC (History)
1 user (show)

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


Attachments
Full build log (emerge-log.bz2,237.79 KB, application/x-bzip2)
2010-07-29 15:21 UTC, Andrea Palomba
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrea Palomba 2010-07-29 15:17:28 UTC
I'm installing a Gentoo system on Lemote Fuloong 2E.
The problem occurs while emerging system, when coming to upgrade glibc from 2.6.1 (the version in the stage tarball) to 2.11-r1.
I came to have it compiled by disabling the sandbox feature, but emerge fails after compilation, because of failed checks.

Reproducible: Always

Steps to Reproduce:
1. emerge glibc

Actual Results:  
 * make check failed for default-mipsel-unknown-linux-gnu-nptl
/usr/portage/sys-libs/glibc/files/eblits/pkg_preinst.eblit: line 72: 30872 Segme
ntation fault      "${D}"/$(get_libdir)/ld-*.so --library-path "${D}"/$(get_libd
ir) ${x} > /dev/null
 * ERROR: sys-libs/glibc-2.11-r1 failed:
 *   simple run test (/bin/date) failed
 *
 * Call stack:
 *           ebuild.sh, line   54:  Called pkg_preinst
 *         environment, line 8493:  Called eblit-run 'pkg_preinst'
 *         environment, line 6260:  Called eblit-glibc-pkg_preinst
 *   pkg_preinst.eblit, line   81:  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"

Expected Results:  
Should merge fine.

emerge -pqv =sys-libs/glibc-2.11-r1

[ebuild     U ] sys-libs/glibc-2.11-r1 [2.6.1] USE="nls* -debug -gd -glibc-omitfp (-hardened) (-multilib) -profile (-selinux) -vanilla" 

-----

emerge --info =sys-libs/glibc-2.11-r1

Portage 2.1.8.3 (default/linux/mips/10.0/lemote/lm2e/fulong, gcc-4.1.2, glibc-2.6.1-r0, 2.6.34-gentoo-r2-fuloong2e mips64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.34-gentoo-r2-fuloong2e-mips64-ICT_Loongson-2_V0.2_FPU_V0.1-with-gentoo-1.12.12
Timestamp of tree: Fri, 02 Jul 2010 01:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-lang/python:     2.5.1-r5, 2.6.5-r2
dev-util/ccache:     2.4-r8
sys-apps/baselayout: 1.12.12
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.10.1-r1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       3.4.6-r2, 4.1.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.8
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="mips ~mips"
ACCEPT_LICENSE="* -@EULA"
CBUILD="mipsel-unknown-linux-gnu"
CFLAGS="-O2 -mips3 -pipe"
CHOST="mipsel-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -mips3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.heanet.ie/pub/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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://rsync.gentoo.org/gentoo-portage"
USE="berkdb bzip2 cli cracklib crypt cups cxx fortran gdbm gpm iconv ipv6 lm2e mips modules mudflap ncurses nls nocxx nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl ssl sysfs tcpd xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Andrea Palomba 2010-07-29 15:21:13 UTC
Created attachment 240581 [details]
Full build log
Comment 2 SpanKY gentoo-dev 2010-07-29 16:28:19 UTC
no plans to look at this ... i'll leave it for mips team to check out since everything compiled fine, but the final exec sanity test failed

btw, mips really should move up to ~glibc-2.11.2
Comment 3 Andrea Palomba 2010-07-30 08:57:12 UTC
I was trying glibc-2.11-r1 because of missing mips keyword in the glibc-2.11.2 ebuild.

I tried installing glibc-2.11.2 too after cross-compiling it because of the large time needed for compilation on the mips machine.
It fails in exactly the same way, and also glibc-2.11-r1 fails again the same way when cross-compiled instead of compiled natively.

The cross-compiler used is:
mipsel-unknown-linux-gnu-gcc --version
mipsel-unknown-linux-gnu-gcc (Gentoo 4.4.4-r1 p1.0, pie-0.4.5) 4.4.4.
Comment 4 Matt Turner gentoo-dev 2010-09-14 17:51:24 UTC
* Checking kernel version (2.6.34 >= 2.6.9) ...      [ ok ]
* Checking linux-headers version (2.6.24 >= 2.6.9)   [ ok ]

This looks suspect. Try updating your kernel-headers to the same version.

I see errors like
Testing ASCII/var/tmp/portage/sys-libs/glibc-2.11-r1/work/build-default-mipsel-unknown-linux-gnu-nptl/iconvdata/tst-table-to: symbol lookup error: /lib/libdl.so.2: undefined symbol: GLIBC_PRIVATE, version GLIBC_PRIVATE
 *** FAILED ***

and

mipsel-unknown-linux-gnu-gcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <URL:http://bugs.gentoo.org/> for instructions.

and

symbol lookup error: /usr/lib/gcc/mipsel-unknown-linux-gnu/4.1.2/libgcc_s.so.1: undefined symbol: GCC_3.0, version GCC_3.0

Lines in your emerge --config like
sys-devel/gcc:       3.4.6-r2, 4.1.2

are also telling.

You need to update linux-headers and gcc before updating glibc. I imagine that these failures will go away with a more modern compiler.

I'm going to close this bug, but please reopen if you find that this is still a problem with gcc-4.4.x and linux-headers-2.6.34.
Comment 5 SpanKY gentoo-dev 2010-09-14 20:35:59 UTC
the kernel version differences shouldnt matter.  glibc should fully support any kernel header version as long as it is at least as new as the min (NPTL_KERN_VER -> 2.6.9) and is not newer than the running version (which is 2.6.34 in this case).  if it is broken because of that, it's a bug we should fix in glibc.

the "killed cc1" error though is bad.  it means you're either running out of memory (so increase it, or try removing -pipe), or your kernel sucks (which means fix your flaky kernel).

the libgcc_s.so error is bad ... but it shouldnt be a problem with having two versions of gcc installed side by side.  as long as the default (4.1) matches the /lib/libgcc_s.so.x file, it should be ok.  but the newer version of 4.1 should not be missing symbols from older versions of 3.4.  so that'll need investigating.

not sure where the libdl error is coming from.  execution of the tests should only be using the local libraries, not the host ones.  mips doesnt use sandbox, so that shouldnt be a problem.