Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 433724 - sys-devel/gcc-4.5.4 build fails on arm, missing /lib/libgcc_s.so.1, hosing system
Summary: sys-devel/gcc-4.5.4 build fails on arm, missing /lib/libgcc_s.so.1, hosing sy...
Status: RESOLVED DUPLICATE of bug 433161
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-02 22:19 UTC by Jim Faulkner
Modified: 2012-09-04 21:09 UTC (History)
0 users

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


Attachments
sys-devel/gcc-4.5.4 build log (build.log.gz,215.21 KB, application/x-gzip)
2012-09-02 22:20 UTC, Jim Faulkner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Faulkner 2012-09-02 22:19:47 UTC
The sys-devel/gcc-4.5.4 build fails in the installation phase on my armv5tel system.  This seems to be because installed binaries expect to see libgcc_s.so.1 in /lib, but it's not there, causing the system to be completely hosed.  I was only able to continue working using a statically built busybox.  I will attach my build log.  Here's what my system looked like after the failed install:

~ # gcc -v
sh: gcc: Permission denied
~ # ldd
/bin/bash: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory
~ # cd /lib/
/lib # ln -s /usr/lib/gcc/armv5tel-softfloat-linux-gnueabi/4.5.4/libgcc_s.so.1
/lib # ldd
ldd: missing file arguments
Try `ldd --help' for more information.
/lib # gcc -v
sh: gcc: Permission denied
/lib #



Reproducible: Always




# emerge --info
!!! No gcc found. You probably need to 'source /etc/profile'
!!! to update the environment of this terminal and possibly                                                                                    
!!! other terminals also.                                                                                                                      
Portage 2.1.11.9 (default/linux/arm/10.0/armv5te/server, [unavailable], glibc-2.14.1-r3, 3.4.10 armv5tel)                                      
=================================================================
System uname: Linux-3.4.10-armv5tel-Feroceon_88FR131_rev_1_-v5l-with-gentoo-2.1
Timestamp of tree: Sat, 01 Sep 2012 23:45:01 +0000
app-shells/bash:          4.2_p20
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.27
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo mythtv x-portage-overlay
ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv5tel-softfloat-linux-gnueabi"
CFLAGS="-O2 -pipe -march=armv5te"
CHOST="armv5tel-softfloat-linux-gnueabi"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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 -march=armv5te"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-Os -march=armv5te -fomit-frame-pointer"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-Os -march=armv5te -fomit-frame-pointer"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/mnt/auto/portage"
PORTDIR_OVERLAY="/usr/local/mythtv_portage/Gentoo /usr/local/portage-overlay"
SYNC="rsync://jove.eng.yale.edu/gentoo-portage"
USE="arm berkdb bzip2 cli cracklib crypt cxx fortran gdbm gpm iconv ipv6 lzma memlimit modules mudflap ncurses nls nptl offensive openmp pam pcre pppd readline session ssl tcpd truetype unicode xml 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 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" 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 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 en_US" PHP_TARGETS="php5-3" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="dummy" 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, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Jim Faulkner 2012-09-02 22:20:51 UTC
Created attachment 322790 [details]
sys-devel/gcc-4.5.4 build log
Comment 2 SpanKY gentoo-dev 2012-09-04 20:04:23 UTC
i've seen this happen when your glibc is old and hasn't updated in a while.  make sure you have an entry in your /etc/ld.so.conf:
  include ld.so.conf.d/*.conf

if you don't, run:
  echo 'LDPATH="include ld.so.conf.d/*.conf"' > /etc/env.d/00glibc
  env-update
  ldconfig
Comment 3 Jim Faulkner 2012-09-04 20:30:16 UTC
I do have an include line in /etc/ld.so.conf, however the 05gcc file in /etc/ld.so.conf.d/ still points at the old gcc.  It looks like the gcc-4.5.4 build removed the old gcc installation before updating the /etc/ld.so.conf.d/05gcc file.  On my hosed system:

raven ~ # cat /etc/ld.so.conf | grep include
include ld.so.conf.d/*.conf
raven ~ # grep gcc /etc/ld.so.conf.d/*
/etc/ld.so.conf.d/05gcc-armv5tel-softfloat-linux-gnueabi.conf:/usr/lib/gcc/armv5tel-softfloat-linux-gnueabi/4.5.3
raven ~ # ls /usr/lib/gcc/armv5tel-softfloat-linux-gnueabi/4.5.3
ls: cannot access /usr/lib/gcc/armv5tel-softfloat-linux-gnueabi/4.5.3: No such file or directory
raven ~ # gcc
 * gcc-config: Active gcc profile is invalid!
gcc-config: error: could not run/locate 'gcc'
raven ~ #
Comment 4 SpanKY gentoo-dev 2012-09-04 21:09:15 UTC

*** This bug has been marked as a duplicate of bug 433161 ***