Seeed-Solution / SenseCAP_Indicator_ESP32

SenseCAP Indicator SDK.
https://wiki.seeedstudio.com/SenseCAP_Indicator_How_To_Flash_The_Default_Firmware/#ESP-IDF
Apache License 2.0
39 stars 30 forks source link

Build Error #21

Closed DomMonte closed 1 year ago

DomMonte commented 1 year ago

I was finally able to install the patch after much trouble but now I am getting this error:

error: #error "MBEDTLS_SSL_DTLS_CONNECTION_ID_COMPAT defined, but not all prerequisites" 904 | #error "MBEDTLS_SSL_DTLS_CONNECTION_ID_COMPAT defined, but not all prerequisites"

I am trying to flash indicator_ha but nothing I do seems to work.

Please help

Wvirgil123 commented 1 year ago

I was finally able to install the patch after much trouble but now I am getting this error:

error: #error "MBEDTLS_SSL_DTLS_CONNECTION_ID_COMPAT defined, but not all prerequisites" 904 | #error "MBEDTLS_SSL_DTLS_CONNECTION_ID_COMPAT defined, but not all prerequisites"

I am trying to flash indicator_ha but nothing I do seems to work.

Please help

What is your version of IDF?
Maybe you can delete the sdkconfig file and try to compile it again.

DomMonte commented 1 year ago

I am using release/v5.0. I have deleted IDF and reinstalled. Also have deleted sdkconfig

Love4yzp commented 1 year ago

what is your OS system? Is the IDF Virtual(not in the system global path)? Have you modified the projection before?

DomMonte commented 1 year ago

I am running on Windows, IDF is installed through Visual Studio Code. Nothing has been modified

Love4yzp commented 1 year ago

I am running on Windows, IDF is installed through Visual Studio Code. Nothing has been modified

Could you compile it again and give the whole compile log?

DomMonte commented 1 year ago

Please see below

 *  Executing task: cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -B c:\src\SenseCAP\examples\indicator_ha\build -S c:\src\SenseCAP\examples\indicator_ha 

-- Found Git: C:/Users/domenic.monteleone/.espressif/tools/idf-git/2.39.2/cmd/git.exe (found version "2.39.2.windows.1") 
CMake Warning at C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/git_submodules.cmake:52 (message):
  Git submodule components/bt/controller/lib_esp32 is out of date.  Run 'git
  submodule update --init --recursive' to fix.
Call Stack (most recent call first):
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/build.cmake:77 (git_submodule_check)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/build.cmake:219 (__build_get_idf_git_revision)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/idf.cmake:53 (__build_init)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/project.cmake:12 (include)
  CMakeLists.txt:5 (include)

CMake Warning at C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/git_submodules.cmake:52 (message):
  Git submodule components/bt/controller/lib_esp32c2/esp32c2-bt-lib is out of
  date.  Run 'git submodule update --init --recursive' to fix.
Call Stack (most recent call first):
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/build.cmake:77 (git_submodule_check)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/build.cmake:219 (__build_get_idf_git_revision)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/idf.cmake:53 (__build_init)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/project.cmake:12 (include)
  CMakeLists.txt:5 (include)

CMake Warning at C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/git_submodules.cmake:52 (message):
  Git submodule components/bt/controller/lib_esp32c3_family is out of date.
  Run 'git submodule update --init --recursive' to fix.
Call Stack (most recent call first):
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/build.cmake:77 (git_submodule_check)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/build.cmake:219 (__build_get_idf_git_revision)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/idf.cmake:53 (__build_init)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/project.cmake:12 (include)
  CMakeLists.txt:5 (include)

CMake Warning at C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/git_submodules.cmake:52 (message):
  Git submodule components/bt/controller/lib_esp32h2/esp32h2-bt-lib is out of
  date.  Run 'git submodule update --init --recursive' to fix.
Call Stack (most recent call first):
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/build.cmake:77 (git_submodule_check)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/build.cmake:219 (__build_get_idf_git_revision)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/idf.cmake:53 (__build_init)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/project.cmake:12 (include)
  CMakeLists.txt:5 (include)

CMake Warning at C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/git_submodules.cmake:52 (message):
  Git submodule components/bt/host/nimble/nimble is out of date.  Run 'git
  submodule update --init --recursive' to fix.
Call Stack (most recent call first):
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/build.cmake:77 (git_submodule_check)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/build.cmake:219 (__build_get_idf_git_revision)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/idf.cmake:53 (__build_init)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/project.cmake:12 (include)
  CMakeLists.txt:5 (include)

