Installed 2008.0 mips1 stage 3 image (experimental tree). Everything was working fine (don't have binutils version in stage, sorry). Did emerge --sync, emerge --update --deep world and binutils was upgraded to 2.18-r3. Ever since, ld doesn't function properly. For example, compiling even simple "hello world" C source gives: localhost tmp # gcc test.c /usr/lib/gcc/mips-unknown-linux-gnu/4.1.2/../../../../mips-unknown-linux-gnu/bin/ld: .gnu.hash is incompatible with the MIPS ABI collect2: ld returned 1 exit status I get this error trying to emerge anything now, as well. If I specify --hash-style=sysv to ld, things work fine. (portage workaround echo LDFLAGS=-Wl,--hash-style=sysv >> /etc/make.conf) Reproducible: Always
Please post your `emerge --info' too.
Here is emerge --info. LDFLAGS includes the previously mentioned workaround. Without that, it is simply LDFLAGS="-Wl,-O1". Portage 2.2_rc1 (default/linux/mips/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25.1 ================================================================= System uname: Linux-2.6.25.10-mips-Au1550_V0.0-with-glibc2.0 Timestamp of tree: Wed, 16 Jul 2008 15:45:01 +0000 app-shells/bash: 3.2_p33 dev-lang/python: 2.5.1-r5 sys-apps/baselayout: 1.12.12 sys-apps/sandbox: 1.2.18.1-r3 sys-devel/autoconf: 2.61-r1 sys-devel/automake: 1.10.1-r1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.25-r4 ACCEPT_KEYWORDS="mips ~mips" CBUILD="mips-unknown-linux-gnu" CFLAGS="-O2 -mips1 -mabi=32 -pipe" CHOST="mips-unknown-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -mips1 -mabi=32 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks parallel-fetch preserve-libs sandbox sfperms strict GENTOO_MIRRORS="http://mirror.mcs.anl.gov/pub/gentoo/ " LDFLAGS="-Wl,-O1 -Wl,--hash-style=sysv" PKGDIR="/usr/portage/packages" 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.namerica.gentoo.org/gentoo-portage" USE="berkdb bzip2 cli cracklib crypt cups fortran gdbm gpm iconv isdnlog midi mips mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl ssl tcpd unicode xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev impact newport" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
The only time I have found this to be a problem on my Lemote Fulong mips based machine (Loongson 2E chipset) has been when I have compiled kernels. In other instances of compiles, using the LDFLAGS="--hash-style=sysv" breaks compiles (just recently I was not able to compile media-libs/libcaca because of this, and had to take that directive out of my /etc/make.conf file)
*** This bug has been marked as a duplicate of bug 233233 ***