Trouble building Matter examples on MacOS with VSCode

0xDEADBEEF
Posts: 12
Joined: Sun Oct 25, 2020 3:58 pm

Trouble building Matter examples on MacOS with VSCode

Postby 0xDEADBEEF » Sun Mar 05, 2023 1:57 pm

I am having some serious issues getting the examples to compile in VSCode. I must have done something wrong at some point, at first the build process failed because GN was not found. I installed GN manually to get one step further, and now it failes because ZAP is not found. I am pretty sure I took a wrong point at one step but I fail to find out what it is.

So I cloned ESP IDF from github into ~/esp/esp-idf
I installed the IDF extension in VSCode and ran the configuration from the command palette
I cloned the matter repository which for some reason is still called connectedhomeip and went through BUILDING.md, everythign is activated and buildt just fine. For what it's worth, GN was available in the terminal window I used to activate the matter environment even before I manually installed it.

The current output when I try to build the temperature sensor example from VSCode after I manually installed GN is this:

Code: Select all

-- 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/username/.espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/riscv32-esp-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Users/username/.espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/riscv32-esp-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/username/.espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/riscv32-esp-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32c6
Solving dependencies requirements
.......Updating lock file at /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/dependencies.lock
Processing 2 dependencies:
[1/2] espressif/mdns (1.0.8)
[2/2] idf (5.1.0)
-- Found Python3: /usr/local/Frameworks/Python.framework/Versions/3.11/bin/python3.11 (found version "3.11.2") found components: Interpreter 
-- Project sdkconfig file /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/sdkconfig
Loading defaults file /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/sdkconfig.defaults...
/Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/sdkconfig.defaults:56 CONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM was replaced with CONFIG_ESP_WIFI_STATIC_RX_BUFFER_NUM
/Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/sdkconfig.defaults:57 CONFIG_ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM was replaced with CONFIG_ESP_WIFI_DYNAMIC_RX_BUFFER_NUM
/Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/sdkconfig.defaults:58 CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER_NUM was replaced with CONFIG_ESP_WIFI_DYNAMIC_TX_BUFFER_NUM
/Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/sdkconfig.defaults:73 CONFIG_BTDM_CONTROLLER_BLE_MAX_CONN was replaced with CONFIG_BTDM_CTRL_BLE_MAX_CONN
/Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/sdkconfig.defaults:74 CONFIG_BTDM_CONTROLLER_BLE_MAX_CONN_EFF was replaced with CONFIG_BTDM_CTRL_BLE_MAX_CONN_EFF
/Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/sdkconfig.defaults:75 CONFIG_NIMBLE_MAX_CONNECTIONS was replaced with CONFIG_BT_NIMBLE_MAX_CONNECTIONS
/Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/sdkconfig.defaults:76 CONFIG_TCPIP_RECVMBOX_SIZE was replaced with CONFIG_LWIP_TCPIP_RECVMBOX_SIZE
/Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/sdkconfig.defaults:77 CONFIG_TCP_SYNMAXRTX was replaced with CONFIG_LWIP_TCP_SYNMAXRTX
-- 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/username/.espressif/python_env/idf5.1_py3.11_env/bin/python (found version "3.11.2") found components: Interpreter 
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
-- App "chip-temperature-measurement-ap" version: v1.0
-- Adding linker script /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script /Users/username/esp/esp-idf/components/esp_system/ld/esp32c6/sections.ld.in
-- Adding linker script /Users/username/esp/esp-idf/components/esp_rom/esp32c6/ld/esp32c6.rom.ld
-- Adding linker script /Users/username/esp/esp-idf/components/esp_rom/esp32c6/ld/esp32c6.rom.api.ld
-- Adding linker script /Users/username/esp/esp-idf/components/esp_rom/esp32c6/ld/esp32c6.rom.libgcc.ld
-- Adding linker script /Users/username/esp/esp-idf/components/esp_rom/esp32c6/ld/esp32c6.rom.newlib.ld
-- Adding linker script /Users/username/esp/esp-idf/components/esp_rom/esp32c6/ld/esp32c6.rom.version.ld
-- Adding linker script /Users/username/esp/esp-idf/components/esp_rom/esp32c6/ld/esp32c6.rom.phy.ld
-- Adding linker script /Users/username/esp/esp-idf/components/esp_rom/esp32c6/ld/esp32c6.rom.coexist.ld
-- Adding linker script /Users/username/esp/esp-idf/components/esp_rom/esp32c6/ld/esp32c6.rom.net80211.ld
-- Adding linker script /Users/username/esp/esp-idf/components/esp_rom/esp32c6/ld/esp32c6.rom.pp.ld
-- Adding linker script /Users/username/esp/esp-idf/components/esp_rom/esp32c6/ld/esp32c6.rom.wdt.ld
-- Adding linker script /Users/username/esp/esp-idf/components/esp_rom/esp32c6/ld/esp32c6.rom.newlib-normal.ld
-- Adding linker script /Users/username/esp/esp-idf/components/esp_rom/esp32c6/ld/esp32c6.rom.heap.ld
-- Adding linker script /Users/username/esp/esp-idf/components/soc/esp32c6/ld/esp32c6.peripherals.ld
-- Components: QRCode app_trace app_update bootloader bootloader_support bt chip cmock console cxx driver efuse esp-tls esp32_mbedtls 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__mdns esptool_py fatfs freertos hal heap http_parser idf_test ieee802154 json log lwip main mbedtls mqtt newlib nvs_flash openthread partition_table protobuf-c protocomm pthread riscv sdmmc soc spi_flash spiffs tcp_transport ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant
-- Component paths: /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/third_party/connectedhomeip/examples/common/QRCode /Users/username/esp/esp-idf/components/app_trace /Users/username/esp/esp-idf/components/app_update /Users/username/esp/esp-idf/components/bootloader /Users/username/esp/esp-idf/components/bootloader_support /Users/username/esp/esp-idf/components/bt /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/third_party/connectedhomeip/config/esp32/components/chip /Users/username/esp/esp-idf/components/cmock /Users/username/esp/esp-idf/components/console /Users/username/esp/esp-idf/components/cxx /Users/username/esp/esp-idf/components/driver /Users/username/esp/esp-idf/components/efuse /Users/username/esp/esp-idf/components/esp-tls /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/third_party/connectedhomeip/config/esp32/components/esp32_mbedtls /Users/username/esp/esp-idf/components/esp_adc /Users/username/esp/esp-idf/components/esp_app_format /Users/username/esp/esp-idf/components/esp_coex /Users/username/esp/esp-idf/components/esp_common /Users/username/esp/esp-idf/components/esp_eth /Users/username/esp/esp-idf/components/esp_event /Users/username/esp/esp-idf/components/esp_gdbstub /Users/username/esp/esp-idf/components/esp_hid /Users/username/esp/esp-idf/components/esp_http_client /Users/username/esp/esp-idf/components/esp_http_server /Users/username/esp/esp-idf/components/esp_https_ota /Users/username/esp/esp-idf/components/esp_https_server /Users/username/esp/esp-idf/components/esp_hw_support /Users/username/esp/esp-idf/components/esp_lcd /Users/username/esp/esp-idf/components/esp_local_ctrl /Users/username/esp/esp-idf/components/esp_mm /Users/username/esp/esp-idf/components/esp_netif /Users/username/esp/esp-idf/components/esp_netif_stack /Users/username/esp/esp-idf/components/esp_partition /Users/username/esp/esp-idf/components/esp_phy /Users/username/esp/esp-idf/components/esp_pm /Users/username/esp/esp-idf/components/esp_psram /Users/username/esp/esp-idf/components/esp_ringbuf /Users/username/esp/esp-idf/components/esp_rom /Users/username/esp/esp-idf/components/esp_system /Users/username/esp/esp-idf/components/esp_timer /Users/username/esp/esp-idf/components/esp_wifi /Users/username/esp/esp-idf/components/espcoredump /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/managed_components/espressif__mdns /Users/username/esp/esp-idf/components/esptool_py /Users/username/esp/esp-idf/components/fatfs /Users/username/esp/esp-idf/components/freertos /Users/username/esp/esp-idf/components/hal /Users/username/esp/esp-idf/components/heap /Users/username/esp/esp-idf/components/http_parser /Users/username/esp/esp-idf/components/idf_test /Users/username/esp/esp-idf/components/ieee802154 /Users/username/esp/esp-idf/components/json /Users/username/esp/esp-idf/components/log /Users/username/esp/esp-idf/components/lwip /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/main /Users/username/esp/esp-idf/components/mbedtls /Users/username/esp/esp-idf/components/mqtt /Users/username/esp/esp-idf/components/newlib /Users/username/esp/esp-idf/components/nvs_flash /Users/username/esp/esp-idf/components/openthread /Users/username/esp/esp-idf/components/partition_table /Users/username/esp/esp-idf/components/protobuf-c /Users/username/esp/esp-idf/components/protocomm /Users/username/esp/esp-idf/components/pthread /Users/username/esp/esp-idf/components/riscv /Users/username/esp/esp-idf/components/sdmmc /Users/username/esp/esp-idf/components/soc /Users/username/esp/esp-idf/components/spi_flash /Users/username/esp/esp-idf/components/spiffs /Users/username/esp/esp-idf/components/tcp_transport /Users/username/esp/esp-idf/components/ulp /Users/username/esp/esp-idf/components/unity /Users/username/esp/esp-idf/components/usb /Users/username/esp/esp-idf/components/vfs /Users/username/esp/esp-idf/components/wear_levelling /Users/username/esp/esp-idf/components/wifi_provisioning /Users/username/esp/esp-idf/components/wpa_supplicant
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/build

 *  Executing task: ninja  

