Building JDK8 on OS X 10.8.4
Leonid Romanov
leonid.romanov at oracle.com
Wed Aug 14 14:38:46 PDT 2013
Hello,
The instructions on wiki are for building JDK 7. JDK 8 has a newer and better build system, so, as you've discovered, you only have to type "./configure; make".
As for Hotspot building error, use "make WARNINGS_ARE_ERRORS=" command as a workaround.
Regards,
Leonid.
On Aug 15, 2013, at 12:48 AM, Marko Asplund <marko.asplund at gmail.com> wrote:
> hi,
>
> 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+`
> 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.
>
> After that, the build still fails at a later phase:
>
> cc1plus: warnings being treated as errors
> /Users/aspluma/projects/openjdk/jdk8/hotspot/src/os/bsd/vm/attachListener_bsd.cpp:
> In static member function 'static void AttachListener::vm_start()':
> /Users/aspluma/projects/openjdk/jdk8/hotspot/src/os/bsd/vm/attachListener_bsd.cpp:455:
> warning: 'stat64' is deprecated (declared at /usr/include/sys/stat.h:466)
> /Users/aspluma/projects/openjdk/jdk8/hotspot/src/os/bsd/vm/attachListener_bsd.cpp:455:
> warning: 'stat64' is deprecated (declared at /usr/include/sys/stat.h:466)
> make[8]: *** [attachListener_bsd.o] Error 1
> make[8]: *** Waiting for unfinished jobs....
> make[7]: *** [the_vm] Error 2
> make[6]: *** [product] Error 2
> make[5]: *** [generic_build2] Error 2
> make[4]: *** [product] Error 2
> make[3]: *** [all_product_universal] Error 2
> make[2]: *** [universal_product] Error 2
> make[1]: ***
> [/Users/aspluma/projects/openjdk/jdk8/build/macosx-x86_64-normal-server-release/hotspot/_hotspot.timestamp]
> Error 2
> make: *** [hotspot-only] Error 2
>
> There was discussion about this issue on the OpenJDK Hotspot mailing list,
> but apparently the fix has not yet been applied to the code base?
>
> 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?
>
> marko
More information about the macosx-port-dev
mailing list