1 |
Hi Philip, |
2 |
|
3 |
On Sun, Jun 26, 2016 at 05:00:47PM +0200, Philip wrote: |
4 |
|
5 |
> I have a problem with bootstrapping on OS X 10.11.5 with Command Line Tools 7.3.1. |
6 |
> bootstrap-prefix.sh fails during the stage 2 when it tries to emerge sys-devel/binutils-apple-7.2: |
7 |
|
8 |
> clang++ -m64 -march=native -O2 -pipe -Wno-invalid-offsetof -std=c++0x -stdlib=libc++ -I/gentoo/tmp/usr/include -DNDEBUG -DSUPPORT_SNAPSHOTS -Iinclude -Iabstraction -Ild -Ild/parsers -Iother -I. -c -o ld/ld.o ld/ld.cpp |
9 |
> clang++ -m64 -march=native -O2 -pipe -Wno-invalid-offsetof -std=c++0x -stdlib=libc++ -I/gentoo/tmp/usr/include -DNDEBUG -DSUPPORT_SNAPSHOTS -Iinclude -Iabstraction -Ild -Ild/parsers -Iother -I. -c -o ld/passes/bitcode_bundle.o ld/passes/bitcode_bundle.cpp |
10 |
> ld/passes/bitcode_bundle.cpp:36:10: fatal error: 'llvm-c/lto.h' file not found |
11 |
> #include "llvm-c/lto.h" |
12 |
> ^ |
13 |
> 1 error generated. |
14 |
> make: *** [ld/passes/bitcode_bundle.o] Error 1 |
15 |
> make: *** Waiting for unfinished jobs.... |
16 |
> * ERROR: sys-devel/binutils-apple-7.2::gentoo_prefix failed (compile phase): |
17 |
|
18 |
> Any idea what I am doing wrong? |
19 |
|
20 |
I don't think you're doing anything wrong. It's just that I didn't |
21 |
consider bootstrapping when updating the binutils-apple package. I had |
22 |
dropped support for disabling LTO support because it can't be done |
23 |
completely without serious pains. |
24 |
|
25 |
Bootstrap experts: We need to mask >=sys-devel/binutils-apple-7.0 until |
26 |
we can figure out how to allow bootstrapping binutils-apple with LTO |
27 |
support using the host Xcode or without LTO support at all. |
28 |
|
29 |
Philip: In the meantime can you try patching your prefix-bootstrap.sh |
30 |
like this: |
31 |
|
32 |
# diff -u Downloads/bootstrap-prefix.sh.orig Downloads/bootstrap-prefix.sh |
33 |
--- Downloads/bootstrap-prefix.sh.orig 2016-06-30 19:21:07.000000000 +0200 |
34 |
+++ Downloads/bootstrap-prefix.sh 2016-06-30 19:22:05.000000000 +0200 |
35 |
@@ -171,7 +171,7 @@ |
36 |
compiler_stage1="sys-apps/darwin-miscutils sys-libs/csu" |
37 |
case "$( (unset CHOST; gcc --version 2>/dev/null) )" in |
38 |
*"(GCC) 4.2.1 "*|*"Apple LLVM version "*) |
39 |
- linker=sys-devel/binutils-apple |
40 |
+ linker="<sys-devel/binutils-apple-7.0" |
41 |
if type -P clang > /dev/null ; then |
42 |
CC=clang |
43 |
CXX=clang++ |
44 |
-- |
45 |
Sorry, |
46 |
Michael |