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

nRF51 Sdk Example »ble_app_hrs« won't compile with gcc 4.8

My build entironment:

  • nRF51 Sdk V5.1.0 (nrf51_sdk_v5_1_0_36092.zip)
  • arm gcc 4.7.4
  • arm gcc 4.8.3
  • nRFgo (nRF6310 Motherboard)
  • Host = Linux (Kubuntu 12.04)

Compiling Blinky works fine with both gcc 4.7 and 4.8. Compiling ble_app_hrs (nrf51_sdk_v5_1_0_36092/nrf51822/Board/nrf6310/s110/ble_app_hrs) work's also, as long as I use gcc 4.7. But when compiling ble_app_hrs with gcc 4.8, I got the following error message:


In file included from ../../../../../Include/app_common/app_timer.h:48:0,
                 from /opt/Nordic/nrf51_sdk_v5_1_0_36092/nrf51822//Source/app_common/app_timer.c:13:
/opt/Nordic/nrf51_sdk_v5_1_0_36092/nrf51822//Source/app_common/app_timer.c: In function 'user_id_get':
../../../../../Include/app_common/app_util.h:67:42: error: typedef 'static_assert_failed' locally defined but not used [-Werror=unused-local-typedefs]
 #define STATIC_ASSERT(EXPR) typedef char static_assert_failed[(EXPR) ? 1 : -1]
                                          ^
/opt/Nordic/nrf51_sdk_v5_1_0_36092/nrf51822//Source/app_common/app_timer.c:1035:5: note: in expansion of macro 'STATIC_ASSERT'
     STATIC_ASSERT(APP_TIMER_INT_LEVELS == 3);
     ^

Because linux host seems not really supported by the Sdk (isn't it? no Makefile.posix anywhere), my command line looks like this:


make debug GNU_INSTALL_ROOT=/opt/gcc-arm-none-eabi-4_8-2013q4 GNU_VERSION=4.8.3 SDK_PATH=/opt/Nordic/nrf51_sdk_v5_1_0_36092/nrf51822/

Do I somthing wrong or is that an issue that had to fixed?

Parents Reply Children
No Data
Related