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

Arm-gcc error in Mac OSX

Hi,

I am trying to set up the development tools for the NRF52 on my Mac by following this tutorial aaroneiche.com/.../

I am getting the following error when i try to compile the code using the make command

Compiling file: system_nrf52.c make: /usr/local/gcc-arm/gcc-arm-none-eabi-5_4-2016q2/ /bin/arm-none-eabi-gcc: No such file or directory make: [_build/system_nrf52.o] Error 1

What could be the reason for this? Any inputs would be appreciated?

Parents
  • Read the blog/tutorial by Nordic about Eclipse/Gcc. Especially the step about editing /components/toolchain/gcc/Makefile.posix. Change the first definition of ....ROOT to "/usr/bin" or "/usr" or where ever the arm gcc binary is installed. It seems the toolchain pieces these definitions together to get the path to the compiler. The error message shows the definitions are not correct for your installation.

    My answer is inexact from my limited experience on Linux , you will need to discover the exact details yourself.

  • Thanks butch. Using the which command, the path shown by the terminal is /opt/local/bin/arm-none-eabi-gcc. The version is 5.4.1. Now in the makefile.posix this should be the settings

    1. GNU ROOT PATH = /opt/local
    2. GNU Version = 5.4.1
    3. GNU Prefix = arm-none-eabi.

    The error is the same

    make: *** [_build/system_nrf52.o] Error 1 make: /opt/local/ /bin/arm-none-eabi-gcc: No such file or directory

Reply
  • Thanks butch. Using the which command, the path shown by the terminal is /opt/local/bin/arm-none-eabi-gcc. The version is 5.4.1. Now in the makefile.posix this should be the settings

    1. GNU ROOT PATH = /opt/local
    2. GNU Version = 5.4.1
    3. GNU Prefix = arm-none-eabi.

    The error is the same

    make: *** [_build/system_nrf52.o] Error 1 make: /opt/local/ /bin/arm-none-eabi-gcc: No such file or directory

Children
No Data
Related