Skip to content

Compilation fails on arm64/macOS with a panic #2401

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

Open
irii opened this issue Jun 3, 2025 · 2 comments
Open

Compilation fails on arm64/macOS with a panic #2401

irii opened this issue Jun 3, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@irii
Copy link

irii commented Jun 3, 2025

Describe the bug
The arm64 compilation causes a panic. The address mode is not supported.

Caused in the file: internal/engine/wazevo/backend/isa/arm64/machine.go
Method: resolveAddressingMode Line 341

The addressing mode "addressModeKindRegUnsignedImm12" is not supported here.
Adding "addressModeKindRegUnsignedImm12" to the switch statement (without any logic) solves the issue (Not 100% tested yet - I don't even know if this is the correct solution)

To Reproduce
I have currently no wasm file which I can share.

Expected behavior
The compilation process should execute without errors.

Environment (please complete the relevant information):

  • Go version: 1.23
  • Wasm file compiled with TinyGo 0.37
  • wazero Version: [e.g. c815060]
  • Host architecture: arm64 / macOS
  • Runtime mode: compiler

Thanks!

@irii irii added the bug Something isn't working label Jun 3, 2025
@evacchi
Copy link
Contributor

evacchi commented Jun 3, 2025

uh interesting that would mean that resolveAddressingMode() is being called by something that has set addressModeKindRegUnsignedImm12 🤔

@irii
Copy link
Author

irii commented Jun 3, 2025

Yeah. I agree with you!
Additionally: The interpreter works fine with my WASM file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants