Gentoo Archives: gentoo-alt

From: "Philip Lüscher" <philip.luescher@×××.net>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] Bootstrapping failed: llvm-c/lto.h file not found
Date: Sat, 02 Jul 2016 07:05:42
Message-Id: E16882E9-E9AF-4A0B-AB87-4727B2CA5851@gmx.net
In Reply to: Re: [gentoo-alt] Bootstrapping failed: llvm-c/lto.h file not found by Michael Weiser
1 Hi Michael,
2
3 the patch worked like a charm. Thank you.
4
5 Later on I had to mask net-misc/wget-1.18 and binutils-apple-7.0. Additionally I had to add "=app-arch/xar-1.6.1 **” to package.keywords.
6
7 But now my gentoo-prefix is up an running.
8
9 Thanks
10 Philip
11
12
13
14
15
16 > On 30 Jun 2016, at 19:23, Michael Weiser wrote:
17 >
18 > Hi Philip,
19 >
20 > On Sun, Jun 26, 2016 at 05:00:47PM +0200, Philip wrote:
21 >
22 >> I have a problem with bootstrapping on OS X 10.11.5 with Command Line Tools 7.3.1.
23 >> bootstrap-prefix.sh fails during the stage 2 when it tries to emerge sys-devel/binutils-apple-7.2:
24 >
25 >> 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
26 >> 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
27 >> ld/passes/bitcode_bundle.cpp:36:10: fatal error: 'llvm-c/lto.h' file not found
28 >> #include "llvm-c/lto.h"
29 >> ^
30 >> 1 error generated.
31 >> make: *** [ld/passes/bitcode_bundle.o] Error 1
32 >> make: *** Waiting for unfinished jobs....
33 >> * ERROR: sys-devel/binutils-apple-7.2::gentoo_prefix failed (compile phase):
34 >
35 >> Any idea what I am doing wrong?
36 >
37 > I don't think you're doing anything wrong. It's just that I didn't
38 > consider bootstrapping when updating the binutils-apple package. I had
39 > dropped support for disabling LTO support because it can't be done
40 > completely without serious pains.
41 >
42 > Bootstrap experts: We need to mask >=sys-devel/binutils-apple-7.0 until
43 > we can figure out how to allow bootstrapping binutils-apple with LTO
44 > support using the host Xcode or without LTO support at all.
45 >
46 > Philip: In the meantime can you try patching your prefix-bootstrap.sh
47 > like this:
48 >
49 > # diff -u Downloads/bootstrap-prefix.sh.orig Downloads/bootstrap-prefix.sh
50 > --- Downloads/bootstrap-prefix.sh.orig 2016-06-30 19:21:07.000000000 +0200
51 > +++ Downloads/bootstrap-prefix.sh 2016-06-30 19:22:05.000000000 +0200
52 > @@ -171,7 +171,7 @@
53 > compiler_stage1="sys-apps/darwin-miscutils sys-libs/csu"
54 > case "$( (unset CHOST; gcc --version 2>/dev/null) )" in
55 > *"(GCC) 4.2.1 "*|*"Apple LLVM version "*)
56 > - linker=sys-devel/binutils-apple
57 > + linker="<sys-devel/binutils-apple-7.0"
58 > if type -P clang > /dev/null ; then
59 > CC=clang
60 > CXX=clang++
61 > --
62 > Sorry,
63 > Michael
64 >