Building JDK8 on OS X 10.8.4

David DeHaven david.dehaven at oracle.com
Wed Aug 14 14:52:03 PDT 2013


> I'm having trouble building the latest JDK8 version using instructions
> found in wiki
> (https://wiki.openjdk.java.net/display/MacOSXPort/Main).
> 
> After cloning the repositories when I try to start the build I get the
> following error:
> 
> bash-3.2$ CPATH="/usr/X11/include" LANG=C make ALLOW_DOWNLOADS=true
> ALT_BOOTDIR=`/usr/libexec/java_home -v 1.7+`

That's the old way of building, no longer relevant (see below).


> No configurations found for /Users/aspluma/projects/openjdk/jdk8/! Please
> run configure to create a configuration.
> NewMakefile.gmk:57: *** Cannot continue.  Stop.
> 
> Running configure fixes this, but it's not currently mentioned on the wiki
> page.

The Wiki is outdated, follow the instructions in README-builds.html located in the top level directory. They're up to date for JDK 8. You shouldn't have to do much more than "sh ./configure && make" assuming you have all the prerequisites installed.


> Also, get_source.sh runs pretty slowly on my laptop (2 cores, 8 GB memory)
> taking about 55 minutes to complete.
> Is this normal? Any way to speed it up?

Hg can be slow depending on your network and storage speed. This is not unusual for such a large mass of files.

-DrD-



More information about the macosx-port-dev mailing list