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.

Parents
  • 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

Reply
  • 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

Children
No Data
Related