CMake Warning at C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/git_submodules.cmake:52 (message):
  Git submodule components/esp_phy/lib is out of date.  Run 'git submodule
  update --init --recursive' to fix.
Call Stack (most recent call first):
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/build.cmake:77 (git_submodule_check)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/build.cmake:219 (__build_get_idf_git_revision)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/idf.cmake:53 (__build_init)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/project.cmake:12 (include)
  CMakeLists.txt:5 (include)

CMake Warning at C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/git_submodules.cmake:52 (message):
  Git submodule components/esp_wifi/lib is out of date.  Run 'git submodule
  update --init --recursive' to fix.
Call Stack (most recent call first):
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/build.cmake:77 (git_submodule_check)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/build.cmake:219 (__build_get_idf_git_revision)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/idf.cmake:53 (__build_init)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/project.cmake:12 (include)
  CMakeLists.txt:5 (include)

CMake Warning at C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/git_submodules.cmake:52 (message):
  Git submodule components/heap/tlsf is out of date.  Run 'git submodule
  update --init --recursive' to fix.
Call Stack (most recent call first):
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/build.cmake:77 (git_submodule_check)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/build.cmake:219 (__build_get_idf_git_revision)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/idf.cmake:53 (__build_init)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/project.cmake:12 (include)
  CMakeLists.txt:5 (include)

CMake Warning at C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/git_submodules.cmake:52 (message):
  Git submodule components/json/cJSON is out of date.  Run 'git submodule
  update --init --recursive' to fix.
Call Stack (most recent call first):
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/build.cmake:77 (git_submodule_check)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/build.cmake:219 (__build_get_idf_git_revision)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/idf.cmake:53 (__build_init)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/project.cmake:12 (include)
  CMakeLists.txt:5 (include)

CMake Warning at C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/git_submodules.cmake:52 (message):
  Git submodule components/lwip/lwip is out of date.  Run 'git submodule
  update --init --recursive' to fix.
Call Stack (most recent call first):
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/build.cmake:77 (git_submodule_check)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/build.cmake:219 (__build_get_idf_git_revision)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/idf.cmake:53 (__build_init)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/project.cmake:12 (include)
  CMakeLists.txt:5 (include)

CMake Warning at C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/git_submodules.cmake:52 (message):
  Git submodule components/mbedtls/mbedtls is out of date.  Run 'git
  submodule update --init --recursive' to fix.
Call Stack (most recent call first):
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/build.cmake:77 (git_submodule_check)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/build.cmake:219 (__build_get_idf_git_revision)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/idf.cmake:53 (__build_init)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/project.cmake:12 (include)
  CMakeLists.txt:5 (include)

CMake Warning at C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/git_submodules.cmake:52 (message):
  Git submodule components/protobuf-c/protobuf-c is out of date.  Run 'git
  submodule update --init --recursive' to fix.
Call Stack (most recent call first):
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/build.cmake:77 (git_submodule_check)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/build.cmake:219 (__build_get_idf_git_revision)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/idf.cmake:53 (__build_init)
  C:/Users/domenic.monteleone/esp/esp-idf/tools/cmake/project.cmake:12 (include)
  CMakeLists.txt:5 (include)

