Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 523882 - bootstrapping on Mac OS X fails due to unknown compiler
Summary: bootstrapping on Mac OS X fails due to unknown compiler
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: x86 OS X
: Normal normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-27 15:08 UTC by Volker Wegert
Modified: 2014-09-28 07:37 UTC (History)
0 users

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 Volker Wegert 2014-09-27 15:08:02 UTC
I'm trying to bootstrap on a current OS X 10.9.5 system with Xcode 6.0.1. This fails with the message

* ready to bootstrap stage3
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
!!! unknown compiler

Searching for "unknown compiler" in the bootstrapping script, I suspect the following passage is the problem:

case "$(gcc --version)" in
        *"(GCC) 4.2.1 "*|*"Apple LLVM version 5."*)
                local linker=sys-devel/binutils-apple
                ;;
        *"(GCC) 4.0.1 "*)
                local linker="=sys-devel/binutils-apple-3.2"
                ;;
        *)
                eerror "unknown compiler"
                return 1
                ;;
esac

The version output seems to have changed in an incompatible way:

$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix



Reproducible: Always
Comment 1 Fabian Groffen gentoo-dev 2014-09-28 07:37:01 UTC
should be fixed now (redownload bootstrap-prefix.sh script please), thanks!