Skip to content

Build fails with app_framework in Darwin Aarch64 #1600

@hangedfish

Description

@hangedfish
cd product-mini/platforms/darwin
mkdir build && cd build
cmake -DWAMR_BUILD_APP_FRAMEWORK=1 -DWAMR_BUILD_APP_LIST=WAMR_APP_BUILD_BASE ..
make

but got error

[ 52%] Linking C executable iwasm
Undefined symbols for architecture arm64:
  "_app_manager_timer_start", referenced from:
      _watchdog_timer_start in libvmlib.a(watchdog.c.o)
  "_app_manager_timer_stop", referenced from:
      _watchdog_timer_stop in libvmlib.a(watchdog.c.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [iwasm] Error 1
make[1]: *** [CMakeFiles/iwasm.dir/all] Error 2
make: *** [all] Error 2

environment

$ sw_vers       
ProductName:	macOS
ProductVersion:	12.5.1
BuildVersion:	21G83

$ uname -a
Darwin f84d895e7681 21.6.0 Darwin Kernel Version 21.6.0: Wed Aug 10 14:28:23 PDT 2022; root:xnu-8020.141.5~2/RELEASE_ARM64_T6000 arm64

$ clang --version
Apple clang version 13.1.6 (clang-1316.0.21.2.5)
Target: arm64-apple-darwin21.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

$ cmake --version
cmake version 3.22.2

CMake suite maintained and supported by Kitware (kitware.com/cmake).

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