Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Build Problem (make: *** No rule to make target)
Build Problem [message #1843364] Mon, 26 July 2021 09:14 Go to next message
Davide Brunelli is currently offline Davide BrunelliFriend
Messages: 3
Registered: December 2019
Junior Member
Hi,
I'm using eclipse for debugging/programming a Nordic demo board and it works but I'm facing a problem when I Build the project.
I followed the link: https://www.mouser.com/pdfDocs/CS-AN-NordicSDKv16-BL654v1_0.pdf

If I Clean and Rebuild the project everything works good, but if I make a Build without cleaning, The following error appears:
 **** Incremental Build of configuration Default for project good ****
make all 
make: *** No rule to make target `c\:\work\tools\arm_gnu\lib\gcc\arm-none-eabi\10.2.1\include\stdint.h', needed by `_build/nrf52840_xxaa/bsp.c.o'.  Stop.
"make all" terminated with exit code 2. Build might be incomplete.


have you got any suggestion to sort it out?

Thank you
Re: Build Problem [message #1843366 is a reply to message #1843364] Mon, 26 July 2021 10:34 Go to previous messageGo to next message
David VavraFriend
Messages: 1407
Registered: October 2012
Senior Member
It means the .h file needed by the target can't be found by make
and there is no rule to generate it.

There's not enough information to say why it can't be found.
The path to it looks strange so that might be the cause.
Check that the file exists as specified

Re: Build Problem [message #1843387 is a reply to message #1843366] Tue, 27 July 2021 09:46 Go to previous messageGo to next message
Davide Brunelli is currently offline Davide BrunelliFriend
Messages: 3
Registered: December 2019
Junior Member
Hi David,
Thank you. I try to explain better.
If I Clean and build the project everytings work as show below:
11:39:14 **** Build of configuration Default for project TestCpy2 ****
make all 
mkdir _build
cd _build && mkdir nrf52840_xxaa
Assembling file: gcc_startup_nrf52840.S
Compiling file: bsp.c
Compiling file: bsp_btn_ble.c
Compiling file: nrf_hw_backend_init.c
Compiling file: nrf_hw_backend_rng.c
Compiling file: nrf_hw_backend_rng_mbedtls.c
Compiling file: boards.c
Compiling file: nrf_drv_clock.c
Compiling file: nrf_drv_rng.c
Compiling file: nrf_drv_uart.c
Compiling file: nrfx_atomic.c
Compiling file: nrfx_clock.c
Compiling file: nrfx_gpiote.c
Compiling file: nrfx_prs.c
Compiling file: nrfx_rng.c
Compiling file: nrfx_uart.c
Compiling file: nrfx_uarte.c
Compiling file: system_nrf52840.c
Compiling file: app_button.c
Compiling file: app_error.c
Compiling file: app_error_handler_gcc.c
Compiling file: app_error_weak.c
Compiling file: app_scheduler.c
Compiling file: app_timer2.c
Compiling file: app_util_platform.c
Compiling file: crc16.c
Compiling file: drv_rtc.c
Compiling file: fds.c
Compiling file: hardfault_implementation.c
Compiling file: mem_manager.c
Compiling file: nrf_assert.c
Compiling file: nrf_atfifo.c
Compiling file: nrf_atflags.c
Compiling file: nrf_atomic.c
Compiling file: nrf_balloc.c
Compiling file: nrf_fprintf.c
Compiling file: nrf_fprintf_format.c
Compiling file: nrf_fstorage.c
Compiling file: nrf_fstorage_sd.c
Compiling file: nrf_memobj.c
Compiling file: nrf_pwr_mgmt.c
Compiling file: nrf_queue.c
Compiling file: nrf_ringbuf.c
Compiling file: nrf_section_iter.c
Compiling file: nrf_sortlist.c
Compiling file: nrf_strerror.c
Compiling file: sensorsim.c
Compiling file: nrf_log_backend_rtt.c
Compiling file: nrf_log_backend_serial.c
Compiling file: nrf_log_backend_uart.c
Compiling file: nrf_log_default_backends.c
Compiling file: nrf_log_frontend.c
Compiling file: nrf_log_str_formatter.c
Compiling file: nrf_crypto_aead.c
Compiling file: nrf_crypto_aes.c
Compiling file: nrf_crypto_aes_shared.c
Compiling file: nrf_crypto_ecc.c
Compiling file: nrf_crypto_ecdh.c
Compiling file: nrf_crypto_ecdsa.c
Compiling file: nrf_crypto_eddsa.c
Compiling file: nrf_crypto_error.c
Compiling file: nrf_crypto_hash.c
Compiling file: nrf_crypto_hkdf.c
Compiling file: nrf_crypto_hmac.c
Compiling file: nrf_crypto_init.c
Compiling file: nrf_crypto_rng.c
Compiling file: nrf_crypto_shared.c
Compiling file: main.c
Compiling file: nrf_sdh.c
Compiling file: nrf_sdh_ble.c
Compiling file: nrf_sdh_soc.c
Compiling file: aes.c
Compiling file: ctr_drbg.c
Compiling file: platform_util.c
Compiling file: auth_status_tracker.c
Compiling file: ble_advdata.c
Compiling file: ble_advertising.c
Compiling file: ble_conn_params.c
Compiling file: ble_conn_state.c
Compiling file: ble_srv_common.c
Compiling file: gatt_cache_manager.c
Compiling file: gatts_cache_manager.c
Compiling file: id_manager.c
Compiling file: nrf_ble_gatt.c
Compiling file: nrf_ble_lesc.c
Compiling file: nrf_ble_qwr.c
Compiling file: peer_data_storage.c
Compiling file: peer_database.c
Compiling file: peer_id.c
Compiling file: peer_manager.c
Compiling file: peer_manager_handler.c
Compiling file: pm_buffer.c
Compiling file: security_dispatcher.c
Compiling file: security_manager.c
Compiling file: cc310_backend_aes.c
Compiling file: cc310_backend_aes_aead.c
Compiling file: cc310_backend_chacha_poly_aead.c
Compiling file: cc310_backend_ecc.c
Compiling file: cc310_backend_ecdh.c
Compiling file: cc310_backend_ecdsa.c
Compiling file: cc310_backend_eddsa.c
Compiling file: cc310_backend_hash.c
Compiling file: cc310_backend_hmac.c
Compiling file: cc310_backend_init.c
Compiling file: cc310_backend_mutex.c
Compiling file: cc310_backend_rng.c
Compiling file: cc310_backend_shared.c
Compiling file: utf.c
Compiling file: ble_bas.c
Compiling file: ble_dis.c
Compiling file: ble_hrs.c
Compiling file: SEGGER_RTT.c
Compiling file: SEGGER_RTT_Syscalls_GCC.c
Compiling file: SEGGER_RTT_printf.c
Compiling file: oberon_backend_chacha_poly_aead.c
Compiling file: oberon_backend_ecc.c
Compiling file: oberon_backend_ecdh.c
Compiling file: oberon_backend_ecdsa.c
Compiling file: oberon_backend_eddsa.c
Compiling file: oberon_backend_hash.c
Compiling file: oberon_backend_hmac.c
Linking target: _build/nrf52840_xxaa.out
   text	   data	    bss	    dec	    hex	filename
 115944	    204	  16380	 132528	  205b0	_build/nrf52840_xxaa.out
Preparing: _build/nrf52840_xxaa.hex
Preparing: _build/nrf52840_xxaa.bin
DONE nrf52840_xxaa

11:42:43 Build Finished. 0 errors, 0 warnings. (took 3m:28s.645ms)

If I Build without cleaning the result is the following:
11:45:04 **** Incremental Build of configuration Default for project TestCpy2 ****
make all 
make: *** No rule to make target `c\:\work\tools\arm_gnu\lib\gcc\arm-none-eabi\10.2.1\include\stdint.h', needed by `_build/nrf52840_xxaa/bsp.c.o'.  Stop.
"make all" terminated with exit code 2. Build might be incomplete.

11:45:05 Build Failed. 1 errors, 0 warnings. (took 612ms)


If it was true that the compiler can not find the .h files why, when I clean and build the project, it works correctly?
Thanks
Re: Build Problem [message #1843397 is a reply to message #1843387] Tue, 27 July 2021 17:05 Go to previous message
David VavraFriend
Messages: 1407
Registered: October 2012
Senior Member
Don't know and reluctant to guess.
Obviously something is different between the two cases.
You need to find out what that is.
No one can do it for you.

Debugging makefiles can be daunting.
There is a command line option "--debug" which might help.
Perhaps "--debug=v"
https://www.gnu.org/software/make/manual/html_node/Options-Summary.html

There is also a function for printing that I've found useful.
$(info text...)
https://www.gnu.org/software/make/manual/html_node/Make-Control-Functions.html

[Updated on: Wed, 28 July 2021 07:42]

Report message to a moderator

Previous Topic:run codan (Static Code Analysis) for C/C++ from cmd
Next Topic:Debugger buttons grayed out
Goto Forum:
  


Current Time: Fri Dec 03 15:41:57 GMT 2021

Powered by FUDForum. Page generated in 0.02060 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top