Skip to content
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

[Bug]: Missing "esp32/rom/aes.h" #8266

Open
AchimPieters opened this issue Dec 9, 2024 · 15 comments
Open

[Bug]: Missing "esp32/rom/aes.h" #8266

AchimPieters opened this issue Dec 9, 2024 · 15 comments
Assignees
Labels

Comments

@AchimPieters
Copy link

AchimPieters commented Dec 9, 2024

Contact Details


Version

5.7.2

Description

user_settings.h

user_settings.TXT

Reproduction steps

Reproduction steps

Install docker
Install IDF V5.0 - docker pull espressif/idf:latest
Clone repository - git clone --recursive https://github.com/AchimPieters/esp32-homekit-demo.git
start IDF - docker run -it -v ~/ESP32-HOMEKIT-DEMO:/project -w /project espressif/idf:latest
cd examples - cd led
idf.py set-target esp32c3
idf.py menuconfig
idf.py build

Relevant log output

FAILED: esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/dtls.c.obj 
ccache /opt/esp/tools/riscv32-esp-elf/esp-14.2.0_20240906/riscv32-esp-elf/bin/riscv32-esp-elf-gcc -DESP_PLATFORM -DIDF_VER=\"v5.4-dev-4375-gf420609c33\" -DLIBWOLFSSL_VERSION_GIT_BRANCH=\"main\" -DLIBWOLFSSL_VERSION_GIT_HASH=\"f72f5e34e5fe67a3b49b74aae68dcd056b45d5eb\" -DLIBWOLFSSL_VERSION_GIT_HASH_DATE="\"'Sat Oct 19 10:14:52 2024 +0200'\"" -DLIBWOLFSSL_VERSION_GIT_ORIGIN=\"https://Achim%20Pieters@github.com/AchimPieters/esp32-homekit-demo.git\" -DLIBWOLFSSL_VERSION_GIT_SHORT_HASH=\"f72f5e3\" -DLIBWOLFSSL_VERSION_WOLFSSL_ROOT=\"/project/components/wolfssl\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -DWOLFSSL_USER_SETTINGS_DIR=\"//project//examples//led//components//wolfssl//include//user_settings.h\" -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -I/project/examples/led/build/config -I/project/components/wolfssl/include -I/project/components/wolfssl -I/project/components/wolfssl/wolfssl -I/project/components/wolfssl/wolfssl/wolfcrypt -I/project/components/wolfssl/wolfssl/wolfcrypt/port/Espressif -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/include/freertos -I/opt/esp/idf/components/newlib/platform_include -I/opt/esp/idf/components/freertos/config/include -I/opt/esp/idf/components/freertos/config/include/freertos -I/opt/esp/idf/components/freertos/config/riscv/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include/freertos -I/opt/esp/idf/components/freertos/esp_additions/include -I/opt/esp/idf/components/esp_hw_support/include -I/opt/esp/idf/components/esp_hw_support/include/soc -I/opt/esp/idf/components/esp_hw_support/include/soc/esp32c3 -I/opt/esp/idf/components/esp_hw_support/dma/include -I/opt/esp/idf/components/esp_hw_support/ldo/include -I/opt/esp/idf/components/esp_hw_support/debug_probe/include -I/opt/esp/idf/components/esp_hw_support/port/esp32c3/. -I/opt/esp/idf/components/esp_hw_support/port/esp32c3/include -I/opt/esp/idf/components/heap/include -I/opt/esp/idf/components/heap/tlsf -I/opt/esp/idf/components/log/include -I/opt/esp/idf/components/soc/include -I/opt/esp/idf/components/soc/esp32c3 -I/opt/esp/idf/components/soc/esp32c3/include -I/opt/esp/idf/components/soc/esp32c3/register -I/opt/esp/idf/components/hal/platform_port/include -I/opt/esp/idf/components/hal/esp32c3/include -I/opt/esp/idf/components/hal/include -I/opt/esp/idf/components/esp_rom/include -I/opt/esp/idf/components/esp_rom/esp32c3/include -I/opt/esp/idf/components/esp_rom/esp32c3/include/esp32c3 -I/opt/esp/idf/components/esp_rom/esp32c3 -I/opt/esp/idf/components/esp_common/include -I/opt/esp/idf/components/esp_system/include -I/opt/esp/idf/components/esp_system/port/soc -I/opt/esp/idf/components/esp_system/port/include/riscv -I/opt/esp/idf/components/esp_system/port/include/private -I/opt/esp/idf/components/riscv/include -I/opt/esp/idf/components/lwip/include -I/opt/esp/idf/components/lwip/include/apps -I/opt/esp/idf/components/lwip/include/apps/sntp -I/opt/esp/idf/components/lwip/lwip/src/include -I/opt/esp/idf/components/lwip/port/include -I/opt/esp/idf/components/lwip/port/freertos/include -I/opt/esp/idf/components/lwip/port/esp32xx/include -I/opt/esp/idf/components/lwip/port/esp32xx/include/arch -I/opt/esp/idf/components/lwip/port/esp32xx/include/sys -march=rv32imc_zicsr_zifencei  -DWOLFSSL_USER_SETTINGS -DWOLFSSL_CMAKE_SYSTEM_NAME_LINUX -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-error=extra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -nostartfiles -Os -freorder-blocks -fmacro-prefix-map=/project/examples/led=. -fmacro-prefix-map=/opt/esp/idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -std=gnu17 -Wno-old-style-declaration -MD -MT esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/dtls.c.obj -MF esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/dtls.c.obj.d -o esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/dtls.c.obj -c /project/components/wolfssl/src/dtls.c
In file included from /project/components/wolfssl/wolfssl/wolfcrypt/sha256.h:85,
                 from /project/components/wolfssl/wolfssl/wolfcrypt/random.h:109,
                 from /project/components/wolfssl/wolfssl/wolfcrypt/asn_public.h:36,
                 from /project/components/wolfssl/wolfssl/ssl.h:35,
                 from /project/components/wolfssl/wolfssl/internal.h:28,
                 from /project/components/wolfssl/src/dtls.c:58:
/project/components/wolfssl/wolfssl/wolfcrypt/port/Espressif/esp32-crypt.h:622:18: fatal error: esp32/rom/aes.h: No such file or directory
  622 |         #include "esp32/rom/aes.h"
      |                  ^~~~~~~~~~~~~~~~~
compilation terminated.
[778/931] Building C object esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/quic.c.obj
FAILED: esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/quic.c.obj 
ccache /opt/esp/tools/riscv32-esp-elf/esp-14.2.0_20240906/riscv32-esp-elf/bin/riscv32-esp-elf-gcc -DESP_PLATFORM -DIDF_VER=\"v5.4-dev-4375-gf420609c33\" -DLIBWOLFSSL_VERSION_GIT_BRANCH=\"main\" -DLIBWOLFSSL_VERSION_GIT_HASH=\"f72f5e34e5fe67a3b49b74aae68dcd056b45d5eb\" -DLIBWOLFSSL_VERSION_GIT_HASH_DATE="\"'Sat Oct 19 10:14:52 2024 +0200'\"" -DLIBWOLFSSL_VERSION_GIT_ORIGIN=\"https://Achim%20Pieters@github.com/AchimPieters/esp32-homekit-demo.git\" -DLIBWOLFSSL_VERSION_GIT_SHORT_HASH=\"f72f5e3\" -DLIBWOLFSSL_VERSION_WOLFSSL_ROOT=\"/project/components/wolfssl\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -DWOLFSSL_USER_SETTINGS_DIR=\"//project//examples//led//components//wolfssl//include//user_settings.h\" -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -I/project/examples/led/build/config -I/project/components/wolfssl/include -I/project/components/wolfssl -I/project/components/wolfssl/wolfssl -I/project/components/wolfssl/wolfssl/wolfcrypt -I/project/components/wolfssl/wolfssl/wolfcrypt/port/Espressif -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/include/freertos -I/opt/esp/idf/components/newlib/platform_include -I/opt/esp/idf/components/freertos/config/include -I/opt/esp/idf/components/freertos/config/include/freertos -I/opt/esp/idf/components/freertos/config/riscv/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include/freertos -I/opt/esp/idf/components/freertos/esp_additions/include -I/opt/esp/idf/components/esp_hw_support/include -I/opt/esp/idf/components/esp_hw_support/include/soc -I/opt/esp/idf/components/esp_hw_support/include/soc/esp32c3 -I/opt/esp/idf/components/esp_hw_support/dma/include -I/opt/esp/idf/components/esp_hw_support/ldo/include -I/opt/esp/idf/components/esp_hw_support/debug_probe/include -I/opt/esp/idf/components/esp_hw_support/port/esp32c3/. -I/opt/esp/idf/components/esp_hw_support/port/esp32c3/include -I/opt/esp/idf/components/heap/include -I/opt/esp/idf/components/heap/tlsf -I/opt/esp/idf/components/log/include -I/opt/esp/idf/components/soc/include -I/opt/esp/idf/components/soc/esp32c3 -I/opt/esp/idf/components/soc/esp32c3/include -I/opt/esp/idf/components/soc/esp32c3/register -I/opt/esp/idf/components/hal/platform_port/include -I/opt/esp/idf/components/hal/esp32c3/include -I/opt/esp/idf/components/hal/include -I/opt/esp/idf/components/esp_rom/include -I/opt/esp/idf/components/esp_rom/esp32c3/include -I/opt/esp/idf/components/esp_rom/esp32c3/include/esp32c3 -I/opt/esp/idf/components/esp_rom/esp32c3 -I/opt/esp/idf/components/esp_common/include -I/opt/esp/idf/components/esp_system/include -I/opt/esp/idf/components/esp_system/port/soc -I/opt/esp/idf/components/esp_system/port/include/riscv -I/opt/esp/idf/components/esp_system/port/include/private -I/opt/esp/idf/components/riscv/include -I/opt/esp/idf/components/lwip/include -I/opt/esp/idf/components/lwip/include/apps -I/opt/esp/idf/components/lwip/include/apps/sntp -I/opt/esp/idf/components/lwip/lwip/src/include -I/opt/esp/idf/components/lwip/port/include -I/opt/esp/idf/components/lwip/port/freertos/include -I/opt/esp/idf/components/lwip/port/esp32xx/include -I/opt/esp/idf/components/lwip/port/esp32xx/include/arch -I/opt/esp/idf/components/lwip/port/esp32xx/include/sys -march=rv32imc_zicsr_zifencei  -DWOLFSSL_USER_SETTINGS -DWOLFSSL_CMAKE_SYSTEM_NAME_LINUX -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-error=extra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -nostartfiles -Os -freorder-blocks -fmacro-prefix-map=/project/examples/led=. -fmacro-prefix-map=/opt/esp/idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -std=gnu17 -Wno-old-style-declaration -MD -MT esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/quic.c.obj -MF esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/quic.c.obj.d -o esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/quic.c.obj -c /project/components/wolfssl/src/quic.c
In file included from /project/components/wolfssl/wolfssl/wolfcrypt/sha.h:74,
                 from /project/components/wolfssl/wolfssl/wolfcrypt/hash.h:35,
                 from /project/components/wolfssl/wolfcrypt/src/misc.c:981,
                 from /project/components/wolfssl/src/quic.c:34:
