Skip to content

[Bug]: Espressif benchmark and test examples fail to compile #5795

Description

@gojimmypi

Contact Details

gojimmypi@gmail.com

Version

Latest master branch

Description

The cmake file for the Espressif wolfssl component for test and benchmark examples is missing the source file settings for those features in COMPONENT_SRCDIRS.

Reproduction steps

  1. Open the ESP-IDF/examples/wolfssl_benchmark with a fresh install of ESP-IDF (one that does not have a wolfssl component)
  2. Run wolfssl setup to install a new wolfssl component in the Espressif environment
  3. Compile the app with idf.py build
  4. Observe compile error.

Relevant log output

...
/home/gojimmypi/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: esp-idf/main/libmain.a(helper.c.obj):(.literal.app_main+0x0): undefined reference to `wolfcrypt_benchmark_main'
/home/gojimmypi/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: esp-idf/main/libmain.a(helper.c.obj): in function `app_main':
/mnt/c/workspace/wolfssl/IDE/Espressif/ESP-IDF/examples/wolfssl_benchmark/build/../main/helper.c:178: undefined reference to `wolfcrypt_benchmark_main'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
ninja failed with exit code 1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions