espressif / esp-skainet

Espressif intelligent voice assistant
Other
589 stars 134 forks source link

Build wake_word_detection example fails (AIS-1131) #89

Closed waruqi closed 1 year ago

waruqi commented 1 year ago

I use esp-idf 5.1 to build it, but it fails.

idf.py set-target esp32s3
idf.py build
ruki-2:wake_word_detection ruki$ idf.py set-target esp32s3
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Executing action: set-target
Set Target to: esp32s3, new sdkconfig will be created.
Running cmake in directory /Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=/Users/ruki/.espressif/python_env/idf5.1_py3.10_env/bin/python -DESP_PLATFORM=1 -DIDF_TARGET=esp32s3 -DCCACHE_ENABLE=0 /Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection"...
-- Existing sdkconfig '/Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/sdkconfig' renamed to '/Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/sdkconfig.old'.
-- Found Git: /usr/bin/git (found version "2.37.1 (Apple Git-137.1)") 
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /Users/ruki/.espressif/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Users/ruki/.espressif/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc - 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: /Users/ruki/.espressif/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32s3
Solving dependencies requirements
...Updating lock file at /Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/dependencies.lock
Processing 2 dependencies:
[1/2] espressif/esp-dsp (1.3.0)
[2/2] idf (5.1.0)
-- Project sdkconfig file /Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/sdkconfig
Loading defaults file /Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/sdkconfig.defaults...
Loading defaults file /Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/sdkconfig.defaults.esp32s3...
/Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/sdkconfig.defaults.esp32s3:9 CONFIG_ESP32S3_DEFAULT_CPU_FREQ_240 was replaced with CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240
/Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/sdkconfig.defaults.esp32s3:13 CONFIG_ESP32S3_SPIRAM_SUPPORT was replaced with CONFIG_SPIRAM
Compiler supported targets: xtensa-esp32s3-elf

-- 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: /Users/ruki/.espressif/python_env/idf5.1_py3.10_env/bin/python (found version "3.10.8") found components: Interpreter 
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
-- App "wake_word_detection" version: v0.3.0-173-g5abc25b
-- Adding linker script /Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script /Users/ruki/projects/personal/esp-idf/components/esp_system/ld/esp32s3/sections.ld.in
-- Adding linker script /Users/ruki/projects/personal/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.ld
-- Adding linker script /Users/ruki/projects/personal/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.api.ld
-- Adding linker script /Users/ruki/projects/personal/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.libgcc.ld
-- Adding linker script /Users/ruki/projects/personal/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib.ld
-- Adding linker script /Users/ruki/projects/personal/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.version.ld
-- Adding linker script /Users/ruki/projects/personal/esp-idf/components/soc/esp32s3/ld/esp32s3.peripherals.ld
-- Components: app_trace app_update bootloader bootloader_support bt cmock console cxx driver efuse esp-sr esp-tls esp_adc esp_app_format esp_coex 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_mm esp_netif esp_netif_stack esp_partition esp_phy esp_pm esp_psram esp_ringbuf esp_rom esp_system esp_timer esp_wifi espcoredump espressif__esp-dsp esptool_py fatfs freertos hal hardware_driver heap http_parser idf_test ieee802154 json log lwip main mbedtls mqtt newlib nvs_flash openthread partition_table perfmon player protobuf-c protocomm pthread sdmmc soc spi_flash spiffs sr_ringbuf tcp_transport touch_element ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: /Users/ruki/projects/personal/esp-idf/components/app_trace /Users/ruki/projects/personal/esp-idf/components/app_update /Users/ruki/projects/personal/esp-idf/components/bootloader /Users/ruki/projects/personal/esp-idf/components/bootloader_support /Users/ruki/projects/personal/esp-idf/components/bt /Users/ruki/projects/personal/esp-idf/components/cmock /Users/ruki/projects/personal/esp-idf/components/console /Users/ruki/projects/personal/esp-idf/components/cxx /Users/ruki/projects/personal/esp-idf/components/driver /Users/ruki/projects/personal/esp-idf/components/efuse /Users/ruki/projects/personal/esp-skainet/components/esp-sr /Users/ruki/projects/personal/esp-idf/components/esp-tls /Users/ruki/projects/personal/esp-idf/components/esp_adc /Users/ruki/projects/personal/esp-idf/components/esp_app_format /Users/ruki/projects/personal/esp-idf/components/esp_coex /Users/ruki/projects/personal/esp-idf/components/esp_common /Users/ruki/projects/personal/esp-idf/components/esp_eth /Users/ruki/projects/personal/esp-idf/components/esp_event /Users/ruki/projects/personal/esp-idf/components/esp_gdbstub /Users/ruki/projects/personal/esp-idf/components/esp_hid /Users/ruki/projects/personal/esp-idf/components/esp_http_client /Users/ruki/projects/personal/esp-idf/components/esp_http_server /Users/ruki/projects/personal/esp-idf/components/esp_https_ota /Users/ruki/projects/personal/esp-idf/components/esp_https_server /Users/ruki/projects/personal/esp-idf/components/esp_hw_support /Users/ruki/projects/personal/esp-idf/components/esp_lcd /Users/ruki/projects/personal/esp-idf/components/esp_local_ctrl /Users/ruki/projects/personal/esp-idf/components/esp_mm /Users/ruki/projects/personal/esp-idf/components/esp_netif /Users/ruki/projects/personal/esp-idf/components/esp_netif_stack /Users/ruki/projects/personal/esp-idf/components/esp_partition /Users/ruki/projects/personal/esp-idf/components/esp_phy /Users/ruki/projects/personal/esp-idf/components/esp_pm /Users/ruki/projects/personal/esp-idf/components/esp_psram /Users/ruki/projects/personal/esp-idf/components/esp_ringbuf /Users/ruki/projects/personal/esp-idf/components/esp_rom /Users/ruki/projects/personal/esp-idf/components/esp_system /Users/ruki/projects/personal/esp-idf/components/esp_timer /Users/ruki/projects/personal/esp-idf/components/esp_wifi /Users/ruki/projects/personal/esp-idf/components/espcoredump /Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/managed_components/espressif__esp-dsp /Users/ruki/projects/personal/esp-idf/components/esptool_py /Users/ruki/projects/personal/esp-idf/components/fatfs /Users/ruki/projects/personal/esp-idf/components/freertos /Users/ruki/projects/personal/esp-idf/components/hal /Users/ruki/projects/personal/esp-skainet/components/hardware_driver /Users/ruki/projects/personal/esp-idf/components/heap /Users/ruki/projects/personal/esp-idf/components/http_parser /Users/ruki/projects/personal/esp-idf/components/idf_test /Users/ruki/projects/personal/esp-idf/components/ieee802154 /Users/ruki/projects/personal/esp-idf/components/json /Users/ruki/projects/personal/esp-idf/components/log /Users/ruki/projects/personal/esp-idf/components/lwip /Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/main /Users/ruki/projects/personal/esp-idf/components/mbedtls /Users/ruki/projects/personal/esp-idf/components/mqtt /Users/ruki/projects/personal/esp-idf/components/newlib /Users/ruki/projects/personal/esp-idf/components/nvs_flash /Users/ruki/projects/personal/esp-idf/components/openthread /Users/ruki/projects/personal/esp-idf/components/partition_table /Users/ruki/projects/personal/esp-idf/components/perfmon /Users/ruki/projects/personal/esp-skainet/components/player /Users/ruki/projects/personal/esp-idf/components/protobuf-c /Users/ruki/projects/personal/esp-idf/components/protocomm /Users/ruki/projects/personal/esp-idf/components/pthread /Users/ruki/projects/personal/esp-idf/components/sdmmc /Users/ruki/projects/personal/esp-idf/components/soc /Users/ruki/projects/personal/esp-idf/components/spi_flash /Users/ruki/projects/personal/esp-idf/components/spiffs /Users/ruki/projects/personal/esp-skainet/components/sr_ringbuf /Users/ruki/projects/personal/esp-idf/components/tcp_transport /Users/ruki/projects/personal/esp-idf/components/touch_element /Users/ruki/projects/personal/esp-idf/components/ulp /Users/ruki/projects/personal/esp-idf/components/unity /Users/ruki/projects/personal/esp-idf/components/usb /Users/ruki/projects/personal/esp-idf/components/vfs /Users/ruki/projects/personal/esp-idf/components/wear_levelling /Users/ruki/projects/personal/esp-idf/components/wifi_provisioning /Users/ruki/projects/personal/esp-idf/components/wpa_supplicant /Users/ruki/projects/personal/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/build
ruki-2:wake_word_detection ruki$ idf.py build
Executing action: all (aliases: build)
Running ninja in directory /Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/build
Executing "ninja all"...
[3/1052] Move and Pack models...Recommended model partition size: 285K
[8/1052] Generating ../../partition_table/partition-table.binPartition table binary generated. Contents:
*******************************************************************************
# ESP-IDF Partition Table
# Name, Type, SubType, Offset, Size, Flags
factory,app,factory,0x10000,2500K,
model,data,spiffs,0x281000,5168K,
*******************************************************************************
[392/1052] Performing configure step for 'bootloader'-- Found Git: /usr/bin/git (found version "2.37.1 (Apple Git-137.1)") 
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /Users/ruki/.espressif/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Users/ruki/.espressif/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc - 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: /Users/ruki/.espressif/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32s3
-- Project sdkconfig file /Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/sdkconfig
Compiler supported targets: xtensa-esp32s3-elf

