public inbox for gentoo-alt@lists.gentoo.org
 help / color / mirror / Atom feed
From: Michael Weiser <michael@weiser.dinsnail.net>
To: gentoo-alt <gentoo-alt@lists.gentoo.org>
Subject: [gentoo-alt] Prefix on Sierra: ObjC broken with clang-3.8
Date: Sun, 30 Oct 2016 18:31:26 +0100	[thread overview]
Message-ID: <20161030173126.GA3008@weiser.dinsnail.net> (raw)

Hey guys,

is anyone running prefix on Sierra yet?

I am and I've had only one but majorish problem getting it to work:
Everything containing Objective-C code (gtk, dev-scheme/guile, git,
glib, lbdb) failed to compile with clang 3.8. The errors all were like
this:

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:
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:
In file included from /System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:10:
In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:10:
In file included from /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:5:
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:44:12:
error: unknown property attribute 'class'
@property (class, readonly) BOOL supportsSecureCoding;
           ^

On a hunch that Apple once again started using new language constructs
in the system headers as soon as they became available in their latest
Xcode clang I've hacked the llvm-3.9.0 ebuild to install a working
clang-3.9 and lo and behold all the stuff that failed before compiled
and installed fine.

Did anyone else observe this behaviour or is something screwed up on my
system?

BTW: That system was a fresh install of El Capitan with Xcode 8 which I
upgraded just a few days later to Sierra. I manually updated the Xcode
command line tools to 8.0 for Sierra via the .pkg from
developer.apple.com.

Another way might have been to downgrade Xcode to possibly get the older
system headers as well but I didn't try that. (The way out is forward. ;)
-- 
Thanks,
Michael


             reply	other threads:[~2016-10-30 17:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-30 17:31 Michael Weiser [this message]
2016-10-30 20:20 ` [gentoo-alt] Prefix on Sierra: ObjC broken with clang-3.8 Askar Bektassov
2016-10-31  7:03   ` Fabian Groffen
2016-10-31 11:05     ` Michael Weiser
2016-12-23 10:50       ` Fabian Groffen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161030173126.GA3008@weiser.dinsnail.net \
    --to=michael@weiser.dinsnail.net \
    --cc=gentoo-alt@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox