-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't build - Performing build step for 'chip_gn' FAILED (CON-1388) #1127
Comments
@lacsap88 can you please elaborate more on what steps did you follow when building the
[Reference to Programming Guide: Developing with the SDK] |
I ran through this tutorial until step 2.2.4 - this failed I can build the blink example from the esp-idf without any problems.
so I'm kind of lost |
Can you please help me with the below details Environment
|
ESP-Matter Commit ID: 5b4cc83 (grafted, HEAD -> main, origin/main, origin/HEAD) All Logs attached |
any ideas? |
I looked at the logs and could think of few things that may be causing issue
If this fails please paste/redirect the commands and their outputs (better option, cut-paste the complete terminal logs) to a file and attach it for further debugging. If you want to just try out the firmware, you can try it through esp-launchpad. If you want to build without setting up stuff, you can use the esp-matter docker image along with esp-idf docker guide. NOTE: esp-idf docker guide uses espressif/idf as the image, you will need to use the espressif/esp-matter instead. |
I encounter the same problem. when I run idf.py -v build I get the attached log. |
Hi, @herculesp17 and @lacsap88... Same problem here, in any project with esp-matter... i tried very many versions of esp-idf/esp-matter... did you manage to solve it? |
@xbrunosousa
These are the steps to make it work for me: docker
If you want to flash the firmware and an example on your esp32 you might have to make the ports available inside the docker container. If you just want to build the examples skip this steppip3 install esptools
esp_rfc2217_server.py -v -p 4000 /path/to/your/port start the containercopy the project directory from an esp-matter project where you store your usual projects and inside of that one run the following command to start the docker container: docker run --rm -v $PWD:/project -w /project -u $UID -e HOME=/tmp -it --network host espressif/esp-matter erase the esp32 and flash the firmware
idf.py --port 'rfc2217://host.docker.internal:4000?ign_set_control' erase-flash idf.py --port 'rfc2217://host.docker.internal:4000?ign_set_control' flash monitor Hope this works for you as well! |
Hi, @herculesp17 and @lacsap88. I found the main Reason for this problem. See #1157 CMake creates the Build step for chip_gn with a semicolon cutted cd command when executed with /bin/sh. It would work if the path to both folder wouldn't be escaped in a double quote. I edited the build.ninja and after that it Worked but that is not a good solution because it is auto generated. Does somebody know where the two folder Paths find place into the build.ninja? Maybe it is a bug in command |
@North3rnL1ght thanks for the instructions. Removing the double quotes from the command didn't help. And it makes totally sense to me that neither
Whereas the command on my arch linux looked like you described with the double quotes and the weird cd-command
Changing this gives me no more errors when building. @shubhamdp do you know how to resolve this issue since we now know that the automated generated cmkae file is generating wrong? |
Has a patch here... |
Duplicate of #1157. |
We have rolled up the connectedhomeip submodule in 0e53bca which has the patched fix. |
idf_py_stdout_output_54103.txt
Any Ideas, how to fix this?
The text was updated successfully, but these errors were encountered: