ibmruntimes / openj9-openjdk-jdk9

Extensions for OpenJDK for Eclipse OpenJ9
GNU General Public License v2.0
67 stars 76 forks source link

Main.gmk attempts to compose the buildjvm when it shouldn't #83

Closed JamesKingdon closed 6 years ago

JamesKingdon commented 7 years ago

Main.gmk will attempt to copy libraries into the build jvm even when using --with-build-jdk. Since the build jvm wasn't built in this case, it's likely that the libraries it was attempting to copy were for the target architecture (cross compiling), and therefore not a good thing to do. Commenting out the j9vm-compose-buildjvm target helped in the short term, but I tihnk this needs to be made conditional in some way.

JamesKingdon commented 6 years ago

This issue is addressed for arm cross compiles by PR #87 and #88 but those changes should probably be generalised to handle --with-build-jdk on native builds.

keithc-ca commented 6 years ago

I believe this was fixed by https://github.com/ibmruntimes/openj9-openjdk-jdk9/pull/155. I tested using

configure --with-build-jdk={read-only-bootjdk9} ...

without incident.