Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 604416 - bootstrap-prefix.sh: build of =sys-libs/libcxxabi-3.9.0 fails during emerge -e system
Summary: bootstrap-prefix.sh: build of =sys-libs/libcxxabi-3.9.0 fails during emerge -...
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: 2017-01-02 15:56 UTC by Rutger van Bergen
Modified: 2017-01-03 11:11 UTC (History)
0 users

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


Attachments
libcxxabi-3.9.0 build log (build.log.gz,1.39 KB, application/x-gzip)
2017-01-02 15:59 UTC, Rutger van Bergen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rutger van Bergen 2017-01-02 15:56:58 UTC
During the emerge -e system step of bootstrap-prefix.sh on macOS Sierra, the build of =sys-libs/libcxxabi-3.9.0 fails with error:
CMake Error at CMakeLists.txt:63 (message):
  Not found: /Users/rutger.vanbergen/Gentoo/usr/share/llvm/cmake


Reproducible: Always
Comment 1 Rutger van Bergen 2017-01-02 15:59:22 UTC
Created attachment 458394 [details]
libcxxabi-3.9.0 build log
Comment 2 Fabian Groffen gentoo-dev 2017-01-02 16:10:04 UTC
Confirmed, I already pushed (what I think is) a fix, which worked for the bootstrap to continue.  I'm currently performing the bootstrap again to see if it allows for successful completion.
Comment 3 Rutger van Bergen 2017-01-02 22:03:12 UTC
Great, thanks! I look forward to hearing your conclusion concerning the fix working or not.

Kind regards,

Rutger
Comment 4 Fabian Groffen gentoo-dev 2017-01-03 06:52:01 UTC
my bootstrap finished successfully
Comment 5 Rutger van Bergen 2017-01-03 07:45:17 UTC
Good news, thanks! I guess that makes it my turn to try. Is it a matter of restarting bootstrap-prefix.sh, or first running emerge --sync, ...?
Comment 6 Fabian Groffen gentoo-dev 2017-01-03 07:52:03 UTC
In your case the emerge --sync needs to happen again.  It may be that if you just re-run bootstrap-prefix.sh it will sync again due to your copy being "old" now, but if this doesn't happen, you better force this via a hack in the script or manual invocation.

If you feel adventurous, you can also enter your half-baked prefix ($EPREFIX/bin/bash -l), ensure EPREFIX is unset or pointing to the right prefix, then run emerge --sync, followed by emerge --resume.  After the latter emerge finishes, you're basically done.  The only thing bootstrap-prefix.sh script does more is create a startscript wrapper for you.  So you'll have to mimick that too for smooth starting afterwards.

Or you just wipe and restart from scratch ;)
Comment 7 Rutger van Bergen 2017-01-03 08:12:28 UTC
Okay, the emerge --sync; emerge --resume path didn't work: libcxxabi conked out with the same error. I guess I'll rm -r ˜/Gentoo and start from scratch, then.
Comment 8 Fabian Groffen gentoo-dev 2017-01-03 08:14:11 UTC
hang on, did the sync show new files being pulled in?
Comment 9 Rutger van Bergen 2017-01-03 08:24:01 UTC
Yes, including the following:

sys-libs/libcxxabi/Manifest
sys-libs/libcxxabi/libcxxabi-3.9.1.ebuild
sys-libs/libcxxabi/metadata.xml
sys-libs/libcxxabi/files/libcxxabi-3.9.0-cmake-path.patch
sys-libs/libcxxabi/files/libcxxabi-3.9.0-test-unwind.patch

I can have a look at their contents, if you like?
Comment 10 Fabian Groffen gentoo-dev 2017-01-03 08:33:08 UTC
right, so that cmake-path patch should do the trick...
Comment 11 Fabian Groffen gentoo-dev 2017-01-03 08:33:59 UTC
there is no notion of share/llvm/cmake in the 3.9.1 ebuild, is it?
Comment 12 Fabian Groffen gentoo-dev 2017-01-03 08:34:40 UTC
or is it trying to compile 3.9.0?

In that case emerge -e system should restart the thing, but still less work than starting over from scratch.
Comment 13 Rutger van Bergen 2017-01-03 08:46:15 UTC
No, it told me it was trying to build 3.9.1, the ebuild of which does not contain any reference to the offending cmake. So, I agree that it looks like it should work. 

I'll rerun emerge -e system, and if that fails, try again from scratch. There are some interesting peculiarities in my setup that do tend to complicate things (it's a work laptop, which is a member of our parent company's Windows domain, which introduces group names with backslashes, some of which go stale if I'm not VPN-ed in to the office, which breaks everything... in short: it's a long story, and not a very entertaining one.)

I'll let you know if I run into any issues that feel like they are properly build-/portage-related.
Comment 14 Rutger van Bergen 2017-01-03 11:11:11 UTC
Build of libcxxabi just completed successfully. This bug has thus been fixed and rightfully closed.