wazero icon indicating copy to clipboard operation
wazero copied to clipboard

Compilation fails on arm64/macOS with a panic

Open irii opened this issue 4 months ago • 2 comments

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. c815060196bbfaa2d0f66a6ddbe64ba026523944]
  • Host architecture: arm64 / macOS
  • Runtime mode: compiler

Thanks!

irii avatar Jun 03 '25 07:06 irii