[aarch64-port-dev ] abort when running jdk9 on ARM64

Tangwei (Euler) tangwei6 at huawei.com
Thu Jun 18 15:00:23 UTC 2015


Hi All,
  I can build out openjdk9 successfully, but the program will abort when just running “java” without any options:
Following is stack, anyone has met the same issue before?

Stack: [0x000003ffa5340000,0x000003ffa5540000],  sp=0x000003ffa553e1c0,  free space=2040k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x8fb4e4]  VMError::report_and_die()+0x130
V  [libjvm.so+0x3df4a0]  report_vm_error(char const*, int, char const*, char const*)+0x68
V  [libjvm.so+0x73066c]  Monitor::wait(bool, long, bool)+0x22c
V  [libjvm.so+0x773d10]  os::create_thread(Thread*, os::ThreadType, unsigned long)+0x1a8
V  [libjvm.so+0x491efc]  GCTaskThread::GCTaskThread(GCTaskManager*, unsigned int, unsigned int)+0x60
V  [libjvm.so+0x491320]  GCTaskManager::initialize()+0x338
V  [libjvm.so+0x7905cc]  ParallelScavengeHeap::initialize()+0x334
V  [libjvm.so+0x8c2a94]  Universe::initialize_heap()+0x11c
V  [libjvm.so+0x8c2c60]  universe_init()+0x34
V  [libjvm.so+0x4f8348]  init_globals()+0x54
V  [libjvm.so+0x8a6d98]  Threads::create_vm(JavaVMInitArgs*, bool*)+0x2ac
V  [libjvm.so+0x56d688]  JNI_CreateJavaVM+0x78
C  [libjli.so+0x2a64]  JavaMain+0x8c
C  [libpthread.so.0+0x7c50]  start_thread+0xb0
C  [libc.so.6+0xdac60]  thread_start+0x30


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