Can't build hotspot with Xcode 4

David DeHaven david.dehaven at oracle.com
Wed May 21 03:08:58 UTC 2014


> Starting today, if I configure with Xcode 4 on OS X 10.9, I can no longer build jdk9/dev/hotspot (changeset b329ff11a78c).
> 
> make dist-clean
> sh configure --with-tools-dir=/Applications/Xcode4.app/Contents/Developer/usr/bin --with-toolchain-type=gcc --with-boot-jdk=$JAVA8_HOME
> make images
> 
> ...
> cc1plus: warnings being treated as errors
> In file included from ../generated/tracefiles/traceEventClasses.hpp:19,
>                 from /Users/dan/Dev/jdk/jdk9/hotspot/src/share/vm/trace/tracing.hpp:28,
>                 from /Users/dan/Dev/jdk/jdk9/hotspot/src/share/vm/opto/compile.hpp:43,
>                 from /Users/dan/Dev/jdk/jdk9/hotspot/src/share/vm/opto/node.hpp:29,
>                 from /Users/dan/Dev/jdk/jdk9/hotspot/src/share/vm/opto/addnode.hpp:28,
>                 from /Users/dan/Dev/jdk/jdk9/hotspot/src/share/vm/precompiled/precompiled.hpp:252:
> /Users/dan/Dev/jdk/jdk9/hotspot/src/share/vm/trace/traceStream.hpp: In member function ‘void TraceStream::print_val(const char*, s8)’:
> /Users/dan/Dev/jdk/jdk9/hotspot/src/share/vm/trace/traceStream.hpp:69: warning: format ‘%lld’ expects type ‘long long int’, but argument 4 has type ‘s8’
> 
> Fortunately, I can now cleanly build with Xcode 5:
> 
> make dist-clean
> sh configure --with-boot-jdk=$JAVA8_HOME
> make images
> 
> However, I don't know if it is intentional that Xcode 4 support is being dropped.


No, I don't think so.

There were two fixes integrated from hotspot:
https://bugs.openjdk.java.net/browse/JDK-8037816
https://bugs.openjdk.java.net/browse/JDK-8043029

And two more issues in hotspot that didn't make it to this weeks party:
https://bugs.openjdk.java.net/browse/JDK-8043033
https://bugs.openjdk.java.net/browse/JDK-8043164

You could pull those changesets from jdk9/hs/hotspot and see if that fixes the issue (I haven't tried that but it should be OK).

But... ideally Xcode 5 should be used on 10.9, the only case where that isn't true is if you're building 8u. For 7u and earlier just stick with 10.8 and Xcode 4.6.3, it's not worth the hassle.

I have a change I'm going to post for review here sometime in the next week to fix the header/framework location issue so clean 10.9/Xcode 5 installs will (finally) be able to build without modifying the system. <fingers crossed>

Oh, and my X11 dependency removal change is sitting in jdk9/client, which should make it's way over to jdk9/dev next week. Once that's done you can remove XQuartz...

I will backport those to 8u, but they need some time to bake first.

-DrD-




More information about the build-dev mailing list