Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 500232 - sys-libs/glibc-2.18-r1 install error on stage3-armv7a_hardfp-20140112
Summary: sys-libs/glibc-2.18-r1 install error on stage3-armv7a_hardfp-20140112
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: ARM Linux
: Normal major
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-04 04:56 UTC by Steve Arnold
Modified: 2014-06-29 23:58 UTC (History)
1 user (show)

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


Attachments
emerge --info (glibc-info.txt,5.14 KB, text/plain)
2014-02-09 23:54 UTC, Steve Arnold
Details
emerge -pqv (glibc-info2.txt,247 bytes, text/plain)
2014-02-09 23:55 UTC, Steve Arnold
Details
env (glibc-env.txt,144.10 KB, text/plain)
2014-02-09 23:56 UTC, Steve Arnold
Details
emerge --info (glibc-info.txt,5.11 KB, text/plain)
2014-02-09 23:59 UTC, Steve Arnold
Details
end of build log (file_500232.txt,2.05 KB, text/plain)
2014-02-10 00:08 UTC, Steve Arnold
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Arnold archtester gentoo-dev 2014-02-04 04:56:05 UTC
The latest glibc and linux-headers upgraded from stage3 versions results in the failure below on both hardware platforms.  On BBB an "ebuild ... install" followed by "ebuild ... qmerge" worked, but not on trimslice (same failure as below every time).  Tried with gcc-4.7.3 and 4.8.2 and with 3.12 and 3.13 headers.

Reproducible: Always

Steps to Reproduce:
1. start from above on trimslice or beaglebone black
2. upgrade gcc or don't
3. upgrade glibc with 3.12 or 3.13 headers
Actual Results:  
>>> Installing (2 of 2) sys-libs/glibc-2.18-r1
 * Removing /usr/share/doc
 * checking 1663 files for package collisions
1000 files checked ...
>>> Merging sys-libs/glibc-2.18-r1 to /
 * Defaulting /etc/host.conf:multi to on
/usr/portage/sys-libs/glibc/files/eblits/pkg_preinst.eblit: line 21: 29743 Illegal instruction     ./ld-*.so --library-path . ${x} > /dev/null
 * ERROR: sys-libs/glibc-2.18-r1::gentoo failed (preinst phase):
 *   simple run test (/bin/date) failed
 *
 * Call stack:
 *           ebuild.sh, line   93:  Called pkg_preinst
 *         environment, line 2728:  Called eblit-run 'pkg_preinst'
 *         environment, line  932:  Called eblit-glibc-pkg_preinst
 *   pkg_preinst.eblit, line   48:  Called glibc_sanity_check
 *   pkg_preinst.eblit, line   27:  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.18-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/glibc-2.18-r1::gentoo'`.
 * The complete build log is located at '/var/log/portage/sys-libs:glibc-2.18-r1:20140203-153933.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/sys-libs/glibc-2.18-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.18-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-libs/glibc-2.18-r1/image/lib'
 * S: '/var/tmp/portage/sys-libs/glibc-2.18-r1/work/glibc-2.18'


Expected Results:  
Successful install/merge.

# emerge --info
Portage 2.2.8-r1 (default/linux/arm/13.0/armv7a/desktop, gcc-4.8.2, glibc-2.17, 3.12.0-gentoo armv7l)
=================================================================
System uname: Linux-3.12.0-gentoo-armv7l-with-gentoo-2.2
KiB Mem:     1028528 total,    148564 free
KiB Swap:     511996 total,    507788 free
Timestamp of tree: Sun, 02 Feb 2014 00:45:01 +0000
ld GNU ld (GNU Binutils) 2.24
distcc 3.1 armv7a-hardfloat-linux-gnueabi [enabled]
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r3, 3.3.2-r2
dev-util/ccache:          3.1.9-r3
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.13.4
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.7.3-r1, 4.8.2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo nerdboy-local arm_support
ACCEPT_KEYWORDS="arm ~arm"
ACCEPT_LICENSE="* -@EULA @GPL-COMPATIBLE @OSI-APPROVED @EULA dlj-1.1 skype-eula googleearth AdobeFlash-10.1 Oracle-BCLA-JavaSE"
CBUILD="armv7a-hardfloat-linux-gnueabi"
CFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe -march=armv7-a"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync news nodoc parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=armv7-a"
GENTOO_MIRRORS="http://localdomain/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j7"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/arm"
SYNC="rsync://localdomain/gentoo-portage"
USE="X a52 aac abiword acl acpi alsa arm aspell audiofile avahi berkdb bindist bitmap-fonts bluetooth branding bzip2 cairo caps cdda cdr cli consolekit cracklib crypt cups cxx dbus dri drm dts dvdr egl emboss enchant encode exif fam firefox flac fortran freetype freetype2 gcj gd gdbm gif gles1 gles2 glib gnome gpm gstreamer gtk gudev highlight iconv id3tag imlib inotify introspection ipv6 jpeg lame lcms ldap libnotify libsamplerate lua mad mng modules mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio python qt3support readline sdl session sexy spell sqlite ssl startup-notification svg system-cairo system-jpeg system-sqlite tcpd tiff truetype truetype-fonts type1-fonts udev udisks unicode upower usb v4l vala vorbis webkit wifi wxwidgets xattr xcb xdg xml xorg xrandr xv xvid zeroconf zlib" ALSA_CARDS="usb-audio" APACHE2_MODULES="actions alias auth_digest 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 proxy proxy_connect proxy_http 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" CURL_SSL="openssl" 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="en_US en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev tegra" 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 3.2 3.3"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Steev Klimaszewski (RETIRED) gentoo-dev 2014-02-04 05:04:58 UTC
I've got a box here that compiled -r1 on 1/24/2014

     Installed versions:  2.18-r1(2.2)^s(11:53:47 01/24/14)(-debug -gd -hardened -multilib -nscd -profile -selinux -suid -systemtap -vanilla CROSSCOMPILE_OPTS="-headers-only")

