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

Getting an error when trying to build Bluetooth Mesh examples on macOS

The problem

I am trying to build the examples contained in Bluetooth Mesh stack, but I get the following error when running cmake:

...
-- Found assembler: /usr/local/bin/arm-none-eabi-gcc
-- Check for working C compiler: /usr/local/bin/arm-none-eabi-gcc
-- Check for working C compiler: /usr/local/bin/arm-none-eabi-gcc -- broken
CMake Error at /Applications/CMake.app/Contents/share/cmake-3.10/Modules/CMakeTestCCompiler.cmake:52 (message):
  The C compiler

    "/usr/local/bin/arm-none-eabi-gcc"

  is not able to compile a simple test program.
...

##What I do Here are the steps I take to try to build the examples:

  • I download the Mesh SDK from www.nordicsemi.com/.../nRF5-SDK-for-Mesh
  • I unzip the file
  • Using the terminal: cd nrf5_SDK_for_Mesh_v1.0.0_src; mkdir build; cd build;, and
  • cmake -DPLATFORM=nrf52832_xxAA -DTOOLCHAIN=gccarmemb -DSOFTDEVICE=s132_5.0.0 ..

##More information about my setup

  • macOS High Sierra 10.13.2
  • nrf5_SDK_for_Mesh_v1.0.0_src
  • CMake version 3.10.1
  • gcc-arm-none-eabi-7-2017-q4-major (NOTE: /usr/local/bin/arm-none-eabi-gcc is a symbolic link to {somewhere on my system}/gcc-arm-none-eabi-7-2017-q4-major/bin/arm-none-eabi-gcc)
Related