/project/components/wolfssl/wolfssl/wolfcrypt/port/Espressif/esp32-crypt.h:622:18: fatal error: esp32/rom/aes.h: No such file or directory
  622 |         #include "esp32/rom/aes.h"
      |                  ^~~~~~~~~~~~~~~~~
compilation terminated.
[779/931] Building C object esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/ssl.c.obj
FAILED: esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/ssl.c.obj 
ccache /opt/esp/tools/riscv32-esp-elf/esp-14.2.0_20240906/riscv32-esp-elf/bin/riscv32-esp-elf-gcc -DESP_PLATFORM -DIDF_VER=\"v5.4-dev-4375-gf420609c33\" -DLIBWOLFSSL_VERSION_GIT_BRANCH=\"main\" -DLIBWOLFSSL_VERSION_GIT_HASH=\"f72f5e34e5fe67a3b49b74aae68dcd056b45d5eb\" -DLIBWOLFSSL_VERSION_GIT_HASH_DATE="\"'Sat Oct 19 10:14:52 2024 +0200'\"" -DLIBWOLFSSL_VERSION_GIT_ORIGIN=\"https://Achim%20Pieters@github.com/AchimPieters/esp32-homekit-demo.git\" -DLIBWOLFSSL_VERSION_GIT_SHORT_HASH=\"f72f5e3\" -DLIBWOLFSSL_VERSION_WOLFSSL_ROOT=\"/project/components/wolfssl\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -DWOLFSSL_USER_SETTINGS_DIR=\"//project//examples//led//components//wolfssl//include//user_settings.h\" -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -I/project/examples/led/build/config -I/project/components/wolfssl/include -I/project/components/wolfssl -I/project/components/wolfssl/wolfssl -I/project/components/wolfssl/wolfssl/wolfcrypt -I/project/components/wolfssl/wolfssl/wolfcrypt/port/Espressif -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/include/freertos -I/opt/esp/idf/components/newlib/platform_include -I/opt/esp/idf/components/freertos/config/include -I/opt/esp/idf/components/freertos/config/include/freertos -I/opt/esp/idf/components/freertos/config/riscv/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include/freertos -I/opt/esp/idf/components/freertos/esp_additions/include -I/opt/esp/idf/components/esp_hw_support/include -I/opt/esp/idf/components/esp_hw_support/include/soc -I/opt/esp/idf/components/esp_hw_support/include/soc/esp32c3 -I/opt/esp/idf/components/esp_hw_support/dma/include -I/opt/esp/idf/components/esp_hw_support/ldo/include -I/opt/esp/idf/components/esp_hw_support/debug_probe/include -I/opt/esp/idf/components/esp_hw_support/port/esp32c3/. -I/opt/esp/idf/components/esp_hw_support/port/esp32c3/include -I/opt/esp/idf/components/heap/include -I/opt/esp/idf/components/heap/tlsf -I/opt/esp/idf/components/log/include -I/opt/esp/idf/components/soc/include -I/opt/esp/idf/components/soc/esp32c3 -I/opt/esp/idf/components/soc/esp32c3/include -I/opt/esp/idf/components/soc/esp32c3/register -I/opt/esp/idf/components/hal/platform_port/include -I/opt/esp/idf/components/hal/esp32c3/include -I/opt/esp/idf/components/hal/include -I/opt/esp/idf/components/esp_rom/include -I/opt/esp/idf/components/esp_rom/esp32c3/include -I/opt/esp/idf/components/esp_rom/esp32c3/include/esp32c3 -I/opt/esp/idf/components/esp_rom/esp32c3 -I/opt/esp/idf/components/esp_common/include -I/opt/esp/idf/components/esp_system/include -I/opt/esp/idf/components/esp_system/port/soc -I/opt/esp/idf/components/esp_system/port/include/riscv -I/opt/esp/idf/components/esp_system/port/include/private -I/opt/esp/idf/components/riscv/include -I/opt/esp/idf/components/lwip/include -I/opt/esp/idf/components/lwip/include/apps -I/opt/esp/idf/components/lwip/include/apps/sntp -I/opt/esp/idf/components/lwip/lwip/src/include -I/opt/esp/idf/components/lwip/port/include -I/opt/esp/idf/components/lwip/port/freertos/include -I/opt/esp/idf/components/lwip/port/esp32xx/include -I/opt/esp/idf/components/lwip/port/esp32xx/include/arch -I/opt/esp/idf/components/lwip/port/esp32xx/include/sys -march=rv32imc_zicsr_zifencei  -DWOLFSSL_USER_SETTINGS -DWOLFSSL_CMAKE_SYSTEM_NAME_LINUX -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-error=extra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -nostartfiles -Os -freorder-blocks -fmacro-prefix-map=/project/examples/led=. -fmacro-prefix-map=/opt/esp/idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -std=gnu17 -Wno-old-style-declaration -MD -MT esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/ssl.c.obj -MF esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/ssl.c.obj.d -o esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/ssl.c.obj -c /project/components/wolfssl/src/ssl.c
In file included from /project/components/wolfssl/wolfssl/wolfcrypt/sha256.h:85,
                 from /project/components/wolfssl/wolfssl/wolfcrypt/random.h:109,
                 from /project/components/wolfssl/wolfssl/wolfcrypt/asn_public.h:36,
                 from /project/components/wolfssl/wolfssl/ssl.h:35,
                 from /project/components/wolfssl/wolfssl/internal.h:28,
                 from /project/components/wolfssl/src/ssl.c:37:
/project/components/wolfssl/wolfssl/wolfcrypt/port/Espressif/esp32-crypt.h:622:18: fatal error: esp32/rom/aes.h: No such file or directory
  622 |         #include "esp32/rom/aes.h"
      |                  ^~~~~~~~~~~~~~~~~
compilation terminated.
[780/931] Building C object esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/keys.c.obj
FAILED: esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/keys.c.obj 
ccache /opt/esp/tools/riscv32-esp-elf/esp-14.2.0_20240906/riscv32-esp-elf/bin/riscv32-esp-elf-gcc -DESP_PLATFORM -DIDF_VER=\"v5.4-dev-4375-gf420609c33\" -DLIBWOLFSSL_VERSION_GIT_BRANCH=\"main\" -DLIBWOLFSSL_VERSION_GIT_HASH=\"f72f5e34e5fe67a3b49b74aae68dcd056b45d5eb\" -DLIBWOLFSSL_VERSION_GIT_HASH_DATE="\"'Sat Oct 19 10:14:52 2024 +0200'\"" -DLIBWOLFSSL_VERSION_GIT_ORIGIN=\"https://Achim%20Pieters@github.com/AchimPieters/esp32-homekit-demo.git\" -DLIBWOLFSSL_VERSION_GIT_SHORT_HASH=\"f72f5e3\" -DLIBWOLFSSL_VERSION_WOLFSSL_ROOT=\"/project/components/wolfssl\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -DWOLFSSL_USER_SETTINGS_DIR=\"//project//examples//led//components//wolfssl//include//user_settings.h\" -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -I/project/examples/led/build/config -I/project/components/wolfssl/include -I/project/components/wolfssl -I/project/components/wolfssl/wolfssl -I/project/components/wolfssl/wolfssl/wolfcrypt -I/project/components/wolfssl/wolfssl/wolfcrypt/port/Espressif -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/include/freertos -I/opt/esp/idf/components/newlib/platform_include -I/opt/esp/idf/components/freertos/config/include -I/opt/esp/idf/components/freertos/config/include/freertos -I/opt/esp/idf/components/freertos/config/riscv/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include/freertos -I/opt/esp/idf/components/freertos/esp_additions/include -I/opt/esp/idf/components/esp_hw_support/include -I/opt/esp/idf/components/esp_hw_support/include/soc -I/opt/esp/idf/components/esp_hw_support/include/soc/esp32c3 -I/opt/esp/idf/components/esp_hw_support/dma/include -I/opt/esp/idf/components/esp_hw_support/ldo/include -I/opt/esp/idf/components/esp_hw_support/debug_probe/include -I/opt/esp/idf/components/esp_hw_support/port/esp32c3/. -I/opt/esp/idf/components/esp_hw_support/port/esp32c3/include -I/opt/esp/idf/components/heap/include -I/opt/esp/idf/components/heap/tlsf -I/opt/esp/idf/components/log/include -I/opt/esp/idf/components/soc/include -I/opt/esp/idf/components/soc/esp32c3 -I/opt/esp/idf/components/soc/esp32c3/include -I/opt/esp/idf/components/soc/esp32c3/register -I/opt/esp/idf/components/hal/platform_port/include -I/opt/esp/idf/components/hal/esp32c3/include -I/opt/esp/idf/components/hal/include -I/opt/esp/idf/components/esp_rom/include -I/opt/esp/idf/components/esp_rom/esp32c3/include -I/opt/esp/idf/components/esp_rom/esp32c3/include/esp32c3 -I/opt/esp/idf/components/esp_rom/esp32c3 -I/opt/esp/idf/components/esp_common/include -I/opt/esp/idf/components/esp_system/include -I/opt/esp/idf/components/esp_system/port/soc -I/opt/esp/idf/components/esp_system/port/include/riscv -I/opt/esp/idf/components/esp_system/port/include/private -I/opt/esp/idf/components/riscv/include -I/opt/esp/idf/components/lwip/include -I/opt/esp/idf/components/lwip/include/apps -I/opt/esp/idf/components/lwip/include/apps/sntp -I/opt/esp/idf/components/lwip/lwip/src/include -I/opt/esp/idf/components/lwip/port/include -I/opt/esp/idf/components/lwip/port/freertos/include -I/opt/esp/idf/components/lwip/port/esp32xx/include -I/opt/esp/idf/components/lwip/port/esp32xx/include/arch -I/opt/esp/idf/components/lwip/port/esp32xx/include/sys -march=rv32imc_zicsr_zifencei  -DWOLFSSL_USER_SETTINGS -DWOLFSSL_CMAKE_SYSTEM_NAME_LINUX -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-error=extra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -nostartfiles -Os -freorder-blocks -fmacro-prefix-map=/project/examples/led=. -fmacro-prefix-map=/opt/esp/idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -std=gnu17 -Wno-old-style-declaration -MD -MT esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/keys.c.obj -MF esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/keys.c.obj.d -o esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/keys.c.obj -c /project/components/wolfssl/src/keys.c
In file included from /project/components/wolfssl/wolfssl/wolfcrypt/sha256.h:85,
                 from /project/components/wolfssl/wolfssl/wolfcrypt/random.h:109,
                 from /project/components/wolfssl/wolfssl/wolfcrypt/asn_public.h:36,
                 from /project/components/wolfssl/wolfssl/ssl.h:35,
                 from /project/components/wolfssl/wolfssl/internal.h:28,
                 from /project/components/wolfssl/src/keys.c:33:
