nRF Connect CLI Build - CMake Error

I am attempting to build a project off of the XXX template repository. So far I have gotten the workspace set up and am now attempting to run "west build" but I get the below error. This looks like CMake just can't find a custom zephyr module/plugin but I can't seem to find help anywhere for pointing CMake at the right *.cmake files. Am I missing something? Thanks!

Parents
  • Hi Daniel,

    It would be great to get more details.

    Is it possible to attach the entire log along with the error that you get?

    Which sample are you trying to build? Which SDK and Toolchain version?

    Regards,

    Priyanka

  • Sure! I am using v2.6.1 of the toolchain and the SDK. This error occurs for any of the builds I attempt to run from the command line that uses the template/structure found in https://github.com/nrfconnect/ncs-example-application. I have also already set up the environment using "nrfutil toolchain-manager launch --shell"

    (v2.6.1) daniel@JUS-L-B5C2TW3:~/Documents/ULC-Workspace/ULC2.git$ west build --board=noke_glock -p
    -- west build: generating a build system
    CMake Error at CMakeLists.txt:12 (zephyr_syscall_include_directories):
      Unknown CMake command "zephyr_syscall_include_directories".
    
    
    -- Configuring incomplete, errors occurred!
    See also "/home/daniel/Documents/ULC-Workspace/ULC2.git/build/CMakeFiles/CMakeOutput.log".
    FATAL ERROR: command exited with status 1: /home/daniel/ncs/toolchains/2be090971e/usr/local/bin/cmake -DWEST_PYTHON=/home/daniel/ncs/toolchains/2be090971e/usr/local/bin/python3.9 -B/home/daniel/Documents/ULC-Workspace/ULC2.git/build -GNinja -DBOARD=noke_glock -S/home/daniel/Documents/ULC-Workspace/ULC2.git

    Thanks!

Reply
  • Sure! I am using v2.6.1 of the toolchain and the SDK. This error occurs for any of the builds I attempt to run from the command line that uses the template/structure found in https://github.com/nrfconnect/ncs-example-application. I have also already set up the environment using "nrfutil toolchain-manager launch --shell"

    (v2.6.1) daniel@JUS-L-B5C2TW3:~/Documents/ULC-Workspace/ULC2.git$ west build --board=noke_glock -p
    -- west build: generating a build system
    CMake Error at CMakeLists.txt:12 (zephyr_syscall_include_directories):
      Unknown CMake command "zephyr_syscall_include_directories".
    
    
    -- Configuring incomplete, errors occurred!
    See also "/home/daniel/Documents/ULC-Workspace/ULC2.git/build/CMakeFiles/CMakeOutput.log".
    FATAL ERROR: command exited with status 1: /home/daniel/ncs/toolchains/2be090971e/usr/local/bin/cmake -DWEST_PYTHON=/home/daniel/ncs/toolchains/2be090971e/usr/local/bin/python3.9 -B/home/daniel/Documents/ULC-Workspace/ULC2.git/build -GNinja -DBOARD=noke_glock -S/home/daniel/Documents/ULC-Workspace/ULC2.git

    Thanks!

Children
No Data
Related