Attempt to source build JDK9 EA on Mac OSX (failed)

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

Reference URL

Recommended Posts

Attempt to source build JDK9 EA on Mac OSX (failed)
I want to put the JDK on my Mac PC
Problems with SDK apk JDK etc. that fail when building on Android with Unity. "Failed to build apk"
How to get JDK 11 on your mac in a comfortable way
Steps to run docker on Mac
How to build vim on Ubuntu 20.04
[Docker] How to build when the source code is bind-mounted on the container
How to check Java installed on Mac
When Gradle build stops when importing on Mac
How to install Eclipse (Photon) on Mac
How to switch Java versions on Mac
Build a Java development environment on Mac
I tried to build AdoptOpenjdk 11 on CentOS 7
I tried to build Ruby 3.0.0 from source
Build Apache + Tomcat + Pebble locally on Mac
Build a JMeter environment on your Mac