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

nRF connect SDK - broken build

Hi,
after a couple of months of inactivity I try to rebuild my Zephyr-based application under nRF Connect SDK, tag 1.3.0.
I’m dumb-founded to see this unexpected print hereunder.
What’s going on ? Is it anything I did that broke the system ?

Thank you

Gabriele


~/qi2m-dev/ncs$ west build -b qi2m_nrf5340_cpuapp -d build_fot ../apps/fot/
-- west build: generating a build system
Including boilerplate (Zephyr base): /home/gabriele/qi2m-dev/ncs/zephyr/cmake/app/boilerplate.cmake
-- Application: /home/gabriele/qi2m-dev/apps/fot
-- Zephyr version: 2.3.0-rc1 (/home/gabriele/qi2m-dev/ncs/zephyr)
-- Found Python3: /usr/bin/python3.6 (found suitable exact version "3.6.9") found components:  Interpreter
-- Board: qi2m_nrf5340_cpuapp
ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK
CMake Error at /home/gabriele/qi2m-dev/ncs/zephyr/cmake/toolchain/zephyr/host-tools.cmake:115 (message):
  The SDK version you are using is not supported, please update your SDK.
 
  You need SDK version 0.11.1 or newer.
 
  You have version(s):
 
 
 
  The SDK can be downloaded from:
 
 
  https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.11.3/zephyr-sdk-0.11.3-setup.run
 
 
  Note: If you are using SDK 0.11.1 or 0.11.2, remember to set
  ZEPHYR_SDK_INSTALL_DIR and ZEPHYR_TOOLCHAIN_VARIANT
 
Call Stack (most recent call first):
  /home/gabriele/qi2m-dev/ncs/zephyr/cmake/host-tools.cmake:3 (include)
  /home/gabriele/qi2m-dev/ncs/zephyr/cmake/app/boilerplate.cmake:485 (include)
  /home/gabriele/qi2m-dev/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
  /home/gabriele/qi2m-dev/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
  CMakeLists.txt:11 (find_package)
 
 
-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /home/gabriele/.local/bin/cmake -B/home/gabriele/qi2m-dev/ncs/build_fot -S/home/gabriele/qi2m-dev/apps/fot -GNinja -BOARD=qi2m_nrf5340_cpuapp
~/qi2m-dev/ncs$

Parents
  • Hi,

    West is unable to find your toolchain, as ZEPHYR_TOOLCHAIN_VARIANT is not set. Please make sure your build environment is set up correctly. You can see how to do this in the guide for installing NCS manually.

     ZEPHYR_TOOLCHAIN_VARIANT should point to where GNU Arm Embedded Toolchain is located.

    To set this use the following commands (assuming that you have installed the toolchain to ~/gnuarmemb):

    export ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb
    export GNUARMEMB_TOOLCHAIN_PATH="~/gnuarmemb"

    To set the environment variables, navigate to the ncs folder and enter the following command:

    source zephyr/zephyr-env.sh

    You will have to run this to set the environment variables every time you open a new terminal window, unless you set them persistently, which you can do by defining them in the ~/.zephyrrc file.

    Best regards,

    Marte

Reply
  • Hi,

    West is unable to find your toolchain, as ZEPHYR_TOOLCHAIN_VARIANT is not set. Please make sure your build environment is set up correctly. You can see how to do this in the guide for installing NCS manually.

     ZEPHYR_TOOLCHAIN_VARIANT should point to where GNU Arm Embedded Toolchain is located.

    To set this use the following commands (assuming that you have installed the toolchain to ~/gnuarmemb):

    export ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb
    export GNUARMEMB_TOOLCHAIN_PATH="~/gnuarmemb"

    To set the environment variables, navigate to the ncs folder and enter the following command:

    source zephyr/zephyr-env.sh

    You will have to run this to set the environment variables every time you open a new terminal window, unless you set them persistently, which you can do by defining them in the ~/.zephyrrc file.

    Best regards,

    Marte

Children
No Data
Related