Mac OS X build errors missing instancetype + further issues just after building jdk.xml.ws
Vadim Pakhnushev
vadim.pakhnushev at oracle.com
Fri Apr 17 09:15:23 UTC 2015
David,
Not really with the latest clang, there is this bug
https://bugs.openjdk.java.net/browse/JDK-8077364, which is only in
hotspot repo yet.
With this fix this should work though (at least works for me).
Thanks,
Vadim
On 16.04.2015 23:18, David DeHaven wrote:
> Sorry, I've had my blinders on for a few weeks. What's the original goal here? Are you just trying to build OpenJDK 9 on Mac OS X? If you're using clang in Xcode then it should "just work".
>
> -DrD-
>
>> On Apr 16, 2015, at 6:35 AM, Martijn Verburg <martijnverburg at gmail.com> wrote:
>>
>> Hi David,
>>
>> Thanks for your response! I was using GCC as I had a host of other errors when using clang :-|. I'll post those in a separate mail for comparison.
>>
>> Cheers,
>> Martijn
>>
>> On 15 April 2015 at 18:22, David DeHaven <david.dehaven at oracle.com> wrote:
>>
>>> 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