eclipse-openj9 / openj9

Eclipse OpenJ9: A Java Virtual Machine for OpenJDK that's optimized for small footprint, fast start-up, and high throughput. Builds on Eclipse OMR (https://github.com/eclipse/omr) and combines with the Extensions for OpenJDK for OpenJ9 repo.
Other
3.28k stars 720 forks source link

SPEC not correctly set when cross compiling #519

Open JamesKingdon opened 7 years ago

JamesKingdon commented 7 years ago

When cross compiling for arm from OpenJDK the SPEC variable doesn't have an appropriate value in tr.source/trj9/Makefile, resulting in the JIT being compiled for the host platform instead of the target. As a workaround, forcing SPEC=linux_arm just before the conditional seems to achieve more appropriate behaviour, but this is clearly not the right fix. I'm not sure how SPEC is supposed to get set in this scenario, so this issue may turn out to be more appropriately raised against openj9-openjdk-jdk9.

JamesKingdon commented 6 years ago

SPEC arrives as /root/openj9-openjdk-jdk9/build/linux-arm-normal-server-release/spec.gmk

PR https://github.com/eclipse/openj9/pull/686 includes a temporary work around, but we still need to fix the underlying problem.