-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/domenic.monteleone/.espressif/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Users/domenic.monteleone/.espressif/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Users/domenic.monteleone/.espressif/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32s3
Processing 1 dependencies:
[1/1] idf (5.0.0)
-- Project sdkconfig file C:/src/SenseCAP/examples/indicator_ha/sdkconfig
Loading defaults file C:/src/SenseCAP/examples/indicator_ha/sdkconfig.defaults...
Note: HPM is enabled for the flash, force the ROM bootloader into DOUT mode for stable boot on
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of time_t
-- Check size of time_t - done
-- Found Python3: C:/Users/domenic.monteleone/.espressif/python_env/idf5.0_py3.11_env/Scripts/python.exe (found version "3.11.2") found components: Interpreter
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
-- App "indicator_ha" version: 1
-- Adding linker script C:/src/SenseCAP/examples/indicator_ha/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script C:/Users/domenic.monteleone/esp/esp-idf/components/esp_system/ld/esp32s3/sections.ld.in
-- Adding linker script C:/Users/domenic.monteleone/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.ld
-- Adding linker script C:/Users/domenic.monteleone/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.api.ld
-- Adding linker script C:/Users/domenic.monteleone/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.libgcc.ld
-- Adding linker script C:/Users/domenic.monteleone/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib.ld
-- Adding linker script C:/Users/domenic.monteleone/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.version.ld
-- Adding linker script C:/Users/domenic.monteleone/esp/esp-idf/components/soc/esp32s3/ld/esp32s3.peripherals.ld
-- Components: app_trace app_update bootloader bootloader_support bsp bt bus cmock console cxx driver efuse esp-tls esp_adc esp_app_format esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_lcd esp_local_ctrl esp_netif esp_partition esp_phy esp_pm esp_psram esp_ringbuf esp_rom esp_system esp_timer esp_wifi espcoredump esptool_py fatfs freertos hal heap http_parser i2c_devices idf_test ieee802154 iot_button json log lora lvgl lwip main mbedtls mqtt newlib nvs_flash openthread partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport touch_element ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: C:/Users/domenic.monteleone/esp/esp-idf/components/app_trace C:/Users/domenic.monteleone/esp/esp-idf/components/app_update C:/Users/domenic.monteleone/esp/esp-idf/components/bootloader C:/Users/domenic.monteleone/esp/esp-idf/components/bootloader_support C:/src/SenseCAP/components/bsp C:/Users/domenic.monteleone/esp/esp-idf/components/bt C:/src/SenseCAP/components/bus C:/Users/domenic.monteleone/esp/esp-idf/components/cmock C:/Users/domenic.monteleone/esp/esp-idf/components/console C:/Users/domenic.monteleone/esp/esp-idf/components/cxx C:/Users/domenic.monteleone/esp/esp-idf/components/driver C:/Users/domenic.monteleone/esp/esp-idf/components/efuse C:/Users/domenic.monteleone/esp/esp-idf/components/esp-tls C:/Users/domenic.monteleone/esp/esp-idf/components/esp_adc C:/Users/domenic.monteleone/esp/esp-idf/components/esp_app_format C:/Users/domenic.monteleone/esp/esp-idf/components/esp_common C:/Users/domenic.monteleone/esp/esp-idf/components/esp_eth C:/Users/domenic.monteleone/esp/esp-idf/components/esp_event C:/Users/domenic.monteleone/esp/esp-idf/components/esp_gdbstub C:/Users/domenic.monteleone/esp/esp-idf/components/esp_hid C:/Users/domenic.monteleone/esp/esp-idf/components/esp_http_client C:/Users/domenic.monteleone/esp/esp-idf/components/esp_http_server C:/Users/domenic.monteleone/esp/esp-idf/components/esp_https_ota C:/Users/domenic.monteleone/esp/esp-idf/components/esp_https_server C:/Users/domenic.monteleone/esp/esp-idf/components/esp_hw_support C:/Users/domenic.monteleone/esp/esp-idf/components/esp_lcd C:/Users/domenic.monteleone/esp/esp-idf/components/esp_local_ctrl C:/Users/domenic.monteleone/esp/esp-idf/components/esp_netif C:/Users/domenic.monteleone/esp/esp-idf/components/esp_partition C:/Users/domenic.monteleone/esp/esp-idf/components/esp_phy C:/Users/domenic.monteleone/esp/esp-idf/components/esp_pm C:/Users/domenic.monteleone/esp/esp-idf/components/esp_psram C:/Users/domenic.monteleone/esp/esp-idf/components/esp_ringbuf C:/Users/domenic.monteleone/esp/esp-idf/components/esp_rom C:/Users/domenic.monteleone/esp/esp-idf/components/esp_system C:/Users/domenic.monteleone/esp/esp-idf/components/esp_timer C:/Users/domenic.monteleone/esp/esp-idf/components/esp_wifi C:/Users/domenic.monteleone/esp/esp-idf/components/espcoredump C:/Users/domenic.monteleone/esp/esp-idf/components/esptool_py C:/Users/domenic.monteleone/esp/esp-idf/components/fatfs C:/Users/domenic.monteleone/esp/esp-idf/components/freertos C:/Users/domenic.monteleone/esp/esp-idf/components/hal C:/Users/domenic.monteleone/esp/esp-idf/components/heap C:/Users/domenic.monteleone/esp/esp-idf/components/http_parser C:/src/SenseCAP/components/i2c_devices C:/Users/domenic.monteleone/esp/esp-idf/components/idf_test C:/Users/domenic.monteleone/esp/esp-idf/components/ieee802154 C:/src/SenseCAP/components/iot_button C:/Users/domenic.monteleone/esp/esp-idf/components/json C:/Users/domenic.monteleone/esp/esp-idf/components/log C:/src/SenseCAP/components/lora C:/src/SenseCAP/components/lvgl C:/Users/domenic.monteleone/esp/esp-idf/components/lwip C:/src/SenseCAP/examples/indicator_ha/main C:/Users/domenic.monteleone/esp/esp-idf/components/mbedtls C:/Users/domenic.monteleone/esp/esp-idf/components/mqtt C:/Users/domenic.monteleone/esp/esp-idf/components/newlib C:/Users/domenic.monteleone/esp/esp-idf/components/nvs_flash C:/Users/domenic.monteleone/esp/esp-idf/components/openthread C:/Users/domenic.monteleone/esp/esp-idf/components/partition_table C:/Users/domenic.monteleone/esp/esp-idf/components/perfmon C:/Users/domenic.monteleone/esp/esp-idf/components/protobuf-c C:/Users/domenic.monteleone/esp/esp-idf/components/protocomm C:/Users/domenic.monteleone/esp/esp-idf/components/pthread C:/Users/domenic.monteleone/esp/esp-idf/components/sdmmc C:/Users/domenic.monteleone/esp/esp-idf/components/soc C:/Users/domenic.monteleone/esp/esp-idf/components/spi_flash C:/Users/domenic.monteleone/esp/esp-idf/components/spiffs C:/Users/domenic.monteleone/esp/esp-idf/components/tcp_transport C:/Users/domenic.monteleone/esp/esp-idf/components/touch_element C:/Users/domenic.monteleone/esp/esp-idf/components/ulp C:/Users/domenic.monteleone/esp/esp-idf/components/unity C:/Users/domenic.monteleone/esp/esp-idf/components/usb C:/Users/domenic.monteleone/esp/esp-idf/components/vfs C:/Users/domenic.monteleone/esp/esp-idf/components/wear_levelling C:/Users/domenic.monteleone/esp/esp-idf/components/wifi_provisioning C:/Users/domenic.monteleone/esp/esp-idf/components/wpa_supplicant C:/Users/domenic.monteleone/esp/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: C:/src/SenseCAP/examples/indicator_ha/build

 *  Executing task: ninja  

