Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 545218 - toolchain-funcs.eclass: tc-ld-disable-gold: appending ldflags directly to LD breaks bfd lookup
Summary: toolchain-funcs.eclass: tc-ld-disable-gold: appending ldflags directly to LD ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-01 10:29 UTC by Nuno Silva
Modified: 2023-07-30 18:38 UTC (History)
0 users

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


Attachments
build.log (build.log,6.95 KB, text/plain)
2015-04-01 10:31 UTC, Nuno Silva
Details
emerge -1 --debug grub:0 (build.log,464.50 KB, text/plain)
2015-04-08 08:50 UTC, Nuno Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nuno Silva 2015-04-01 10:29:45 UTC
Several ebuilds that had build failures with ld.gold now attempt to switch to ld.bfd automatically, but this seems to fail at least in grub and glibc. I am able to change ld to ld.bfd manually.

Reproducible: Always

Steps to Reproduce:
1. binutils-config --linker ld.gold
2. emerge -1 grub:0
Actual Results:  
"unable to locate a BFD linker to bypass gold"


Portage 2.2.14 (python 2.7.9-final-0, default/linux/amd64/13.0, gcc-4.7.3, glibc-2.20-r2, 3.12.13-gentoo-ir1.2-20141101 x86_64)
=================================================================
System uname: Linux-3.12.13-gentoo-ir1.2-20141101-x86_64-AMD_Phenom-tm-_II_X2_545_Processor-with-gentoo-2.2
KiB Mem:     4045608 total,   1465284 free
KiB Swap:    3903788 total,   3903788 free
Timestamp of tree: Mon, 30 Mar 2015 21:15:01 +0000
ld GNU gold (Gentoo 2.24 p1.4 2.24) 1.11
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r4
dev-lang/python:          2.7.9-r1, 3.3.5-r1, 3.4.1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.11
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.6.4, 4.7.3-r1, 4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.6
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.18 (virtual/os-headers)
sys-libs/glibc:           2.20-r2
Repositories: gentoo finnish sunrise steam-overlay lisp poly-c emacs x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
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 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/finnish /var/lib/layman/sunrise /var/lib/layman/steam /var/lib/layman/lisp /var/lib/layman/poly-c /var/lib/layman/emacs /usr/local/portage"
SYNC="rsync://trumpetti.atm.tut.fi/gentoo-portage"
USE="X aac aalib acl alsa amd64 berkdb bzip2 cli cracklib crypt cxx djvu dri dvi emacs ffmpeg flac fortran gdbm gif iconv ipv6 jpeg jpeg2k lame latex libcaca mmx mmxext modules mp3 mp4 mpeg multilib ncurses nls nptl ogg openmp pam pcre png pnm qt3support readline session sse sse2 ssl tcpd theora tiff unicode vaapi vdpau vorbis x264 zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" DVB_CARDS="tda10045 tda10046" 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 ublox ubx" INPUT_DEVICES="evdev keyboard mouse aiptek" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en pt fi" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="radeon vesa" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Nuno Silva 2015-04-01 10:31:06 UTC
Created attachment 400320 [details]
build.log
Comment 2 SpanKY gentoo-dev 2015-04-08 04:31:15 UTC
please run `emerge -1 --debug grub:0` and post that log as an attachment
Comment 3 Nuno Silva 2015-04-08 08:50:31 UTC
Created attachment 400814 [details]
emerge -1 --debug grub:0

Build log attached.
Comment 5 Nuno Silva 2015-04-13 08:38:27 UTC
Thanks! The fix solved it, it is now working here.
Comment 6 Larry the Git Cow gentoo-dev 2023-07-30 18:38:23 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af86694a988bf16a794191383b4b624d99d4a39f

commit af86694a988bf16a794191383b4b624d99d4a39f
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-07-30 18:36:07 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-07-30 18:38:17 +0000

    toolchain-funcs.eclass: shift comment
    
    It makes a bit more sense (although still a bit suspicious, wonder if should
    strip . as well, see c26413ae8029f1557aae95b6f8744fc16671fa3b and bug #911503
    where we had 'ld.lld.bd') now with the comment in the right place.
    
    It was added originally for bug #545218 (b959fb6c158d4727e85472b3a50af5af3f719972).
    
    Bug: https://bugs.gentoo.org/545218
    Bug: https://bugs.gentoo.org/911503
    Signed-off-by: Sam James <sam@gentoo.org>

 eclass/toolchain-funcs.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)