[4/1046] Generating ../../gen/app-codegen/cpp-app/app/PluginApplicationCallbacks.h, ../../gen/app-codegen/cpp-app/app/callback-stub.cpp
FAILED: gen/app-codegen/cpp-app/app/PluginApplicationCallbacks.h gen/app-codegen/cpp-app/app/callback-stub.cpp /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/build/gen/app-codegen/cpp-app/app/PluginApplicationCallbacks.h /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/build/gen/app-codegen/cpp-app/app/callback-stub.cpp 
cd /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/build/esp-idf/main && /Users/username/Documents/ESP-IDF_Projects/connectedhomeip/scripts/codegen.py --generator cpp-app --output-dir /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/build/gen/app-codegen/cpp-app --expected-outputs /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/build/gen/app-codegen/cpp-app/expected.outputs /Users/username/Documents/ESP-IDF_Projects/connectedhomeip/examples/temperature-measurement-app/temperature-measurement-common/temperature-measurement.matter
Traceback (most recent call last):
  File "/Users/username/Documents/ESP-IDF_Projects/connectedhomeip/scripts/codegen.py", line 28, in <module>
    from matter_idl.matter_idl_parser import CreateParser
ModuleNotFoundError: No module named 'matter_idl'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/username/Documents/ESP-IDF_Projects/connectedhomeip/scripts/codegen.py", line 32, in <module>
    from matter_idl.matter_idl_parser import CreateParser
  File "/Users/username/Documents/ESP-IDF_Projects/connectedhomeip/scripts/py_matter_idl/matter_idl/matter_idl_parser.py", line 6, in <module>
    from lark import Lark
