Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenJDK aarch64 docker build #2870

Open
gounthar opened this issue Mar 7, 2022 · 6 comments
Open

OpenJDK aarch64 docker build #2870

gounthar opened this issue Mar 7, 2022 · 6 comments
Labels
aarch Issues that affect or relate to the aarch ARCHITECTURE docker Issues related to our docker files and docker scripts macos Issues that affect or relate to the MAC OS testing Issues that enhance or fix our test suites

Comments

@gounthar
Copy link

gounthar commented Mar 7, 2022

What are you trying to do?
I'm trying to build with the following command ./makejdk-any-platform.sh --docker --clean-docker-build jdk11u on a Oracle Free Tier Ubuntu 20.04.2 aarch64 machine running kernel 5.13.0-1018-oracle with docker 20.10.7, build 20.10.7-0ubuntu5~20.04.2.

Expected behaviour:
A built jdk.

Observed behaviour:

/openjdk/sbin/common/common.sh: line 185: /usr/lib/jvm/jdk11/bin/java: cannot execute binary file: Exec format error

I guess the process is linked somehow to x86_64 binaries

Step 4/23 : RUN sh -c "mkdir -p /usr/lib/jvm/jdk11 && wget 'https://api.adoptium.net/v3/binary/latest/11/ga/linux/x64/jdk/hotspot/normal/adoptium?project=jdk' -O - | tar xzf - -C /usr/lib/jvm/jdk11 --strip-components=1"

Any other comments:
Would it be possible to detect the arch and dynamize the previous wget command?

Thanks.

@github-actions github-actions bot added aarch Issues that affect or relate to the aarch ARCHITECTURE docker Issues related to our docker files and docker scripts macos Issues that affect or relate to the MAC OS testing Issues that enhance or fix our test suites labels Mar 7, 2022
@sxa
Copy link
Member

sxa commented Mar 7, 2022

That will probably be this line here:

RUN sh -c \"mkdir -p /usr/lib/jvm/jdk$JDKVersion && wget 'https://api.adoptium.net/v3/binary/latest/$JDKVersion/ga/linux/x64/jdk/hotspot/normal/adoptium?project=jdk' -O - | tar xzf - -C /usr/lib/jvm/jdk$JDKVersion --strip-components=1\"" >> "$DOCKERFILE_PATH"

Would you be interested in submitting a PR to do the detection? The API architectures are mostly the same as uname other than x64 (x64 instead of x86-64) and arm32 (arm instead of armv7l)

@gounthar
Copy link
Author

gounthar commented Mar 7, 2022

Yes, sure, let me try that.

@bbednarek
Copy link

Any updates on this? When do you plan to support aarch64?

We are waiting for Metabase ARM image which is blocked by this issue.

@karianna
Copy link
Contributor

karianna commented Jan 3, 2023

@bbednarek We have Aarch 64 binaries available through adoptium.net - is that what you're after? This ticket is about allowing folks to build their own binaries at home for themselves.

@bbednarek
Copy link

@karianna Thank for quick reply. I am not talking about binaries. I'm asking about linux/arm64 arch of eclipse-temurin:11-jre-alpine Docker image

@sxa
Copy link
Member

sxa commented Jan 4, 2023

@bbednarek As @karianna says this issue is NOT related to the availability of Temurin on Alpine/aarch64.
The issue we have covering Alpine on aarch64 is adoptium/containers#158

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aarch Issues that affect or relate to the aarch ARCHITECTURE docker Issues related to our docker files and docker scripts macos Issues that affect or relate to the MAC OS testing Issues that enhance or fix our test suites
Projects
Status: Todo
Development

No branches or pull requests

4 participants