-- 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
-- Adding linker script /Users/ruki/projects/personal/esp-idf/components/soc/esp32s3/ld/esp32s3.peripherals.ld
-- App "bootloader" version: v5.1-dev-4051-g4f0769d2ed
-- Adding linker script /Users/ruki/projects/personal/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.ld
-- Adding linker script /Users/ruki/projects/personal/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.api.ld
-- Adding linker script /Users/ruki/projects/personal/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.libgcc.ld
-- Adding linker script /Users/ruki/projects/personal/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib.ld
-- Adding linker script /Users/ruki/projects/personal/esp-idf/components/bootloader/subproject/main/ld/esp32s3/bootloader.ld
-- Adding linker script /Users/ruki/projects/personal/esp-idf/components/bootloader/subproject/main/ld/esp32s3/bootloader.rom.ld
-- Components: bootloader bootloader_support efuse esp_app_format esp_common esp_hw_support esp_rom esp_system esptool_py freertos hal log main micro-ecc newlib partition_table soc spi_flash xtensa
-- Component paths: /Users/ruki/projects/personal/esp-idf/components/bootloader /Users/ruki/projects/personal/esp-idf/components/bootloader_support /Users/ruki/projects/personal/esp-idf/components/efuse /Users/ruki/projects/personal/esp-idf/components/esp_app_format /Users/ruki/projects/personal/esp-idf/components/esp_common /Users/ruki/projects/personal/esp-idf/components/esp_hw_support /Users/ruki/projects/personal/esp-idf/components/esp_rom /Users/ruki/projects/personal/esp-idf/components/esp_system /Users/ruki/projects/personal/esp-idf/components/esptool_py /Users/ruki/projects/personal/esp-idf/components/freertos /Users/ruki/projects/personal/esp-idf/components/hal /Users/ruki/projects/personal/esp-idf/components/log /Users/ruki/projects/personal/esp-idf/components/bootloader/subproject/main /Users/ruki/projects/personal/esp-idf/components/bootloader/subproject/components/micro-ecc /Users/ruki/projects/personal/esp-idf/components/newlib /Users/ruki/projects/personal/esp-idf/components/partition_table /Users/ruki/projects/personal/esp-idf/components/soc /Users/ruki/projects/personal/esp-idf/components/spi_flash /Users/ruki/projects/personal/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/build/bootloader
[107/108] Generating binary image from built executableesptool.py v4.5.1
Creating esp32s3 image...
Merged 1 ELF section
Successfully created esp32s3 image.
Generated /Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/build/bootloader/bootloader.bin
[108/108] cd /Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/build/bootloader...sers/ruki/projects/personal/esp-skainet/examples/wake_word_detection/build/bootloader/bootloader.binBootloader binary size 0x5770 bytes. 0x2890 bytes (32%) free.
[1021/1052] Building C object esp-idf/esp-sr/CMakeFiles/__idf_esp-sr.dir/src/model_path.c.objFAILED: esp-idf/esp-sr/CMakeFiles/__idf_esp-sr.dir/src/model_path.c.obj 
/Users/ruki/.espressif/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc -DESP_PLATFORM -DIDF_VER=\"v5.1-dev-4051-g4f0769d2ed\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -I/Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/build/config -I/Users/ruki/projects/personal/esp-skainet/components/esp-sr/src/include -I/Users/ruki/projects/personal/esp-skainet/components/esp-sr/esp-tts/esp_tts_chinese/include -I/Users/ruki/projects/personal/esp-skainet/components/esp-sr/include/esp32s3 -I/Users/ruki/projects/personal/esp-idf/components/newlib/platform_include -I/Users/ruki/projects/personal/esp-idf/components/freertos/FreeRTOS-Kernel/include -I/Users/ruki/projects/personal/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -I/Users/ruki/projects/personal/esp-idf/components/freertos/esp_additions/include/freertos -I/Users/ruki/projects/personal/esp-idf/components/freertos/esp_additions/include -I/Users/ruki/projects/personal/esp-idf/components/esp_hw_support/include -I/Users/ruki/projects/personal/esp-idf/components/esp_hw_support/include/soc -I/Users/ruki/projects/personal/esp-idf/components/esp_hw_support/include/soc/esp32s3 -I/Users/ruki/projects/personal/esp-idf/components/esp_hw_support/port/esp32s3/. -I/Users/ruki/projects/personal/esp-idf/components/esp_hw_support/port/esp32s3/private_include -I/Users/ruki/projects/personal/esp-idf/components/heap/include -I/Users/ruki/projects/personal/esp-idf/components/log/include -I/Users/ruki/projects/personal/esp-idf/components/soc/include -I/Users/ruki/projects/personal/esp-idf/components/soc/esp32s3 -I/Users/ruki/projects/personal/esp-idf/components/soc/esp32s3/include -I/Users/ruki/projects/personal/esp-idf/components/hal/esp32s3/include -I/Users/ruki/projects/personal/esp-idf/components/hal/include -I/Users/ruki/projects/personal/esp-idf/components/hal/platform_port/include -I/Users/ruki/projects/personal/esp-idf/components/esp_rom/include -I/Users/ruki/projects/personal/esp-idf/components/esp_rom/include/esp32s3 -I/Users/ruki/projects/personal/esp-idf/components/esp_rom/esp32s3 -I/Users/ruki/projects/personal/esp-idf/components/esp_common/include -I/Users/ruki/projects/personal/esp-idf/components/esp_system/include -I/Users/ruki/projects/personal/esp-idf/components/esp_system/port/soc -I/Users/ruki/projects/personal/esp-idf/components/esp_system/port/include/private -I/Users/ruki/projects/personal/esp-idf/components/xtensa/include -I/Users/ruki/projects/personal/esp-idf/components/xtensa/esp32s3/include -I/Users/ruki/projects/personal/esp-idf/components/lwip/include -I/Users/ruki/projects/personal/esp-idf/components/lwip/include/apps -I/Users/ruki/projects/personal/esp-idf/components/lwip/include/apps/sntp -I/Users/ruki/projects/personal/esp-idf/components/lwip/lwip/src/include -I/Users/ruki/projects/personal/esp-idf/components/lwip/port/include -I/Users/ruki/projects/personal/esp-idf/components/lwip/port/freertos/include -I/Users/ruki/projects/personal/esp-idf/components/lwip/port/esp32xx/include -I/Users/ruki/projects/personal/esp-idf/components/lwip/port/esp32xx/include/arch -I/Users/ruki/projects/personal/esp-idf/components/json/cJSON -I/Users/ruki/projects/personal/esp-idf/components/spiffs/include -I/Users/ruki/projects/personal/esp-idf/components/esp_partition/include -I/Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/managed_components/espressif__esp-dsp/modules/dotprod/include -I/Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/managed_components/espressif__esp-dsp/modules/support/include -I/Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/managed_components/espressif__esp-dsp/modules/windows/include -I/Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/managed_components/espressif__esp-dsp/modules/windows/hann/include -I/Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/managed_components/espressif__esp-dsp/modules/windows/blackman/include -I/Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/managed_components/espressif__esp-dsp/modules/windows/blackman_harris/include -I/Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/managed_components/espressif__esp-dsp/modules/windows/blackman_nuttall/include -I/Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/managed_components/espressif__esp-dsp/modules/windows/nuttall/include -I/Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/managed_components/espressif__esp-dsp/modules/windows/flat_top/include -I/Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/managed_components/espressif__esp-dsp/modules/iir/include -I/Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/managed_components/espressif__esp-dsp/modules/fir/include -I/Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/managed_components/espressif__esp-dsp/modules/math/include -I/Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/managed_components/espressif__esp-dsp/modules/math/add/include -I/Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/managed_components/espressif__esp-dsp/modules/math/sub/include -I/Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/managed_components/espressif__esp-dsp/modules/math/mul/include -I/Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/managed_components/espressif__esp-dsp/modules/math/addc/include -I/Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/managed_components/espressif__esp-dsp/modules/math/mulc/include -I/Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/managed_components/espressif__esp-dsp/modules/math/sqrt/include -I/Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/managed_components/espressif__esp-dsp/modules/matrix/include -I/Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/managed_components/espressif__esp-dsp/modules/fft/include -I/Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/managed_components/espressif__esp-dsp/modules/dct/include -I/Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/managed_components/espressif__esp-dsp/modules/conv/include -I/Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/managed_components/espressif__esp-dsp/modules/common/include -I/Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/managed_components/espressif__esp-dsp/modules/kalman/ekf/include -I/Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/managed_components/espressif__esp-dsp/modules/kalman/ekf_imu13states/include -mlongcalls  -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 -fmacro-prefix-map=/Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection=. -fmacro-prefix-map=/Users/ruki/projects/personal/esp-idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -DconfigENABLE_FREERTOS_DEBUG_OCDAWARE=1 -std=gnu17 -Wno-old-style-declaration -MD -MT esp-idf/esp-sr/CMakeFiles/__idf_esp-sr.dir/src/model_path.c.obj -MF esp-idf/esp-sr/CMakeFiles/__idf_esp-sr.dir/src/model_path.c.obj.d -o esp-idf/esp-sr/CMakeFiles/__idf_esp-sr.dir/src/model_path.c.obj -c /Users/ruki/projects/personal/esp-skainet/components/esp-sr/src/model_path.c
In file included from /Users/ruki/projects/personal/esp-skainet/components/esp-sr/src/model_path.c:5:
/Users/ruki/projects/personal/esp-skainet/components/esp-sr/src/include/model_path.h:21:5: error: unknown type name 'spi_flash_mmap_handle_t'
   21 |     spi_flash_mmap_handle_t mmap_handle; // mmap_handle if using esp_partition_mmap else NULL;
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/Users/ruki/projects/personal/esp-skainet/components/esp-sr/src/model_path.c: In function 'srmodel_mmap_init':
/Users/ruki/projects/personal/esp-skainet/components/esp-sr/src/model_path.c:248:59: error: 'SPI_FLASH_MMAP_DATA' undeclared (first use in this function)
  248 |     esp_err_t err=esp_partition_mmap(part, 0, part->size, SPI_FLASH_MMAP_DATA, &root, &models->mmap_handle);
      |                                                           ^~~~~~~~~~~~~~~~~~~
