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 -Aleksey