Performing build step for 'chip_gn' fails on fresh esp-idf and esp-matter installation

tomasmcguinness
Posts: 6
Joined: Thu Jul 18, 2019 9:20 pm

Performing build step for 'chip_gn' fails on fresh esp-idf and esp-matter installation

Postby tomasmcguinness » Tue Nov 12, 2024 5:03 pm

Hi,

I have had a previously working esp-matter environment on my MacOS, but after attempting to download everything again, I can't get any of the samples to compile.

I am opening the generic_switch example under esp-matter/examples. This previously compiled and flashed onto an esp32-h2 I have, but since deleting the folders and performing the installation again, I now get this error:

[962/1531] Performing configure step for 'chip_gn'
Done. Made 3650 targets from 284 files in 349ms
[963/1531] Performing build step for 'chip_gn'
FAILED: esp-idf/chip/chip_gn-prefix/src/chip_gn-stamp/chip_gn-build esp-idf/chip/lib/libCHIP.a /Users/tomasmcguinness/esp/esp-matter/examples/generic_switch/build/esp-idf/chip/chip_gn-prefix/src/chip_gn-stamp/chip_gn-build /Users/tomasmcguinness/esp/esp-matter/examples/generic_switch/build/esp-idf/chip/lib/libCHIP.a
cd "/Users/tomasmcguinness/esp/esp-matter/connectedhomeip/connectedhomeip/config/esp32/components/chip;/Users/tomasmcguinness/esp/esp-matter/examples/generic_switch/build/esp-idf/chip" && ninja esp32
/bin/sh: line 0: cd: /Users/tomasmcguinness/esp/esp-matter/connectedhomeip/connectedhomeip/config/esp32/components/chip;/Users/tomasmcguinness/esp/esp-matter/examples/generic_switch/build/esp-idf/chip: No such file or directory
[964/1531] Linking C static library esp-idf/openthread/libopenthread.a
ninja: build stopped: subcommand failed.

Michael_mhr
Posts: 1
Joined: Sat Nov 16, 2024 4:17 pm

Re: Performing build step for 'chip_gn' fails on fresh esp-idf and esp-matter installation

Postby Michael_mhr » Sat Nov 16, 2024 4:20 pm

Exactly the same here.
Using ESP32-C6.

Got this error after doing a fresh install of esprit idf and matter using only the command line.
The same error comes also up when doing a fresh install using only VS Code.

Any fix / workaround for this?

Cheers
Mike

stvlaa
Posts: 2
Joined: Wed Nov 20, 2024 12:20 am

Re: Performing build step for 'chip_gn' fails on fresh esp-idf and esp-matter installation

Postby stvlaa » Wed Nov 20, 2024 12:22 am

running same issue. any solutions so far? using ESP32-C6

stvlaa
Posts: 2
Joined: Wed Nov 20, 2024 12:20 am

Re: Performing build step for 'chip_gn' fails on fresh esp-idf and esp-matter installation

Postby stvlaa » Wed Nov 20, 2024 4:21 pm

I found a workaround:

go to build.ninja file

/project/build/build.ninja

find something like
COMMAND = cd "/Users/uladzislau/esp/esp-matter/connectedhomeip/connectedhomeip/config/esp32/components/chip;/Volumes/Uladzislau/embeeded/swift-matter-examples/led-blink/build/esp-idf/chip" && ninja esp32
DESC = Performing build step for 'chip_gn'
restat = 1

and delete first part from the path: /Users/uladzislau/esp/esp-matter/connectedhomeip/connectedhomeip/config/esp32/components/chip;

build again and flash :)

Who is online

Users browsing this forum: No registered users and 114 guests