Mac OS X build errors missing instancetype + further issues just after building jdk.xml.ws
David DeHaven
david.dehaven at oracle.com
Wed Apr 15 16:22:48 UTC 2015
> Mac OS X 10.10.3, latest Xcode (6.3), using GCC 4.8
>
> --------
>
> After getting past the defined(__OPENBSD__) bug I'm running into a host of
> new errors starting with:
>
> /Users/karianna/Documents/workspace/AdoptOpenJDK_projects/jdk9/hotspot/agent/src/os/bsd/MacosxDebuggerLocal.m:26:
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/objc/NSObject.h:22:1:
> error: unknown type name 'instancetype'
> - (instancetype)self;
> ^
You're using an SDK that's intended to be used exclusively with clang. I think you'd have to go back to MacOSX10.8.sdk for compatibility with gcc.
I'm curious why you're even trying to compile with gcc?
-DrD-
More information about the build-dev
mailing list