Skip to content

Unable to run iwasm on MacOS after #2992 #3009

@eloparco

Description

@eloparco

After #2992, I'm not able to run iwasm on MacOS.

When I build, I get

ld: warning: non-standard -pagezero_size is deprecated when targeting macOS 13.0 or later

And if I run iwasm I get:

./iwasm
[1]    2986 killed     ./iwasm

If I try running with a debugger, I get

lldb -- ./iwasm                               
(lldb) target create "./iwasm"
Current executable set to '/Users/eloparco/dev/forks/wasm-micro-runtime/samples/wasi-threads/build/iwasm' (arm64).
(lldb) run
error: Malformed Mach-o file

If I comment this line out

set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-pagezero_size,0x4000")

everything is fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions