Skip to content

ESP-IDF example does not build #4023

Open
@trombonehero

Description

@trombonehero

Subject of the issue

Using either the main branch or release/1.3.x, the provided scripts fail to build the project with the message:

Failed to resolve component 'wasm-micro-runtime'

Test case

  • tried to build provided ESP-IDP project

Your environment

  • Tried on both macOS Sonoma 14.6.1 and 24.04 LTS
  • Tried with both main (9c3807e) and release/v1.3.x (3f5e2bd)
  • Tried with ESP-IDF versions master (53ff7d43d) and release/v5.1 (79b137966)

Steps to reproduce

$ cd product-mini/platforms/esp-idf
$ ./build_and_run.sh esp32

Expected behavior

Successful build

Actual behavior

Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Build directory '/Users/jon/Dev/ESP32-WAMR-Hello/product-mini/platforms/esp-idf/build' not found. No
thing to clean.
Executing action: set-target
Set Target to: esp32, new sdkconfig will be created.
Running cmake in directory /Users/jon/Dev/ESP32-WAMR-Hello/product-mini/platforms/esp-idf/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=/Users/jon/.espressif/python_env/idf5.1_p
y3.11_env/bin/python -DESP_PLATFORM=1 -DIDF_TARGET=esp32 -DCCACHE_ENABLE=0 /Users/jon/Dev/ESP32-WAMR
-Hello/product-mini/platforms/esp-idf"...
[...]
NOTICE: Using component placed at /Users/jon/Dev/ESP32-WAMR-Hello for dependency "wasm-micro-runtime", specified in /Users/jon/Dev/ESP32-WAMR-Hello/product-mini/platforms/esp-idf/main/idf_component.yml
NOTICE: Updating lock file at /Users/jon/Dev/ESP32-WAMR-Hello/product-mini/platforms/esp-idf/dependencies.lock
NOTICE: Processing 2 dependencies:
NOTICE: [1/2] wasm-micro-runtime (1.3.2) (/Users/jon/Dev/ESP32-WAMR-Hello)
NOTICE: [2/2] idf (5.1.0)
CMake Error at /Users/jon/Dev/esp-idf/tools/cmake/build.cmake:266 (message):
  Failed to resolve component 'wasm-micro-runtime'.
Call Stack (most recent call first):
  /Users/jon/Dev/esp-idf/tools/cmake/build.cmake:308 (__build_resolve_and_add_req)
  /Users/jon/Dev/esp-idf/tools/cmake/build.cmake:595 (__build_expand_requirements)
  /Users/jon/Dev/esp-idf/tools/cmake/project.cmake:547 (idf_build_process)
  CMakeLists.txt:9 (project)


-- Configuring incomplete, errors occurred!

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