esp-matter fails on chip_gn for all examples

miznick
Posts: 2
Joined: Mon Mar 27, 2023 3:08 pm

esp-matter fails on chip_gn for all examples

Postby miznick » Mon Mar 27, 2023 3:29 pm

Hello - I'm trying to build and run any of the esp-matter examples for an esp-wroom-32 development kit. When running idf.py flash, it is failing on the chip_gn configure step:

Code: Select all

[625/1306] Performing configure step for 'chip_gn'
FAILED: esp-idf/chip/chip_gn-prefix/src/chip_gn-stamp/chip_gn-configure 
cd /Users/mike/esp/esp-matter/examples/light/build/esp-idf/chip && /Users/mike/bin/gn --root=/Users/mike/esp/esp-matter/connectedhomeip/connectedhomeip/config/esp32 gen --check --fail-on-unused-args /Users/mike/esp/esp-matter/examples/light/build/esp-idf/chip && /usr/local/Cellar/cmake/3.18.4/bin/cmake -E touch /Users/mike/esp/esp-matter/examples/light/build/esp-idf/chip/chip_gn-prefix/src/chip_gn-stamp/chip_gn-configure
ERROR at //build_overrides/pigweed_environment.gni:20:1: Unable to load "/Users/mike/esp/esp-matter/connectedhomeip/connectedhomeip/config/esp32/third_party/connectedhomeip/build_overrides/pigweed_environment.gni".
import("${_bootstrap_root}/build_overrides/pigweed_environment.gni")
^------------------------------------------------------------------
See //third_party/connectedhomeip/third_party/pigweed/repo/pw_toolchain/clang_tools.gni:15:1: whence it was imported.
import("//build_overrides/pigweed_environment.gni")
^-------------------------------------------------
See //third_party/connectedhomeip/third_party/pigweed/repo/pw_toolchain/host_clang/toolchains.gni:17:1: whence it was imported.
import("$dir_pw_toolchain/clang_tools.gni")
^-----------------------------------------
See //third_party/connectedhomeip/third_party/pigweed/repo/pw_unit_test/test.gni:20:1: whence it was imported.
import("$dir_pw_toolchain/host_clang/toolchains.gni")
^---------------------------------------------------
See //third_party/connectedhomeip/build/chip/chip_test.gni:23:1: whence it was imported.
import("${dir_pw_unit_test}/test.gni")
^------------------------------------
See //third_party/connectedhomeip/build/chip/chip_test_suite.gni:18:1: whence it was imported.
import("${chip_root}/build/chip/chip_test.gni")
^---------------------------------------------
See //third_party/connectedhomeip/src/lib/dnssd/minimal_mdns/records/tests/BUILD.gn:19:1: whence it was imported.
import("${chip_root}/build/chip/chip_test_suite.gni")
^---------------------------------------------------
See //third_party/connectedhomeip/build/chip/chip_test_group.gni:46:17: which caused the file to be included.
      deps += [ get_label_info(_test, "label_no_toolchain") + "_lib" ]
                ^-----------------------------------------
When I navigate to the build_overrides directory, there is no pigweed_environment.gni file.

Any ideas?

Kasaei
Posts: 1
Joined: Thu Apr 06, 2023 4:18 am

Re: esp-matter fails on chip_gn for all examples

Postby Kasaei » Thu Apr 06, 2023 4:22 am

Hi, I did get to exactly this state by using

Code: Select all

idf.py --no-ccache build

Were you able to find a solution to this problem?

UPDATE: I fixed my problem by reinstalling the ESP-IDF 5.0.

Who is online

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