This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
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

Fail to build ble_app_hrs on raspberry pi 2

The gcc compiler is gcc-arm-none-eabi-4_9-2015q2.

The make version is GNU Make 4.0 (Build for arm-unknown-linux-gnueabihf).

The error message is:

... arm-none-eabi-gcc: Syntax error: word unexpected (expecting ")")

... Makefile.common: 122 : recipe for target '_build/main.o' failed

Please advise what might be the problems? Thanks in advance.

  • I get the same error messages:

    pi@raspberrypi ~/BLE/nRF51_SDK_8.1.0_b6ed55f/examples/peripheral/blinky/pca10028/blank/armgcc $ make -f Makefile

    rm -rf _build

    echo Makefile

    Makefile

    mkdir _build

    Compiling file: system_nrf51.c

    /opt/gcc-arm-none-eabi-4_9-2015q2/bin/arm-none-eabi-gcc: 1: /opt/gcc-arm-none-eabi-4_9-2015q2/bin/arm-none-eabi-gcc: Syntax error: word unexpected (expecting ")")

    Makefile:129: recipe for target '_build/system_nrf51.o' failed

    make: *** [_build/system_nrf51.o] Error 2

  • I decide to try Debian version of gcc-arm-none-eabi and download the package from packages.debian.org/.../gcc-arm-none-eabi. I have to solve a few dependency issues (a recommended dependency libnewlib is "required") but it turns out to be working.

    NRF51 SDK version: nrf51_sdk_v6_1_0_b2ec2e6.

    Softdevice version: s110_nrf51822_7.3.0.

    GCC version: Debian gcc-arm-none-eabi (4.9.2-18+14) armhf.

    Now I can compile and merge hrs example on RPi 2.

  • @Max: I'm glad that you found a solution. Sorry for late response, I am not very familiar with raspberrypi and different GNU make.

Related