Gentoo Archives: gentoo-alt

From: Fabian Groffen <grobian@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] Prefix on Sierra: ObjC broken with clang-3.8
Date: Mon, 31 Oct 2016 07:03:32
Message-Id: 20161031070318.GA1896@gentoo.org
In Reply to: Re: [gentoo-alt] Prefix on Sierra: ObjC broken with clang-3.8 by Askar Bektassov
1 I noticed bootstraaping is broken, but that seems unrelated to Sierra.
2 Xcode 8.1 is upgraded on my box as we speak, so I guess the same problem
3 will appear then for upgrading packages that use affected headers.
4
5 I meant to fix the bootstrap for Sierra a week or two ago, but didn't
6 get much further than adding profiles and allowing bootstrap-prefix.sh
7 to start on it.
8
9 Fabian
10
11
12 On 30-10-2016 21:20:33 +0100, Askar Bektassov wrote:
13 > Hi Michael,
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 > My only guess, is make sure that xcode command line tools are used instead
19 > of full Xcode package (sudo xcode-select -s
20 > /Library/Developer/CommandLineTools).
21 >
22 > Good luck,
23 > --
24 > Askar Bektassov (Аскар Бектасов)
25 > Sent from mobile, please excuse my brevity and typos
26 >
27 > On 30 Oct 2016, at 18:31, Michael Weiser <[1]michael@×××××××××××××××.net>
28 > wrote:
29 >
30 > > Hey guys,
31 >
32 > > is anyone running prefix on Sierra yet?
33 >
34 > > I am and I've had only one but majorish problem getting it to work:
35 > > Everything containing Objective-C code (gtk, dev-scheme/guile, git,
36 > > glib, lbdb) failed to compile with clang 3.8. The errors all were like
37 > > this:
38 >
39 > > In file included from
40 > > /usr/local/gentoo/var/tmp/portage/x11-libs/gtk+-2.24.31-r1/work/gtk+-2.24.31/gdk/quartz/GdkQuartzView.c:21:
41 > > In file included from
42 > > /usr/local/gentoo/var/tmp/portage/x11-libs/gtk+-2.24.31-r1/work/gtk+-2.24.31/gdk/quartz/GdkQuartzView.h:21:
43 > > In file included from
44 > > /System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:10:
45 > > In file included from
46 > > /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:10:
47 > > In file included from
48 > > /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:5:
49 > > /System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44:12:
50 > > error: unknown property attribute 'class'
51 > > @property (class, readonly) BOOL supportsSecureCoding;
52 > >           ^
53 >
54 > > On a hunch that Apple once again started using new language constructs
55 > > in the system headers as soon as they became available in their latest
56 > > Xcode clang I've hacked the llvm-3.9.0 ebuild to install a working
57 > > clang-3.9 and lo and behold all the stuff that failed before compiled
58 > > and installed fine.
59 >
60 > > Did anyone else observe this behaviour or is something screwed up on my
61 > > system?
62 >
63 > > BTW: That system was a fresh install of El Capitan with Xcode 8 which I
64 > > upgraded just a few days later to Sierra. I manually updated the Xcode
65 > > command line tools to 8.0 for Sierra via the .pkg from
66 > > [2]developer.apple.com.
67 >
68 > > Another way might have been to downgrade Xcode to possibly get the older
69 > > system headers as well but I didn't try that. (The way out is forward. ;)
70 > > --
71 > > Thanks,
72 > > Michael
73 >
74 >
75 > References:
76 > 1. mailto:michael@×××××××××××××××.net
77 > 2. http://developer.apple.com
78 >
79
80 --
81 Fabian Groffen
82 Gentoo on a different level

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-alt] Prefix on Sierra: ObjC broken with clang-3.8 Michael Weiser <michael@×××××××××××××××.net>