This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nRF Connect SDK Sample Project Build Failure

Hi there,

I've installed and followed the nRF Connect SDK manual install getting started guide (https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_installing.html).

System: Ubuntu 20.04 VM running on macOS 12.1 through Parallels.

Board: NRF52840 Development Kit

When trying to build using "west build -b nrf52840dk_nrf52840" via either command line or SEGGER studio I am hit with the following error message:

gideon@ubuntu-vm:~/ncs/zephyr/samples/hello_world$ west build -b nrf52840dk_nrf52840
-- west build: generating a build system
Including boilerplate (Zephyr base (cached)): /home/gideon/ncs/zephyr/cmake/app/boilerplate.cmake
-- Application: /home/gideon/ncs/zephyr/samples/hello_world
-- Zephyr version: 2.7.0 (/home/gideon/ncs/zephyr), build: v2.7.0-ncs1-4-gf295fb7c67ca
-- Found west (found suitable version "0.12.0", minimum required is "0.7.1")
-- Board: nrf52840dk_nrf52840
-- Cache files will be written to: /home/gideon/.cache/zephyr
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (/home/gideon/gnuarmemb/9_2019-q4-major)
CMake Error at /home/gideon/ncs/zephyr/cmake/compiler/gcc/generic.cmake:25 (message):
Executing the below command failed. Are permissions set correctly?

'/home/gideon/gnuarmemb/9_2019-q4-major/bin/arm-none-eabi-gcc --version'

Call Stack (most recent call first):
/home/gideon/ncs/zephyr/cmake/generic_toolchain.cmake:42 (include)
/home/gideon/ncs/zephyr/cmake/app/boilerplate.cmake:544 (include)
/home/gideon/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
/home/gideon/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:40 (include_boilerplate)
CMakeLists.txt:5 (find_package)


-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /usr/bin/cmake -DWEST_PYTHON=/usr/bin/python3 -B/home/gideon/ncs/zephyr/samples/hello_world/build -S/home/gideon/ncs/zephyr/samples/hello_world -GNinja
gideon@ubuntu-vm:~/ncs/zephyr/samples/hello_world$

I'm hoping someone is able to assist with this.

Cheers!

Parents
  • Hello Gideon,

    can you try the following command from your home directory in a terminal? Please note that you have to modify the path accordingly, with the installed version on your distribution.

    user@user-ubu:~$ gnuarmemb/gcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-gcc –version
    
    arm-none-eabi-gcc (GNU Arm Embedded Toolchain 10.3-2021.10) 10.3.1 20210824 (release)
    Copyright (C) 2020 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    Regards,

    Markus

  • I'd also just like to confirm that I am running the 64-bit version of Ubuntu and downloaded the 64-bit GNU Embedded Arm Toolchain: "gcc-arm-none-eabi-9-2019-q4-major-aarch64-linux.tar.bz2".

    Regards,

    Gideon

Reply Children
No Data
Related