ModuleNotFoundError: No module named 'lark'
[6/1046] 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,1945K,
*******************************************************************************
[7/1046] Generating ../../gen/app-zapgen/zapgen/app-templates/zap-generated/access.h, ../../gen/app-zapgen/zapgen/app-templates/za...pgen/app-templates/zap-generated/gen_config.h, ../../gen/app-zapgen/zapgen/app-templates/zap-generated/IMClusterCommandHandler.cpp
FAILED: gen/app-zapgen/zapgen/app-templates/zap-generated/access.h gen/app-zapgen/zapgen/app-templates/zap-generated/CHIPClientCallbacks.h gen/app-zapgen/zapgen/app-templates/zap-generated/CHIPClusters.h gen/app-zapgen/zapgen/app-templates/zap-generated/endpoint_config.h gen/app-zapgen/zapgen/app-templates/zap-generated/gen_config.h gen/app-zapgen/zapgen/app-templates/zap-generated/IMClusterCommandHandler.cpp /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/build/gen/app-zapgen/zapgen/app-templates/zap-generated/access.h /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/build/gen/app-zapgen/zapgen/app-templates/zap-generated/CHIPClientCallbacks.h /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/build/gen/app-zapgen/zapgen/app-templates/zap-generated/CHIPClusters.h /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/build/gen/app-zapgen/zapgen/app-templates/zap-generated/endpoint_config.h /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/build/gen/app-zapgen/zapgen/app-templates/zap-generated/gen_config.h /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/build/gen/app-zapgen/zapgen/app-templates/zap-generated/IMClusterCommandHandler.cpp 
cd /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/build/esp-idf/main && /Users/username/Documents/ESP-IDF_Projects/connectedhomeip/scripts/tools/zap/generate.py --no-prettify-output --templates /Users/username/Documents/ESP-IDF_Projects/connectedhomeip/src/app/zap-templates/app-templates.json --output-dir /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/build/gen/app-zapgen/zapgen/app-templates/zap-generated --lock-file /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/build/zap_gen.lock --parallel /Users/username/Documents/ESP-IDF_Projects/connectedhomeip/examples/temperature-measurement-app/temperature-measurement-common/temperature-measurement.zap
Searching for zcl file from /Users/username/Documents/ESP-IDF_Projects/connectedhomeip/examples/temperature-measurement-app/temperature-measurement-common/temperature-measurement.zap
FAILED TO EXECUTE ZAP GENERATION: No such file or directory - "zap-cli"
********************************************************************************
* You may need to install zap. Please ensure one of these applies:
* - `zap-cli` is in $PATH. Install from https://github.com/project-chip/zap/releases
*   see docs/guides/BUILDING.md for details
* - `zap-cli` is in $ZAP_INSTALL_PATH. Use this option if you
*   installed zap but do not want to update $PATH
* - Point $ZAP_DEVELOPMENT_PATH to your local copy of zap that you
*   develop on (to use a developer build of zap)
********************************************************************************
[15/1046] Building C object esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedcrypto.dir/bignum.c.obj
ninja: build stopped: subcommand failed.

 *  The terminal process "/bin/zsh '-c', 'ninja '" terminated with exit code: 1.
I am really curious to find out where I took the wrong turn, I'm quite certain I am not supposed to manually take care to install missing modules but as of right know I'm pretty stuck unfortunately.

Any help is greatly appreciated! Thank you!

0xDEADBEEF
Posts: 12
Joined: Sun Oct 25, 2020 3:58 pm

Re: Trouble building Matter examples on MacOS with VSCode

Postby 0xDEADBEEF » Sun Mar 05, 2023 2:13 pm

Oh and because it's not fun enough yet, if I hit build again if fails because it's missing zap, I get an actual compiler error:

Code: Select all

/Users/username/esp/esp-idf/components/wpa_supplicant/src/ap/wpa_auth.c: In function 'wpa_ap_join':
/Users/username/esp/esp-idf/components/wpa_supplicant/src/ap/wpa_auth.c:2547:17: error: implicit declaration of function 'esp_send_assoc_resp'; did you mean 'owe_process_assoc_resp'? [-Werror=implicit-function-declaration]
Full output:

Code: Select all

