Page 1 of 1

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

Posted: Tue Nov 12, 2024 5:03 pm
by tomasmcguinness
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.

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

Posted: Sat Nov 16, 2024 4:20 pm
by Michael_mhr
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

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

Posted: Wed Nov 20, 2024 12:22 am
by stvlaa
running same issue. any solutions so far? using ESP32-C6

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

Posted: Wed Nov 20, 2024 4:21 pm
by stvlaa
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 :)

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

Posted: Sun Dec 08, 2024 6:47 pm
by TheMisfit68
Same problem, workaround did not help in my case.
Did anyone find a solution to this.
Used to work perfectly before.