/project/components/wolfssl/wolfssl/wolfcrypt/port/Espressif/esp32-crypt.h:622:18: fatal error: esp32/rom/aes.h: No such file or directory
  622 |         #include "esp32/rom/aes.h"
      |                  ^~~~~~~~~~~~~~~~~
compilation terminated.
[781/931] Building C object esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/internal.c.obj
FAILED: esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/internal.c.obj 
ccache /opt/esp/tools/riscv32-esp-elf/esp-14.2.0_20240906/riscv32-esp-elf/bin/riscv32-esp-elf-gcc -DESP_PLATFORM -DIDF_VER=\"v5.4-dev-4375-gf420609c33\" -DLIBWOLFSSL_VERSION_GIT_BRANCH=\"main\" -DLIBWOLFSSL_VERSION_GIT_HASH=\"f72f5e34e5fe67a3b49b74aae68dcd056b45d5eb\" -DLIBWOLFSSL_VERSION_GIT_HASH_DATE="\"'Sat Oct 19 10:14:52 2024 +0200'\"" -DLIBWOLFSSL_VERSION_GIT_ORIGIN=\"https://Achim%20Pieters@github.com/AchimPieters/esp32-homekit-demo.git\" -DLIBWOLFSSL_VERSION_GIT_SHORT_HASH=\"f72f5e3\" -DLIBWOLFSSL_VERSION_WOLFSSL_ROOT=\"/project/components/wolfssl\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -DWOLFSSL_USER_SETTINGS_DIR=\"//project//examples//led//components//wolfssl//include//user_settings.h\" -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -I/project/examples/led/build/config -I/project/components/wolfssl/include -I/project/components/wolfssl -I/project/components/wolfssl/wolfssl -I/project/components/wolfssl/wolfssl/wolfcrypt -I/project/components/wolfssl/wolfssl/wolfcrypt/port/Espressif -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/include/freertos -I/opt/esp/idf/components/newlib/platform_include -I/opt/esp/idf/components/freertos/config/include -I/opt/esp/idf/components/freertos/config/include/freertos -I/opt/esp/idf/components/freertos/config/riscv/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include/freertos -I/opt/esp/idf/components/freertos/esp_additions/include -I/opt/esp/idf/components/esp_hw_support/include -I/opt/esp/idf/components/esp_hw_support/include/soc -I/opt/esp/idf/components/esp_hw_support/include/soc/esp32c3 -I/opt/esp/idf/components/esp_hw_support/dma/include -I/opt/esp/idf/components/esp_hw_support/ldo/include -I/opt/esp/idf/components/esp_hw_support/debug_probe/include -I/opt/esp/idf/components/esp_hw_support/port/esp32c3/. -I/opt/esp/idf/components/esp_hw_support/port/esp32c3/include -I/opt/esp/idf/components/heap/include -I/opt/esp/idf/components/heap/tlsf -I/opt/esp/idf/components/log/include -I/opt/esp/idf/components/soc/include -I/opt/esp/idf/components/soc/esp32c3 -I/opt/esp/idf/components/soc/esp32c3/include -I/opt/esp/idf/components/soc/esp32c3/register -I/opt/esp/idf/components/hal/platform_port/include -I/opt/esp/idf/components/hal/esp32c3/include -I/opt/esp/idf/components/hal/include -I/opt/esp/idf/components/esp_rom/include -I/opt/esp/idf/components/esp_rom/esp32c3/include -I/opt/esp/idf/components/esp_rom/esp32c3/include/esp32c3 -I/opt/esp/idf/components/esp_rom/esp32c3 -I/opt/esp/idf/components/esp_common/include -I/opt/esp/idf/components/esp_system/include -I/opt/esp/idf/components/esp_system/port/soc -I/opt/esp/idf/components/esp_system/port/include/riscv -I/opt/esp/idf/components/esp_system/port/include/private -I/opt/esp/idf/components/riscv/include -I/opt/esp/idf/components/lwip/include -I/opt/esp/idf/components/lwip/include/apps -I/opt/esp/idf/components/lwip/include/apps/sntp -I/opt/esp/idf/components/lwip/lwip/src/include -I/opt/esp/idf/components/lwip/port/include -I/opt/esp/idf/components/lwip/port/freertos/include -I/opt/esp/idf/components/lwip/port/esp32xx/include -I/opt/esp/idf/components/lwip/port/esp32xx/include/arch -I/opt/esp/idf/components/lwip/port/esp32xx/include/sys -march=rv32imc_zicsr_zifencei  -DWOLFSSL_USER_SETTINGS -DWOLFSSL_CMAKE_SYSTEM_NAME_LINUX -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-error=extra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -nostartfiles -Os -freorder-blocks -fmacro-prefix-map=/project/examples/led=. -fmacro-prefix-map=/opt/esp/idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -std=gnu17 -Wno-old-style-declaration -MD -MT esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/internal.c.obj -MF esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/internal.c.obj.d -o esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/internal.c.obj -c /project/components/wolfssl/src/internal.c
In file included from /project/components/wolfssl/wolfssl/wolfcrypt/sha256.h:85,
                 from /project/components/wolfssl/wolfssl/wolfcrypt/random.h:109,
                 from /project/components/wolfssl/wolfssl/wolfcrypt/asn_public.h:36,
                 from /project/components/wolfssl/wolfssl/ssl.h:35,
                 from /project/components/wolfssl/wolfssl/internal.h:28,
                 from /project/components/wolfssl/src/internal.c:105:
/project/components/wolfssl/wolfssl/wolfcrypt/port/Espressif/esp32-crypt.h:622:18: fatal error: esp32/rom/aes.h: No such file or directory
  622 |         #include "esp32/rom/aes.h"
      |                  ^~~~~~~~~~~~~~~~~
compilation terminated.
[782/931] Building C object esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/tls.c.obj
FAILED: esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/tls.c.obj 
ccache /opt/esp/tools/riscv32-esp-elf/esp-14.2.0_20240906/riscv32-esp-elf/bin/riscv32-esp-elf-gcc -DESP_PLATFORM -DIDF_VER=\"v5.4-dev-4375-gf420609c33\" -DLIBWOLFSSL_VERSION_GIT_BRANCH=\"main\" -DLIBWOLFSSL_VERSION_GIT_HASH=\"f72f5e34e5fe67a3b49b74aae68dcd056b45d5eb\" -DLIBWOLFSSL_VERSION_GIT_HASH_DATE="\"'Sat Oct 19 10:14:52 2024 +0200'\"" -DLIBWOLFSSL_VERSION_GIT_ORIGIN=\"https://Achim%20Pieters@github.com/AchimPieters/esp32-homekit-demo.git\" -DLIBWOLFSSL_VERSION_GIT_SHORT_HASH=\"f72f5e3\" -DLIBWOLFSSL_VERSION_WOLFSSL_ROOT=\"/project/components/wolfssl\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -DWOLFSSL_USER_SETTINGS_DIR=\"//project//examples//led//components//wolfssl//include//user_settings.h\" -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -I/project/examples/led/build/config -I/project/components/wolfssl/include -I/project/components/wolfssl -I/project/components/wolfssl/wolfssl -I/project/components/wolfssl/wolfssl/wolfcrypt -I/project/components/wolfssl/wolfssl/wolfcrypt/port/Espressif -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/include/freertos -I/opt/esp/idf/components/newlib/platform_include -I/opt/esp/idf/components/freertos/config/include -I/opt/esp/idf/components/freertos/config/include/freertos -I/opt/esp/idf/components/freertos/config/riscv/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include/freertos -I/opt/esp/idf/components/freertos/esp_additions/include -I/opt/esp/idf/components/esp_hw_support/include -I/opt/esp/idf/components/esp_hw_support/include/soc -I/opt/esp/idf/components/esp_hw_support/include/soc/esp32c3 -I/opt/esp/idf/components/esp_hw_support/dma/include -I/opt/esp/idf/components/esp_hw_support/ldo/include -I/opt/esp/idf/components/esp_hw_support/debug_probe/include -I/opt/esp/idf/components/esp_hw_support/port/esp32c3/. -I/opt/esp/idf/components/esp_hw_support/port/esp32c3/include -I/opt/esp/idf/components/heap/include -I/opt/esp/idf/components/heap/tlsf -I/opt/esp/idf/components/log/include -I/opt/esp/idf/components/soc/include -I/opt/esp/idf/components/soc/esp32c3 -I/opt/esp/idf/components/soc/esp32c3/include -I/opt/esp/idf/components/soc/esp32c3/register -I/opt/esp/idf/components/hal/platform_port/include -I/opt/esp/idf/components/hal/esp32c3/include -I/opt/esp/idf/components/hal/include -I/opt/esp/idf/components/esp_rom/include -I/opt/esp/idf/components/esp_rom/esp32c3/include -I/opt/esp/idf/components/esp_rom/esp32c3/include/esp32c3 -I/opt/esp/idf/components/esp_rom/esp32c3 -I/opt/esp/idf/components/esp_common/include -I/opt/esp/idf/components/esp_system/include -I/opt/esp/idf/components/esp_system/port/soc -I/opt/esp/idf/components/esp_system/port/include/riscv -I/opt/esp/idf/components/esp_system/port/include/private -I/opt/esp/idf/components/riscv/include -I/opt/esp/idf/components/lwip/include -I/opt/esp/idf/components/lwip/include/apps -I/opt/esp/idf/components/lwip/include/apps/sntp -I/opt/esp/idf/components/lwip/lwip/src/include -I/opt/esp/idf/components/lwip/port/include -I/opt/esp/idf/components/lwip/port/freertos/include -I/opt/esp/idf/components/lwip/port/esp32xx/include -I/opt/esp/idf/components/lwip/port/esp32xx/include/arch -I/opt/esp/idf/components/lwip/port/esp32xx/include/sys -march=rv32imc_zicsr_zifencei  -DWOLFSSL_USER_SETTINGS -DWOLFSSL_CMAKE_SYSTEM_NAME_LINUX -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-error=extra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -nostartfiles -Os -freorder-blocks -fmacro-prefix-map=/project/examples/led=. -fmacro-prefix-map=/opt/esp/idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -std=gnu17 -Wno-old-style-declaration -MD -MT esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/tls.c.obj -MF esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/tls.c.obj.d -o esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/tls.c.obj -c /project/components/wolfssl/src/tls.c
In file included from /project/components/wolfssl/wolfssl/wolfcrypt/sha256.h:85,
                 from /project/components/wolfssl/wolfssl/wolfcrypt/random.h:109,
                 from /project/components/wolfssl/wolfssl/wolfcrypt/asn_public.h:36,
                 from /project/components/wolfssl/wolfssl/ssl.h:35,
                 from /project/components/wolfssl/src/tls.c:32:
