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

Unofficial pure-gcc build: No rule to make target `_build/ble_bondmngr_cfg.h'

This question relates to the unofficial gcc Makefiles available here:

github.com/.../nrf51-pure-gcc-setup

These are great and I've managed to get as far as compiling my sources and most of the Nordic ones. Have not yet made it as far as linking. My build runs until this command:

/Users/Eliot/dev/gcc-arm-none-eabi-4_8-2013q4/bin/arm-none-eabi-gcc
-mthumb
-mcpu=cortex-m0
-march=armv6-m
-L /Users/Eliot/dev/nrf51-pure-gcc-setup/template/
-T gcc_nrf51_s110.ld
-Wl,-Map=_build/device-nordic-pure-gcc_s110.Map
-Os
-DBLE_STACK_SUPPORT_REQD
-std=gnu99
-c
-mthumb
-mcpu=cortex-m0
-march=armv6-m
-Wall
-DNRF51
-DBOARD_NRF6310
-I/Users/Eliot/dev/nrf51_sdk_v5_1_0_36092/nrf51822/Include/gcc
-I../
-I/Users/Eliot/dev/nrf51_sdk_v5_1_0_36092/nrf51822/Include/
-I/Users/Eliot/dev/nrf51_sdk_v5_1_0_36092/nrf51822/Include/ble/
-I/Users/Eliot/dev/nrf51_sdk_v5_1_0_36092/nrf51822/Include/ble/ble_services/
-I/Users/Eliot/dev/nrf51_sdk_v5_1_0_36092/nrf51822/Include/ble/softdevice/
-I/Users/Eliot/dev/nrf51_sdk_v5_1_0_36092/nrf51822/Include/app_common/
-I/Users/Eliot/dev/nrf51_sdk_v5_1_0_36092/nrf51822/Include/sd_common
-I/Users/Eliot/dev/nrf51_sdk_v5_1_0_36092/nrf51822/Include/s110
-MD
/Users/Eliot/dev/nrf51_sdk_v5_1_0_36092/nrf51822/Source/ble/ble_bondmngr.c
-o _build/ble_bondmngr.o
make: *** No rule to make target `_build/ble_bondmngr_cfg.h', needed by `all'.  Stop.

I'm confused as to why the build is trying to build ble_bondmngr_cfg.h. I have this file in my project sources, ie. in the root directory of the project, one up from the pure-gcc directory, just as the proximity app sample project does. Putting a deliberate error in that file breaks the build, so I know it's being picked up. Would expect that to be covered by "-I../" above.

Any clues? Thanks in advance.

Parents
  • Are you sure you haven't added ble_bondmngr_cfg.h to your APPLICATION_SRCS? That's the only way I can think of that may cause this problem...

    If this is not the case, can you please edit your question and upload your at least the Makefiles of your project? If possible, it would be great if you could just upload your complete project so that I can test it right here, but the Makefiles may help.

Reply
  • Are you sure you haven't added ble_bondmngr_cfg.h to your APPLICATION_SRCS? That's the only way I can think of that may cause this problem...

    If this is not the case, can you please edit your question and upload your at least the Makefiles of your project? If possible, it would be great if you could just upload your complete project so that I can test it right here, but the Makefiles may help.

Children
Related