-
Notifications
You must be signed in to change notification settings - Fork 627
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
Linking issue with spawn thread API for ESP-IDF #2263
Comments
Hi, I will run this program and see what I can do, I will keep you updated :) |
Hi, @skrovk I tried your example program, it's a bug in CMakeLists.txt, set the cache variable before the cmake_minimum_required(VERSION 3.5)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
set (COMPONENTS ${IDF_TARGET} main freertos esptool_py wamr)
list(APPEND EXTRA_COMPONENT_DIRS "$ENV{WAMR_PATH}/build-scripts/esp-idf")
set (WAMR_BUILD_PLATFORM "esp-idf")
set (WAMR_BUILD_TARGET "XTENSA")
# set the cache variable WAMR_BUILD_LIB_PTHREAD will automatically set SHRAED_MEMORY, BULK_MEMORY and THREAD_MGR
set (WAMR_BUILD_LIB_PTHREAD 1)
set (WAMR_BUILD_INTERP 1)
set (WAMR_BUILD_JIT 0)
project(wamr-simple) Let me know if this solution works for you :) |
wenyongh
pushed a commit
that referenced
this issue
Jul 6, 2023
- Provide a Dockerfile.old to fix issue of ESP32 custom linker scripts not working properly with the newer version of Zephyr, as reported in #2263 - Provide a Dockerfile with newer Zephyr for other boards - Update the corresponding document
victoryang00
pushed a commit
to victoryang00/wamr-aot-gc-checkpoint-restore
that referenced
this issue
May 27, 2024
- Provide a Dockerfile.old to fix issue of ESP32 custom linker scripts not working properly with the newer version of Zephyr, as reported in bytecodealliance#2263 - Provide a Dockerfile with newer Zephyr for other boards - Update the corresponding document
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Trying to build the (slightly modified for ESP) spawn thread example fails to build due to linking error - the spawn thread API is unrecognized. When these calls are removed the project builds and executes (except stalling in wasm_runtime_destroy unrelated to this).
Replicate
Target: ESP-IDF ESP32
Build platform: Ubuntu
main.c (the main changes involve execting the wasm setup from a thread and loading the example module from a buffer in
module.h
)CMakeLists.txt (ESP project)
CMakeLists:txt (WAMR project build)
Relevant output from build
...
Any help would be appreciated, thank you!
The text was updated successfully, but these errors were encountered: