connectedhomeip icon indicating copy to clipboard operation
connectedhomeip copied to clipboard

Initial Build Task fails

Open jimmyeao opened this issue 2 years ago • 3 comments

  • 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.

jimmyeao avatar Jun 16 '22 14:06 jimmyeao

@andy31415

bzbarsky-apple avatar Jun 16 '22 15:06 bzbarsky-apple

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.```

damon-beaven avatar Jun 17 '22 13:06 damon-beaven

Following the readme tutorial ran into the same problem Env: Ubuntu20.04 @andy31415 Snipaste_2022-10-22_14-32-21

fanlb avatar Oct 22 '22 06:10 fanlb

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

saue0 avatar Dec 15 '22 19:12 saue0

  1. Delete dir third_party/nlfaultinjection/repo

  2. run command

source scripts/bootstrap.sh
source scripts/activate.sh
gn gen out/host
ninja -C out/host

luojr9 avatar Apr 30 '23 05:04 luojr9