Can't build hotspot with Xcode 4

Dan Smith daniel.smith at oracle.com
Tue May 20 22:42:07 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.

—Dan


More information about the build-dev mailing list