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

create_nordic_project.py failed arm-none-eabi-gcc error

I'm trying to open a nRF Connect SDK project in Segger Embedded Studio for ARM (Nordic Edition) V5.30a

When I try opening the project I get an error box with the following message:

create_nordic_project.py failed (1)

In the output terminal I see the following:

Creating solution myproject.emProject
cmake -GNinja -DBOARD=nrf52840_mycompany -DBOARD_DIR=/home/ephimee/git/mycompany/mycustomer/boards/arm/myboard -B/home/ephimee/git/mycompany/mycustomer/myproject/build_nrf52840_myboard -S/home/ephimee/git/mycompany/mycustomer/myproject -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=/home/ephimee/gnuarmemb -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=/home/ephimee/Downloads/nordic/arm_segger_embedded_studio_v530a_linux_x64_nordic/html/configure_nordic_project_menuconfig.py
-- Application: /home/ephimee/git/mycompany/mycustomer/myproject
-- Zephyr version: 2.4.99 (/home/ephimee/ncs/zephyr)
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.5") found components: Interpreter 
-- Board: nrf52840_myboard
-- Cache files will be written to: /home/ephimee/.cache/zephyr
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (/home/ephimee/gnuarmemb)
-- Configuring incomplete, errors occurred!
Including boilerplate (Zephyr base): /home/ephimee/ncs/zephyr/cmake/app/boilerplate.cmake
CMake Error at /home/ephimee/ncs/zephyr/cmake/compiler/gcc/generic.cmake:24 (message):
  Executing the below command failed.  Are permissions set correctly?

  '/home/ephimee/gnuarmemb/bin/arm-none-eabi-gcc --version'

Call Stack (most recent call first):
  /home/ephimee/ncs/zephyr/cmake/generic_toolchain.cmake:71 (include)
  /home/ephimee/ncs/zephyr/cmake/app/boilerplate.cmake:505 (include)
  /home/ephimee/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
  /home/ephimee/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
  CMakeLists.txt:9 (find_package)



error: cmake failed
create_nordic_project.py failed (1)

According to the log, it seems there is something wrong with arm-none-eabi-gcc --version, so I ran it manually:

/home/ephimee/gnuarmemb/bin/arm-none-eabi-gcc --version
bash: /home/ephimee/gnuarmemb/bin/arm-none-eabi-gcc: cannot execute binary file: Exec format error
file /home/ephimee/gnuarmemb/bin/arm-none-eabi-gcc
/home/ephimee/gnuarmemb/bin/arm-none-eabi-gcc: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, BuildID[sha1]=1b3eb4667c2ba911e35ce6a8d3cc69198c1d06b9, stripped
stat /home/ephimee/gnuarmemb/bin/arm-none-eabi-gcc
  File: /home/ephimee/gnuarmemb/bin/arm-none-eabi-gcc
  Size: 1235312   	Blocks: 2416       IO Block: 4096   regular file
Device: 10307h/66311d	Inode: 10299533    Links: 1
Access: (0755/-rwxr-xr-x)  Uid: ( 1000/ ephimee)   Gid: ( 1000/ ephimee)
Access: 2021-01-20 17:26:48.952642524 +0100
Modify: 2020-11-24 05:06:44.000000000 +0100
Change: 2021-01-15 16:08:11.167718110 +0100
 Birth: -
uname -a
Linux linux7 5.4.0-62-generic #70-Ubuntu SMP Tue Jan 12 12:45:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

I have installed the toolchain by following the instructions on this page:

https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_installing.html

Parents Reply Children
Related