[216/1000] 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/username/.espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/riscv32-esp-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Users/username/.espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/riscv32-esp-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/username/.espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/riscv32-esp-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32c3
-- Project sdkconfig file /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/sdkconfig
-- 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/username/esp/esp-idf/components/soc/esp32c3/ld/esp32c3.peripherals.ld
-- App "bootloader" version: v5.1-dev-3797-gaf805df3cb
-- Adding linker script /Users/username/esp/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.ld
-- Adding linker script /Users/username/esp/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.api.ld
-- Adding linker script /Users/username/esp/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.libgcc.ld
-- Adding linker script /Users/username/esp/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.newlib.ld
-- Adding linker script /Users/username/esp/esp-idf/components/bootloader/subproject/main/ld/esp32c3/bootloader.ld
-- Adding linker script /Users/username/esp/esp-idf/components/bootloader/subproject/main/ld/esp32c3/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 riscv soc spi_flash
-- Component paths: /Users/username/esp/esp-idf/components/bootloader /Users/username/esp/esp-idf/components/bootloader_support /Users/username/esp/esp-idf/components/efuse /Users/username/esp/esp-idf/components/esp_app_format /Users/username/esp/esp-idf/components/esp_common /Users/username/esp/esp-idf/components/esp_hw_support /Users/username/esp/esp-idf/components/esp_rom /Users/username/esp/esp-idf/components/esp_system /Users/username/esp/esp-idf/components/esptool_py /Users/username/esp/esp-idf/components/freertos /Users/username/esp/esp-idf/components/hal /Users/username/esp/esp-idf/components/log /Users/username/esp/esp-idf/components/bootloader/subproject/main /Users/username/esp/esp-idf/components/bootloader/subproject/components/micro-ecc /Users/username/esp/esp-idf/components/newlib /Users/username/esp/esp-idf/components/partition_table /Users/username/esp/esp-idf/components/riscv /Users/username/esp/esp-idf/components/soc /Users/username/esp/esp-idf/components/spi_flash
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/build/bootloader
[345/1000] Performing build step for 'bootloader'
[1/95] Generating project_elf_src_esp32c3.c
[2/95] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/dedic_gpio_periph.c.obj
[3/95] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/adc_periph.c.obj
[4/95] Building C object CMakeFiles/bootloader.elf.dir/project_elf_src_esp32c3.c.obj
[5/95] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/gpio_periph.c.obj
[6/95] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/gdma_periph.c.obj
[7/95] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/interrupts.c.obj
[8/95] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/rmt_periph.c.obj
[9/95] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/ledc_periph.c.obj
[10/95] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/spi_periph.c.obj
[11/95] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/uart_periph.c.obj
[12/95] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/sdm_periph.c.obj
[13/95] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/i2s_periph.c.obj
[14/95] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/temperature_sensor_periph.c.obj
[15/95] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/timer_periph.c.obj
[16/95] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/twai_periph.c.obj
[17/95] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/lldesc.c.obj
[18/95] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/dport_access_common.c.obj
[19/95] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/i2c_periph.c.obj
[20/95] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/mpu_hal.c.obj
[21/95] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/efuse_hal.c.obj
[22/95] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_mem.c.obj
[23/95] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/cache_hal.c.obj
[24/95] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_clock_init.c.obj
[25/95] Building C object esp-idf/esp_app_format/CMakeFiles/__idf_esp_app_format.dir/esp_app_desc.c.obj
[26/95] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/esp32c3/efuse_hal.c.obj
[27/95] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_random.c.obj
[28/95] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/wdt_hal_iram.c.obj
[29/95] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_efuse.c.obj
[30/95] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_random_esp32c3.c.obj
[31/95] Building C object esp-idf/spi_flash/CMakeFiles/__idf_spi_flash.dir/spi_flash_wrap.c.obj
[32/95] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/secure_boot.c.obj
[33/95] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/mmu_hal.c.obj
[34/95] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_common_loader.c.obj
[35/95] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_common.c.obj
[36/95] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_clock_loader.c.obj
[37/95] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_console_loader.c.obj
[38/95] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_partitions.c.obj
[39/95] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_console.c.obj
[40/95] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_encrypt.c.obj
[41/95] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/bootloader_flash/src/bootloader_flash_config_esp32c3.c.obj
[42/95] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32c3/bootloader_sha.c.obj
[43/95] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32c3/bootloader_soc.c.obj
[44/95] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32c3/esp_efuse_table.c.obj
[45/95] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/bootloader_flash/src/flash_qio_mode.c.obj
[46/95] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_init.c.obj
[47/95] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_panic.c.obj
[48/95] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32c3/esp_efuse_fields.c.obj
[49/95] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32c3/bootloader_esp32c3.c.obj
[50/95] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_fields.c.obj
[51/95] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32c3/esp_efuse_rtc_calib.c.obj
[52/95] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/bootloader_flash/src/bootloader_flash.c.obj
[53/95] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_utility.c.obj
[54/95] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32c3/esp_efuse_utility.c.obj
[55/95] Building C object esp-idf/esp_system/CMakeFiles/__idf_esp_system.dir/esp_err.c.obj
[56/95] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_api.c.obj
[57/95] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/esp_memory_utils.c.obj
[58/95] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp_image_format.c.obj
[59/95] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32c3/chip_info.c.obj
[60/95] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_crc.c.obj
[61/95] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32c3/rtc_clk_init.c.obj
[62/95] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/cpu.c.obj
[63/95] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_sys.c.obj
[64/95] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_spiflash.c.obj
[65/95] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/efuse_controller/keys/with_key_purposes/esp_efuse_api_key.c.obj
[66/95] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_efuse.c.obj
[67/95] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_utility.c.obj
[68/95] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_systimer.c.obj
[69/95] Building C object esp-idf/esp_common/CMakeFiles/__idf_esp_common.dir/src/esp_err_to_name.c.obj
[70/95] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32c3/rtc_sleep.c.obj
[71/95] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32c3/rtc_init.c.obj
[72/95] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log_noos.c.obj
[73/95] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_uart.c.obj
[74/95] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32c3/rtc_time.c.obj
[75/95] Building C object esp-idf/micro-ecc/CMakeFiles/__idf_micro-ecc.dir/uECC_verify_antifault.c.obj
[76/95] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/bootloader_start.c.obj
[77/95] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32c3/rtc_clk.c.obj
[78/95] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log.c.obj
[79/95] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log_buffers.c.obj
[80/95] Linking C static library esp-idf/log/liblog.a
[81/95] Linking C static library esp-idf/esp_rom/libesp_rom.a
[82/95] Linking C static library esp-idf/esp_common/libesp_common.a
[83/95] Linking C static library esp-idf/esp_hw_support/libesp_hw_support.a
[84/95] Linking C static library esp-idf/esp_system/libesp_system.a
[85/95] Linking C static library esp-idf/efuse/libefuse.a
[86/95] Linking C static library esp-idf/bootloader_support/libbootloader_support.a
[87/95] Linking C static library esp-idf/esp_app_format/libesp_app_format.a
[88/95] Linking C static library esp-idf/spi_flash/libspi_flash.a
[89/95] Linking C static library esp-idf/hal/libhal.a
[90/95] Linking C static library esp-idf/micro-ecc/libmicro-ecc.a
[91/95] Linking C static library esp-idf/soc/libsoc.a
[92/95] Linking C static library esp-idf/main/libmain.a
[93/95] Linking C executable bootloader.elf
[94/95] Generating binary image from built executable
esptool.py v4.5.1
Creating esp32c3 image...
Merged 1 ELF section
Successfully created esp32c3 image.
Generated /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/build/bootloader/bootloader.bin
[95/95] cd /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/build/bootloader/esp-idf/esptool_py && /Users/username/.espressif/python_env/idf5.1_py3.11_env/bin/python /Users/username/esp/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/build/bootloader/bootloader.bin
Bootloader binary size 0x4990 bytes. 0x3670 bytes (43%) free.
[495/1000] Building C object esp-idf/wpa_supplicant/CMakeFiles/__idf_wpa_supplicant.dir/src/ap/wpa_auth.c.obj
FAILED: esp-idf/wpa_supplicant/CMakeFiles/__idf_wpa_supplicant.dir/src/ap/wpa_auth.c.obj 
/Users/username/.espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/riscv32-esp-elf-gcc -DCONFIG_CRYPTO_MBEDTLS -DCONFIG_ECC -DCONFIG_IEEE80211W -DCONFIG_NO_RADIUS -DCONFIG_OWE_STA -DCONFIG_SAE_PK -DCONFIG_SHA256 -DCONFIG_WPA3_SAE -DCONFIG_WPS -DEAP_MSCHAPv2 -DEAP_PEAP -DEAP_PEER_METHOD -DEAP_TLS -DEAP_TTLS -DESPRESSIF_USE -DESP_PLATFORM -DESP_SUPPLICANT -DIDF_VER=\"v5.1-dev-3797-gaf805df3cb\" -DIEEE8021X_EAPOL -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DNDEBUG -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DUSE_WPA2_TASK -DUSE_WPS_TASK -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -D__ets__ -I/Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/build/config -I/Users/username/esp/esp-idf/components/wpa_supplicant/include -I/Users/username/esp/esp-idf/components/wpa_supplicant/port/include -I/Users/username/esp/esp-idf/components/wpa_supplicant/esp_supplicant/include -I/Users/username/esp/esp-idf/components/wpa_supplicant/src -I/Users/username/esp/esp-idf/components/wpa_supplicant/src/utils -I/Users/username/esp/esp-idf/components/wpa_supplicant/esp_supplicant/src -I/Users/username/esp/esp-idf/components/wpa_supplicant/src/crypto -I/Users/username/esp/esp-idf/components/newlib/platform_include -I/Users/username/esp/esp-idf/components/freertos/FreeRTOS-Kernel/include -I/Users/username/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include -I/Users/username/esp/esp-idf/components/freertos/esp_additions/include/freertos -I/Users/username/esp/esp-idf/components/freertos/esp_additions/include -I/Users/username/esp/esp-idf/components/esp_hw_support/include -I/Users/username/esp/esp-idf/components/esp_hw_support/include/soc -I/Users/username/esp/esp-idf/components/esp_hw_support/include/soc/esp32c3 -I/Users/username/esp/esp-idf/components/esp_hw_support/port/esp32c3/. -I/Users/username/esp/esp-idf/components/esp_hw_support/port/esp32c3/private_include -I/Users/username/esp/esp-idf/components/heap/include -I/Users/username/esp/esp-idf/components/log/include -I/Users/username/esp/esp-idf/components/soc/include -I/Users/username/esp/esp-idf/components/soc/esp32c3 -I/Users/username/esp/esp-idf/components/soc/esp32c3/include -I/Users/username/esp/esp-idf/components/hal/esp32c3/include -I/Users/username/esp/esp-idf/components/hal/include -I/Users/username/esp/esp-idf/components/hal/platform_port/include -I/Users/username/esp/esp-idf/components/esp_rom/include -I/Users/username/esp/esp-idf/components/esp_rom/include/esp32c3 -I/Users/username/esp/esp-idf/components/esp_rom/esp32c3 -I/Users/username/esp/esp-idf/components/esp_common/include -I/Users/username/esp/esp-idf/components/esp_system/include -I/Users/username/esp/esp-idf/components/esp_system/port/soc -I/Users/username/esp/esp-idf/components/esp_system/port/include/riscv -I/Users/username/esp/esp-idf/components/esp_system/port/include/private -I/Users/username/esp/esp-idf/components/riscv/include -I/Users/username/esp/esp-idf/components/lwip/include -I/Users/username/esp/esp-idf/components/lwip/include/apps -I/Users/username/esp/esp-idf/components/lwip/include/apps/sntp -I/Users/username/esp/esp-idf/components/lwip/lwip/src/include -I/Users/username/esp/esp-idf/components/lwip/port/include -I/Users/username/esp/esp-idf/components/lwip/port/freertos/include -I/Users/username/esp/esp-idf/components/lwip/port/esp32xx/include -I/Users/username/esp/esp-idf/components/lwip/port/esp32xx/include/arch -I/Users/username/esp/esp-idf/components/mbedtls/port/include -I/Users/username/esp/esp-idf/components/mbedtls/mbedtls/include -I/Users/username/esp/esp-idf/components/mbedtls/mbedtls/library -I/Users/username/esp/esp-idf/components/mbedtls/esp_crt_bundle/include -I/Users/username/esp/esp-idf/components/esp_timer/include -I/Users/username/esp/esp-idf/components/esp_wifi/include -I/Users/username/esp/esp-idf/components/esp_event/include -I/Users/username/esp/esp-idf/components/esp_phy/include -I/Users/username/esp/esp-idf/components/esp_phy/esp32c3/include -I/Users/username/esp/esp-idf/components/esp_netif/include -march=rv32imc_zicsr_zifencei  -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 -nostartfiles -Os -freorder-blocks -fmacro-prefix-map=/Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor=. -fmacro-prefix-map=/Users/username/esp/esp-idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -DconfigENABLE_FREERTOS_DEBUG_OCDAWARE=1 -Wno-format-nonliteral -Wno-format-security -Wno-error=maybe-uninitialized -std=gnu17 -Wno-old-style-declaration -Wno-strict-aliasing -Wno-write-strings -Werror -Wno-format -MD -MT esp-idf/wpa_supplicant/CMakeFiles/__idf_wpa_supplicant.dir/src/ap/wpa_auth.c.obj -MF esp-idf/wpa_supplicant/CMakeFiles/__idf_wpa_supplicant.dir/src/ap/wpa_auth.c.obj.d -o esp-idf/wpa_supplicant/CMakeFiles/__idf_wpa_supplicant.dir/src/ap/wpa_auth.c.obj -c /Users/username/esp/esp-idf/components/wpa_supplicant/src/ap/wpa_auth.c
/Users/username/esp/esp-idf/components/wpa_supplicant/src/ap/wpa_auth.c: In function 'wpa_ap_join':
/Users/username/esp/esp-idf/components/wpa_supplicant/src/ap/wpa_auth.c:2547:17: error: implicit declaration of function 'esp_send_assoc_resp'; did you mean 'owe_process_assoc_resp'? [-Werror=implicit-function-declaration]
 2547 |             if (esp_send_assoc_resp(hapd, sta, bssid, resp, omit_rsnxe, subtype) != WLAN_STATUS_SUCCESS) {
      |                 ^~~~~~~~~~~~~~~~~~~
      |                 owe_process_assoc_resp
cc1: all warnings being treated as errors
[506/1000] Building C object esp-idf/wpa_supplicant/CMakeFiles/__idf_wpa_supplicant.dir/src/eap_peer/eap_ttls.c.obj
ninja: build stopped: subcommand failed.

 *  The terminal process "/bin/zsh '-c', 'ninja '" terminated with exit code: 1. 

0xDEADBEEF
Posts: 12
Joined: Sun Oct 25, 2020 3:58 pm

Re: Trouble building Matter examples on MacOS with VSCode

Postby 0xDEADBEEF » Sun Mar 05, 2023 5:36 pm

another update, I have deleted the idf version that i obtained via git clone and redownloaded idf 5.0.1 via the idf configurator (instead of search for idf) and I now get an entirely different error:

Code: Select all

 *  Executing task: ninja  

[243/964] 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 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /Users/username/.espressif/tools/riscv32-esp-elf/esp-2022r1-11.2.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Users/username/.espressif/tools/riscv32-esp-elf/esp-2022r1-11.2.0/riscv32-esp-elf/bin/riscv32-esp-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/username/.espressif/tools/riscv32-esp-elf/esp-2022r1-11.2.0/riscv32-esp-elf/bin/riscv32-esp-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32c3
-- Project sdkconfig file /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/sdkconfig
-- 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/username/esp/esp-idf/components/soc/esp32c3/ld/esp32c3.peripherals.ld
-- App "bootloader" version: v5.0.1-dirty
-- Adding linker script /Users/username/esp/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.ld
-- Adding linker script /Users/username/esp/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.api.ld
-- Adding linker script /Users/username/esp/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.libgcc.ld
-- Adding linker script /Users/username/esp/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.newlib.ld
-- Adding linker script /Users/username/esp/esp-idf/components/bootloader/subproject/main/ld/esp32c3/bootloader.ld
-- Adding linker script /Users/username/esp/esp-idf/components/bootloader/subproject/main/ld/esp32c3/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 riscv soc spi_flash
-- Component paths: /Users/username/esp/esp-idf/components/bootloader /Users/username/esp/esp-idf/components/bootloader_support /Users/username/esp/esp-idf/components/efuse /Users/username/esp/esp-idf/components/esp_app_format /Users/username/esp/esp-idf/components/esp_common /Users/username/esp/esp-idf/components/esp_hw_support /Users/username/esp/esp-idf/components/esp_rom /Users/username/esp/esp-idf/components/esp_system /Users/username/esp/esp-idf/components/esptool_py /Users/username/esp/esp-idf/components/freertos /Users/username/esp/esp-idf/components/hal /Users/username/esp/esp-idf/components/log /Users/username/esp/esp-idf/components/bootloader/subproject/main /Users/username/esp/esp-idf/components/bootloader/subproject/components/micro-ecc /Users/username/esp/esp-idf/components/newlib /Users/username/esp/esp-idf/components/partition_table /Users/username/esp/esp-idf/components/riscv /Users/username/esp/esp-idf/components/soc /Users/username/esp/esp-idf/components/spi_flash
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/build/bootloader
[337/964] Performing build step for 'bootloader'
[1/94] Generating project_elf_src_esp32c3.c
[2/94] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/dedic_gpio_periph.c.obj
[3/94] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/gdma_periph.c.obj
[4/94] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/sdm_periph.c.obj
[5/94] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/interrupts.c.obj
[6/94] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/spi_periph.c.obj
[7/94] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/ledc_periph.c.obj
[8/94] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/rmt_periph.c.obj
[9/94] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/adc_periph.c.obj
[10/94] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/gpio_periph.c.obj
[11/94] Building C object CMakeFiles/bootloader.elf.dir/project_elf_src_esp32c3.c.obj
[12/94] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/dport_access_common.c.obj
[13/94] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/lldesc.c.obj
[14/94] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/i2s_periph.c.obj
[15/94] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/uart_periph.c.obj
[16/94] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/temperature_sensor_periph.c.obj
[17/94] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/timer_periph.c.obj
[18/94] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/i2c_periph.c.obj
[19/94] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/mpu_hal.c.obj
[20/94] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/efuse_hal.c.obj
[21/94] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_mem.c.obj
[22/94] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/esp32c3/efuse_hal.c.obj
[23/94] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/mmu_hal.c.obj
[24/94] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/cache_hal.c.obj
[25/94] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/wdt_hal_iram.c.obj
[26/94] Building C object esp-idf/esp_app_format/CMakeFiles/__idf_esp_app_format.dir/esp_app_desc.c.obj
[27/94] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_clock_init.c.obj
[28/94] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_random_esp32c3.c.obj
[29/94] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_random.c.obj
[30/94] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/secure_boot.c.obj
[31/94] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_common.c.obj
[32/94] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_common_loader.c.obj
[33/94] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_efuse.c.obj
[34/94] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_partitions.c.obj
[35/94] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/bootloader_flash/src/bootloader_flash_config_esp32c3.c.obj
[36/94] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_clock_loader.c.obj
[37/94] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_encrypt.c.obj
[38/94] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_console_loader.c.obj
[39/94] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_console.c.obj
[40/94] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/bootloader_flash/src/bootloader_flash.c.obj
[41/94] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_panic.c.obj
[42/94] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/bootloader_flash/src/flash_qio_mode.c.obj
[43/94] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32c3/esp_efuse_table.c.obj
[44/94] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32c3/bootloader_soc.c.obj
[45/94] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32c3/bootloader_sha.c.obj
[46/94] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32c3/esp_efuse_rtc_calib.c.obj
[47/94] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32c3/esp_efuse_fields.c.obj
[48/94] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_init.c.obj
[49/94] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32c3/bootloader_esp32c3.c.obj
[50/94] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_fields.c.obj
[51/94] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_utility.c.obj
[52/94] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32c3/esp_efuse_utility.c.obj
[53/94] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp_image_format.c.obj
[54/94] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/esp_memory_utils.c.obj
[55/94] Building C object esp-idf/esp_system/CMakeFiles/__idf_esp_system.dir/esp_err.c.obj
[56/94] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_api.c.obj
[57/94] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32c3/rtc_pm.c.obj
[58/94] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32c3/chip_info.c.obj
[59/94] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/efuse_controller/keys/with_key_purposes/esp_efuse_api_key.c.obj
[60/94] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_utility.c.obj
[61/94] Building C object esp-idf/esp_common/CMakeFiles/__idf_esp_common.dir/src/esp_err_to_name.c.obj
[62/94] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/cpu.c.obj
[63/94] Building C object esp-idf/micro-ecc/CMakeFiles/__idf_micro-ecc.dir/uECC_verify_antifault.c.obj
[64/94] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_crc.c.obj
[65/94] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32c3/rtc_clk_init.c.obj
[66/94] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_sys.c.obj
[67/94] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32c3/rtc_sleep.c.obj
[68/94] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_spiflash.c.obj
[69/94] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_regi2c.c.obj
[70/94] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_efuse.c.obj
[71/94] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_systimer.c.obj
[72/94] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32c3/rtc_time.c.obj
[73/94] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32c3/rtc_clk.c.obj
[74/94] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32c3/rtc_init.c.obj
[75/94] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log_noos.c.obj
[76/94] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/bootloader_start.c.obj
[77/94] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_uart.c.obj
[78/94] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log_buffers.c.obj
[79/94] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log.c.obj
[80/94] Linking C static library esp-idf/log/liblog.a
[81/94] Linking C static library esp-idf/esp_rom/libesp_rom.a
[82/94] Linking C static library esp-idf/esp_common/libesp_common.a
[83/94] Linking C static library esp-idf/esp_hw_support/libesp_hw_support.a
[84/94] Linking C static library esp-idf/esp_system/libesp_system.a
[85/94] Linking C static library esp-idf/efuse/libefuse.a
[86/94] Linking C static library esp-idf/bootloader_support/libbootloader_support.a
[87/94] Linking C static library esp-idf/esp_app_format/libesp_app_format.a
[88/94] Linking C static library esp-idf/hal/libhal.a
[89/94] Linking C static library esp-idf/micro-ecc/libmicro-ecc.a
[90/94] Linking C static library esp-idf/soc/libsoc.a
[91/94] Linking C static library esp-idf/main/libmain.a
[92/94] Linking C executable bootloader.elf
[93/94] Generating binary image from built executable
esptool.py v4.5.1
Creating esp32c3 image...
Merged 1 ELF section
Successfully created esp32c3 image.
Generated /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/build/bootloader/bootloader.bin
[94/94] cd /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/build/bootloader/esp-idf/esptool_py && /Users/username/.espressif/python_env/idf5.0_py3.11_env/bin/python /Users/username/esp/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/build/bootloader/bootloader.bin
Bootloader binary size 0x4900 bytes. 0x3700 bytes (43%) free.
[559/964] Generating ../../gen/app-codegen/cpp-app/app/PluginApplicationCallbacks.h, ../../gen/app-codegen/cpp-app/app/callback-stub.cpp
FAILED: gen/app-codegen/cpp-app/app/PluginApplicationCallbacks.h gen/app-codegen/cpp-app/app/callback-stub.cpp /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/build/gen/app-codegen/cpp-app/app/PluginApplicationCallbacks.h /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/build/gen/app-codegen/cpp-app/app/callback-stub.cpp 
cd /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/build/esp-idf/main && /Users/username/Documents/ESP-IDF_Projects/connectedhomeip/scripts/codegen.py --generator cpp-app --output-dir /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/build/gen/app-codegen/cpp-app --expected-outputs /Users/username/Documents/ESP-IDF_Projects/matter-temperaturesensor/build/gen/app-codegen/cpp-app/expected.outputs /Users/username/Documents/ESP-IDF_Projects/connectedhomeip/examples/temperature-measurement-app/temperature-measurement-common/temperature-measurement.matter
Traceback (most recent call last):
  File "/Users/username/Documents/ESP-IDF_Projects/connectedhomeip/scripts/codegen.py", line 28, in <module>
    from matter_idl.matter_idl_parser import CreateParser
ModuleNotFoundError: No module named 'matter_idl'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/username/Documents/ESP-IDF_Projects/connectedhomeip/scripts/codegen.py", line 32, in <module>
    from matter_idl.matter_idl_parser import CreateParser
  File "/Users/username/Documents/ESP-IDF_Projects/connectedhomeip/scripts/py_matter_idl/matter_idl/matter_idl_parser.py", line 6, in <module>
    from lark import Lark
ModuleNotFoundError: No module named 'lark'
[570/964] Building C object esp-idf/esp_http_client/CMakeFiles/__idf_esp_http_client.dir/esp_http_client.c.obj
ninja: build stopped: subcommand failed.

 *  The terminal process "/bin/zsh '-c', 'ninja '" terminated with exit code: 1. 
if I press build again after this, it again fails with

Code: Select all

No such file or directory - "zap-cli"

0xDEADBEEF
Posts: 12
Joined: Sun Oct 25, 2020 3:58 pm

Re: Trouble building Matter examples on MacOS with VSCode

Postby 0xDEADBEEF » Tue Mar 07, 2023 8:35 am

Where can I find help getting the matter examples build?
Whatever I'm doing, whichever guide I'm following, whichever target i'm trying to build for, I'm just running into all kinds of build errors. I'm pretty sure that's not how it's supposed to be and I must be doing something wrong.

Surjeet
Posts: 3
Joined: Mon Mar 06, 2023 8:05 pm

Re: Trouble building Matter examples on MacOS with VSCode

Postby Surjeet » Wed Mar 08, 2023 7:55 am

I'm facing the initial error in Ubuntu.
Error - implicit declaration of function 'esp_send_assoc_resp'; did you mean 'owe_process_assoc_resp'?
from: wpa_auth.c under wpa_supplicant component.

can anyone pls help me here?

Thanks in advance!

esp_shubhamdp
Posts: 1
Joined: Thu Mar 09, 2023 12:28 pm

Re: Trouble building Matter examples on MacOS with VSCode

Postby esp_shubhamdp » Thu Mar 09, 2023 12:35 pm

Can you please share the connectedhomeip and idf revision that you are using?

Please take a look at https://github.com/project-chip/connect ... df_chip.md

Also, supported IDF revisions are IDF v4.4.3 and v5.0.

For zap-cli failure, please install zap-cli as instructed here: https://github.com/project-chip/connect ... alling-zap

raminf
Posts: 2
Joined: Wed Dec 02, 2015 7:26 pm

Re: Trouble building Matter examples on MacOS with VSCode

Postby raminf » Mon May 22, 2023 11:56 pm

Having similar issue, except not even using VSCode. This is from the terminal.

- Mac M1 Pro Ventura 13.3.1
- ESP-IDF v5.1-dev-3888-g47852846d3
- CHIP/Matter SDK: 2023-03 - Release Candidate 2
- Trying to build the connectedhomeip/examples/all-clusters-app/esp32, configured for an m5Stack Core device.

Deleted everything and reinstalled Matter and esp-idf based on instructions here. Had lots of esp-idf issues with incorrect Python version (system framework vs pyenv) as well as zap-cli versioning. But got past those.

Then tried to build the example Matter all-clusters-app example based on these instructions:

Code: Select all

https://github.com/project-chip/connectedhomeip/blob/master/docs/guides/esp32/build_app_and_commission.md
Instead of esp32h2, I specified esp32 and went into menuconfig and chose M5Stack.

Code: Select all

.../esp-idf/components/wpa_supplicant/src/ap/wpa_auth.c: In function 'wpa_ap_join':
.../esp-idf/components/wpa_supplicant/src/ap/wpa_auth.c:2547:17: error: implicit declaration of function 'esp_send_assoc_resp'; did you mean 'owe_process_assoc_resp'? [-Werror=implicit-function-declaration]
 2547 |             if (esp_send_assoc_resp(hapd, sta, bssid, resp, omit_rsnxe, subtype) != WLAN_STATUS_SUCCESS) {
      |                 ^~~~~~~~~~~~~~~~~~~
      |                 owe_process_assoc_resp

Any tips appreciated.

Who is online

Users browsing this forum: Baidu [Spider] and 191 guests