/Users/ruki/projects/personal/esp-skainet/components/esp-sr/src/model_path.c:248:59: note: each undeclared identifier is reported only once for each function it appears in
/Users/ruki/projects/personal/esp-skainet/components/esp-sr/src/model_path.c:248:87: warning: passing argument 6 of 'esp_partition_mmap' from incompatible pointer type [-Wincompatible-pointer-types]
  248 |     esp_err_t err=esp_partition_mmap(part, 0, part->size, SPI_FLASH_MMAP_DATA, &root, &models->mmap_handle);
      |                                                                                       ^~~~~~~~~~~~~~~~~~~~
      |                                                                                       |
      |                                                                                       int *
In file included from /Users/ruki/projects/personal/esp-skainet/components/esp-sr/src/include/model_path.h:5:
/Users/ruki/projects/personal/esp-idf/components/esp_partition/include/esp_partition.h:375:81: note: expected 'esp_partition_mmap_handle_t *' {aka 'long unsigned int *'} but argument is of type 'int *'
  375 |                              const void** out_ptr, esp_partition_mmap_handle_t* out_handle);
      |                                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
In file included from /Users/ruki/projects/personal/esp-skainet/components/esp-sr/src/model_path.c:12:
/Users/ruki/projects/personal/esp-idf/components/log/include/esp_log.h:265:27: error: format '%d' expects argument of type 'int', but argument 7 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
  265 | #define LOG_COLOR(COLOR)  "\033[0;" COLOR "m"
      |                           ^~~~~~~~~