[16/1202] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/idf/bootloader_sha.c.obj
FAILED: esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/idf/bootloader_sha.c.obj
C:\Users\domenic.monteleone\.espressif\tools\xtensa-esp32s3-elf\esp-2022r1-11.2.0\xtensa-esp32s3-elf\bin\xtensa-esp32s3-elf-gcc.exe -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -IC:/src/SenseCAP/examples/indicator_ha/build/config -IC:/Users/domenic.monteleone/esp/esp-idf/components/bootloader_support/include -IC:/Users/domenic.monteleone/esp/esp-idf/components/bootloader_support/bootloader_flash/include -IC:/Users/domenic.monteleone/esp/esp-idf/components/bootloader_support/private_include -IC:/Users/domenic.monteleone/esp/esp-idf/components/newlib/platform_include -IC:/Users/domenic.monteleone/esp/esp-idf/components/freertos/FreeRTOS-Kernel/include -IC:/Users/domenic.monteleone/esp/esp-idf/components/freertos/esp_additions/include/freertos -IC:/Users/domenic.monteleone/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -IC:/Users/domenic.monteleone/esp/esp-idf/components/freertos/esp_additions/include -IC:/Users/domenic.monteleone/esp/esp-idf/components/esp_hw_support/include -IC:/Users/domenic.monteleone/esp/esp-idf/components/esp_hw_support/include/soc -IC:/Users/domenic.monteleone/esp/esp-idf/components/esp_hw_support/include/soc/esp32s3 -IC:/Users/domenic.monteleone/esp/esp-idf/components/esp_hw_support/port/esp32s3/. -IC:/Users/domenic.monteleone/esp/esp-idf/components/esp_hw_support/port/esp32s3/private_include -IC:/Users/domenic.monteleone/esp/esp-idf/components/heap/include -IC:/Users/domenic.monteleone/esp/esp-idf/components/log/include -IC:/Users/domenic.monteleone/esp/esp-idf/components/soc/include -IC:/Users/domenic.monteleone/esp/esp-idf/components/soc/esp32s3/. -IC:/Users/domenic.monteleone/esp/esp-idf/components/soc/esp32s3/include -IC:/Users/domenic.monteleone/esp/esp-idf/components/hal/esp32s3/include -IC:/Users/domenic.monteleone/esp/esp-idf/components/hal/include -IC:/Users/domenic.monteleone/esp/esp-idf/components/hal/platform_port/include -IC:/Users/domenic.monteleone/esp/esp-idf/components/esp_rom/include -IC:/Users/domenic.monteleone/esp/esp-idf/components/esp_rom/include/esp32s3 -IC:/Users/domenic.monteleone/esp/esp-idf/components/esp_rom/esp32s3 -IC:/Users/domenic.monteleone/esp/esp-idf/components/esp_common/include -IC:/Users/domenic.monteleone/esp/esp-idf/components/esp_system/include -IC:/Users/domenic.monteleone/esp/esp-idf/components/esp_system/port/soc -IC:/Users/domenic.monteleone/esp/esp-idf/components/esp_system/port/include/private -IC:/Users/domenic.monteleone/esp/esp-idf/components/xtensa/include -IC:/Users/domenic.monteleone/esp/esp-idf/components/xtensa/esp32s3/include -IC:/Users/domenic.monteleone/esp/esp-idf/components/esp_timer/include -IC:/Users/domenic.monteleone/esp/esp-idf/components/lwip/include -IC:/Users/domenic.monteleone/esp/esp-idf/components/lwip/include/apps -IC:/Users/domenic.monteleone/esp/esp-idf/components/lwip/include/apps/sntp -IC:/Users/domenic.monteleone/esp/esp-idf/components/lwip/lwip/src/include -IC:/Users/domenic.monteleone/esp/esp-idf/components/lwip/port/esp32/include -IC:/Users/domenic.monteleone/esp/esp-idf/components/lwip/port/esp32/include/arch -IC:/Users/domenic.monteleone/esp/esp-idf/components/spi_flash/include -IC:/Users/domenic.monteleone/esp/esp-idf/components/mbedtls/port/include -IC:/Users/domenic.monteleone/esp/esp-idf/components/mbedtls/mbedtls/include -IC:/Users/domenic.monteleone/esp/esp-idf/components/mbedtls/mbedtls/library -IC:/Users/domenic.monteleone/esp/esp-idf/components/mbedtls/esp_crt_bundle/include -IC:/Users/domenic.monteleone/esp/esp-idf/components/efuse/include -IC:/Users/domenic.monteleone/esp/esp-idf/components/efuse/esp32s3/include -IC:/Users/domenic.monteleone/esp/esp-idf/components/esp_app_format/include -mlongcalls  -fdiagnostics-color=always -fdiagnostics-color=always -w -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -O2 -fmacro-prefix-map=C:/src/SenseCAP/examples/indicator_ha=. -fmacro-prefix-map=C:/Users/domenic.monteleone/esp/esp-idf=/IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -DconfigENABLE_FREERTOS_DEBUG_OCDAWARE=1 -std=gnu17 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v5.0-dirty\" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -Wno-format -MD -MT esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/idf/bootloader_sha.c.obj -MF esp-idf\bootloader_support\CMakeFiles\__idf_bootloader_support.dir\src\idf\bootloader_sha.c.obj.d -o esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/idf/bootloader_sha.c.obj -c C:/Users/domenic.monteleone/esp/esp-idf/components/bootloader_support/src/idf/bootloader_sha.c
In file included from C:/Users/domenic.monteleone/esp/esp-idf/components/mbedtls/mbedtls/include/mbedtls/build_info.h:151,
                 from C:/Users/domenic.monteleone/esp/esp-idf/components/mbedtls/mbedtls/include/mbedtls/sha256.h:29,
                 from C:/Users/domenic.monteleone/esp/esp-idf/components/bootloader_support/src/idf/bootloader_sha.c:12:
