-
Notifications
You must be signed in to change notification settings - Fork 109
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
fetch-jdk doesn't store the arch in the directory name, so different architectures get confused #257
Comments
How is this resolved for JDKs installed under |
I think they assume you use a JDK for your native architecture, so no solution. But I can't use a JDK for my native architecture until Sulong catches up. Just a temporary solution needed. |
Given that fetch-jdk will use the native platform in deciding which binary to download, this is more than just about disambiguating on the installation directory name. |
On macOS the native platform can be either AArch64 or AMD64, on the same machine at the same time. The correct binary is downloaded in both cases. It just goes into the same place. |
I worked around it by just not using My helper (note that it also sets # % cat =enter_gvm
#!/bin/bash
set -x
set -e
TAG="jvmci-22.1-b03"
JDK_ROOT=$HOME/jdks
# $1 requested arch
# $2 ce/ee
# $3 11/17
case $1 in
aarch64|arm64)
ARCH=aarch64
;;
intel|x86|amd64|x86_64)
ARCH=amd64
;;
*)
echo "Specify either aarch64 or amd64, not \"$1\""
exit 1
;;
esac
case $2 in
ce|ee)
EDITION=$2
;;
*)
echo "Specify either ce or ee, not \"$2\""
exit 2
;;
esac
case $3 in
11|17)
VERSION=$3
;;
*)
echo "Specify either 11 or 17, not \"$3\""
exit 3
;;
esac
export JAVA_HOME=$(echo $JDK_ROOT/$ARCH/labsjdk-$EDITION-$VERSION.*-$TAG)/Contents/Home
if [ $ARCH = "amd64" ]; then
export LLVM_JAVA_HOME=$(echo $JDK_ROOT/$ARCH/labsjdk-$EDITION-$VERSION.*-$TAG-sulong)/Contents/Home
export MX_PYTHON=/usr/local/homebrew/bin/python3
else
export MX_PYTHON=/opt/homebrew/bin/python3
fi
export GRAALVM_PROFILE="@$EDITION-$VERSION-$ARCH"
zsh Where
Usage:
Note how the prompt of my shell picks up |
For example
/Users/chrisseaton/.mx/jdks/labsjdk-ce-11-jvmci-22.1-b03/
is that AMD64 or AArch64?The text was updated successfully, but these errors were encountered: