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

GCC Build w/sdk9 (no rule to make target)

Hi there!

I've followed the guide to Eclipse GCC (using OSX) from here:devzone.nordicsemi.com/.../

I had to add some stuff to main.c to have it built (e.g. BSP_LED_APP_TIMERS_NUMBER).

Apart from that it seems like everything goes well, until I need to build the app using the make file.

I get the following error:

make[1]: *** No rule to make target _build/app_button.o, needed by nrf51422_xxac_s110.  Stop.

Please help, I've spent a lot of hours trying to get this to work.

Thanks! Henrik

Parents
  • But your are not seeing any errors in the build output (CDT Build console) when building the unmodified project? Actual build errors will be shown there as build is happening outside of Eclipse environment using GNU make and the ARM toolchain. In order for Eclipse to be able to resolve defines, and index header files you will need to have the CDT parser configured correctly as described in the "Enable auto discovery of symbols, include paths and compiler settings" section of the tutorial, and also apply the following changes to your makefile: Search for the $(NO_ECHO)$(CC) $(CFLAGS) $(INC_PATHS) -c -o $@ $< line in the makefile. Add @echo arm-none-eabi-gcc $(CFLAGS) $(INC_PATHS) -c -o $@ $< on the line above to echo the symbols and include paths used when compiling the source files.

Reply
  • But your are not seeing any errors in the build output (CDT Build console) when building the unmodified project? Actual build errors will be shown there as build is happening outside of Eclipse environment using GNU make and the ARM toolchain. In order for Eclipse to be able to resolve defines, and index header files you will need to have the CDT parser configured correctly as described in the "Enable auto discovery of symbols, include paths and compiler settings" section of the tutorial, and also apply the following changes to your makefile: Search for the $(NO_ECHO)$(CC) $(CFLAGS) $(INC_PATHS) -c -o $@ $< line in the makefile. Add @echo arm-none-eabi-gcc $(CFLAGS) $(INC_PATHS) -c -o $@ $< on the line above to echo the symbols and include paths used when compiling the source files.

Children
No Data
Related