wolfssl icon indicating copy to clipboard operation
wolfssl copied to clipboard

esp32_sha errors -> 5.6.6-stable-update2-esp32

Open AchimPieters opened this issue 4 months ago • 54 comments

Version

5.6.6

Description

Follow-up on #7155

FAILED: esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/wolfcrypt/src/port/Espressif/esp32_sha.c.obj 
ccache /opt/esp/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc -DESP_PLATFORM -DIDF_VER=\"v5.3-dev-1353-gb3f7e2c8a4\" -DLIBWOLFSSL_VERSION_GIT_BRANCH=\"main\" -DLIBWOLFSSL_VERSION_GIT_HASH=\"eb4487cf7e68dcf34a4a0781d933c8cc1e05c9d7\" -DLIBWOLFSSL_VERSION_GIT_HASH_DATE="\"'Mon Jan 22 17:41:44 2024 +0100'\"" -DLIBWOLFSSL_VERSION_GIT_ORIGIN=\"https://github.com/AchimPieters/esp32-homekit-demo.git\" -DLIBWOLFSSL_VERSION_GIT_SHORT_HASH=\"eb4487c\" -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/xtensa/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -I/opt/esp/idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/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/esp32 -I/opt/esp/idf/components/esp_hw_support/port/esp32/. -I/opt/esp/idf/components/heap/include -I/opt/esp/idf/components/log/include -I/opt/esp/idf/components/soc/include -I/opt/esp/idf/components/soc/esp32 -I/opt/esp/idf/components/soc/esp32/include -I/opt/esp/idf/components/hal/platform_port/include -I/opt/esp/idf/components/hal/esp32/include -I/opt/esp/idf/components/hal/include -I/opt/esp/idf/components/esp_rom/include -I/opt/esp/idf/components/esp_rom/include/esp32 -I/opt/esp/idf/components/esp_rom/esp32 -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/private -I/opt/esp/idf/components/xtensa/esp32/include -I/opt/esp/idf/components/xtensa/include -I/opt/esp/idf/components/xtensa/deprecated_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 -mlongcalls -Wno-frame-address  -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-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -Og -fno-shrink-wrap -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/port/Espressif/esp32_sha.c.obj -MF esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/wolfcrypt/src/port/Espressif/esp32_sha.c.obj.d -o esp-idf/wolfssl/CMakeFiles/__idf_wolfssl.dir/wolfcrypt/src/port/Espressif/esp32_sha.c.obj -c /project/components/wolfssl/wolfcrypt/src/port/Espressif/esp32_sha.c
/project/components/wolfssl/wolfcrypt/src/port/Espressif/esp32_sha.c: In function 'esp_sha_ctx_copy':
/project/components/wolfssl/wolfcrypt/src/port/Espressif/esp32_sha.c:531:12: error: invalid use of undefined type 'struct wc_Sha'
  531 |     if (src->ctx.mode == ESP32_SHA_HW) {
      |            ^~
/project/components/wolfssl/wolfcrypt/src/port/Espressif/esp32_sha.c:545:16: error: invalid use of undefined type 'struct wc_Sha'
  545 |             dst->ctx.mode = ESP32_SHA_HW_COPY;
      |                ^~
/project/components/wolfssl/wolfcrypt/src/port/Espressif/esp32_sha.c:548:37: error: invalid use of undefined type 'struct wc_Sha'
  548 |             ret = esp_sha_init(&(dst->ctx), WC_HASH_TYPE_SHA);
      |                                     ^~
/project/components/wolfssl/wolfcrypt/src/port/Espressif/esp32_sha.c:559:16: error: invalid use of undefined type 'struct wc_Sha'
  559 |         if (dst->ctx.mode == ESP32_SHA_SW) {
      |                ^~
/project/components/wolfssl/wolfcrypt/src/port/Espressif/esp32_sha.c:585:12: error: invalid use of undefined type 'struct wc_Sha'
  585 |         dst->ctx.initializer = &(dst->ctx); /* assign new breadcrumb to dst */
      |            ^~
/project/components/wolfssl/wolfcrypt/src/port/Espressif/esp32_sha.c:585:37: error: invalid use of undefined type 'struct wc_Sha'
  585 |         dst->ctx.initializer = &(dst->ctx); /* assign new breadcrumb to dst */
      |                                     ^~
/project/components/wolfssl/wolfcrypt/src/port/Espressif/esp32_sha.c:589:16: error: invalid use of undefined type 'struct wc_Sha'
  589 |             dst->ctx.task_owner = 0;
      |                ^~
ninja: build stopped: subcommand failed.
ninja failed with exit code 1, output of the command is in the /project/examples/led/build/log/idf_py_stderr_output_41832 and /project/examples/led/build/log/idf_py_stdout_output_41832
root@22fb157df2ff:/project/examples/led# 

For reproduction and latest changes, see: https://github.com/AchimPieters/esp32-homekit-demo

AchimPieters avatar Feb 03 '24 15:02 AchimPieters