C:/Users/domenic.monteleone/esp/esp-idf/components/mbedtls/mbedtls/include/mbedtls/check_config.h:904:2: error: #error "MBEDTLS_SSL_DTLS_CONNECTION_ID_COMPAT defined, but not all prerequisites"
  904 | #error "MBEDTLS_SSL_DTLS_CONNECTION_ID_COMPAT defined, but not all prerequisites"
      |  ^~~~~
[25/1202] Generating ../../partition_table/partition-table.bin
Partition table binary generated. Contents:
*******************************************************************************
# ESP-IDF Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0x9000,24K,
phy_init,data,phy,0xf000,4K,
factory,app,factory,0x10000,4M,
*******************************************************************************
[37/1202] Building C object esp-idf/spi_flash/CMakeFiles/__idf_spi_flash.dir/spi_flash_chip_mxic_opi.c.obj
ninja: build stopped: subcommand failed.

 *  The terminal process "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command ninja " terminated with exit code: 1. 
Love4yzp commented 1 year ago

I believe I've identified the issue. It appears that the problem might stem from the installation process of the IDF through the ESP-IDF plugin on VSCode. This could potentially result in an incomplete IDF toolchain. To rectify this, you can attempt to resolve the situation by executing the following command:

git submodule update --init --recursive

Running this command will facilitate the download of any lacking submodules, which could potentially address the problem you're encountering.

DomMonte commented 1 year ago

Ah thank you so much for your help! I should've read the log properly at the top, I was too busy looking at the error message!