Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 454334 - sys-devel/gcc-apple-4.2.1_p5666-r1 fails to emerge
Summary: sys-devel/gcc-apple-4.2.1_p5666-r1 fails to emerge
Status: RESOLVED INVALID
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-27 20:36 UTC by Timothy Miller
Modified: 2013-01-28 01:48 UTC (History)
0 users

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


Attachments
gcc build logs (gcc-build-logs.tar.bz2,22.88 KB, application/octet-stream)
2013-01-27 20:37 UTC, Timothy Miller
Details
build log (build.log,38.53 KB, text/plain)
2013-01-27 20:38 UTC, Timothy Miller
Details
environment (environment,185.19 KB, text/plain)
2013-01-27 20:38 UTC, Timothy Miller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy Miller 2013-01-27 20:36:56 UTC
* ERROR: sys-devel/gcc-apple-4.2.1_p5666-r1 failed (compile phase):
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line  93:  Called call-ebuildshell 'src_compile'
 *   environment, line 827:  Called src_compile
 *   environment, line 4571:  Called die
 * The specific snippet of code:
 *       emake bootstrap || die "emake failed"
 * 
 * If you need support, post the output of `emerge --info '=sys-devel/gcc-apple-4.2.1_p5666-r1'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/gcc-apple-4.2.1_p5666-r1'`.
 * 
 * Please include /Users/millerti/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5666-r1/work/build/gcc-build-logs.tar.bz2 in your bug report
 * 
 * The complete build log is located at '/Users/millerti/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5666-r1/temp/build.log'.
 * The ebuild environment file is located at '/Users/millerti/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5666-r1/temp/environment'.
 * Working directory: '/Users/millerti/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5666-r1/work/build'
 * S: '/Users/millerti/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5666-r1/work/gcc-5666.3'

...
config.status: executing default commands
make[2]: Leaving directory `/Users/millerti/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5666-r1/work/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/Users/millerti/Gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5666-r1/work/build'
make: *** [bootstrap] Error 2
emake failed
...
Comment 1 Timothy Miller 2013-01-27 20:37:48 UTC
Created attachment 337046 [details]
gcc build logs
Comment 2 Timothy Miller 2013-01-27 20:38:19 UTC
Created attachment 337048 [details]
build log
Comment 3 Timothy Miller 2013-01-27 20:38:43 UTC
Created attachment 337050 [details]
environment
Comment 4 Timothy Miller 2013-01-27 20:40:54 UTC
[ebuild   R   ] sys-devel/gcc-apple-4.2.1_p5666-r1 [4.2.1_p5666-r1] USE="cxx nls objc objc++ openmp -fortran -multislot -nptl {-test} -vanilla (-build%)" 



Portage 2.2.01.21313-prefix (prefix/darwin/macos/10.7/x64, gcc-4.2.1, unavailable, 12.2.0 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Darwin-12.2.0-x86_64-i386-64bit
Timestamp of tree: Sun, 27 Jan 2013 17:39:26 +0000
app-shells/bash:      4.2_p39-r1::gentoo_prefix
dev-lang/python:      2.7.3-r2::gentoo_prefix
dev-util/cmake:       2.8.9::gentoo_prefix
dev-util/pkgconfig:   0.28::gentoo_prefix
sys-devel/autoconf:   2.69::gentoo_prefix
sys-devel/automake:   1.11.5::gentoo_prefix, 1.12.4::gentoo_prefix
sys-devel/gcc-config: 1.8-r00.1::gentoo_prefix
sys-devel/libtool:    2.4.2::gentoo_prefix
sys-devel/make:       3.82-r4::gentoo_prefix
Repositories: gentoo_prefix
ACCEPT_KEYWORDS="~x64-macos"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-apple-darwin10"
CFLAGS="-O2 -pipe -ggdb -march=core2"
CHOST="x86_64-apple-darwin10"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/portage /etc/revdep-rebuild /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -ggdb -march=core2"
DISTDIR="/Users/millerti/Gentoo/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=2"
FCFLAGS=""
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix news nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-dead_strip_dylibs"
MAKEOPTS="--jobs=8"
PKGDIR="/Users/millerti/Gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/Users/millerti/Gentoo/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/Users/millerti/Gentoo/var/tmp"
PORTDIR="/Users/millerti/Gentoo/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="aqua coreaudio cracklib cxx ipv6 jpeg latex mmx mmxext modules ncurses nls objc objc++ png prefix readline sse sse2 ssl threads 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" 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 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" LINGUAS="en en_US" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_2" RUBY_TARGETS="ruby18 ruby19" 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, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

sys-devel/gcc-apple-4.2.1_p5666-r1 was built with the following:
USE="cxx nls objc objc++ openmp (prefix) -build -fortran -multislot -nptl -test -vanilla"
CHOST="x86_64-apple-darwin11"
CFLAGS="-O2 -pipe"
CXXFLAGS="-O2 -pipe"
Comment 5 Fabian Groffen gentoo-dev 2013-01-27 21:21:17 UTC
configure: error: cannot execute: /Users/millerti/Gentoo/usr/bin/x86_64-apple-darwin10-ld: check --with-ld or env. var. DEFAULT_LINKER

please check binutils-config -l
Comment 6 Timothy Miller 2013-01-27 22:08:56 UTC
binutils-config exists, but "binutils-config -l" produces no output.
Comment 7 Fabian Groffen gentoo-dev 2013-01-27 22:10:36 UTC
then most likely no binutils-apple was installed
Comment 8 Timothy Miller 2013-01-27 22:15:03 UTC
$ /Users/millerti/Gentoo/usr/bin/x86_64-apple-darwin10-ld
-bash: /Users/millerti/Gentoo/usr/bin/x86_64-apple-darwin10-ld: No such file or directory

Instead, I have these:
x86_64-apple-darwin11-ld
x86_64-apple-darwin11-ld64  

Also note:
CHOST="x86_64-apple-darwin11"

Because of Gentoo's awkward transition from darwin10 to darwin11, I had to do a fresh reinstall of Gentoo Prefix.  In fact, this is a relatively new installation.
Comment 9 Timothy Miller 2013-01-27 22:16:51 UTC
binutils-apple is already there.

$ emerge -pv binutils-apple

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-devel/binutils-apple-4.3:4::gentoo [4.3:4::gentoo_prefix] USE="-lto {-test}" 0 kB
Comment 10 Timothy Miller 2013-01-27 22:19:15 UTC
Now, that's very interesting.  Something is overriding my CHOST.  My make.conf has darwin11, while emerge --info says it's darwin10.  What's changing my CHOST behind my back?
Comment 11 Timothy Miller 2013-01-27 22:30:36 UTC
Aha.  CHOST was being set in my ".bash_profile".  I seem to recall having to set this once to investigate a past build failure, but I forgot to remove it.  I'll let you know how the compile goes.  If this fixes things, then the bug is invalid.
Comment 12 Timothy Miller 2013-01-28 01:48:23 UTC
That fixed it.  Sorry about the invalid bug report.