With no issue, so the change on 1/25 - 

Mike Frysinger <vapier@gentoo.org> glibc-2.18-r1.ebuild:
Add fix for armv4 (non thumb) and for alpha/tls code from upstream.


May be suspect?
Comment 2 SpanKY gentoo-dev 2014-02-04 18:36:52 UTC
the only new patch is this:
http://sources.gentoo.org/gentoo/src/patchsets/glibc/2.18/00_all_0034-ARM-Fix-clone-build-for-ARMv4.patch

and it should produce the same code before & after for armv7 devices
Comment 3 SpanKY gentoo-dev 2014-02-04 22:58:59 UTC
that said, it's working for me:
 - download stage3-armv7a_hardfp-20140112.tar.bz2
 - add "sys-libs/glibc ~arm" to package.keywords
 - update sys-libs/glibc to 2.18

tested on an EXYNOS5 (armv7) CPU w/neon support and linux-3.4 kernel.
Comment 4 Steev Klimaszewski (RETIRED) gentoo-dev 2014-02-05 17:20:19 UTC
(In reply to SpanKY from comment #3)
> that said, it's working for me:
>  - download stage3-armv7a_hardfp-20140112.tar.bz2
>  - add "sys-libs/glibc ~arm" to package.keywords
>  - update sys-libs/glibc to 2.18
> 
> tested on an EXYNOS5 (armv7) CPU w/neon support and linux-3.4 kernel.

Ditto, tested on a 3.8 and 3.4 kernel and can't reproduce here either, I just did some digging for Steve into what might have caused the issue since he ran into it on 2 different boards.
Comment 5 Steve Arnold archtester gentoo-dev 2014-02-09 23:52:45 UTC
I replaced the previous suspect SSD in the trimslice and redid the install from the same stage3 and portage snapshot, then masked glibc-2.18 and installed a few packages (plus quite a few deps) using the desktop profile.  Then tried the glibc upgrade and got the same error :(

Attachments follow...
Comment 6 Steve Arnold archtester gentoo-dev 2014-02-09 23:54:24 UTC
Created attachment 369984 [details]
emerge --info

output of `emerge --info '=sys-libs/glibc-2.18-r1::gentoo'`
Comment 7 Steve Arnold archtester gentoo-dev 2014-02-09 23:55:10 UTC
Created attachment 369986 [details]
emerge -pqv

output of `emerge -pqv '=sys-libs/glibc-2.18-r1::gentoo'`
Comment 8 Steve Arnold archtester gentoo-dev 2014-02-09 23:56:19 UTC
Created attachment 369988 [details]
env

ebuild environment file
Comment 9 Steve Arnold archtester gentoo-dev 2014-02-09 23:59:23 UTC
Created attachment 369990 [details]
emerge --info

output of `emerge --info '=sys-libs/glibc-2.18-r1::gentoo'`
Comment 10 Steve Arnold archtester gentoo-dev 2014-02-10 00:08:13 UTC
Created attachment 369992 [details]
end of build log

See the full log here:

http://www.gentoogeek.org/files/glibc-log.txt
Comment 11 SpanKY gentoo-dev 2014-02-10 05:59:33 UTC
go into the directory and run the failing command yourself.  if it still fails, run it through gdb and figure out what insn exactly is failing.

you didn't say what cpu exactly you're using other than it's an armv7a.
Comment 12 Anthony Basile gentoo-dev 2014-06-29 23:22:57 UTC
FYI, If you want to try against, I just pushed out an updated version of those stages:

<mirror>/experimental/arm/hardened/stage3-armv7a_hardfp-hardened-20140627.tar.bz2

However, I doubt it will make a difference for this bug.
Comment 13 Anthony Basile gentoo-dev 2014-06-29 23:23:44 UTC
(In reply to Anthony Basile from comment #12)
> FYI, If you want to try against, I just pushed out an updated version of
> those stages:


That should read "if you want to try again"  Sorry for the extra email.
Comment 14 Steev Klimaszewski (RETIRED) gentoo-dev 2014-06-29 23:58:12 UTC
(In reply to SpanKY from comment #11)
> go into the directory and run the failing command yourself.  if it still
> fails, run it through gdb and figure out what insn exactly is failing.
> 
> you didn't say what cpu exactly you're using other than it's an armv7a.

Actually he mentioned 2 different boards that he seemed to run into the issue.

Trimslice is a tegra2 with no neon unit

BBB is an omap (4?) and does have a neon unit...

But based on his emerge --info it doesn't seem that either one has neon enabled, so that shouldn't matter.