Building Portola JDK11 for AMR64 arch

Mikael Vidstedt mikael.vidstedt at oracle.com
Fri Oct 26 18:21:26 UTC 2018



> On Oct 26, 2018, at 3:47 AM, Aleksey Shipilev <shade at redhat.com> wrote:
> 
> On 10/26/2018 10:36 AM, Andrew Haley wrote:
>> On 10/26/2018 09:00 AM, Mikael Vidstedt wrote:
>>> ./configure --openjdk-target=aarch64-oe-linux  
>>> --with-boot-jdk=/work/jdk11/build/linux-x86_64-normal-server-release/jdk
>>> --with-devkit=/tools/aarch64-toolchain/gcc-linaro-7.3.1-2
>>> 018.05-x86_64_aarch64-linux-gnu --disable-warnings-as-errors
>>> --disable-sjavac
>> 
>> You need a sysroot in order to cross compile. It should be populated with the
>> target libraries and headers.
> 
> Portola is definitely cross-compilable from x86_64:
> 
> https://builds.shipilev.net/openjdk-portola/openjdk-portola-b4-jdk-12+15-linux-aarch64-fastdebug.configure.log
> 
> https://builds.shipilev.net/openjdk-portola/openjdk-portola-b4-jdk-12+15-linux-aarch64-fastdebug.build.log
> 
> It uses sysroot generated as per instruction:
> 
> http://hg.openjdk.java.net/jdk/jdk/raw-file/tip/doc/building.html#creating-and-using-sysroots-with-qemu-deboostrap <http://hg.openjdk.java.net/jdk/jdk/raw-file/tip/doc/building.html#creating-and-using-sysroots-with-qemu-deboostrap>

Thanks for confirming, Aleksey!

Cheers,
Mikael




More information about the build-dev mailing list