Building JDK8 on OS X 10.8.4
marko.asplund at gmail.com
Thu Aug 15 12:10:49 PDT 2013
Thanks Leonid and David.
There were quite a few warnings and some test failures, but I managed to
build OpenJDK 8 after adding the WARNINGS_ARE_ERRORS argument to make.
Here're some notes and suggestions related to the build process and web
site content / documentation from a newbie perspective.
For someone new to OpenJDK, the build instructions in the wiki can appear
to be a bit confusing:
It would be good to mention more explicitly that the instructions on this
page apply to JDK 7.
Also, there are references to JDK 8 on the page.
For example the clone command line seems to be cloning JDK 8 sources.
Being new to OpenJDK I found it a bit difficult to actually locate the
build instructions on openjdk.java.net. The "build and hack" link looks
promising in "Hack on the JDK itself" section, but it's more about NetBeans
and doesn't include info or links to resources describing the JDK build
For an impatient newbie it might be helpful to mention that get_source.sh
can take a _very_ long time to execute, as one can start doubting whether
the process has hung somehow.
Are there any plans for speeding this up in the future?
Would it make sense to mention the WARNINGS_ARE_ERRORS argument in
somewhere (either general or Mac OS X specific instructions section).
On 15 August 2013 00:52, David DeHaven <david.dehaven at oracle.com> wrote:
> > 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
> > 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
> > 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the web-discuss