After installing gcc-4.5.3-r1, I get the following: /sbin/ldconfig: /usr/lib/gcc/sparc-unknown-linux-gnu/4.5.3/64/libstdc++.so.6.0.14-gdb.py is not an ELF file - it has the wrong magic bytes at the start. # qlist sys-devel/gcc|grep py$ /usr/lib/gcc/sparc-unknown-linux-gnu/4.5.3/64/libstdc++.so.6.0.14-gdb.py ^^^ This one shouldn't be under /usr/lib /usr/share/gcc-data/sparc-unknown-linux-gnu/4.5.3/gcc-4.5.3/python/libstdcxx/v6/printers.py /usr/share/gcc-data/sparc-unknown-linux-gnu/4.5.3/gcc-4.5.3/python/libstdcxx/v6/__init__.py /usr/share/gcc-data/sparc-unknown-linux-gnu/4.5.3/gcc-4.5.3/python/libstdcxx/__init__.py /usr/share/gdb/auto-load/usr/lib32/gcc/sparc-unknown-linux-gnu/4.5.3/libstdc++.so.6.0.14-gdb.py emerge --info gcc: Portage 2.1.10.11 (default/linux/sparc/experimental/multilib/server, gcc-4.5.3, glibc-2.12.2-r0, 2.6.39-gentoo-r3 sparc64) ================================================================= System Settings ================================================================= System uname: Linux-2.6.39-gentoo-r3-sparc64-sun4u-with-gentoo-2.0.3 Timestamp of tree: Tue, 25 Oct 2011 07:15:01 +0000 distcc 3.1 sparc-unknown-linux-gnu [disabled] ccache version 2.4 [enabled] app-shells/bash: 4.1_p9 dev-lang/python: 2.7.1-r1 dev-util/ccache: 2.4-r9 dev-util/cmake: 2.8.4-r1 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.0.3 sys-apps/openrc: 0.8.3-r1 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.5, 4.5.3-r1 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r1 sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers) sys-libs/glibc: 2.12.2 Repositories: gentoo modified-ebuilds DuPol betagarden ACCEPT_KEYWORDS="sparc" ACCEPT_LICENSE="* -@EULA" CBUILD="sparc-unknown-linux-gnu" CFLAGS="-O2 -mcpu=ultrasparc -pipe -ggdb" CHOST="sparc-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/share/openvpn/easy-rsa" 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" CXXFLAGS="-O2 -mcpu=ultrasparc -pipe -ggdb" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--ask --autounmask=n" FEATURES="assume-digests binpkg-logs ccache collision-protect distlocks ebuild-locks fixlafiles fixpackages multilib-strict news parallel-fetch protect-owned sandbox sfperms splitdebug strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox" FFLAGS="" GENTOO_MIRRORS="ftp://mirror.netcologne.de/gentoo/ ftp://gentoo.tiscali.nl/pub/mirror/gentoo/ ftp://mirror.cambrium.nl/pub/os/linux/gentoo/ ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp6.uni-muenster.de/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en de" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_COMPRESS="" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--timeout=500" 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="/home/portage" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/modified /var/lib/layman/DuPol /var/lib/layman/betagarden" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="X acl admin bash-completion branding bzip2 cli coverpage cracklib crypt cups cxx dbus dri fortran gd git gpm iconv iproute2 javascript jpeg kerberos keyscrub logrotate loop-aes mime modules mudflap multilib nls nptl nptlonly openmp pam pcre png posix pppd readline sasl session sparc ssl sysfs syslog system-sqlite tcpd threads tiff truetype unicode userlocales xml xorg xvfb 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="auth_basic auth_core authn_file authz_core authz_host authz_user dav dir log_config mime unixd" CALLIGRA_FEATURES="kexi words flow plan 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="mach64" 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, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS ================================================================= Package Settings ================================================================= sys-devel/gcc-4.4.5 was built with the following: USE="fortran mudflap (multilib) nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -graphite (-gtk) (-hardened) (-libffi) -multislot -nocxx -nopie -nossp -objc -objc++ -objc-gc -test -vanilla" sys-devel/gcc-4.5.3-r1 was built with the following: USE="fortran mudflap (multilib) nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -graphite (-gtk) (-hardened) (-libffi) -lto -multislot -nocxx -nopie -nossp -objc -objc++ -objc-gc -test -vanilla"
i'm guessing only multilib py files are screwing up
Yep. My multilib knowledge includes all of x86_64. Here's the offending part: 1803 # Move pretty-printers to gdb datadir to shut ldconfig up 1804 gdbdir=/usr/share/gdb/auto-load${LIBPATH/\/lib\//\/$(get_libdir)\/} 1805 for i in "${D}"${LIBPATH}{,/32}/*-gdb.py; do 1806 if [[ -e ${i} ]]; then 1807 basedir="$(dirname ${i/${D}${LIBPATH}/})" 1808 sed -i -e "s:^\(libdir = \).*:\1'${LIBPATH}${basedir}':" "${i}" #348128 1809 insinto "${gdbdir}${basedir}" 1810 doins "${i}" 1811 rm "${i}" 1812 fi 1813 done
i fixed this up after i noticed it with x32 ABI http://sources.gentoo.org/eclass/toolchain.eclass?r1=1.482&r2=1.483