[aarch64-port-dev ] failed to build JDK9

Tangwei (Euler) tangwei6 at huawei.com
Thu Jun 18 14:36:17 UTC 2015


Forgot to mention,  I tried to do cross compilation for aarch64 on X64 platform.  Following is my configuration command line.
The same command line works for openJDK8 before.  From the configuration log,  the directory to include freetype2 and libfreetype.so
for aarch64 needs to be specified.

./configure --enable-option-checking=fatal  --openjdk-target=aarch64-linux-gnu --enable-unlimited-crypto
--with-zlib=system --with-stdc++lib=dynamic CC=aarch64-linux-gnu-gcc  CXX=aarch64-linux-gnu-g++

My issue is solved by adding two options below to configure command:

--with-freetype-include=aarch64-toolchain/sysroot/usr/include/freetype2/
--with-freetype-lib=aarch64-toolchain/sysroot/usr/lib/

Thanks a lot for everyone’s kindly help!

Regards!
wei

From: Edward Nevill [mailto:edward.nevill at linaro.org]
Sent: Thursday, June 18, 2015 5:36 PM
To: Tangwei (Euler)
Cc: aarch64-port-dev at openjdk.java.net
Subject: Re: [aarch64-port-dev ] failed to build JDK9

Hi,
I can successfully build jdk9 on ubuntu 14.04.
You may like to try initially building openjdk-7 as follows to ensure all the dependancies are correct for openjdk-7.
apt-get source openjdk-7-jdk
cd openjdk-7-7u51-2.4.6 (name may vary slightly)
dpkg-buildpackage 2>&1 | tee ../log
If any dependancies are missing this will tell you exactly what packages to install.

Once the dependancies are correct for openjdk-7 then you can retry jdk9.
Note that in order to build jdk9 you will need to have jdk8 installed.
You can download a pre-built binary from http://openjdk.linaro.org (follow the releases tab).
All the best,
Edward Nevill


On 18 June 2015 at 08:08, Tangwei (Euler) <tangwei6 at huawei.com<mailto:tangwei6 at huawei.com>> wrote:
Hi All,
  I cloned the latest openJDK9 for aarch64 on Ubuntu and failed to configure with following error message.
Anyone knows how to solve this issue? From the message, it suggested to install libfreetype6-dev,
but the library has already been installed.

configure: Could not compile and link with freetype. This might be a 32/64-bit mismatch.
configure: Using FREETYPE_CFLAGS=-I/usr/include/freetype2   and FREETYPE_LIBS=-lfreetype
configure: error: Can not continue without freetype. You might be able to fix this by running 'sudo apt-get install libfreetype6-dev'.
configure exiting with result code 1


Regards!
wei



More information about the aarch64-port-dev mailing list