This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

CMAKE Error

Hello, I am receiving the error below when trying to build an application using the command: 

C:\Nordic\ncs\nrf\applications\asset_tracker\build>cmake -GNinja -DBOARD=nrf9160_pca10090 -DBOARD_DIR=C:/Nordic/ncs/zephyr/boards/arm/nrf9160_pca10090 -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=C:/gnuarmemb -BC:/Nordic/ncs/nrf/applications/asset_tracker/build -HC:/Nordic/ncs/nrf/applications/asset_tracker

CMake Error at CMakeLists.txt:11 (include):
include could not find load file:

/cmake/app/boilerplate.cmake


-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:12 (project):
No CMAKE_C_COMPILER could be found.

Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.

Parents Reply Children
  • Hi Andreas, Yes I have even checked out the following tags and have tried using SES and CMD. This use to work before but now it does not.

    I had West installed but ran into some issues and removed it and am trying to get Cmake back up and running.

    cd <sourcecode_root>\ncs\zephyr ; git checkout tags/v1.13.99-ncs2
    cd <sourcecode_root>\ncs\mcuboot ; git checkout tags/v1.2.99-ncs2
    cd <sourcecode_root>\ncs\nrf ; git checkout tags/v0.3.0
    cd <sourcecode_root>\ncs\nrfxlib ; git checkout tags/v0.3.0


    Error Log from SES:

    Loading solution asset_tracker.emProject
    Executing load commands
    cmake -GNinja -DBOARD=nrf9160_pca10090 -DBOARD_DIR=C:/Nordic/ncs/fw-nrfconnect-zephyr/boards/arm/nrf9160_pca10090 -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=C:/gnuarmemb -BC:/Nordic/ncs/nrf/samples/nrf9160/asset_tracker/build -HC:/Nordic/ncs/nrf/samples/nrf9160/asset_tracker
    -- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7.2", minimum required is "3.4")
    -- Selected BOARD nrf9160_pca10090
    Zephyr version: 1.13.99

    Parsing Kconfig tree in C:/Nordic/ncs/nrf/samples/nrf9160/asset_tracker/Kconfig
    Loading C:/Nordic/ncs/fw-nrfconnect-zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090_defconfig as base
    Merging C:/Nordic/ncs/nrf/samples/nrf9160/asset_tracker/prj.conf
    warning: the choice symbol UART_1 (defined at drivers\serial\Kconfig.stm32:22, ..\nrf\lib\at_host\Kconfig:24) is defined with a prompt outside the choice

    warning: the choice symbol UART_2 (defined at drivers\serial\Kconfig.stm32:31, ..\nrf\lib\at_host\Kconfig:26) is defined with a prompt outside the choice

    Error: Aborting due to non-whitelisted Kconfig warning 'warning: the choice symbol UART_1 (defined
    at drivers\serial\Kconfig.stm32:22, ..\nrf\lib\at_host\Kconfig:24) is defined with a prompt outside
    the choice'. Note: If this warning doesn't point to an actual problem, you can add it to the
    whitelist at the top of C:/Nordic/ncs/fw-nrfconnect-zephyr/scripts/kconfig/kconfig.py.

    CMake Error at C:/Nordic/ncs/fw-nrfconnect-zephyr/cmake/kconfig.cmake:159 (message):
    command failed with return code: 1
    Call Stack (most recent call first):
    C:/Nordic/ncs/fw-nrfconnect-zephyr/cmake/app/boilerplate.cmake:282 (include)
    CMakeLists.txt:11 (include)


    -- Configuring incomplete, errors occurred!
    Project load failed
    Reported error: solution load command failed (1)


    Also I tried using CMD Prompt as well and same errors:

    C:\Nordic\ncs>cmake -GNinja -DBOARD=nrf9160_pca10090 -DBOARD_DIR=C:/Nordic/ncs/fw-nrfconnect-zephyr/boards/arm/nrf9160_pca10090 -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=C:/gnuarmemb -BC:/Nordic/ncs/nrf/samples/nrf9160/asset_tracker/build -HC:/Nordic/ncs/nrf/samples/nrf9160/asset_tracker
    -- Selected BOARD nrf9160_pca10090
    Zephyr version: 1.13.99
    Parsing Kconfig tree in C:/Nordic/ncs/nrf/samples/nrf9160/asset_tracker/Kconfig
    Loading C:/Nordic/ncs/fw-nrfconnect-zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090_defconfig as base
    Merging C:/Nordic/ncs/nrf/samples/nrf9160/asset_tracker/prj.conf

    warning: the choice symbol UART_1 (defined at drivers\serial\Kconfig.stm32:22, ..\nrf\lib\at_host\Kconfig:24) is defined with a prompt outside the choice

    warning: the choice symbol UART_2 (defined at drivers\serial\Kconfig.stm32:31, ..\nrf\lib\at_host\Kconfig:26) is defined with a prompt outside the choice

    Error: Aborting due to non-whitelisted Kconfig warning 'warning: the choice symbol UART_1 (defined
    at drivers\serial\Kconfig.stm32:22, ..\nrf\lib\at_host\Kconfig:24) is defined with a prompt outside
    the choice'. Note: If this warning doesn't point to an actual problem, you can add it to the
    whitelist at the top of C:/Nordic/ncs/fw-nrfconnect-zephyr//scripts/kconfig/kconfig.py.

    CMake Error at C:/Nordic/ncs/fw-nrfconnect-zephyr/cmake/kconfig.cmake:159 (message):
    command failed with return code: 1
    Call Stack (most recent call first):
    C:/Nordic/ncs/fw-nrfconnect-zephyr/cmake/app/boilerplate.cmake:282 (include)
    CMakeLists.txt:11 (include)


    -- Configuring incomplete, errors occurred!





  • Hi.

    Have you tried to delete the build folder and rebuild the project?

    Best regards,

    Andreas

Related