try to build project getting error

[5/10] Performing build step for 'peripheral_lbs'
ninja: error: '/index', needed by 'zephyr/include/generated/ncs_commit.h', missing and no known rule to make it


FAILED: _sysbuild/sysbuild/images/peripheral_lbs-prefix/src/peripheral_lbs-stamp/peripheral_lbs-build C:/ncs/v3.1.0/nrf/samples/bluetooth/peripheral_lbs/build/_sysbuild/sysbuild/images/peripheral_lbs-
prefix/src/peripheral_lbs-stamp/peripheral_lbs-build
cmd.exe /C "cd /D C:\ncs\v3.1.0\nrf\samples\bluetooth\peripheral_lbs\build\peripheral_lbs && C:\ncs\toolchains\b8b84efebd\opt\bin\cmake.exe --build ."
ninja: build stopped: subcommand failed.


FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\b8b84efebd\opt\bin\cmake.EXE' --build C:/ncs/v3.1.0/nrf/samples/bluetooth/peripheral_lbs/build

Parents
  • Hi

    We need more information to be able to help you with getting the project to build correctly here. Can you share some more information on the following:

    1. Can you confirm you have the correct version of the Toolchain set for what SDK version you're building (NCS 3.1.0).
    2. Are you building using VS Code and the nRF Connect extension or over the command line, and what is the build command exactly.
    3. Share the full build log, as this is not sufficient to point out where the issue is exactly.

    Best regards,

    Simon

Reply
  • Hi

    We need more information to be able to help you with getting the project to build correctly here. Can you share some more information on the following:

    1. Can you confirm you have the correct version of the Toolchain set for what SDK version you're building (NCS 3.1.0).
    2. Are you building using VS Code and the nRF Connect extension or over the command line, and what is the build command exactly.
    3. Share the full build log, as this is not sufficient to point out where the issue is exactly.

    Best regards,

    Simon

Children
Related