/project/components/wolfssl/wolfssl/wolfcrypt/port/Espressif/esp32-crypt.h:622:18: fatal error: esp32/rom/aes.h: No such file or directory
  622 |         #include "esp32/rom/aes.h"
      |                  ^~~~~~~~~~~~~~~~~
compilation terminated.
[783/931] Building C object esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/tls13.c.obj
FAILED: esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/tls13.c.obj 
ccache /opt/esp/tools/riscv32-esp-elf/esp-14.2.0_20240906/riscv32-esp-elf/bin/riscv32-esp-elf-gcc -DESP_PLATFORM -DIDF_VER=\"v5.4-dev-4375-gf420609c33\" -DLIBWOLFSSL_VERSION_GIT_BRANCH=\"main\" -DLIBWOLFSSL_VERSION_GIT_HASH=\"f72f5e34e5fe67a3b49b74aae68dcd056b45d5eb\" -DLIBWOLFSSL_VERSION_GIT_HASH_DATE="\"'Sat Oct 19 10:14:52 2024 +0200'\"" -DLIBWOLFSSL_VERSION_GIT_ORIGIN=\"https://Achim%20Pieters@github.com/AchimPieters/esp32-homekit-demo.git\" -DLIBWOLFSSL_VERSION_GIT_SHORT_HASH=\"f72f5e3\" -DLIBWOLFSSL_VERSION_WOLFSSL_ROOT=\"/project/components/wolfssl\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -DWOLFSSL_USER_SETTINGS_DIR=\"//project//examples//led//components//wolfssl//include//user_settings.h\" -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -I/project/examples/led/build/config -I/project/components/wolfssl/include -I/project/components/wolfssl -I/project/components/wolfssl/wolfssl -I/project/components/wolfssl/wolfssl/wolfcrypt -I/project/components/wolfssl/wolfssl/wolfcrypt/port/Espressif -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/include/freertos -I/opt/esp/idf/components/newlib/platform_include -I/opt/esp/idf/components/freertos/config/include -I/opt/esp/idf/components/freertos/config/include/freertos -I/opt/esp/idf/components/freertos/config/riscv/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include/freertos -I/opt/esp/idf/components/freertos/esp_additions/include -I/opt/esp/idf/components/esp_hw_support/include -I/opt/esp/idf/components/esp_hw_support/include/soc -I/opt/esp/idf/components/esp_hw_support/include/soc/esp32c3 -I/opt/esp/idf/components/esp_hw_support/dma/include -I/opt/esp/idf/components/esp_hw_support/ldo/include -I/opt/esp/idf/components/esp_hw_support/debug_probe/include -I/opt/esp/idf/components/esp_hw_support/port/esp32c3/. -I/opt/esp/idf/components/esp_hw_support/port/esp32c3/include -I/opt/esp/idf/components/heap/include -I/opt/esp/idf/components/heap/tlsf -I/opt/esp/idf/components/log/include -I/opt/esp/idf/components/soc/include -I/opt/esp/idf/components/soc/esp32c3 -I/opt/esp/idf/components/soc/esp32c3/include -I/opt/esp/idf/components/soc/esp32c3/register -I/opt/esp/idf/components/hal/platform_port/include -I/opt/esp/idf/components/hal/esp32c3/include -I/opt/esp/idf/components/hal/include -I/opt/esp/idf/components/esp_rom/include -I/opt/esp/idf/components/esp_rom/esp32c3/include -I/opt/esp/idf/components/esp_rom/esp32c3/include/esp32c3 -I/opt/esp/idf/components/esp_rom/esp32c3 -I/opt/esp/idf/components/esp_common/include -I/opt/esp/idf/components/esp_system/include -I/opt/esp/idf/components/esp_system/port/soc -I/opt/esp/idf/components/esp_system/port/include/riscv -I/opt/esp/idf/components/esp_system/port/include/private -I/opt/esp/idf/components/riscv/include -I/opt/esp/idf/components/lwip/include -I/opt/esp/idf/components/lwip/include/apps -I/opt/esp/idf/components/lwip/include/apps/sntp -I/opt/esp/idf/components/lwip/lwip/src/include -I/opt/esp/idf/components/lwip/port/include -I/opt/esp/idf/components/lwip/port/freertos/include -I/opt/esp/idf/components/lwip/port/esp32xx/include -I/opt/esp/idf/components/lwip/port/esp32xx/include/arch -I/opt/esp/idf/components/lwip/port/esp32xx/include/sys -march=rv32imc_zicsr_zifencei  -DWOLFSSL_USER_SETTINGS -DWOLFSSL_CMAKE_SYSTEM_NAME_LINUX -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-error=extra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -nostartfiles -Os -freorder-blocks -fmacro-prefix-map=/project/examples/led=. -fmacro-prefix-map=/opt/esp/idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -std=gnu17 -Wno-old-style-declaration -MD -MT esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/tls13.c.obj -MF esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/tls13.c.obj.d -o esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/tls13.c.obj -c /project/components/wolfssl/src/tls13.c
In file included from /project/components/wolfssl/wolfssl/wolfcrypt/sha256.h:85,
                 from /project/components/wolfssl/wolfssl/wolfcrypt/random.h:109,
                 from /project/components/wolfssl/wolfssl/wolfcrypt/asn_public.h:36,
                 from /project/components/wolfssl/wolfssl/ssl.h:35,
                 from /project/components/wolfssl/wolfssl/internal.h:28,
                 from /project/components/wolfssl/src/tls13.c:115:
/project/components/wolfssl/wolfssl/wolfcrypt/port/Espressif/esp32-crypt.h:622:18: fatal error: esp32/rom/aes.h: No such file or directory
  622 |         #include "esp32/rom/aes.h"
      |                  ^~~~~~~~~~~~~~~~~
compilation terminated.
[785/931] Building C object esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/wolfio.c.obj
FAILED: esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/wolfio.c.obj 
ccache /opt/esp/tools/riscv32-esp-elf/esp-14.2.0_20240906/riscv32-esp-elf/bin/riscv32-esp-elf-gcc -DESP_PLATFORM -DIDF_VER=\"v5.4-dev-4375-gf420609c33\" -DLIBWOLFSSL_VERSION_GIT_BRANCH=\"main\" -DLIBWOLFSSL_VERSION_GIT_HASH=\"f72f5e34e5fe67a3b49b74aae68dcd056b45d5eb\" -DLIBWOLFSSL_VERSION_GIT_HASH_DATE="\"'Sat Oct 19 10:14:52 2024 +0200'\"" -DLIBWOLFSSL_VERSION_GIT_ORIGIN=\"https://Achim%20Pieters@github.com/AchimPieters/esp32-homekit-demo.git\" -DLIBWOLFSSL_VERSION_GIT_SHORT_HASH=\"f72f5e3\" -DLIBWOLFSSL_VERSION_WOLFSSL_ROOT=\"/project/components/wolfssl\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -DWOLFSSL_USER_SETTINGS_DIR=\"//project//examples//led//components//wolfssl//include//user_settings.h\" -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -I/project/examples/led/build/config -I/project/components/wolfssl/include -I/project/components/wolfssl -I/project/components/wolfssl/wolfssl -I/project/components/wolfssl/wolfssl/wolfcrypt -I/project/components/wolfssl/wolfssl/wolfcrypt/port/Espressif -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/include/freertos -I/opt/esp/idf/components/newlib/platform_include -I/opt/esp/idf/components/freertos/config/include -I/opt/esp/idf/components/freertos/config/include/freertos -I/opt/esp/idf/components/freertos/config/riscv/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include/freertos -I/opt/esp/idf/components/freertos/esp_additions/include -I/opt/esp/idf/components/esp_hw_support/include -I/opt/esp/idf/components/esp_hw_support/include/soc -I/opt/esp/idf/components/esp_hw_support/include/soc/esp32c3 -I/opt/esp/idf/components/esp_hw_support/dma/include -I/opt/esp/idf/components/esp_hw_support/ldo/include -I/opt/esp/idf/components/esp_hw_support/debug_probe/include -I/opt/esp/idf/components/esp_hw_support/port/esp32c3/. -I/opt/esp/idf/components/esp_hw_support/port/esp32c3/include -I/opt/esp/idf/components/heap/include -I/opt/esp/idf/components/heap/tlsf -I/opt/esp/idf/components/log/include -I/opt/esp/idf/components/soc/include -I/opt/esp/idf/components/soc/esp32c3 -I/opt/esp/idf/components/soc/esp32c3/include -I/opt/esp/idf/components/soc/esp32c3/register -I/opt/esp/idf/components/hal/platform_port/include -I/opt/esp/idf/components/hal/esp32c3/include -I/opt/esp/idf/components/hal/include -I/opt/esp/idf/components/esp_rom/include -I/opt/esp/idf/components/esp_rom/esp32c3/include -I/opt/esp/idf/components/esp_rom/esp32c3/include/esp32c3 -I/opt/esp/idf/components/esp_rom/esp32c3 -I/opt/esp/idf/components/esp_common/include -I/opt/esp/idf/components/esp_system/include -I/opt/esp/idf/components/esp_system/port/soc -I/opt/esp/idf/components/esp_system/port/include/riscv -I/opt/esp/idf/components/esp_system/port/include/private -I/opt/esp/idf/components/riscv/include -I/opt/esp/idf/components/lwip/include -I/opt/esp/idf/components/lwip/include/apps -I/opt/esp/idf/components/lwip/include/apps/sntp -I/opt/esp/idf/components/lwip/lwip/src/include -I/opt/esp/idf/components/lwip/port/include -I/opt/esp/idf/components/lwip/port/freertos/include -I/opt/esp/idf/components/lwip/port/esp32xx/include -I/opt/esp/idf/components/lwip/port/esp32xx/include/arch -I/opt/esp/idf/components/lwip/port/esp32xx/include/sys -march=rv32imc_zicsr_zifencei  -DWOLFSSL_USER_SETTINGS -DWOLFSSL_CMAKE_SYSTEM_NAME_LINUX -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-error=extra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -nostartfiles -Os -freorder-blocks -fmacro-prefix-map=/project/examples/led=. -fmacro-prefix-map=/opt/esp/idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -std=gnu17 -Wno-old-style-declaration -MD -MT esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/wolfio.c.obj -MF esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/wolfio.c.obj.d -o esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/src/wolfio.c.obj -c /project/components/wolfssl/src/wolfio.c
In file included from /project/components/wolfssl/wolfssl/wolfcrypt/sha256.h:85,
                 from /project/components/wolfssl/wolfssl/wolfcrypt/random.h:109,
                 from /project/components/wolfssl/wolfssl/wolfcrypt/asn_public.h:36,
                 from /project/components/wolfssl/wolfssl/ssl.h:35,
                 from /project/components/wolfssl/wolfssl/internal.h:28,
                 from /project/components/wolfssl/src/wolfio.c:40:
