Skip to content

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

Answered by lewurm
whodarewin asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you @whodarewin!

hancongcong@bogon compiler % python -c 'import platform; print(platform.uname()[4])'
x86_64

This is the problem. You need a python installation that is arm64 too. Where is your python coming from? Check with which python.

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 mx picks up whatever python is available on $PATH. Otherwise, as above, you can choose a different python installation with the MX_PYTHON environment variable if you don…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@whodarewin
Comment options

@lewurm
Comment options

@whodarewin
Comment options

@lewurm
Comment options

Answer selected by lewurm
@whodarewin
Comment options

@lewurm
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants