-
Notifications
You must be signed in to change notification settings - Fork 8
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
Test mac-os builds both on Intel and Apple M #415
Conversation
Looks like we need something like graalvm/mandrel#735 as well. |
Done in #416 |
3e8f85d
to
6f29620
Compare
@zakkak I had to rename lib/static/darwin-arm64 to lib/static/darwin-aarch64 too 🤷♂️ working with 23.1 branch |
That sounds like an upstream bug, shouldn't upstream use the same naming as OpenJDK? Also any idea why the smoke tests seem to work without this renaming in this case? |
I have seen these in the wild, JNI Java libs, projects, JDK, GraalVM, uname, arch etc.:
The ISA is apparently interchangeably called both Aarch64 and ARM64. It seems that MacOS pretty consistently reports "arm64" though. Both via Temurin 21 uses "lib/static/darwin-arm64", although it names its tarballs "aarch64_mac".
My hunch is that this naming mayhem is so prevalent a problem that the GHA runners have some kind of aliasing in place to mitigate failing on such trivial naming steps? When I am done with the baremetal ones, I'll take a look. |
I would love to see the print on that T-shirt but I will be logical and not suggest a third naming scheme :) Although I would like to go with the Temurin naming scheme I am afraid the easiest path is to go with the GraalVM CE naming scheme as I expect |
It turns out it's still building for x86_64
Switching to draft... I need to change more things (like the openjdk we download) and make sure rosetta is not taking over and emulating things. |
@zakkak Just to confirm, the build I tried was on a system without Rosetta, so it works, but for the naming.... |
24d51ef
to
8063836
Compare
Yes, I fixed it in the github action now as well, but it looks like this renaming needs to be done by |
export ARCHIVE_NAME="mandrel-java23-darwin-${ARCH}-${MANDREL_VERSION_UNTIL_SPACE}.tar.gz" | ||
mv ${ARCHIVE_NAME} mandrel-java23-darwin-${ARCH}.tar.gz |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to cause (on mac x86_64):
INFO [build] Creating Archive mandrel-java23-darwin-amd64-10.9.8.7-dev.tar.gz
mv: rename mandrel-java23-darwin-x64-10.9.8.7-dev.tar.gz to mandrel-java23-darwin-x64.tar.gz: No such file or directory
Error: Process completed with exit code 1.
8063836
to
46f574e
Compare
46f574e
to
321ea92
Compare
This is a follow up to adoptium#2725. `uname -m` seems to return `arm64` on MacOS but the expected naming seems to be `aarch64` ( which is consistend with linux and windows as well) as observed in graalvm/mandrel-packaging#415 (comment)
So it looks like a Temurin issue after all. I opened adoptium/temurin-build#3827 to fix this. |
This is a follow up to adoptium#2725. `uname -m` seems to return `arm64` on MacOS but the expected naming seems to be `aarch64` ( which is consistend with linux and windows as well) as observed in graalvm/mandrel-packaging#415 (comment)
This is a follow up to adoptium#2725. `uname -m` seems to return `arm64` on MacOS but the expected naming seems to be `aarch64` ( which is consistend with linux and windows as well) as observed in graalvm/mandrel-packaging#415 (comment)
This is a follow up to #2725. `uname -m` seems to return `arm64` on MacOS but the expected naming seems to be `aarch64` ( which is consistend with linux and windows as well) as observed in graalvm/mandrel-packaging#415 (comment) Co-authored-by: Martijn Verburg <martijnverburg@gmail.com>
macos-13
is the latest intel-based runner, see https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories