-
Notifications
You must be signed in to change notification settings - Fork 578
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
AOT compiler wamrc
doesn't support compiling to arm64 bit
#3164
Comments
Hi, can you tell me which platform and which commit you are using? ./wamrc --target=aarch64 -o test.aot test.wasm
Create AoT compiler with:
target: aarch64v8
target cpu:
target triple: aarch64v8-pc-linux-gnu
cpu features:
opt level: 3
size level: 3
output format: AoT file
Compile success, file test.aot was generated. |
Hi, my platform Apple M1 Max and My commit: 5931aaa
|
I found the problem, we should differentiate apple m1 chip |
Good idea, maybe we should differentiate intel-based and arm-based MacOS. For now, you can try adding a command line argument to set manually set the size-level now to see whether it works: ./wamrc --size-level=3 --target=aarch64 -o test.aot test.wasm |
For AOT on M1, usually I compile with Create AoT compiler with:
target: arm64
target cpu: apple-m1
target triple: arm64-pc-linux-gnu
cpu features:
opt level: 3
size level: 0
output format: AoT file
Compile success, file wasm.aot was generated. The same is done in CI, where an M1 node ( |
penner@xxx build % ./wamrc --target=aarch64 -o wasm.aot wasm.wasm
[18:08:57:013 - 1DEF6D000]: warning: a module with WASI apis should be either a command or a reactor
Create AoT compiler with:
target: aarch64v8
target cpu:
target triple: aarch64v8-pc-linux-gnu
cpu features:
opt level: 3
size level: 1
output format: AoT file
LLVM ERROR: Only small, tiny and large code models are allowed on AArch64
zsh: abort ./wamrc --target=aarch64 -o wasm.aot wasm.wasm
Can I modify the source code in aot_llvm_extra2.cpp
The text was updated successfully, but these errors were encountered: