Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 232139 - Linker defaults to hash-style=gnu, which is not functional on MIPS
Summary: Linker defaults to hash-style=gnu, which is not functional on MIPS
Status: RESOLVED DUPLICATE of bug 233233
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: MIPS Linux
: High major (vote)
Assignee: MIPS Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-18 02:18 UTC by heydowns
Modified: 2008-08-20 04:00 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description heydowns 2008-07-18 02:18:01 UTC
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
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-07-18 03:04:27 UTC
Please post your `emerge --info' too.
Comment 2 heydowns 2008-07-18 14:30:58 UTC
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
Comment 3 Jon Akers 2008-08-06 14:52:14 UTC
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)
Comment 4 SpanKY gentoo-dev 2008-08-20 04:00:14 UTC

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