temurin-build: qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory

What are you trying to do?

temurin-build % ./makejdk-any-platform.sh --docker --clean-docker-build --create-jre-image jdk11u

Expected behaviour:

Build continues.

Observed behaviour:

Build breaks.

I get the following error:

Searching for JDK_BOOT_DIR
Guessing JDK_BOOT_DIR: /usr/lib/jvm/jdk11
If this is incorrect explicitly configure JDK_BOOT_DIR using --jdk-boot-dir
[ERROR] The BOOT_JDK_VERSION_NUMBER was not found. Likelihood is that the boot jdk settings properties don't contain a java.specification.version...
qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory

Any other comments:

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 27 (17 by maintainers)

Most upvoted comments

Thanks for your feedback and patience on this @kerner1000 - it’s very much appreciated and we will definitely try to take more care not to break that use case going forward.

You are doing great, thanks so much for your help 😃

The extracted OpenJDK-jre-tar.gz is around 132MB. Is it possible to reduce this in size? I would like to repackage it together with my app.

Slightly surprised it comes out that large since they’re typically under 50Mb, but check out https://blog.adoptium.net/2021/10/jlink-to-produce-own-runtime/ (which is often a better way to produce something comparable to a JRE than using our own - we only switched the JRE production back on for ater versions because so many of our users demanded eit)

If we need to support different cases, e.g allow user to build from any local env

Our primary docs do exactly that and tell people to use makejdk-any-platform.sh, so yes the expectation is that it should work with the default options in a user environment. Option 1 would also have been consistent with how we add --create-jre-image

After commenting another two blocks, it worked, thanks a lot!