Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 372863 - Add bootstrap support for x86_64-apple-darwin11 and i*86-apple-darwin11
Summary: Add bootstrap support for x86_64-apple-darwin11 and i*86-apple-darwin11
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-24 17:11 UTC by yegle
Modified: 2011-08-21 08:06 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 yegle 2011-06-24 17:11:31 UTC
Since Mac OSX Lion 10.7 is about to be released late this year, it's time to add support for Lion, and start fixing bugs before it's official release :-)

Reproducible: Always
Comment 1 Fabian Groffen gentoo-dev 2011-06-24 17:17:02 UTC
you mean it's about to be released next month :)
Comment 2 yegle 2011-06-24 17:23:23 UTC
(In reply to comment #1)
> you mean it's about to be released next month :)

I forgot the exact release date just now :-)

Just spend hours trying to bootstrap gentoo-prefix on my Lion Developer Preview 4 but it failed when bootstraping python. And then I found there's no support for x86_64-apple-darwin11 and i*86-apple-darwin11 in the bootstrap script :-(

Be aware that cc and gcc in Mac Lion+Xcode 4.2 links to llvm-gcc-4.2, which makes some package failed to compile.
Comment 3 Fabian Groffen gentoo-dev 2011-06-24 17:33:11 UTC
hmmm, joy.  There is no gcc-apple installed any more, I suppose?
Comment 4 yegle 2011-06-25 13:51:59 UTC
(In reply to comment #3)
> hmmm, joy.  There is no gcc-apple installed any more, I suppose?

Yes there is: i686-apple-darwin11-gcc-4.2.1
It's just that gcc is linked to llvm-gcc instead of i686-apple-darwin11-gcc.
Comment 5 Fabian Groffen gentoo-dev 2011-06-25 14:31:13 UTC
ohw, but since we pass --build and --host (iirc) to configure, this should sort of work, as soon as CHOST is set to i686-apple-darwin11
Comment 6 yegle 2011-06-25 14:34:02 UTC
(In reply to comment #5)
> ohw, but since we pass --build and --host (iirc) to configure, this should sort
> of work, as soon as CHOST is set to i686-apple-darwin11

Yes, a slight change to bootstrap.sh should be enough.
Comment 7 Fabian Groffen gentoo-dev 2011-06-26 12:14:08 UTC
what does ./bootstrap-prefix.sh chost.guess return on Lion?
Comment 8 yegle 2011-06-26 12:50:19 UTC
(In reply to comment #7)
> what does ./bootstrap-prefix.sh chost.guess return on Lion?

i386-apple-darwin11

Is it right to use `uname -p` to construct the CHOST string? My processor is actually 64bit capable.

$ uname -a
Darwin yegle-laptop 11.0.0 Darwin Kernel Version 11.0.0: Mon Jun 13 11:33:28 PDT 2011; root:xnu-1699.22.70~3/RELEASE_X86_64 x86_64
Comment 9 Fabian Groffen gentoo-dev 2011-06-26 14:12:37 UTC
yes it is, that is why you need to set CHOST explicitly if you want to end up with a 64-bits prefix
Comment 10 yegle 2011-07-17 11:20:09 UTC
(In reply to comment #9)
> yes it is, that is why you need to set CHOST explicitly if you want to end up
> with a 64-bits prefix

I tried to bootstrap a 64-bit prefix but failed when compiling python. Hope someone can fix this problem before Lion is actually out.
Comment 11 Fabian Groffen gentoo-dev 2011-07-17 11:23:56 UTC
could you attach the build log here?
Comment 12 yegle 2011-07-17 12:43:20 UTC
(In reply to comment #11)
> could you attach the build log here?

I upgrade to Lion GM and XCode 4.2 beta2.

This time, python can be built successfully. But ./bootstrap-prefix.sh $EPREFIX portage failed at the end:

make[1]: Leaving directory `/Users/yegle/.gentoo/var/tmp/portage-2.2.01.18213/prefix-portage-2.2.01.18213/cnf'
make[1]: Entering directory `/Users/yegle/.gentoo/var/tmp/portage-2.2.01.18213/prefix-portage-2.2.01.18213'
make[2]: Entering directory `/Users/yegle/.gentoo/var/tmp/portage-2.2.01.18213/prefix-portage-2.2.01.18213'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/Users/yegle/.gentoo/var/tmp/portage-2.2.01.18213/prefix-portage-2.2.01.18213'
make[1]: Leaving directory `/Users/yegle/.gentoo/var/tmp/portage-2.2.01.18213/prefix-portage-2.2.01.18213'
* setting up some guessed defaults
ln: creating symbolic link `/Users/yegle/.gentoo/etc/make.profile' to `/Users/yegle/.gentoo/usr/portage/profiles/prefix/darwin/macos/10.6/x64': File exists
* Your profile is set to /Users/yegle/.gentoo/usr/portage/profiles/prefix/darwin/macos/10.6/x64.
./bootstrap-prefix.sh: line 356: /Users/yegle/.gentoo/usr/portage/profiles/prefix/darwin/macos/10.6/x64/make.defaults: No such file or directory
./bootstrap-prefix.sh: line 357: /Users/yegle/.gentoo/usr/portage/profiles/prefix/darwin/macos/10.6/x64/make.defaults: No such file or directory
./bootstrap-prefix.sh: line 362: /Users/yegle/.gentoo/usr/portage/profiles/prefix/darwin/macos/10.6/x64/make.defaults: No such file or directory
./bootstrap-prefix.sh: line 365: /Users/yegle/.gentoo/usr/portage/profiles/prefix/darwin/macos/10.6/x64/make.defaults: No such file or directory
* Your make.globals is prepared for your current bootstrap
./bootstrap-prefix.sh: line 370: /Users/yegle/.gentoo/usr/portage/profiles/prefix/profile.bashrc: No such file or directory
* prefix-portage successfully bootstrapped
Comment 13 Fabian Groffen gentoo-dev 2011-07-17 12:45:23 UTC
hmmm, do you use tree_latest?  I checked in the 10.7 profiles about a week ago.
Comment 14 yegle 2011-07-17 13:31:12 UTC
(In reply to comment #13)
> hmmm, do you use tree_latest?  I checked in the 10.7 profiles about a week ago.

I didn't notice there's a latest_tree bootstrap target.

Now I've successfully bootstraped gentoo prefix in Mac Lion GM :-)
Comment 15 Fabian Groffen gentoo-dev 2011-07-17 20:17:08 UTC
ohw, great.  I can't believe you really have no issues?
Comment 16 Fabian Groffen gentoo-dev 2011-08-21 08:06:34 UTC
I didn't have issues either, so it works :)