UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer lbpxilinx
Observer
11,141 Views
Registered: ‎03-02-2015

No rule to make target 'xxxxxxx.o'

Hi All,

 

I am getting the error in Xilinx SDK 2014.4:-

 

    make:*** No rule to make target 'xxxxx.o', needed needed by yyyyy.elf'. Stop.

 

<xxxxx is the name of the object file name, yyyyy is the elf file name>

 

I have searched the Xilinx forums and i've tried to Google the error as well but only a few relevant articles / post come up. I closest post I found was

 

    http://www.xilinx.com/support/answers/25071.html

 

but their problem was slightly different to my problem

 

My error is saying that there is no rule to make xxxxx.o (which I believe is the object file).

 

I have a basic knowledge of makefiles but when I look at the ones generated by Xilinx SDK they are more advanced than I am used to.

 

Would some one be able to point me in the right direction to resolve this problem (if you need more information please ask).

 

Thanks for your time,

 

Lincoln

 

 

 

0 Kudos
10 Replies
Observer lbpxilinx
Observer
11,118 Views
Registered: ‎03-02-2015

Re: No rule to make target 'xxxxxxx.o'

Hi All,

 

Just some more information on the above problem.

 

I changed the file name of the .c and .h file related the .o (object file). It is still giving the error above with the old .o file. For example:-

 

    OLD FILE NAMES

    ---------------------

    helloWorld.c

    helloWorld.h

    helloWorld.o (related .o file)

    <Error - make:*** No rule to make target 'helloWorld.o', needed by 'program1.elf'. Stop>

 

    NEW FILE NAMES

    ---------------------

    foo.c

    foo.h

    foo.o (related .o file)

    <Error - make:*** No rule to make target 'helloWorld.o', needed by 'program1.elf'. Stop>

 

I have tried doing a clean a few times but that has not solved the problem.

 

There must be a setting / parameter / value that it is still being pointed to?

 

Thanks again,

 

Lincoln

0 Kudos
Xilinx Employee
Xilinx Employee
11,092 Views
Registered: ‎08-02-2007

Re: No rule to make target 'xxxxxxx.o'

hi,

 

can you share the makefile, *.c and *.h files?

 

--hs

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
0 Kudos
Xilinx Employee
Xilinx Employee
11,090 Views
Registered: ‎08-02-2007

Re: No rule to make target 'xxxxxxx.o'

hi,

 

i tried the following command to generate the .o file and was make it to work. 

 

gcc -g -O -c hello.c -o hello.o

 

can you check this with your makefile to see if it is working?

 

--hs

 

 

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
0 Kudos
8,674 Views
Registered: ‎05-13-2016

Re: No rule to make target 'xxxxxxx.o'

I am running into the same problem in 2015.4

 

Here is the error message.

 

make: *** No rule to make target `SysConfigFlash.o', needed by `CU.elf'. Stop.

 

CU is the toplevel design and SysConFigFlash.cc is a lower level module.

 

I do not have any experience with Make files and don't know where to look.

 

I have cleaned the project and rebuilt the BSP, but no help.

 

Attached is my compressed SDK folder

 

 

0 Kudos
Visitor mkjaswal
Visitor
4,896 Views
Registered: ‎03-27-2017

Re: No rule to make target 'xxxxxxx.o'

Solved this issue?

I am facing same issue

SDK 13.1

Please help

Stuck

MKJ
Tags (2)
0 Kudos
2,627 Views
Registered: ‎05-13-2016

Re: No rule to make target 'xxxxxxx.o'

Darn,  this has cropped up again!

 

I added a file to my project called BRAM_IF.cc and it's .h file.

 

The tools complained -

make: *** No rule to make target `BRAM_IF.o', needed by `CU_RTOS.elf'. Stop.

 

I removed those files from the project and added in renamed copies BRAM_if_CC.cc and BRAM_if_CC.h

 

The tools still complain

make: *** No rule to make target `BRAM_IF.o', needed by `CU_RTOS.elf'. Stop.

 

I have repeatedly cleaned the project, but to no avail.

 

 

 

0 Kudos
2,624 Views
Registered: ‎05-13-2016

Re: No rule to make target 'xxxxxxx.o'

I found the issue. there was a subdir make file that got added into the project. Somehow in adding in the source files, the project thought that maybe they were remotely located (or something like that).  I removed that make file and it resolved the issue

1,453 Views
Registered: ‎06-27-2018

Re: No rule to make target 'xxxxxxx.o'

I also encountered the same problem, waiting for the answer.

0 Kudos
Observer petercaddick
Observer
76 Views
Registered: ‎04-01-2019

Re: No rule to make target 'xxxxxxx.o'

why hasn't a solution to this been posted? @digitallife_wj  @lbpxilinx  paul.gigliotti@coachcomm.com  @mkjaswal @htsvn 

0 Kudos
Observer petercaddick
Observer
60 Views
Registered: ‎04-01-2019

Re: No rule to make target 'xxxxxxx.o'

I have fixed this now. The problem was that the file didn't exist and need to be re-instated. The error message is so unbelievely unhelpful. @lbpxilinx 

0 Kudos