1 |
Hi, |
2 |
|
3 |
thanks for the quick responses. |
4 |
|
5 |
On Mon, Oct 31, 2016 at 08:03:18AM +0100, Fabian Groffen wrote: |
6 |
|
7 |
> Xcode 8.1 is upgraded on my box as we speak, so I guess the same |
8 |
> problem will appear then for upgrading packages that use affected headers. |
9 |
|
10 |
I had this problem with Xcode 8.0 already and upgraded to 8.1 just a few |
11 |
days ago after I already had llvm-3.9.0 in my prefix. |
12 |
|
13 |
> On 30-10-2016 21:20:33 +0100, Askar Bektassov wrote: |
14 |
|
15 |
> > I am running prefix on Sierra, without issues. Please note, however, that I |
16 |
> > bootstrapped when I was still on El Capitan. |
17 |
|
18 |
Okay, then I'll attribute my problems for now to my creative way of |
19 |
changing the CHOST from *-darwin15 to *-darwin16 without |
20 |
rebootstrapping. That might have caused some kind of temporary glitch. I doubt |
21 |
it though. |
22 |
|
23 |
If the problem surfaces for someone else, feel free to drop me a line |
24 |
and try the following: The llvm-3.9.0-r1 ebuild needs the following use |
25 |
flag to configure correctly: |
26 |
|
27 |
sys-devel/llvm llvm_targets_X86 |
28 |
|
29 |
That's done in profiles/arch/amd64/package.use.force but doesn't seem to carry |
30 |
into Prefix (for me at least). If missing, the result will be a compiler |
31 |
that compiles and installs fine but isn't able to actually generate |
32 |
binaries for x86/x64. |
33 |
|
34 |
And it needs this patch to install correctly because get_abi_CHOST returns an |
35 |
empty string on my system: |
36 |
|
37 |
--- ../../../../portage/sys-devel/llvm/llvm-3.9.0-r1.ebuild 2016-10-27 11:30:20.000000000 +0200 |
38 |
+++ llvm-3.9.0-r1.ebuild 2016-10-31 11:49:26.000000000 +0100 |
39 |
@@ -470,6 +470,7 @@ |
40 |
# now create target symlinks for all supported ABIs |
41 |
for abi in $(get_all_abis); do |
42 |
local abi_chost=$(get_abi_CHOST "${abi}") |
43 |
+ [ -z "$abi_chost" ] && multilib_is_native_abi && abi_chost=${CHOST} |
44 |
for i in "${clang_tools[@]}"; do |
45 |
dosym "${i}-${clang_version}" \ |
46 |
"/usr/bin/${abi_chost}-${i}-${clang_version}" |
47 |
|
48 |
Beware also: libLTO.dylib changes its install name which will break ld64 if |
49 |
linked against it. So before upgrading llvm you should install a non-LTO |
50 |
version of binutils apple e.g. by running USE="-lto" emerge -1 binutils-apple. |
51 |
|
52 |
Together with the 3.9.0-libc++{,abi} ebuilds from |
53 |
https://bugs.gentoo.org/show_bug.cgi?id=538364 everything works fine for me |
54 |
now. |
55 |
|
56 |
BTW: I'll be away from my mail starting today till Saturday. |
57 |
-- |
58 |
Thanks, |
59 |
Michael |