Gentoo Archives: gentoo-alt

From: Michael Weiser <michael@×××××××××××××××.net>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] clang on Mac OS X (Was: Question before setting up sage-on-gentoo)
Date: Tue, 03 Feb 2015 00:21:23
Message-Id: 20150203001842.GB16447@weiser.dinsnail.net
In Reply to: Re: [gentoo-alt] clang on Mac OS X (Was: Question before setting up sage-on-gentoo) by Fabian Groffen
1 Hi Fabian,
2
3 On Sat, Jan 31, 2015 at 07:54:50PM +0100, Fabian Groffen wrote:
4
5 > > > > There is a patch in a bug that lifts that limitation:
6 > > > > https://bugs.gentoo.org/show_bug.cgi?id=537826. With that in place in
7 > > > > the gcc ebuild and recompiled gcc you can override
8 > > > I'll apply this and lift the awkward limitation.
9 > >
10 > > This might need to be done in quite some steps: Can you have a
11 > I disagree. A crude hack was put in place to make 10.10 support sort of
12 > going. We can make all necessary changes to get it bootstrapping,
13 > although they may feel (and will be) disruptive.
14
15 Agreed. That makes it whole lot easier.
16
17 > > A proper Gentoo-compatible GCCInstallationDetector for Darwin would be
18 > > nice though, wouldn't it?
19 > Yes :)
20
21 It wasn't all that hard. Mostly reverse-engineering of perverse C++
22 criss-cross-method-calling and class-incest. Otherwise mostly
23 copy'n'paste from the Linux driver. Patches are ready for a test-drive
24 here: https://bugs.gentoo.org/show_bug.cgi?id=537342.
25
26 > > There might be a compromise but that would mean replacing all the xc-run
27 > > calls in the Makefiles so that the SDKs can stay enabled and remain in
28 > > use but with our freshly built compiler. I think that would make for
29 > > quite a large patch.
30 > Yes, but IMO we can delay that.
31
32 It kinda suddenly splurted out of diff and was finished. For now it's
33 only deactivation of the Xcode tools. I've left the SDKS enabled to see
34 if they're used at all if the Xcode tools are disabled. I would like to
35 have the MacOSX SDK disabled but the iOS SDK enabled to get the best of
36 all worlds. And on my 10.10 that seems to be exactly what happens
37 although I'm not quite sure why.
38
39 BTW: It seems that clang doesn't do and doesn't even support a gcc-style
40 multi-stage bootstrap recompiling itself with itself. So I've just left
41 it at compiling all of it using the installed prefix clang instead of
42 Xcode's.
43 --
44 bye,
45 Michael