Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 671546 - boostrap stage1 fails
Summary: boostrap stage1 fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 OS X
: Normal normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-20 02:41 UTC by Manuel Aguilera
Modified: 2021-01-11 19:18 UTC (History)
0 users

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


Attachments
Here's the log file (stage1.log.gz,217.04 KB, application/gzip)
2018-11-20 02:43 UTC, Manuel Aguilera
Details
newer stage1 log (stage1.log.gz,235.67 KB, application/x-gzip)
2018-11-20 10:18 UTC, Manuel Aguilera
Details
stage2 log (stage2.log.gz,249.79 KB, application/x-gzip)
2018-11-20 10:19 UTC, Manuel Aguilera
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Aguilera 2018-11-20 02:41:19 UTC
Hi there!

I ran into an issue while running bootstrap-prefix.sh. I am trying this on OSX 10.14.1 (mojave) and I am getting the following:
	
* m4-1.4.17 successfully bootstrapped
* setting up some guessed defaults
!!! UNKNOWN ARCH: You need to set up a make.profile symlink to a
!!! profile in /Users/manuel/gentoo/usr/portage for your CHOST x86_64-apple-darwin18

Any help is appreciated =)
Comment 1 Manuel Aguilera 2018-11-20 02:43:16 UTC
Created attachment 555764 [details]
Here's the log file
Comment 2 Fabian Groffen gentoo-dev 2018-11-20 08:25:27 UTC
Hi, we're missing profiles for Mojave.  I'll add them and see if that helps for tomorrow's build.
Comment 3 Larry the Git Cow gentoo-dev 2018-11-20 08:37:47 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=7b447d8c44a11f40342d312ffa3e0ab2b06b12cf

commit 7b447d8c44a11f40342d312ffa3e0ab2b06b12cf
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2018-11-20 08:37:16 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2018-11-20 08:37:16 +0000

    scripts/bootstrap-prefix: support macOS 10.14 Mojave (darwin18)
    
    Bug: https://bugs.gentoo.org/671546
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 scripts/bootstrap-prefix.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 4 Manuel Aguilera 2018-11-20 10:18:05 UTC
Awesome, thanks for the quick reply! I have some things compiling now. it gets to this point:

* Unpacking, this may take a while
* setting up some guessed defaults
* Your profile is set to /Users/manuel/gentoo/usr/portage/profiles/prefix/darwin/macos/10.14/x64.
./bootstrap-prefix.sh: line 484: /Users/manuel/gentoo/etc/portage/make.profile/package.use: No such file or directory
./bootstrap-prefix.sh: line 494: /Users/manuel/gentoo/etc/portage/make.profile/package.use: No such file or directory

I tried both the default prefix-overlay-20180629.tar.bz2 and also setting LATEST_TREE_YES=1 to force the script to use portage-latest.tar.bz2 but I got the same result. 

I am not sure what should be on that folder, but just for fun I tried copying the 10.13 folder manually and did

cd usr/portage/profiles/prefix/darwin/macos
cp -r 10.13 10.14
cd 10.14
find . -type f -exec sed -i '' "s/13/14/g" '{}' +
find . -type f -exec sed -i '' "s/darwin17/darwin18/g" {} +

And I got past that and then the script complained about wget not supporting https

Location: https://dev.gentoo.org/~grobian/distfiles/prefix-portage-2.3.40.3.tar.bz2 [following]
https://dev.gentoo.org/~grobian/distfiles/prefix-portage-2.3.40.3.tar.bz2: HTTPS support not compiled in.
!!! downloading http://dev.gentoo.org/~grobian/distfiles/prefix-portage-2.3.40.3.tar.bz2 failed!

But I downloaded the file and put it in the distfiles folder and it build stage1. However while building stage2 I got this error

libtool: link: x86_64-apple-darwin18-dsymutil .libs/libarchive.13.3.3.dylib || :
fatal error: dsymutil: can't find: dsymutil (No such file or directory)

I googled and googled but I cannot figure out why dsymutil isn't happy. perhaps there is more magic missing in that profile folder that I missed
Comment 5 Manuel Aguilera 2018-11-20 10:18:52 UTC
Created attachment 555788 [details]
newer stage1 log
Comment 6 Manuel Aguilera 2018-11-20 10:19:20 UTC
Created attachment 555790 [details]
stage2 log
Comment 7 Fabian Groffen gentoo-dev 2018-12-06 10:39:43 UTC
Do you have a /usr/bin/dsymutil?

I assume you have Xcode command line utilities installed, is that correct?
Comment 8 Manuel Aguilera 2018-12-06 22:22:34 UTC
yes it is there,
 
manuel@argente ~/gentoo $ /usr/bin/dsymutil -version
Apple LLVM version 10.0.0 (clang-1000.10.44.4)
  Optimized build.
  Default target: x86_64-apple-darwin18.2.0
  Host CPU: skylake

I also did xcode-select --install
Comment 9 Fabian Groffen gentoo-dev 2021-01-11 19:18:38 UTC
this is fixed now