Build OpenJDK 8 for armhf (Raspberry Pi)?

Jim Connors james.connors at
Tue Apr 29 16:34:33 UTC 2014


Trying to build OpenJDK 8 for armhf, ultimately to be hosted on a 
Raspberry Pi.  I'm cross compiling from a Ubuntu 12.04 x86 Virtualbox 
image and am using gcc-4.7-linaro-rpi-gnueabihf for a toolchain.

Configuration invocation looks as follows:

$ bash configure 
--target=arm-unknown-linux-gnueabihf --with-jvm-variants=zero 

The make fails like this:

Compiling /home/jimc/openjdk8/hotspot/src/os/posix/vm/os_posix.cpp
/home/jimc/openjdk8/hotspot/src/os/linux/vm/os_linux.cpp: In static 
member function 'static jint os::init_2()':
/home/jimc/openjdk8/hotspot/src/os/linux/vm/os_linux.cpp:4853:42: error: 
'workaround_expand_exec_shield_cs_limit' was not declared in this scope

Might there a set of patches that are required to get this going 
further?  Anything else I'm missing?

Any pointer greatly appreciated,
-- Jim C


*Jim Connors,* Principal Sales Consultant
Oracle Alliances & Channels | Java Embedded Global Sales Unit
Office: +1 516.809.5925
Cell: +1 516.782.5501
Email: james.connors at <mailto:james.connors at>

*Learn more about Embeddable Java:*

More information about the build-dev mailing list