connectedhomeip
connectedhomeip copied to clipboard
Initial Build Task fails
- expected behavior Build Task Completes
- actual behavior Build Task Fails
- steps to reproduce Follow set up for Docker and vscode on windows, up to the point where you execute Run Build Task for the first time
- system configuration Windows 11, Docker Desktop, Visual Studio Code
Had to change activate.sh to ./scripts/bootstrap.sh to get Bootstrap to run (Not sure if relevant)
Running "Run Build Task" eventually spits out:
Done. Made 4027 targets from 255 files in 2848ms
+ ninja -C ./out/default
ninja: Entering directory `./out/default'
ninja: error: '../../third_party/nlfaultinjection/repo/src/nlfaultinjection.cpp', needed by 'obj/third_party/nlfaultinjection/repo/src/libnlfaultinjection.nlfaultinjection.cpp.o', missing and no known rule to make it
The terminal process "/bin/bash '-c', 'scripts/build/default.sh'" terminated with exit code: 1.
@andy31415
My build fails at the same step but in a different way. I also have the same config as @jimmyeao (Windows 11, etc.)
It took a while but I finally got the bootstrap to work and I thought I was out of the woods. However, when I go to "Run Build Task" I get:
> Executing task: scripts/build/default.sh <
scripts/build/../../scripts/activate.sh: line 1: bootstrap.sh: command not found
The terminal process "/bin/bash '-c', 'scripts/build/default.sh'" failed to launch (exit code: 127).
My goal is to get all-clusters-app
to build and deploy on esp32.
UPDATE: I modified activate.sh
to the following based on a suggestion from another issue.
#bootstrap.sh
./scripts/bootstrap.sh
At this point, I get the same error as described above.
Done. Made 4160 targets from 253 files in 6409ms
+ ninja -C out/default
ninja: Entering directory `out/default'
ninja: error: '../../third_party/nlfaultinjection/repo/src/nlfaultinjection.cpp', needed by 'obj/third_party/nlfaultinjection/repo/src/libnlfaultinjection.nlfaultinjection.cpp.o', missing and no known rule to make it
The terminal process "/bin/bash '-c', 'scripts/build/default.sh'" terminated with exit code: 1.```
Following the readme tutorial ran into the same problem
Env: Ubuntu20.04 @andy31415
Had the same error . this is what I did to make it work
clone with this option : -c core.symlinks=true this will create the symlink for some file ex: "./stripts/activate.sh" is a symlink to bootstrap.sh
after restarting VSCode and before running Bootstraps: in a terminal : sudo chown vscode:vscode /workspaces/connectedhomeip/ -R sudo chmod 777 /workspaces/connectedhomeip/ -R
will allow the submodule to be downloaded and properly install.
Hope this will help
-
Delete dir third_party/nlfaultinjection/repo
-
run command
source scripts/bootstrap.sh
source scripts/activate.sh
gn gen out/host
ninja -C out/host