west: CMake Error while building blinky


Mohamed Belaroussi <mohamed.belaroussi@...>
 

Hi,

While trying to build the sample example blinky for the nRF5340pdk using west, I encountered this error.

C:\zephyrproject\zephyr>west build -b nrf5340pdk_nrf5340_cpuapp samples\basic\blinky --pristine
-- west build: making build dir C:\zephyrproject\zephyr\build pristine
-- west build: generating a build system
Including boilerplate (Zephyr base): C:/zephyrproject/zephyr/cmake/app/boilerplate.cmake
-- Application: C:/zephyrproject/zephyr/samples/basic/blinky
-- Zephyr version: 2.3.99 (C:/zephyrproject/zephyr)
-- Found Python3: C:/Program Files/WindowsApps/PythonSoftwareFoundation.Python.3.8_3.8.1520.0_x64__qbz5n2kfra8p0/python3.8.exe (found suitable version "3.8.5", minimum required is "3.6") found components: Interpreter
-- Found west: C:/Zypher/v1.3.0/toolchain/opt/bin/Scripts/west.exe (found suitable version "0.7.3", minimum required is "0.7.1")
-- Board: nrf5340pdk_nrf5340_cpuapp
-- Found toolchain: gnuarmemb (c:/gnuarm)
CMake Error at C:/zephyrproject/zephyr/cmake/compiler/gcc/generic.cmake:8 (message):
  Zephyr was unable to find the toolchain.  Is the environment misconfigured?


  User-configuration:

  ZEPHYR_TOOLCHAIN_VARIANT: gnuarmemb

  Internal variables:

  CROSS_COMPILE: c:/gnuarm/bin/arm-none-eabi-

  TOOLCHAIN_HOME: c:/gnuarm

Call Stack (most recent call first):
  C:/zephyrproject/zephyr/cmake/generic_toolchain.cmake:70 (include)
  C:/zephyrproject/zephyr/cmake/app/boilerplate.cmake:527 (include)
  C:/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
  C:/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
  CMakeLists.txt:4 (find_package)


-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' '-DWEST_PYTHON=C:\Users\mohamed.belaroussi\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe' '-BC:\zephyrproject\zephyr\build' '-SC:\zephyrproject\zephyr\samples\basic\blinky' -GNinja -DBOARD=nrf5340pdk_nrf5340_cpuapp

 
Any suggestions?

Kind regards
Mohamed Belaroussi



Please consider the environment before printing this email.
*********************************************************************
This communication may contain information which is confidential, personal and/or privileged. It is for the exclusive use of the intended recipient(s).
If you are not the intended recipient(s), please note that any distribution, forwarding, copying or use of this communication or the information in it is strictly prohibited. If you have received it in error please contact the sender immediately by return e-mail. Please then delete the e-mail and any copies of it and do not use or disclose its contents to any person.
Any personal views expressed in this e-mail are those of the individual sender and the company does not endorse or accept responsibility for them. Prior to taking any action based upon this e-mail message, you should seek appropriate confirmation of its authenticity.
This message has been checked for viruses on behalf of the company.
*********************************************************************


G4S Regional Management (UK&I) Limited, Registered Office: Southside, 105 Victoria Street, London, SW1E 6QT. Registered in England No. 3189802.

G4S Care and Justice Services (UK) Limited, trading as G4S Central Government Services, Registered in England No. 390328.
G4S Health Services (UK) Limited, Registered in England No. 5121608.
G4S Government and Outsourcing Services (UK) Limited, trading as G4S Outsourcing Services, Registered in England No.3175173.
G4S Facilities Management (UK) Limited, Registered in England No. 3333860.
G4S Investigation Solutions (UK) Limited, Registered in England No. 3749819.
G4S Monitoring Technologies Limited, Registered in England No. 2626613.
G4S Ordnance Management Limited, Registered in England No. 7068855.
G4S Risk Management Limited, Registered in England No. 1540857.
G4S Secure Solutions (Iraq) Limited, Registered in England No.5128617.
G4S Risk Consulting Limited, Registered in England No. 4047630.
The Registered office of all the above companies is Southside, 105 Victoria Street, London, SW1E 6QT.

G4S Aviation Services (UK) Limited, Registered in England No. 2837136.
G4S Secure Solutions (UK) Limited, Registered in England No. 1046019.
G4S Security Services (UK) Limited, Registered in England No.2380900.
G4S Gurkha Services (UK) Limited, Registered in England No.6304482.
G4S Cash Solutions (UK) Limited, Registered in England No.354883.
G4S Cash Centres (UK) Limited, Registered in England No.1485104.
G4S Bullion Solutions (UK) Limited, Registered in England No.7860383.
The Registered office of all the above companies is Sutton Park House, 15 Carshalton Road, Sutton, Surrey SM1 4LD.