/Users/ruki/projects/personal/esp-idf/components/log/include/esp_log.h:268:27: note: in expansion of macro 'LOG_COLOR'
  268 | #define LOG_COLOR_E       LOG_COLOR(LOG_COLOR_RED)
      |                           ^~~~~~~~~
/Users/ruki/projects/personal/esp-idf/components/log/include/esp_log.h:282:37: note: in expansion of macro 'LOG_COLOR_E'
  282 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                     ^~~~~~~~~~
/Users/ruki/projects/personal/esp-idf/components/log/include/esp_log.h:410:86: note: in expansion of macro 'LOG_FORMAT'
  410 |         if (level==ESP_LOG_ERROR )          { esp_log_write(ESP_LOG_ERROR,      tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
      |                                                                                      ^~~~~~~~~~
/Users/ruki/projects/personal/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  432 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
/Users/ruki/projects/personal/esp-idf/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
/Users/ruki/projects/personal/esp-skainet/components/esp-sr/src/model_path.c:253:9: note: in expansion of macro 'ESP_LOGI'
  253 |         ESP_LOGI(TAG, "partition %s size: %d by mmap", part->label, part->size);
      |         ^~~~~~~~
/Users/ruki/projects/personal/esp-idf/components/log/include/esp_log.h:265:27: error: format '%d' expects argument of type 'int', but argument 7 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
  265 | #define LOG_COLOR(COLOR)  "\033[0;" COLOR "m"
      |                           ^~~~~~~~~
/Users/ruki/projects/personal/esp-idf/components/log/include/esp_log.h:269:27: note: in expansion of macro 'LOG_COLOR'
  269 | #define LOG_COLOR_W       LOG_COLOR(LOG_COLOR_BROWN)
      |                           ^~~~~~~~~
/Users/ruki/projects/personal/esp-idf/components/log/include/esp_log.h:282:37: note: in expansion of macro 'LOG_COLOR_W'
  282 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                     ^~~~~~~~~~
/Users/ruki/projects/personal/esp-idf/components/log/include/esp_log.h:411:86: note: in expansion of macro 'LOG_FORMAT'
  411 |         else if (level==ESP_LOG_WARN )      { esp_log_write(ESP_LOG_WARN,       tag, LOG_FORMAT(W, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
      |                                                                                      ^~~~~~~~~~
/Users/ruki/projects/personal/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  432 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
/Users/ruki/projects/personal/esp-idf/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
/Users/ruki/projects/personal/esp-skainet/components/esp-sr/src/model_path.c:253:9: note: in expansion of macro 'ESP_LOGI'
  253 |         ESP_LOGI(TAG, "partition %s size: %d by mmap", part->label, part->size);
      |         ^~~~~~~~
/Users/ruki/projects/personal/esp-skainet/components/esp-sr/src/model_path.c:253:1: error: format '%d' expects argument of type 'int', but argument 7 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
  253 |         ESP_LOGI(TAG, "partition %s size: %d by mmap", part->label, part->size);
      | ^       ~~~
/Users/ruki/projects/personal/esp-idf/components/log/include/esp_log.h:282:59: note: in definition of macro 'LOG_FORMAT'
  282 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                                           ^~~~~~
/Users/ruki/projects/personal/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  432 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
/Users/ruki/projects/personal/esp-idf/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
/Users/ruki/projects/personal/esp-skainet/components/esp-sr/src/model_path.c:253:9: note: in expansion of macro 'ESP_LOGI'
  253 |         ESP_LOGI(TAG, "partition %s size: %d by mmap", part->label, part->size);
      |         ^~~~~~~~
/Users/ruki/projects/personal/esp-skainet/components/esp-sr/src/model_path.c:253:1: error: format '%d' expects argument of type 'int', but argument 7 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
  253 |         ESP_LOGI(TAG, "partition %s size: %d by mmap", part->label, part->size);
      | ^       ~~~
/Users/ruki/projects/personal/esp-idf/components/log/include/esp_log.h:282:59: note: in definition of macro 'LOG_FORMAT'
  282 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                                           ^~~~~~
/Users/ruki/projects/personal/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  432 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
/Users/ruki/projects/personal/esp-idf/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
/Users/ruki/projects/personal/esp-skainet/components/esp-sr/src/model_path.c:253:9: note: in expansion of macro 'ESP_LOGI'
  253 |         ESP_LOGI(TAG, "partition %s size: %d by mmap", part->label, part->size);
      |         ^~~~~~~~
/Users/ruki/projects/personal/esp-idf/components/log/include/esp_log.h:265:27: error: format '%d' expects argument of type 'int', but argument 7 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
  265 | #define LOG_COLOR(COLOR)  "\033[0;" COLOR "m"
      |                           ^~~~~~~~~
/Users/ruki/projects/personal/esp-idf/components/log/include/esp_log.h:270:27: note: in expansion of macro 'LOG_COLOR'
  270 | #define LOG_COLOR_I       LOG_COLOR(LOG_COLOR_GREEN)
      |                           ^~~~~~~~~
/Users/ruki/projects/personal/esp-idf/components/log/include/esp_log.h:282:37: note: in expansion of macro 'LOG_COLOR_I'
  282 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                     ^~~~~~~~~~
/Users/ruki/projects/personal/esp-idf/components/log/include/esp_log.h:414:86: note: in expansion of macro 'LOG_FORMAT'
  414 |         else                                { esp_log_write(ESP_LOG_INFO,       tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
      |                                                                                      ^~~~~~~~~~
/Users/ruki/projects/personal/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  432 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
/Users/ruki/projects/personal/esp-idf/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
/Users/ruki/projects/personal/esp-skainet/components/esp-sr/src/model_path.c:253:9: note: in expansion of macro 'ESP_LOGI'
  253 |         ESP_LOGI(TAG, "partition %s size: %d by mmap", part->label, part->size);
      |         ^~~~~~~~
/Users/ruki/projects/personal/esp-skainet/components/esp-sr/src/model_path.c: In function 'srmodel_mmap_deinit':
/Users/ruki/projects/personal/esp-skainet/components/esp-sr/src/model_path.c:307:9: error: implicit declaration of function 'spi_flash_munmap' [-Werror=implicit-function-declaration]
  307 |         spi_flash_munmap(models->mmap_handle);
      |         ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
[1023/1052] Building C object esp-idf/hardware_driver/CMakeFiles/__idf_hardware_driver.dir/led/ws2812.c.objFAILED: esp-idf/hardware_driver/CMakeFiles/__idf_hardware_driver.dir/led/ws2812.c.obj 
/Users/ruki/.espressif/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc -DESP_PLATFORM -DIDF_VER=\"v5.1-dev-4051-g4f0769d2ed\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -I/Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/build/config -I/Users/ruki/projects/personal/esp-skainet/components/hardware_driver/include -I/Users/ruki/projects/personal/esp-skainet/components/hardware_driver/codec/include -I/Users/ruki/projects/personal/esp-skainet/components/hardware_driver/codec/es7210 -I/Users/ruki/projects/personal/esp-skainet/components/hardware_driver/codec/es8311 -I/Users/ruki/projects/personal/esp-skainet/components/hardware_driver/codec/es8388 -I/Users/ruki/projects/personal/esp-skainet/components/hardware_driver/i2c_bus/include -I/Users/ruki/projects/personal/esp-skainet/components/hardware_driver/boards/include -I/Users/ruki/projects/personal/esp-skainet/components/hardware_driver/led/include -I/Users/ruki/projects/personal/esp-idf/components/newlib/platform_include -I/Users/ruki/projects/personal/esp-idf/components/freertos/FreeRTOS-Kernel/include -I/Users/ruki/projects/personal/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -I/Users/ruki/projects/personal/esp-idf/components/freertos/esp_additions/include/freertos -I/Users/ruki/projects/personal/esp-idf/components/freertos/esp_additions/include -I/Users/ruki/projects/personal/esp-idf/components/esp_hw_support/include -I/Users/ruki/projects/personal/esp-idf/components/esp_hw_support/include/soc -I/Users/ruki/projects/personal/esp-idf/components/esp_hw_support/include/soc/esp32s3 -I/Users/ruki/projects/personal/esp-idf/components/esp_hw_support/port/esp32s3/. -I/Users/ruki/projects/personal/esp-idf/components/esp_hw_support/port/esp32s3/private_include -I/Users/ruki/projects/personal/esp-idf/components/heap/include -I/Users/ruki/projects/personal/esp-idf/components/log/include -I/Users/ruki/projects/personal/esp-idf/components/soc/include -I/Users/ruki/projects/personal/esp-idf/components/soc/esp32s3 -I/Users/ruki/projects/personal/esp-idf/components/soc/esp32s3/include -I/Users/ruki/projects/personal/esp-idf/components/hal/esp32s3/include -I/Users/ruki/projects/personal/esp-idf/components/hal/include -I/Users/ruki/projects/personal/esp-idf/components/hal/platform_port/include -I/Users/ruki/projects/personal/esp-idf/components/esp_rom/include -I/Users/ruki/projects/personal/esp-idf/components/esp_rom/include/esp32s3 -I/Users/ruki/projects/personal/esp-idf/components/esp_rom/esp32s3 -I/Users/ruki/projects/personal/esp-idf/components/esp_common/include -I/Users/ruki/projects/personal/esp-idf/components/esp_system/include -I/Users/ruki/projects/personal/esp-idf/components/esp_system/port/soc -I/Users/ruki/projects/personal/esp-idf/components/esp_system/port/include/private -I/Users/ruki/projects/personal/esp-idf/components/xtensa/include -I/Users/ruki/projects/personal/esp-idf/components/xtensa/esp32s3/include -I/Users/ruki/projects/personal/esp-idf/components/lwip/include -I/Users/ruki/projects/personal/esp-idf/components/lwip/include/apps -I/Users/ruki/projects/personal/esp-idf/components/lwip/include/apps/sntp -I/Users/ruki/projects/personal/esp-idf/components/lwip/lwip/src/include -I/Users/ruki/projects/personal/esp-idf/components/lwip/port/include -I/Users/ruki/projects/personal/esp-idf/components/lwip/port/freertos/include -I/Users/ruki/projects/personal/esp-idf/components/lwip/port/esp32xx/include -I/Users/ruki/projects/personal/esp-idf/components/lwip/port/esp32xx/include/arch -I/Users/ruki/projects/personal/esp-idf/components/fatfs/diskio -I/Users/ruki/projects/personal/esp-idf/components/fatfs/vfs -I/Users/ruki/projects/personal/esp-idf/components/fatfs/src -I/Users/ruki/projects/personal/esp-idf/components/wear_levelling/include -I/Users/ruki/projects/personal/esp-idf/components/esp_partition/include -I/Users/ruki/projects/personal/esp-idf/components/sdmmc/include -I/Users/ruki/projects/personal/esp-idf/components/driver/include -I/Users/ruki/projects/personal/esp-idf/components/driver/deprecated -I/Users/ruki/projects/personal/esp-idf/components/driver/dac/include -I/Users/ruki/projects/personal/esp-idf/components/driver/gpio/include -I/Users/ruki/projects/personal/esp-idf/components/driver/gptimer/include -I/Users/ruki/projects/personal/esp-idf/components/driver/i2c/include -I/Users/ruki/projects/personal/esp-idf/components/driver/i2s/include -I/Users/ruki/projects/personal/esp-idf/components/driver/ledc/include -I/Users/ruki/projects/personal/esp-idf/components/driver/mcpwm/include -I/Users/ruki/projects/personal/esp-idf/components/driver/parlio/include -I/Users/ruki/projects/personal/esp-idf/components/driver/pcnt/include -I/Users/ruki/projects/personal/esp-idf/components/driver/rmt/include -I/Users/ruki/projects/personal/esp-idf/components/driver/sdio_slave/include -I/Users/ruki/projects/personal/esp-idf/components/driver/sdmmc/include -I/Users/ruki/projects/personal/esp-idf/components/driver/sigma_delta/include -I/Users/ruki/projects/personal/esp-idf/components/driver/spi/include -I/Users/ruki/projects/personal/esp-idf/components/driver/temperature_sensor/include -I/Users/ruki/projects/personal/esp-idf/components/driver/touch_sensor/include -I/Users/ruki/projects/personal/esp-idf/components/driver/twai/include -I/Users/ruki/projects/personal/esp-idf/components/driver/uart/include -I/Users/ruki/projects/personal/esp-idf/components/driver/usb_serial_jtag/include -I/Users/ruki/projects/personal/esp-idf/components/driver/touch_sensor/esp32s3/include -I/Users/ruki/projects/personal/esp-idf/components/esp_pm/include -I/Users/ruki/projects/personal/esp-idf/components/esp_ringbuf/include -I/Users/ruki/projects/personal/esp-idf/components/spiffs/include -mlongcalls  -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 -fmacro-prefix-map=/Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection=. -fmacro-prefix-map=/Users/ruki/projects/personal/esp-idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -DconfigENABLE_FREERTOS_DEBUG_OCDAWARE=1 -std=gnu17 -Wno-old-style-declaration -w -MD -MT esp-idf/hardware_driver/CMakeFiles/__idf_hardware_driver.dir/led/ws2812.c.obj -MF esp-idf/hardware_driver/CMakeFiles/__idf_hardware_driver.dir/led/ws2812.c.obj.d -o esp-idf/hardware_driver/CMakeFiles/__idf_hardware_driver.dir/led/ws2812.c.obj -c /Users/ruki/projects/personal/esp-skainet/components/hardware_driver/led/ws2812.c
/Users/ruki/projects/personal/esp-skainet/components/hardware_driver/led/ws2812.c: In function 'breathing_light':
/Users/ruki/projects/personal/esp-skainet/components/hardware_driver/led/ws2812.c:153:26: error: 'portTICK_RATE_MS' undeclared (first use in this function); did you mean 'portTICK_PERIOD_MS'?
  153 |         vTaskDelay(300 / portTICK_RATE_MS);
      |                          ^~~~~~~~~~~~~~~~
      |                          portTICK_PERIOD_MS
/Users/ruki/projects/personal/esp-skainet/components/hardware_driver/led/ws2812.c:153:26: note: each undeclared identifier is reported only once for each function it appears in
/Users/ruki/projects/personal/esp-skainet/components/hardware_driver/led/ws2812.c: In function 'breathing_done':
/Users/ruki/projects/personal/esp-skainet/components/hardware_driver/led/ws2812.c:217:22: error: 'portTICK_RATE_MS' undeclared (first use in this function); did you mean 'portTICK_PERIOD_MS'?
  217 |     vTaskDelay(300 / portTICK_RATE_MS);
      |                      ^~~~~~~~~~~~~~~~
      |                      portTICK_PERIOD_MS
/Users/ruki/projects/personal/esp-skainet/components/hardware_driver/led/ws2812.c: In function 'RGB_1s':
/Users/ruki/projects/personal/esp-skainet/components/hardware_driver/led/ws2812.c:252:23: error: 'portTICK_RATE_MS' undeclared (first use in this function); did you mean 'portTICK_PERIOD_MS'?
  252 |     vTaskDelay(1000 / portTICK_RATE_MS);
      |                       ^~~~~~~~~~~~~~~~
      |                       portTICK_PERIOD_MS
/Users/ruki/projects/personal/esp-skainet/components/hardware_driver/led/ws2812.c: In function 'wake_up_light_task':
/Users/ruki/projects/personal/esp-skainet/components/hardware_driver/led/ws2812.c:323:26: error: 'portTICK_RATE_MS' undeclared (first use in this function); did you mean 'portTICK_PERIOD_MS'?
  323 |         vTaskDelay(200 / portTICK_RATE_MS);
      |                          ^~~~~~~~~~~~~~~~
      |                          portTICK_PERIOD_MS
[1024/1052] Building C object esp-idf/hardware_driver/CMakeFiles/__idf_hardware_driver.dir/boards/esp32s3-korvo-1/bsp_board.c.objFAILED: esp-idf/hardware_driver/CMakeFiles/__idf_hardware_driver.dir/boards/esp32s3-korvo-1/bsp_board.c.obj 
/Users/ruki/.espressif/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc -DESP_PLATFORM -DIDF_VER=\"v5.1-dev-4051-g4f0769d2ed\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -I/Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/build/config -I/Users/ruki/projects/personal/esp-skainet/components/hardware_driver/include -I/Users/ruki/projects/personal/esp-skainet/components/hardware_driver/codec/include -I/Users/ruki/projects/personal/esp-skainet/components/hardware_driver/codec/es7210 -I/Users/ruki/projects/personal/esp-skainet/components/hardware_driver/codec/es8311 -I/Users/ruki/projects/personal/esp-skainet/components/hardware_driver/codec/es8388 -I/Users/ruki/projects/personal/esp-skainet/components/hardware_driver/i2c_bus/include -I/Users/ruki/projects/personal/esp-skainet/components/hardware_driver/boards/include -I/Users/ruki/projects/personal/esp-skainet/components/hardware_driver/led/include -I/Users/ruki/projects/personal/esp-idf/components/newlib/platform_include -I/Users/ruki/projects/personal/esp-idf/components/freertos/FreeRTOS-Kernel/include -I/Users/ruki/projects/personal/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -I/Users/ruki/projects/personal/esp-idf/components/freertos/esp_additions/include/freertos -I/Users/ruki/projects/personal/esp-idf/components/freertos/esp_additions/include -I/Users/ruki/projects/personal/esp-idf/components/esp_hw_support/include -I/Users/ruki/projects/personal/esp-idf/components/esp_hw_support/include/soc -I/Users/ruki/projects/personal/esp-idf/components/esp_hw_support/include/soc/esp32s3 -I/Users/ruki/projects/personal/esp-idf/components/esp_hw_support/port/esp32s3/. -I/Users/ruki/projects/personal/esp-idf/components/esp_hw_support/port/esp32s3/private_include -I/Users/ruki/projects/personal/esp-idf/components/heap/include -I/Users/ruki/projects/personal/esp-idf/components/log/include -I/Users/ruki/projects/personal/esp-idf/components/soc/include -I/Users/ruki/projects/personal/esp-idf/components/soc/esp32s3 -I/Users/ruki/projects/personal/esp-idf/components/soc/esp32s3/include -I/Users/ruki/projects/personal/esp-idf/components/hal/esp32s3/include -I/Users/ruki/projects/personal/esp-idf/components/hal/include -I/Users/ruki/projects/personal/esp-idf/components/hal/platform_port/include -I/Users/ruki/projects/personal/esp-idf/components/esp_rom/include -I/Users/ruki/projects/personal/esp-idf/components/esp_rom/include/esp32s3 -I/Users/ruki/projects/personal/esp-idf/components/esp_rom/esp32s3 -I/Users/ruki/projects/personal/esp-idf/components/esp_common/include -I/Users/ruki/projects/personal/esp-idf/components/esp_system/include -I/Users/ruki/projects/personal/esp-idf/components/esp_system/port/soc -I/Users/ruki/projects/personal/esp-idf/components/esp_system/port/include/private -I/Users/ruki/projects/personal/esp-idf/components/xtensa/include -I/Users/ruki/projects/personal/esp-idf/components/xtensa/esp32s3/include -I/Users/ruki/projects/personal/esp-idf/components/lwip/include -I/Users/ruki/projects/personal/esp-idf/components/lwip/include/apps -I/Users/ruki/projects/personal/esp-idf/components/lwip/include/apps/sntp -I/Users/ruki/projects/personal/esp-idf/components/lwip/lwip/src/include -I/Users/ruki/projects/personal/esp-idf/components/lwip/port/include -I/Users/ruki/projects/personal/esp-idf/components/lwip/port/freertos/include -I/Users/ruki/projects/personal/esp-idf/components/lwip/port/esp32xx/include -I/Users/ruki/projects/personal/esp-idf/components/lwip/port/esp32xx/include/arch -I/Users/ruki/projects/personal/esp-idf/components/fatfs/diskio -I/Users/ruki/projects/personal/esp-idf/components/fatfs/vfs -I/Users/ruki/projects/personal/esp-idf/components/fatfs/src -I/Users/ruki/projects/personal/esp-idf/components/wear_levelling/include -I/Users/ruki/projects/personal/esp-idf/components/esp_partition/include -I/Users/ruki/projects/personal/esp-idf/components/sdmmc/include -I/Users/ruki/projects/personal/esp-idf/components/driver/include -I/Users/ruki/projects/personal/esp-idf/components/driver/deprecated -I/Users/ruki/projects/personal/esp-idf/components/driver/dac/include -I/Users/ruki/projects/personal/esp-idf/components/driver/gpio/include -I/Users/ruki/projects/personal/esp-idf/components/driver/gptimer/include -I/Users/ruki/projects/personal/esp-idf/components/driver/i2c/include -I/Users/ruki/projects/personal/esp-idf/components/driver/i2s/include -I/Users/ruki/projects/personal/esp-idf/components/driver/ledc/include -I/Users/ruki/projects/personal/esp-idf/components/driver/mcpwm/include -I/Users/ruki/projects/personal/esp-idf/components/driver/parlio/include -I/Users/ruki/projects/personal/esp-idf/components/driver/pcnt/include -I/Users/ruki/projects/personal/esp-idf/components/driver/rmt/include -I/Users/ruki/projects/personal/esp-idf/components/driver/sdio_slave/include -I/Users/ruki/projects/personal/esp-idf/components/driver/sdmmc/include -I/Users/ruki/projects/personal/esp-idf/components/driver/sigma_delta/include -I/Users/ruki/projects/personal/esp-idf/components/driver/spi/include -I/Users/ruki/projects/personal/esp-idf/components/driver/temperature_sensor/include -I/Users/ruki/projects/personal/esp-idf/components/driver/touch_sensor/include -I/Users/ruki/projects/personal/esp-idf/components/driver/twai/include -I/Users/ruki/projects/personal/esp-idf/components/driver/uart/include -I/Users/ruki/projects/personal/esp-idf/components/driver/usb_serial_jtag/include -I/Users/ruki/projects/personal/esp-idf/components/driver/touch_sensor/esp32s3/include -I/Users/ruki/projects/personal/esp-idf/components/esp_pm/include -I/Users/ruki/projects/personal/esp-idf/components/esp_ringbuf/include -I/Users/ruki/projects/personal/esp-idf/components/spiffs/include -mlongcalls  -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 -fmacro-prefix-map=/Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection=. -fmacro-prefix-map=/Users/ruki/projects/personal/esp-idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -DconfigENABLE_FREERTOS_DEBUG_OCDAWARE=1 -std=gnu17 -Wno-old-style-declaration -w -MD -MT esp-idf/hardware_driver/CMakeFiles/__idf_hardware_driver.dir/boards/esp32s3-korvo-1/bsp_board.c.obj -MF esp-idf/hardware_driver/CMakeFiles/__idf_hardware_driver.dir/boards/esp32s3-korvo-1/bsp_board.c.obj.d -o esp-idf/hardware_driver/CMakeFiles/__idf_hardware_driver.dir/boards/esp32s3-korvo-1/bsp_board.c.obj -c /Users/ruki/projects/personal/esp-skainet/components/hardware_driver/boards/esp32s3-korvo-1/bsp_board.c
In file included from /Users/ruki/projects/personal/esp-skainet/components/hardware_driver/boards/include/bsp_board.h:33,
                 from /Users/ruki/projects/personal/esp-skainet/components/hardware_driver/boards/esp32s3-korvo-1/bsp_board.c:25:
/Users/ruki/projects/personal/esp-skainet/components/hardware_driver/boards/esp32s3-korvo-1/bsp_board.c: In function 'bsp_i2s_init':
/Users/ruki/projects/personal/esp-skainet/components/hardware_driver/boards/include/esp32_s3_korvo_1_v4_board.h:115:31: error: 'I2S_MCLK_MULTIPLE_DEFAULT' undeclared (first use in this function); did you mean 'I2S_MCLK_MULTIPLE_512'?
  115 |     .mclk_multiple          = I2S_MCLK_MULTIPLE_DEFAULT, \
      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~
/Users/ruki/projects/personal/esp-skainet/components/hardware_driver/boards/esp32s3-korvo-1/bsp_board.c:232:35: note: in expansion of macro 'I2S_CONFIG_DEFAULT'
  232 |         i2s_config_t i2s_config = I2S_CONFIG_DEFAULT();
      |                                   ^~~~~~~~~~~~~~~~~~
/Users/ruki/projects/personal/esp-skainet/components/hardware_driver/boards/include/esp32_s3_korvo_1_v4_board.h:115:31: note: each undeclared identifier is reported only once for each function it appears in
  115 |     .mclk_multiple          = I2S_MCLK_MULTIPLE_DEFAULT, \
      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~
/Users/ruki/projects/personal/esp-skainet/components/hardware_driver/boards/esp32s3-korvo-1/bsp_board.c:232:35: note: in expansion of macro 'I2S_CONFIG_DEFAULT'
  232 |         i2s_config_t i2s_config = I2S_CONFIG_DEFAULT();
      |                                   ^~~~~~~~~~~~~~~~~~
/Users/ruki/projects/personal/esp-skainet/components/hardware_driver/boards/esp32s3-korvo-1/bsp_board.c: In function 'bsp_board_init':
/Users/ruki/projects/personal/esp-skainet/components/hardware_driver/boards/esp32s3-korvo-1/bsp_board.c:407:25: error: 'GPIO_PIN_INTR_DISABLE' undeclared (first use in this function); did you mean 'GPIO_INTR_DISABLE'?
  407 |     io_conf.intr_type = GPIO_PIN_INTR_DISABLE;
      |                         ^~~~~~~~~~~~~~~~~~~~~
      |                         GPIO_INTR_DISABLE
[1030/1052] Building CXX object esp-idf/espressif__esp-dsp/CMakeFiles/__idf_espressif__esp-dsp.dir/modules/kalman/ekf/common/ekf.cpp.objninja: build stopped: subcommand failed.
HINT: You are maybe using pre FreeRTOS V8.0.0 APIs. The backward compatibility of such APIs is no longer enabled by default. Please turn on CONFIG_FREERTOS_ENABLE_BACKWARD_COMPATIBILITY explicitly to use such APIs.
HINT: The issue is better to resolve by replacing format specifiers to 'PRI'-family macros (include <inttypes.h> header file).
ninja failed with exit code 1, output of the command is in the /Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/build/log/idf_py_stderr_output_18021 and /Users/ruki/projects/personal/esp-skainet/examples/wake_word_detection/build/log/idf_py_stdout_output_18021
mph070770 commented 1 year ago

I have the same issue. What's the fix?

feizi commented 1 year ago

Currently, only esp-sr supports esp-idf v5.0 and later. The hardware driver of esp-skainet only support esp-idf v4.4.

waruqi commented 1 year ago

I use fixed commit 6cef5b859b2dd60c7197ecada8b0d271d22a1b1c for esp-sr. it supports idf 4.4 very well.

Henry586 commented 1 year ago

Currently, only esp-sr supports esp-idf v5.0 and later. The hardware driver of esp-skainet only support esp-idf v4.4.

But I can see git log: `SHA-1: cbd4a874936769aa754f5e07d21cd823812014f9

sun-xiangyu commented 1 year ago

Yes, now esp-skainet has supported IDF5.0 .