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 Reply Children
  • 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!

  • Thank you for the details. I will have to discuss this internally and will get back to you.

    Also, it looks like you did a git clone and not a west init. Is this correct?

    -Priyanka

  • I used west init. To start from the beginning I...

    • nrfutil toolchain-manager launch --shell
    • west init -m [github repo].git my-workspace
    • cd my-workspace
    • west update
    • source zephyr/zephyr-env.sh (I have tried with and without this step)
    • cd ULC.git
    • west build

    and I always end up with this output

    (v2.6.1) daniel@JUS-L-B5C2TW3:~/Documents/my-workspace/ULC2.git$ west build --board=noke_glock
    -- west build: generating a build system
    -- The C compiler identification is GNU 11.4.0
    -- The CXX compiler identification is GNU 11.4.0
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working C compiler: /usr/bin/cc - skipped
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/c++ - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    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/my-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/my-workspace/ULC2.git/build -GNinja -DBOARD=noke_glock -S/home/daniel/Documents/my-workspace/ULC2.git
    (v2.6.1) daniel@JUS-L-B5C2TW3:~/Documents/my-workspace/ULC2.git$

    I can't seem to find any reference anywhere to "zephyr_syscall_include_directories" besides the CMakeLists files in the sample projects from nordic and zephyr. Is it possible it's compiled into something? I assumed it was going to be defined in a *.cmake kinda file(that I'm failing to include), but that doesn't seem to be the case.

    Thanks!

  • Thank you for the detailed update. We are looking into this.

  • Hi Priyanka! Is there any update on this? Thanks!

Related