/project/components/wolfssl/wolfssl/wolfcrypt/port/Espressif/esp32-crypt.h:622:18: fatal error: esp32/rom/aes.h: No such file or directory
  622 |         #include "esp32/rom/aes.h"
      |                  ^~~~~~~~~~~~~~~~~
compilation terminated.
[786/931] Building C object esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/wolfcrypt/src/aes.c.obj
FAILED: esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/wolfcrypt/src/aes.c.obj 
ccache /opt/esp/tools/riscv32-esp-elf/esp-14.2.0_20240906/riscv32-esp-elf/bin/riscv32-esp-elf-gcc -DESP_PLATFORM -DIDF_VER=\"v5.4-dev-4375-gf420609c33\" -DLIBWOLFSSL_VERSION_GIT_BRANCH=\"main\" -DLIBWOLFSSL_VERSION_GIT_HASH=\"f72f5e34e5fe67a3b49b74aae68dcd056b45d5eb\" -DLIBWOLFSSL_VERSION_GIT_HASH_DATE="\"'Sat Oct 19 10:14:52 2024 +0200'\"" -DLIBWOLFSSL_VERSION_GIT_ORIGIN=\"https://Achim%20Pieters@github.com/AchimPieters/esp32-homekit-demo.git\" -DLIBWOLFSSL_VERSION_GIT_SHORT_HASH=\"f72f5e3\" -DLIBWOLFSSL_VERSION_WOLFSSL_ROOT=\"/project/components/wolfssl\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -DWOLFSSL_USER_SETTINGS_DIR=\"//project//examples//led//components//wolfssl//include//user_settings.h\" -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -I/project/examples/led/build/config -I/project/components/wolfssl/include -I/project/components/wolfssl -I/project/components/wolfssl/wolfssl -I/project/components/wolfssl/wolfssl/wolfcrypt -I/project/components/wolfssl/wolfssl/wolfcrypt/port/Espressif -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/include/freertos -I/opt/esp/idf/components/newlib/platform_include -I/opt/esp/idf/components/freertos/config/include -I/opt/esp/idf/components/freertos/config/include/freertos -I/opt/esp/idf/components/freertos/config/riscv/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include/freertos -I/opt/esp/idf/components/freertos/esp_additions/include -I/opt/esp/idf/components/esp_hw_support/include -I/opt/esp/idf/components/esp_hw_support/include/soc -I/opt/esp/idf/components/esp_hw_support/include/soc/esp32c3 -I/opt/esp/idf/components/esp_hw_support/dma/include -I/opt/esp/idf/components/esp_hw_support/ldo/include -I/opt/esp/idf/components/esp_hw_support/debug_probe/include -I/opt/esp/idf/components/esp_hw_support/port/esp32c3/. -I/opt/esp/idf/components/esp_hw_support/port/esp32c3/include -I/opt/esp/idf/components/heap/include -I/opt/esp/idf/components/heap/tlsf -I/opt/esp/idf/components/log/include -I/opt/esp/idf/components/soc/include -I/opt/esp/idf/components/soc/esp32c3 -I/opt/esp/idf/components/soc/esp32c3/include -I/opt/esp/idf/components/soc/esp32c3/register -I/opt/esp/idf/components/hal/platform_port/include -I/opt/esp/idf/components/hal/esp32c3/include -I/opt/esp/idf/components/hal/include -I/opt/esp/idf/components/esp_rom/include -I/opt/esp/idf/components/esp_rom/esp32c3/include -I/opt/esp/idf/components/esp_rom/esp32c3/include/esp32c3 -I/opt/esp/idf/components/esp_rom/esp32c3 -I/opt/esp/idf/components/esp_common/include -I/opt/esp/idf/components/esp_system/include -I/opt/esp/idf/components/esp_system/port/soc -I/opt/esp/idf/components/esp_system/port/include/riscv -I/opt/esp/idf/components/esp_system/port/include/private -I/opt/esp/idf/components/riscv/include -I/opt/esp/idf/components/lwip/include -I/opt/esp/idf/components/lwip/include/apps -I/opt/esp/idf/components/lwip/include/apps/sntp -I/opt/esp/idf/components/lwip/lwip/src/include -I/opt/esp/idf/components/lwip/port/include -I/opt/esp/idf/components/lwip/port/freertos/include -I/opt/esp/idf/components/lwip/port/esp32xx/include -I/opt/esp/idf/components/lwip/port/esp32xx/include/arch -I/opt/esp/idf/components/lwip/port/esp32xx/include/sys -march=rv32imc_zicsr_zifencei  -DWOLFSSL_USER_SETTINGS -DWOLFSSL_CMAKE_SYSTEM_NAME_LINUX -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-error=extra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -nostartfiles -Os -freorder-blocks -fmacro-prefix-map=/project/examples/led=. -fmacro-prefix-map=/opt/esp/idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -std=gnu17 -Wno-old-style-declaration -MD -MT esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/wolfcrypt/src/aes.c.obj -MF esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/wolfcrypt/src/aes.c.obj.d -o esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/wolfcrypt/src/aes.c.obj -c /project/components/wolfssl/wolfcrypt/src/aes.c
In file included from /project/components/wolfssl/wolfssl/wolfcrypt/sha256.h:85,
                 from /project/components/wolfssl/wolfssl/wolfcrypt/random.h:109,
                 from /project/components/wolfssl/wolfssl/wolfcrypt/aes.h:79,
                 from /project/components/wolfssl/wolfcrypt/src/aes.c:52:
/project/components/wolfssl/wolfssl/wolfcrypt/port/Espressif/esp32-crypt.h:622:18: fatal error: esp32/rom/aes.h: No such file or directory
  622 |         #include "esp32/rom/aes.h"
      |                  ^~~~~~~~~~~~~~~~~
compilation terminated.
[787/931] Building C object esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/wolfcrypt/src/asn.c.obj
FAILED: esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/wolfcrypt/src/asn.c.obj 
ccache /opt/esp/tools/riscv32-esp-elf/esp-14.2.0_20240906/riscv32-esp-elf/bin/riscv32-esp-elf-gcc -DESP_PLATFORM -DIDF_VER=\"v5.4-dev-4375-gf420609c33\" -DLIBWOLFSSL_VERSION_GIT_BRANCH=\"main\" -DLIBWOLFSSL_VERSION_GIT_HASH=\"f72f5e34e5fe67a3b49b74aae68dcd056b45d5eb\" -DLIBWOLFSSL_VERSION_GIT_HASH_DATE="\"'Sat Oct 19 10:14:52 2024 +0200'\"" -DLIBWOLFSSL_VERSION_GIT_ORIGIN=\"https://Achim%20Pieters@github.com/AchimPieters/esp32-homekit-demo.git\" -DLIBWOLFSSL_VERSION_GIT_SHORT_HASH=\"f72f5e3\" -DLIBWOLFSSL_VERSION_WOLFSSL_ROOT=\"/project/components/wolfssl\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -DWOLFSSL_USER_SETTINGS_DIR=\"//project//examples//led//components//wolfssl//include//user_settings.h\" -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -I/project/examples/led/build/config -I/project/components/wolfssl/include -I/project/components/wolfssl -I/project/components/wolfssl/wolfssl -I/project/components/wolfssl/wolfssl/wolfcrypt -I/project/components/wolfssl/wolfssl/wolfcrypt/port/Espressif -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/include/freertos -I/opt/esp/idf/components/newlib/platform_include -I/opt/esp/idf/components/freertos/config/include -I/opt/esp/idf/components/freertos/config/include/freertos -I/opt/esp/idf/components/freertos/config/riscv/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include/freertos -I/opt/esp/idf/components/freertos/esp_additions/include -I/opt/esp/idf/components/esp_hw_support/include -I/opt/esp/idf/components/esp_hw_support/include/soc -I/opt/esp/idf/components/esp_hw_support/include/soc/esp32c3 -I/opt/esp/idf/components/esp_hw_support/dma/include -I/opt/esp/idf/components/esp_hw_support/ldo/include -I/opt/esp/idf/components/esp_hw_support/debug_probe/include -I/opt/esp/idf/components/esp_hw_support/port/esp32c3/. -I/opt/esp/idf/components/esp_hw_support/port/esp32c3/include -I/opt/esp/idf/components/heap/include -I/opt/esp/idf/components/heap/tlsf -I/opt/esp/idf/components/log/include -I/opt/esp/idf/components/soc/include -I/opt/esp/idf/components/soc/esp32c3 -I/opt/esp/idf/components/soc/esp32c3/include -I/opt/esp/idf/components/soc/esp32c3/register -I/opt/esp/idf/components/hal/platform_port/include -I/opt/esp/idf/components/hal/esp32c3/include -I/opt/esp/idf/components/hal/include -I/opt/esp/idf/components/esp_rom/include -I/opt/esp/idf/components/esp_rom/esp32c3/include -I/opt/esp/idf/components/esp_rom/esp32c3/include/esp32c3 -I/opt/esp/idf/components/esp_rom/esp32c3 -I/opt/esp/idf/components/esp_common/include -I/opt/esp/idf/components/esp_system/include -I/opt/esp/idf/components/esp_system/port/soc -I/opt/esp/idf/components/esp_system/port/include/riscv -I/opt/esp/idf/components/esp_system/port/include/private -I/opt/esp/idf/components/riscv/include -I/opt/esp/idf/components/lwip/include -I/opt/esp/idf/components/lwip/include/apps -I/opt/esp/idf/components/lwip/include/apps/sntp -I/opt/esp/idf/components/lwip/lwip/src/include -I/opt/esp/idf/components/lwip/port/include -I/opt/esp/idf/components/lwip/port/freertos/include -I/opt/esp/idf/components/lwip/port/esp32xx/include -I/opt/esp/idf/components/lwip/port/esp32xx/include/arch -I/opt/esp/idf/components/lwip/port/esp32xx/include/sys -march=rv32imc_zicsr_zifencei  -DWOLFSSL_USER_SETTINGS -DWOLFSSL_CMAKE_SYSTEM_NAME_LINUX -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-error=extra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -nostartfiles -Os -freorder-blocks -fmacro-prefix-map=/project/examples/led=. -fmacro-prefix-map=/opt/esp/idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -std=gnu17 -Wno-old-style-declaration -MD -MT esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/wolfcrypt/src/asn.c.obj -MF esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/wolfcrypt/src/asn.c.obj.d -o esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/wolfcrypt/src/asn.c.obj -c /project/components/wolfssl/wolfcrypt/src/asn.c
In file included from /project/components/wolfssl/wolfssl/wolfcrypt/sha256.h:85,
                 from /project/components/wolfssl/wolfssl/wolfcrypt/random.h:109,
                 from /project/components/wolfssl/wolfssl/wolfcrypt/tfm.h:47,
                 from /project/components/wolfssl/wolfssl/wolfcrypt/wolfmath.h:44,
                 from /project/components/wolfssl/wolfssl/wolfcrypt/rsa.h:61,
                 from /project/components/wolfssl/wolfcrypt/src/asn.c:107:
