Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 317549 - sys-devel/binutils-2.20.1 fails to link sys-devel/llvm
Summary: sys-devel/binutils-2.20.1 fails to link sys-devel/llvm
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://sourceware.org/bugzilla/show_b...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-27 23:15 UTC by Michael Weber (RETIRED)
Modified: 2010-05-09 10:29 UTC (History)
0 users

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


Attachments
build.log (build.log,145.95 KB, text/plain)
2010-04-27 23:15 UTC, Michael Weber (RETIRED)
Details
environment (environment,91.20 KB, text/plain)
2010-04-27 23:16 UTC, Michael Weber (RETIRED)
Details
build.log of llvm-2.7 (build.log,178.40 KB, text/plain)
2010-04-28 12:46 UTC, Michael Weber (RETIRED)
Details
elflink.c.diff (elflink.c.diff,791 bytes, patch)
2010-04-28 14:00 UTC, Chí-Thanh Christopher Nguyễn
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Weber (RETIRED) gentoo-dev 2010-04-27 23:15:12 UTC
I switched from nvidia-drivers to nouveau with mesa-9999 which RDEPENDs on sys-devel/llvm. Both version of sys-devel/llvm in tree (2.6-r1 and -r2) fail to build on my system.

/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: BFD (GNU Binutils) 2.20.1.20100303 internal error, aborting at /var/tmp/portage/sys-devel/binutils-2.20.1/work/binutils-2.20.1/bfd/elflink.c line 8468 in elf_link_check_versioned_symbol

The core system (kernel, gcc, glibc, binutils, openrc) is mostly ~amd64.

Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.11.1-r0, 2.6.34-rc4-git6-pandora.0 x86_64)
=================================================================
System uname: Linux-2.6.34-rc4-git6-pandora.0-x86_64-AMD_Phenom-tm-_II_X4_920_Processor-with-gentoo-2.0.1
Timestamp of tree: Mon, 26 Apr 2010 23:30:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1
dev-python/pycrypto: 2.1.0_beta1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -mfpmath=sse -mieee-fp -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /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="-march=amdfam10 -mfpmath=sse -mieee-fp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=""
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://nash.fs.lmu.de/gentoo/"
LDFLAGS="-Wl,-O1"
LINGUAS="de en en_US"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
PORTDIR_OVERLAY="/usr/local/portage/layman/science /usr/local/portage/layman/gnome /usr/local/portage/layman/sunrise /usr/local/portage/layman/xmw /usr/local/portage/layman/x11"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib acl alsa amd64 ao apache2 bash-completion berkdb bluetooth bzip2 cairo cdda cddb cdparanoia cdr cgi cli consolekit cracklib crypt ctype cups cxx dbus dga djvu dri dts dv dvb dvd dvdr dvdread encode exif faac faad fbcon ffmpeg fftw flac fontconfig fortran gdbm gif gimp glut gnome gnome-keyring gnutls gphoto2 gpm gs gstreamer gtk iconv id3tag ieee1394 imagemagick introspection ipod ipv6 java java6 jbig joystick jpeg jpeg2k lame latex lcms libnotify libsamplerate lm_sensors lzma lzo mad mikmod mmap mmx mng modules mp3 mpeg mpi mplayer mudflap multilib mysql nas nautilus ncurses nls nptl nptlonly nsplugin ogg openal openexr opengl openmp pam pch pcre pdf perl png policykit postgres pppd python quicktime raw readline reflection rle samba sdl session smp speex spell spl sqlite sse sse2 ssl subversion svg symlink sysfs syslog taglib tcl tcpd theora threads tiff tk truetype unicode upnp usb vhosts vim-syntax vorbis wavpack webkit x264 xcb xine xinerama xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="intel-hda" 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 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="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en en_US" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau" 
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Michael Weber (RETIRED) gentoo-dev 2010-04-27 23:15:56 UTC
Created attachment 229453 [details]
build.log
Comment 2 Michael Weber (RETIRED) gentoo-dev 2010-04-27 23:16:15 UTC
Created attachment 229455 [details]
environment
Comment 3 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-04-27 23:26:02 UTC
This is apparently a bug in binutils, already fixed upstream.
Comment 4 Michael Weber (RETIRED) gentoo-dev 2010-04-28 12:46:54 UTC
Created attachment 229495 [details]
build.log of llvm-2.7

llvm-2.7 is affected, too.
Comment 5 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-04-28 14:00:21 UTC
Created attachment 229509 [details, diff]
elflink.c.diff

patch from upstream
Comment 6 Francis Galiegue 2010-04-28 14:11:09 UTC
Which flags was llvm compiled with? I have no problems emerging either version and use the same gcc and binutils version, arch and setup (~amd64)
Comment 7 Michael Weber (RETIRED) gentoo-dev 2010-04-28 16:06:17 UTC
(In reply to comment #6)
> Which flags was llvm compiled with? I have no problems emerging either version
> and use the same gcc and binutils version, arch and setup (~amd64)
only libffi

(In reply to comment #5)
> Created an attachment (id=229509) [details]
> elflink.c.diff
thanks, I've added a modified ebuild to http://svn.xmw.de/websvn/gentoo-overlay/sys-devel/binutils/ and it works.
sys-devel/binutils-2.20.51.0.8 from tree does work, too.

@toolchain, can you please add this patch to the official tree?
Comment 8 SpanKY gentoo-dev 2010-05-09 08:11:34 UTC
Comment on attachment 229509 [details, diff]
elflink.c.diff

this lacks required metadata.  please review http://dev.gentoo.org/~vapier/clean-patches
Comment 9 SpanKY gentoo-dev 2010-05-09 08:30:07 UTC
added to the 2.20.1 patchset
Comment 10 Michael Weber (RETIRED) gentoo-dev 2010-05-09 10:29:18 UTC
(In reply to comment #9)
> added to the 2.20.1 patchset

works, thanks!