Gentoo Archives: gentoo-alt

From: Michael Weiser <michael@×××××××××××××××.net>
To: gentoo-alt <gentoo-alt@l.g.o>
Subject: [gentoo-alt] Prefix on Sierra: ObjC broken with clang-3.8
Date: Sun, 30 Oct 2016 17:40:39
Message-Id: 20161030173126.GA3008@weiser.dinsnail.net
1 Hey guys,
2
3 is anyone running prefix on Sierra yet?
4
5 I am and I've had only one but majorish problem getting it to work:
6 Everything containing Objective-C code (gtk, dev-scheme/guile, git,
7 glib, lbdb) failed to compile with clang 3.8. The errors all were like
8 this:
9
10 In file included from /usr/local/gentoo/var/tmp/portage/x11-libs/gtk+-2.24.31-r1/work/gtk+-2.24.31/gdk/quartz/GdkQuartzView.c:21:
11 In file included from /usr/local/gentoo/var/tmp/portage/x11-libs/gtk+-2.24.31-r1/work/gtk+-2.24.31/gdk/quartz/GdkQuartzView.h:21:
12 In file included from /System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:10:
13 In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:10:
14 In file included from /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:5:
15 /System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44:12:
16 error: unknown property attribute 'class'
17 @property (class, readonly) BOOL supportsSecureCoding;
18 ^
19
20 On a hunch that Apple once again started using new language constructs
21 in the system headers as soon as they became available in their latest
22 Xcode clang I've hacked the llvm-3.9.0 ebuild to install a working
23 clang-3.9 and lo and behold all the stuff that failed before compiled
24 and installed fine.
25
26 Did anyone else observe this behaviour or is something screwed up on my
27 system?
28
29 BTW: That system was a fresh install of El Capitan with Xcode 8 which I
30 upgraded just a few days later to Sierra. I manually updated the Xcode
31 command line tools to 8.0 for Sierra via the .pkg from
32 developer.apple.com.
33
34 Another way might have been to downgrade Xcode to possibly get the older
35 system headers as well but I didn't try that. (The way out is forward. ;)
36 --
37 Thanks,
38 Michael

Replies

Subject Author
Re: [gentoo-alt] Prefix on Sierra: ObjC broken with clang-3.8 Askar Bektassov <askar.bektassov@×××××.com>