/project/components/wolfssl/wolfssl/wolfcrypt/port/Espressif/esp32-crypt.h:622:18: fatal error: esp32/rom/aes.h: No such file or directory
  622 |         #include "esp32/rom/aes.h"
      |                  ^~~~~~~~~~~~~~~~~
compilation terminated.
[789/931] Building C object esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/wolfcrypt/src/chacha.c.obj
FAILED: esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/wolfcrypt/src/chacha.c.obj 
ccache /opt/esp/tools/riscv32-esp-elf/esp-14.2.0_20240906/riscv32-esp-elf/bin/riscv32-esp-elf-gcc -DESP_PLATFORM -DIDF_VER=\"v5.4-dev-4375-gf420609c33\" -DLIBWOLFSSL_VERSION_GIT_BRANCH=\"main\" -DLIBWOLFSSL_VERSION_GIT_HASH=\"f72f5e34e5fe67a3b49b74aae68dcd056b45d5eb\" -DLIBWOLFSSL_VERSION_GIT_HASH_DATE="\"'Sat Oct 19 10:14:52 2024 +0200'\"" -DLIBWOLFSSL_VERSION_GIT_ORIGIN=\"https://Achim%20Pieters@github.com/AchimPieters/esp32-homekit-demo.git\" -DLIBWOLFSSL_VERSION_GIT_SHORT_HASH=\"f72f5e3\" -DLIBWOLFSSL_VERSION_WOLFSSL_ROOT=\"/project/components/wolfssl\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -DWOLFSSL_USER_SETTINGS_DIR=\"//project//examples//led//components//wolfssl//include//user_settings.h\" -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -I/project/examples/led/build/config -I/project/components/wolfssl/include -I/project/components/wolfssl -I/project/components/wolfssl/wolfssl -I/project/components/wolfssl/wolfssl/wolfcrypt -I/project/components/wolfssl/wolfssl/wolfcrypt/port/Espressif -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/include/freertos -I/opt/esp/idf/components/newlib/platform_include -I/opt/esp/idf/components/freertos/config/include -I/opt/esp/idf/components/freertos/config/include/freertos -I/opt/esp/idf/components/freertos/config/riscv/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include/freertos -I/opt/esp/idf/components/freertos/esp_additions/include -I/opt/esp/idf/components/esp_hw_support/include -I/opt/esp/idf/components/esp_hw_support/include/soc -I/opt/esp/idf/components/esp_hw_support/include/soc/esp32c3 -I/opt/esp/idf/components/esp_hw_support/dma/include -I/opt/esp/idf/components/esp_hw_support/ldo/include -I/opt/esp/idf/components/esp_hw_support/debug_probe/include -I/opt/esp/idf/components/esp_hw_support/port/esp32c3/. -I/opt/esp/idf/components/esp_hw_support/port/esp32c3/include -I/opt/esp/idf/components/heap/include -I/opt/esp/idf/components/heap/tlsf -I/opt/esp/idf/components/log/include -I/opt/esp/idf/components/soc/include -I/opt/esp/idf/components/soc/esp32c3 -I/opt/esp/idf/components/soc/esp32c3/include -I/opt/esp/idf/components/soc/esp32c3/register -I/opt/esp/idf/components/hal/platform_port/include -I/opt/esp/idf/components/hal/esp32c3/include -I/opt/esp/idf/components/hal/include -I/opt/esp/idf/components/esp_rom/include -I/opt/esp/idf/components/esp_rom/esp32c3/include -I/opt/esp/idf/components/esp_rom/esp32c3/include/esp32c3 -I/opt/esp/idf/components/esp_rom/esp32c3 -I/opt/esp/idf/components/esp_common/include -I/opt/esp/idf/components/esp_system/include -I/opt/esp/idf/components/esp_system/port/soc -I/opt/esp/idf/components/esp_system/port/include/riscv -I/opt/esp/idf/components/esp_system/port/include/private -I/opt/esp/idf/components/riscv/include -I/opt/esp/idf/components/lwip/include -I/opt/esp/idf/components/lwip/include/apps -I/opt/esp/idf/components/lwip/include/apps/sntp -I/opt/esp/idf/components/lwip/lwip/src/include -I/opt/esp/idf/components/lwip/port/include -I/opt/esp/idf/components/lwip/port/freertos/include -I/opt/esp/idf/components/lwip/port/esp32xx/include -I/opt/esp/idf/components/lwip/port/esp32xx/include/arch -I/opt/esp/idf/components/lwip/port/esp32xx/include/sys -march=rv32imc_zicsr_zifencei  -DWOLFSSL_USER_SETTINGS -DWOLFSSL_CMAKE_SYSTEM_NAME_LINUX -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-error=extra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -nostartfiles -Os -freorder-blocks -fmacro-prefix-map=/project/examples/led=. -fmacro-prefix-map=/opt/esp/idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -std=gnu17 -Wno-old-style-declaration -MD -MT esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/wolfcrypt/src/chacha.c.obj -MF esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/wolfcrypt/src/chacha.c.obj.d -o esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/wolfcrypt/src/chacha.c.obj -c /project/components/wolfssl/wolfcrypt/src/chacha.c
In file included from /project/components/wolfssl/wolfssl/wolfcrypt/sha.h:74,
                 from /project/components/wolfssl/wolfssl/wolfcrypt/hash.h:35,
                 from /project/components/wolfssl/wolfcrypt/src/misc.c:981,
                 from /project/components/wolfssl/wolfcrypt/src/chacha.c:52:
/project/components/wolfssl/wolfssl/wolfcrypt/port/Espressif/esp32-crypt.h:622:18: fatal error: esp32/rom/aes.h: No such file or directory
  622 |         #include "esp32/rom/aes.h"
      |                  ^~~~~~~~~~~~~~~~~
compilation terminated.
[790/931] Building C object esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/wolfcrypt/src/chacha20_poly1305.c.obj
FAILED: esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/wolfcrypt/src/chacha20_poly1305.c.obj 
ccache /opt/esp/tools/riscv32-esp-elf/esp-14.2.0_20240906/riscv32-esp-elf/bin/riscv32-esp-elf-gcc -DESP_PLATFORM -DIDF_VER=\"v5.4-dev-4375-gf420609c33\" -DLIBWOLFSSL_VERSION_GIT_BRANCH=\"main\" -DLIBWOLFSSL_VERSION_GIT_HASH=\"f72f5e34e5fe67a3b49b74aae68dcd056b45d5eb\" -DLIBWOLFSSL_VERSION_GIT_HASH_DATE="\"'Sat Oct 19 10:14:52 2024 +0200'\"" -DLIBWOLFSSL_VERSION_GIT_ORIGIN=\"https://Achim%20Pieters@github.com/AchimPieters/esp32-homekit-demo.git\" -DLIBWOLFSSL_VERSION_GIT_SHORT_HASH=\"f72f5e3\" -DLIBWOLFSSL_VERSION_WOLFSSL_ROOT=\"/project/components/wolfssl\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -DWOLFSSL_USER_SETTINGS_DIR=\"//project//examples//led//components//wolfssl//include//user_settings.h\" -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -I/project/examples/led/build/config -I/project/components/wolfssl/include -I/project/components/wolfssl -I/project/components/wolfssl/wolfssl -I/project/components/wolfssl/wolfssl/wolfcrypt -I/project/components/wolfssl/wolfssl/wolfcrypt/port/Espressif -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/include/freertos -I/opt/esp/idf/components/newlib/platform_include -I/opt/esp/idf/components/freertos/config/include -I/opt/esp/idf/components/freertos/config/include/freertos -I/opt/esp/idf/components/freertos/config/riscv/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include/freertos -I/opt/esp/idf/components/freertos/esp_additions/include -I/opt/esp/idf/components/esp_hw_support/include -I/opt/esp/idf/components/esp_hw_support/include/soc -I/opt/esp/idf/components/esp_hw_support/include/soc/esp32c3 -I/opt/esp/idf/components/esp_hw_support/dma/include -I/opt/esp/idf/components/esp_hw_support/ldo/include -I/opt/esp/idf/components/esp_hw_support/debug_probe/include -I/opt/esp/idf/components/esp_hw_support/port/esp32c3/. -I/opt/esp/idf/components/esp_hw_support/port/esp32c3/include -I/opt/esp/idf/components/heap/include -I/opt/esp/idf/components/heap/tlsf -I/opt/esp/idf/components/log/include -I/opt/esp/idf/components/soc/include -I/opt/esp/idf/components/soc/esp32c3 -I/opt/esp/idf/components/soc/esp32c3/include -I/opt/esp/idf/components/soc/esp32c3/register -I/opt/esp/idf/components/hal/platform_port/include -I/opt/esp/idf/components/hal/esp32c3/include -I/opt/esp/idf/components/hal/include -I/opt/esp/idf/components/esp_rom/include -I/opt/esp/idf/components/esp_rom/esp32c3/include -I/opt/esp/idf/components/esp_rom/esp32c3/include/esp32c3 -I/opt/esp/idf/components/esp_rom/esp32c3 -I/opt/esp/idf/components/esp_common/include -I/opt/esp/idf/components/esp_system/include -I/opt/esp/idf/components/esp_system/port/soc -I/opt/esp/idf/components/esp_system/port/include/riscv -I/opt/esp/idf/components/esp_system/port/include/private -I/opt/esp/idf/components/riscv/include -I/opt/esp/idf/components/lwip/include -I/opt/esp/idf/components/lwip/include/apps -I/opt/esp/idf/components/lwip/include/apps/sntp -I/opt/esp/idf/components/lwip/lwip/src/include -I/opt/esp/idf/components/lwip/port/include -I/opt/esp/idf/components/lwip/port/freertos/include -I/opt/esp/idf/components/lwip/port/esp32xx/include -I/opt/esp/idf/components/lwip/port/esp32xx/include/arch -I/opt/esp/idf/components/lwip/port/esp32xx/include/sys -march=rv32imc_zicsr_zifencei  -DWOLFSSL_USER_SETTINGS -DWOLFSSL_CMAKE_SYSTEM_NAME_LINUX -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-error=extra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -nostartfiles -Os -freorder-blocks -fmacro-prefix-map=/project/examples/led=. -fmacro-prefix-map=/opt/esp/idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -std=gnu17 -Wno-old-style-declaration -MD -MT esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/wolfcrypt/src/chacha20_poly1305.c.obj -MF esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/wolfcrypt/src/chacha20_poly1305.c.obj.d -o esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/wolfcrypt/src/chacha20_poly1305.c.obj -c /project/components/wolfssl/wolfcrypt/src/chacha20_poly1305.c
In file included from /project/components/wolfssl/wolfssl/wolfcrypt/sha.h:74,
                 from /project/components/wolfssl/wolfssl/wolfcrypt/hash.h:35,
                 from /project/components/wolfssl/wolfcrypt/src/misc.c:981,
                 from /project/components/wolfssl/wolfcrypt/src/chacha20_poly1305.c:46:
