Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 503948 - sys-devel/binutils-apple-4.3:4 - binutils-config error: ld wrapper: could not get linker binary path: No such file or directory
Summary: sys-devel/binutils-apple-4.3:4 - binutils-config error: ld wrapper: could not...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: AMD64 OS X
: Normal normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-09 05:20 UTC by *
Modified: 2014-03-11 12:39 UTC (History)
0 users

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


Attachments
output from emerge (binutils-apple-4.3.out,136.47 KB, text/plain)
2014-03-09 05:23 UTC, *
Details

Note You need to log in before you can comment on or make changes to this bug.
Description * 2014-03-09 05:20:17 UTC
I ran "emerge system" which upgraded or replaced 35 packages. The last 2 were:

[ebuild   R    ] sys-devel/binutils-apple-4.3:4  USE="-lto {-test}" 0 kB
[ebuild   R    ] sys-devel/gcc-apple-4.2.1_p5666-r1:42  USE="cxx fortran nls nptl* objc objc++ openmp -multislot -regression-test% -vanilla (-test%)" 0 kB

Obviously binutils was working fine before it was re-emerged, since it was used for about 33 packages. The last package (gcc) failed due to a broken binutils. Even compiling a one-line main.c fails now:

$ gcc main.c
 * binutils-config: invalid switch!  Try '--help'.
binutils-config error: ld wrapper: could not get linker binary path: No such file or directory
collect2: ld returned 1 exit status

I've tried restoring from a backup and the same thing happened when I re-emerged again.

I'm using OS X 10.9.2 with Xcode 5.0.2 and the Xcode command-line tools installed.


Reproducible: Always




Portage 2.2.8-prefix (prefix/darwin/macos/10.9/x64, gcc-4.2.1, unavailable, 13.1.0 x86_64)
=================================================================
System uname: Darwin-13.1.0-x86_64-i386-64bit
Timestamp of tree: Sun, 09 Mar 2014 02:06:11 +0000
app-shells/bash:      4.2_p45-r1
dev-java/java-config: 2.1.11-r3
dev-lang/python:      2.7.3-r3, 3.3.0-r1
dev-util/cmake:       2.8.9
sys-devel/autoconf:   2.69
sys-devel/automake:   1.12.4, 1.14
sys-devel/gcc-config: 1.8-r00.1
sys-devel/libtool:    2.4.2
sys-devel/make:       4.0-r1
Repositories: gentoo_prefix local
ACCEPT_KEYWORDS="~x64-macos"
ACCEPT_LICENSE="*"
CBUILD="x86_64-apple-darwin13"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-apple-darwin13"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/Volumes/Backup/Gentoo/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FCFLAGS=""
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix merge-sync news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-dead_strip_dylibs"
MAKEOPTS=""
PKGDIR="/Volumes/Backup/Gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/opt/gentoo/"
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="/Volumes/Backup/Gentoo/var/tmp"
PORTDIR="/Volumes/Backup/Gentoo/usr/portage"
PORTDIR_OVERLAY="/Volumes/Backup/Gentoo/usr/local/portage"
USE="aqua coreaudio cracklib cxx ipv6 mmx mmxext modules ncurses nls objc objc++ prefix readline sse sse2 ssl unicode x64-macos zlib" 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" ELIBC="Darwin" 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="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 * 2014-03-09 05:23:28 UTC
Created attachment 372142 [details]
output from emerge
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2014-03-09 15:29:50 UTC
What is the output of "binutils-config -l" (that is a lowercase 'L').
Comment 3 * 2014-03-09 18:51:30 UTC
Before the re-emerge:

$ binutils-config -l
 [1] x86_64-apple-darwin12-4.3 *

After it was either the same, or darwin13. I've already restored again from backup.
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2014-03-09 19:32:10 UTC
Ah, so you have a prefix installation on OSX 10.8, then upgraded to OSX 10.9 and tried to just update your prefix. That is a task for not the faint of heart and difficult to support.
Comment 5 * 2014-03-09 19:35:16 UTC
Good to know. Should I have bootstrapped again and then copied over certain config files?
Comment 6 Fabian Groffen gentoo-dev 2014-03-11 12:39:54 UTC
(In reply to * from comment #5)
> Good to know. Should I have bootstrapped again and then copied over certain
> config files?


Yes, please rebootstrap.  You can find packages you installed in $EPREFIX/var/lib/portage/world and most of your config in /etc/portage should be copied, as long as you make sure you don't overwrite the files produced by the bootstrap script (in particular make.conf).