I tried to build JDK 9 EA on Mac, but bug? Suspended due to build error.
$ brew install mercurial
$ hg clone http://hg.openjdk.java.net/jdk9/jdk9 jdk9
$ cd jdk9
#Get the source of jdk(Takes about 15 minutes)
$ bash ./get_source.sh
#Get angry when I need freetype
$ bash ./configure
...
configure: error: Could not find freetype! You might be able to fix this by running 'brew install freetype'.
~/java/jdk9/common/autoconf/generated-configure.sh: line 82: 5: Bad file descriptor
configure exiting with result code 1
#install freetype
$ brew install freetype
#Specify the path to freetype again and configure
$ bash ./configure --with-freetype-include=/usr//local/homebrew/include/freetype2 --with-freetype-lib=/usr/local/homebrew/lib
...
====================================================
A new configuration has been successfully created in
~/java/jdk9/build/macosx-x86_64-normal-server-release
using configure arguments '--with-freetype-include=/usr//local/homebrew/include/freetype2 --with-freetype-lib=/usr/local/homebrew/lib'.
Configuration summary:
* Debug level: release
* HS debug level: product
* JDK variant: normal
* JVM variants: server
* OpenJDK target: OS: macosx, CPU architecture: x86, address length: 64
* Version string: 9-internal+0-adhoc.mkakimi.jdk9 (9-internal)
Tools summary:
* Boot JDK: java version "9" Java(TM) SE Runtime Environment (build 9+176) Java HotSpot(TM) 64-Bit Server VM (build 9+176, mixed mode) (at /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home)
* Toolchain: clang (clang/LLVM from Xcode 8.2.1)
* C Compiler: Version 8.0.0 (at /usr/bin/clang)
* C++ Compiler: Version 8.0.0 (at /usr/bin/clang++)
Build performance summary:
* Cores to use: 8
* Memory limit: 16384 MB
$ make (Build error)
https://bugs.openjdk.java.net/browse/JDK-8173336
Recommended Posts