/project/components/wolfssl/wolfssl/wolfcrypt/port/Espressif/esp32-crypt.h:622:18: fatal error: esp32/rom/aes.h: No such file or directory
  622 |         #include "esp32/rom/aes.h"
      |                  ^~~~~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
Missing "esp32/rom/aes.h" file name found in the following component(s): esp_rom(/opt/esp/idf/components/esp_rom/esp32/include/esp32/rom/aes.h). Maybe one of the components needs to add the missing header directory to INCLUDE_DIRS of idf_component_register call in CMakeLists.txt.
ninja failed with exit code 1, output of the command is in the /project/examples/led/build/log/idf_py_stderr_output_31830 and /project/examples/led/build/log/idf_py_stdout_output_31830
root@46dbefcae5b0:/project/examples/led#
@AchimPieters
Copy link
Author

@gojimmypi help!

@gojimmypi
Copy link
Contributor

Hi @AchimPieters and thank you for reaching out.

We had your HomeKit working well with wolfSSL no? I didn't immediately see recent changes prior to this issue. Any insight as to what you think might be the root cause?

The include files missing esp32/rom/aes.h are in the ESP-IDF in the components/esp_rom.

First thing that comes to mind is the chipset selection. I am certain the esp32c3 is fully supported by wolfSSL, but that might be something to check in your user settings or other files that might adjust the visibility of macros).

Don't forget to include wolfssl/wolfcrypt/settings.h in every source file that uses wolfSSL.

Important also ensure WOLFSSL_USER_SETTINGS is defined. This alone could trip up a proper wolfSSL ESP-IDF compile.

I see you are still using a local copy of wolfSSL. Keep an eye on #8251 that will be the updated source code used for recent release 5.7.4 wolfSSL Espressif Managed Component. This release has considerably more flexibility with menuconfig (Kconfig) settings.

Coincidentally, that 8251 PR also addresses a concern where Managed Component files are not found: they actually go missing after being deleted when the build system detects them as not used. It would seem unlikely but not impossible that you might have something similar going on.

I need to wrap up a few things, but I'll take a look at this as soon as I can.

Cheers

@AchimPieters
Copy link
Author

@gojimmypi Update:

Tried the 5.7.4-preview1e as a managed component:

dependencies:
  idf:
    version: ">=5.0"
  espressif/mdns:
    version: "1.4.2"
  wolfssl/wolfssl:
    version: "5.7.4-preview1e"

Got the same error:

/project/examples/led/managed_components/wolfssl__wolfssl/wolfssl/wolfcrypt/port/Espressif/esp32-crypt.h:723:18: fatal error: esp32/rom/aes.h: No such file or directory
  723 |         #include "esp32/rom/aes.h"
      |                  ^~~~~~~~~~~~~~~~~
compilation terminated.
[777/915] Building C object esp-idf/wo...wolfssl.dir/wolfcrypt/src/chacha.c.obj
ninja: build stopped: subcommand failed.
Missing "esp32/rom/aes.h" file name found in the following component(s): esp_rom(/opt/esp/idf/components/esp_rom/esp32/include/esp32/rom/aes.h). Maybe one of the components needs to add the missing header directory to INCLUDE_DIRS of idf_component_register call in CMakeLists.txt.
ninja failed with exit code 1, output of the command is in the /project/examples/led/build/log/idf_py_stderr_output_6498 and /project/examples/led/build/log/idf_py_stdout_output_6498
root@d4213c0f313f:/project/examples/led# 

The tried idf.py menuconfig -> component config -> wolfSSL-> Disable all ESP32 AES Hardware Acceleration, without succes.

@AchimPieters
Copy link
Author

AchimPieters commented Dec 11, 2024

@gojimmypi Tried to compile wolfssl_benchmark but got the same error:

_benchmark/managed_components/wolfssl__wolfssl/wolfcrypt/src/asn.c
In file included from /project/examples/led/managed_components/wolfssl__wolfssl/examples/wolfssl_benchmark/managed_components/wolfssl__wolfssl/wolfssl/wolfcrypt/sha256.h:85,
                 from /project/examples/led/managed_components/wolfssl__wolfssl/examples/wolfssl_benchmark/managed_components/wolfssl__wolfssl/wolfssl/wolfcrypt/random.h:109,
                 from /project/examples/led/managed_components/wolfssl__wolfssl/examples/wolfssl_benchmark/managed_components/wolfssl__wolfssl/wolfssl/wolfcrypt/tfm.h:48,
                 from /project/examples/led/managed_components/wolfssl__wolfssl/examples/wolfssl_benchmark/managed_components/wolfssl__wolfssl/wolfssl/wolfcrypt/wolfmath.h:44,
                 from /project/examples/led/managed_components/wolfssl__wolfssl/examples/wolfssl_benchmark/managed_components/wolfssl__wolfssl/wolfssl/wolfcrypt/rsa.h:61,
                 from /project/examples/led/managed_components/wolfssl__wolfssl/examples/wolfssl_benchmark/managed_components/wolfssl__wolfssl/wolfcrypt/src/asn.c:112:
/project/examples/led/managed_components/wolfssl__wolfssl/examples/wolfssl_benchmark/managed_components/wolfssl__wolfssl/wolfssl/wolfcrypt/port/Espressif/esp32-crypt.h:723:18: fatal error: esp32/rom/aes.h: No such file or directory
  723 |         #include "esp32/rom/aes.h"
      |                  ^~~~~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
Missing "esp32/rom/aes.h" file name found in the following component(s): esp_rom(/opt/esp/idf/components/esp_rom/esp32/include/esp32/rom/aes.h). Maybe one of the components needs to add the missing header directory to INCLUDE_DIRS of idf_component_register call in CMakeLists.txt.
ninja failed with exit code 1, output of the command is in the /project/examples/led/managed_components/wolfssl__wolfssl/examples/wolfssl_benchmark/build/log/idf_py_stderr_output_18782 and /project/examples/led/managed_components/wolfssl__wolfssl/examples/wolfssl_benchmark/build/log/idf_py_stdout_output_18782
root@d4213c0f313f:/project/examples/led/managed_components/wolfssl__wolfssl/examples/wolfssl_benchmark# idf.py build

when compiling for an ESP32 everting works. Above is compiling when selecting an ESP32C3

@gojimmypi
Copy link
Contributor

Hello @AchimPieters and thank you so much for taking the latest wolfSSL Managed Component for a test drive!

Tried to compile wolfssl_benchmark but got the same error:

ok, so that certainly got my attention, as the example apps need to work properly.

I tested this on my ESP32-C3 and it successfully fetched the wolfssl_benchmark preview example version 5.7.4-preview1e, flashed, and ran:

WRK_IDF_PATH=/mnt/c/SysGCC/esp32/esp-idf/v5.2
cd $WRK_IDF_PATH
. ./export.sh
cd /mnt/c/test/component
idf.py create-project-from-example "wolfssl/wolfssl^5.7.4-preview1e:wolfssl_benchmark"
cd wolfssl_benchmark
idf.py set-target esp32c3
idf.py -p /dev/ttyS44 -b 115200 build flash monitor

If you encountered the above error in a Docker container, please try using the standard ESP-IDF the command-line to eliminate any internal configuration issues.

Also: I too, was previously seeing some oddities in the managed components. It was not until I opened espressif/idf-component-manager#78 that I learned that the the component manager itself needs to be kept updated. It is a manual process, apparently completely separate from the ESP-IDF versions. I had a fairly old version and the update certainly helped.

Here's the text presented when opening an idf-component-manager issue:

"Check the version of the Component manager. Run python -m idf_component_manager --help in the same terminal where you run idf.py to get the version. The output will have a line like IDF component manager v1.0.0. If you don't see a version in the output or the version is less than on stated on the Component manager PyPI it means that your component manager installation is outdated. Please run pip install -U idf-component-manager to update to the most recent version and try again before reporting the issue."

Could you please give that a try and let me know your results? Any additional details on the steps needed to reproduce the error you encountered will be appreciated.

Cheers.

@gojimmypi
Copy link
Contributor

Hi @AchimPieters - additional details:

Please see my #8251 comment. We cannot use EXTRA_COMPONENT_DIRS in your CmakeLists.txt when using managed components.

I think that might also help with the mdns error such as that in AchimPieters/esp32-homekit-demo#14 and that I encountered today:

image

@gojimmypi
Copy link
Contributor

gojimmypi commented Dec 11, 2024

This fails as noted in AchimPieters/esp32-homekit-demo#15:

git clone --recurse-submodules https://github.com/AchimPieters/esp32-homekit-demo.git

The output:

