-
Notifications
You must be signed in to change notification settings - Fork 1.7k
unable to build graal on macos-aarch64:Module org.graalvm.locator has constraints on target platform (macos-amd64) that conflict with other modules: macos-aarch64 #8914
-
I'm a newbies of graalvm and followed the build instruction from page Anyone knows why? |
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment · 6 replies
-
Hi @whodarewin! Thank you for reporting this. Can you please provide the output of the following? echo $JAVA_HOME
echo $EXTRA_JAVA_HOMES
mx version and ideally also the full log. cc @ansalond :) Many thanks! |
Beta Was this translation helpful? Give feedback.
All reactions
-
Hi @alina-yur Here's the output of the command.
and here's the full log
|
Beta Was this translation helpful? Give feedback.
All reactions
-
Can you post the output of the following commands please: $ file /Users/hancongcong/sourcecode/graal-all/labsjdk-ce-17.0.9-jvmci-23.0-b22/Contents/Home/bin/java
$ arch
$ python -c 'import platform; print(platform.uname()[4])'
$ echo $MX_PYTHON |
Beta Was this translation helpful? Give feedback.
All reactions
-
Hi @lewurm
|
Beta Was this translation helpful? Give feedback.
All reactions
-
Thank you @whodarewin!
This is the problem. You need a python installation that is arm64 too. Where is your In general newer versions of Xcode ship a python version that suites that purpose. Try this if you have a valid Xcode installation: $ export MX_PYTHON=`xcode-select -p`/usr/bin/python3
$ file $MX_PYTHON #
$ $MX_PYTHON -c 'import platform; print(platform.uname()[4])' Per default
Let me know if that fixes your problem. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Hi @lewurm
I update the python version to macOS 64-bit universal2 installer and the compile successed.
Thanks a lot!!! |
Beta Was this translation helpful? Give feedback.
All reactions
-
great! 🙂 |
Beta Was this translation helpful? Give feedback.
Thank you @whodarewin!
This is the problem. You need a python installation that is arm64 too. Where is your
python
coming from? Check withwhich python
.In general newer versions of Xcode ship a python version that suites that purpose. Try this if you have a valid Xcode installation:
Per default
mx
picks up whateverpython
is available on$PATH
. Otherwise, as above, you can choose a different python installation with theMX_PYTHON
environment variable if you don…