$ git clone --recurse-submodules https://github.com/AchimPieters/esp32-homekit-demo.git
Cloning into 'esp32-homekit-demo'...
remote: Enumerating objects: 6747, done.
remote: Counting objects: 100% (1539/1539), done.
remote: Compressing objects: 100% (747/747), done.
remote: Total 6747 (delta 866), reused 1253 (delta 697), pack-reused 5208 (from 1)
Receiving objects: 100% (6747/6747), 44.07 MiB | 8.55 MiB/s, done.
Resolving deltas: 100% (3220/3220), done.
Submodule 'components/esp32-button' (https://AchimPieters@github.com/AchimPieters/esp32-button.git) registered for path 'components/esp32-button'
Submodule 'components/esp32-library' (https://AchimPieters@github.com/UncleRus/esp-idf-lib.git) registered for path 'components/esp32-library'
Submodule 'components/homekit' (https://AchimPieters@github.com/AchimPieters/esp32-homekit.git) registered for path 'components/homekit'
Submodule 'components/ws2811' (https://AchimPieters@github.com/AchimPieters/esp32-ws2811.git) registered for path 'components/ws2811'
Cloning into '/mnt/c/test/esp32-homekit-demo/components/esp32-button'...
remote: Enumerating objects: 45, done.
remote: Counting objects: 100% (45/45), done.
remote: Compressing objects: 100% (41/41), done.
remote: Total 45 (delta 18), reused 19 (delta 3), pack-reused 0 (from 0)
Receiving objects: 100% (45/45), 105.84 KiB | 1.60 MiB/s, done.
Resolving deltas: 100% (18/18), done.
Cloning into '/mnt/c/test/esp32-homekit-demo/components/esp32-library'...
remote: Enumerating objects: 13446, done.
remote: Counting objects: 100% (2098/2098), done.
remote: Compressing objects: 100% (453/453), done.
remote: Total 13446 (delta 1677), reused 1835 (delta 1593), pack-reused 11348 (from 1)
Receiving objects: 100% (13446/13446), 4.77 MiB | 3.36 MiB/s, done.
Resolving deltas: 100% (9210/9210), done.
Cloning into '/mnt/c/test/esp32-homekit-demo/components/homekit'...
remote: Enumerating objects: 308, done.
remote: Counting objects: 100% (92/92), done.
remote: Compressing objects: 100% (39/39), done.
remote: Total 308 (delta 78), reused 65 (delta 53), pack-reused 216 (from 1)
Receiving objects: 100% (308/308), 420.08 KiB | 1.86 MiB/s, done.
Resolving deltas: 100% (180/180), done.
Cloning into '/mnt/c/test/esp32-homekit-demo/components/ws2811'...
remote: Enumerating objects: 114, done.
remote: Counting objects: 100% (114/114), done.
remote: Compressing objects: 100% (97/97), done.
remote: Total 114 (delta 48), reused 17 (delta 5), pack-reused 0 (from 0)
Receiving objects: 100% (114/114), 196.87 KiB | 1.54 MiB/s, done.
Resolving deltas: 100% (48/48), done.
fatal: remote error: upload-pack: not our ref 4ba1c79ad8b8da7c4a5f686f015b7445102516e7
fatal: Fetched in submodule path 'components/esp32-button', but it did not contain 4ba1c79ad8b8da7c4a5f686f015b7445102516e7. Direct fetching of that commit failed.
fatal:

Using my esp32-homekit-demo fork, instead with everything updated except for those submodules:

WRK_IDF_PATH=/mnt/c/SysGCC/esp32/esp-idf/v5.2
cd $WRK_IDF_PATH
. ./export.sh
cd /mnt/c/workspace/esp32-homekit-demo-gojimmypi-pr/examples/led
idf.py set-target esp32c3
idf.py build

Note that I needed to apply these changes as suggested in AchimPieters/esp32-homekit-demo#14 (comment)

idf.py add-dependency espressif/mdns
idf.py build

... and I was otherwise able to compile the LED example without the error described in this issue.

Note that the copy of wolfssl that you have is still from the prior wolfSSL release, 5.7.2.

I'd like to help with the error you are encountering. I need to first compile it with the latest code and see then error when not using docker.

@AchimPieters Can you please fix the submodule problem on your repo? Thanks.

@AchimPieters
Copy link
Author

@gojimmypi solved

@gojimmypi
Copy link
Contributor

Hi @AchimPieters

solved

Are you referring to AchimPieters/esp32-homekit-demo#15 or this issue or both?

Upon resolution of that issue, I am able to build your latest LED example without error (including no changes needed for mdns) in WSL, with your copy of wolfSSL 5.7.2:

WRK_IDF_PATH=/mnt/c/SysGCC/esp32/esp-idf/v5.2
cd $WRK_IDF_PATH
. ./export.sh
cd /mnt/c/workspace/esp32-homekit-demo-gojimmypi-pr/examples/led
idf.py set-target esp32c3
idf.py build

My WSL does not support docker. I have a VM with regular Ubuntu but it is stuck waiting with some update message. I am unable to test your docker build at this time.

Can you please confirm if this issue is resolved or if you are still encountering the same problem? It would be great to have you try this outside of Docker to determine the location of the problem.

@AchimPieters
Copy link
Author

@gojimmypi Solved! here is what I did:

✅ docker pull espressif/idf:release-v5.2
✅ docker pull espressif/idf:release-v5.3
❌ docker pull espressif/idf:release-v5.4
❌ docker pull espressif/idf:latest

idf:release-v5.2

Screenshot 2024-12-12 at 19 35 09 Screenshot 2024-12-12 at 19 37 08

idf:release-v5.3

Screenshot 2024-12-12 at 19 35 13 Screenshot 2024-12-12 at 19 38 14

idf:release-v5.4

Screenshot 2024-12-12 at 19 35 22 Screenshot 2024-12-12 at 19 39 15

idf:latest

Screenshot 2024-12-12 at 19 35 27 Screenshot 2024-12-12 at 19 40 18

@gojimmypi
Copy link
Contributor

Solved! here is what I did:

aha! So this is only a problem with the v5.4 or latest, eh? The official ESP IDF "latest release" is currently v5.3.2.

I'm a bit reluctant to make changes for something that is not even an official release, but I'm also curious & don't want any surprises when v5.4 is released.

We do have tests for Espressif latest but not for all chip types at this time in IDE/Espressif/ESP-IDF/compileAllExamples.sh.

There are no ESP-IDF issues referencing "aes.h".

btw - I also encountered similar, bad commit when refreshing my ESP-IDF

fatal: remote error: upload-pack: not our ref 120783fe47b8267a48178f0fa2c6e794ce315eff
Errors during submodule fetch:
        components/esp_wifi/lib
        components/bt/controller/lib_esp32
gojimmypi:/mnt/c/SysGCC/esp32/esp-idf/master

After resolving that and using the latest ESP-IDF, I do see compile errors, but not related to wolfSSL and not the esp32/rom/aes.h errors noted in this issue.

@AchimPieters
Copy link
Author

@gojimmypi Okay, now that this "problem" is resolved and everything compiles as it should, I'm still getting the following warning:

/project/examples/heating_fan/managed_components/wolfssl__wolfssl/include/user_settings.h:807:22: warning: #warning "RSA may be difficult with less than 10KB Stack "/ [-Wcpp]
  807 |                     #warning "RSA may be difficult with less than 10KB Stack "/
      |                      ^~~~~~~

How can I remove or suppress this warning?

@gojimmypi
Copy link
Contributor

Hi @AchimPieters that warning occurs when RSA is enabled and there's less than 10K in CONFIG_ESP_MAIN_TASK_STACK_SIZE as there's a minimum size for RSA. This may not apply in situations where you define your own stack size in an RTOS task. That section is in the post-release update. I'm considering removing it,.

You can either adjust the main stack size in CONFIG_ESP_MAIN_TASK_STACK_SIZE or comment out the warning in the user_settings.h file. In a managed component, the only option would be to adjust the size in sdkconfig.defaults.

Exactly which version of wolfSSL are you using?

btw - have you resolved this for the most recent upstream ESP-IDF version (I believe it is v5.5). I still se some compile errors, unrelated to wolfSSL.

@AchimPieters
Copy link
Author

@gojimmypi currently I'm using wolfSSL version 5.7.4-preview1e and to wich compile errors do you refer?
Because I don't have any up to the latest IDF version, see attached log? I only have the "RSA may be difficult with less than 10KB Stack " warning?
IDF latest.txt

@gojimmypi
Copy link
Contributor

Hi @AchimPieters -

currently I'm using wolfSSL version 5.7.4-preview1e

That's a fairly good preview version of wolfSSL. There's a slightly newer f version I recently published.

There's a known issue in espressif/idf-component-manager#78 regarding exactly which version is used.

That latest version 5.7.4-preview1f attempts to pin examples to a specific version when using Managed Components.

From your log file, it appears you are using IDF_VER=v5.4-dev-4375-gf420609c33.

which compile errors do you refer?

Disregard; I had compile errors near the end, but did not notice several of the submodules were giving warnings about being out of sync. Upon refreshing submodules, all is working as desired.

This example works in ESP-IDF v5.2

cd /mnt/c/SysGCC/esp32/esp-idf/v5.2
cd /mnt/c/test
idf.py create-project-from-example "wolfssl/wolfssl^5.7.4-preview1f:wolfssl_client"
cd wolfssl_client
idf.py build

Confirmed the same example with ESP-IDF v5.5-dev-811-ga2f420a36e-dirty also works

cd /mnt/c/SysGCC/esp32/esp-idf/master
. ./export.sh
cd /mnt/c/test
idf.py create-project-from-example "wolfssl/wolfssl^5.7.4-preview1f:wolfssl_client"
cd wolfssl_client
idf.py build

Here's ESP-IDF v5.2 for your LED example; I needed to manually add the two managed components:

cd /mnt/c/SysGCC/esp32/esp-idf/v5.2
. ./export.sh
cd /mnt/c/workspace/esp32-homekit-demo-gojimmypi
cd examples/led
idf.py add-dependency "wolfssl/wolfssl^5.7.4-preview1f"
idf.py add-dependency "espressif/mdns^1.4.2"

On your main branch, I'm still seeing the mdns errors. I needed to manually added the PRIV_REQUIRES espressif__mdns as noted in AchimPieters/esp32-homekit-demo#14 (comment) :

idf_component_register(
    SRC_DIRS src
    EXCLUDE_SRCS
        "src/homekit_mdns.c"
        "src/homekit_mdns_debug.c"
    INCLUDE_DIRS "include"
    PRIV_INCLUDE_DIRS "src"
    REQUIRES wolfssl esp_partition json http_parser spi_flash nvs_flash
    PRIV_REQUIRES espressif__mdns
)

I only have the "RSA may be difficult with less than 10KB Stack " warning

That's excellent!

Please see the respective user_settings.h line:

            #ifdef CONFIG_ESP_MAIN_TASK_STACK_SIZE
                #if CONFIG_ESP_MAIN_TASK_STACK_SIZE < 10500
                    #warning "RSA may be difficult with less than 10KB Stack "/
                #endif
            #endif

The generated sdkconfig file has this:

CONFIG_ESP_MAIN_TASK_STACK_SIZE=3584

To fix the warning set the CONFIG_ESP_MAIN_TASK_STACK_SIZE to 10500 or larger in either sdkconfig.defaults or with idf.py menuconfig.

In the next release, I'll add something more robust in the Kconfig file to handle situations where the main stack is not the one used for RSA (e.g. when using FreeRTOS tasks).

Please be sure you are using the most recent version of the component manager as noted in #8251 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants