• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 295
  • Last Modified:

Error while creating the object file..

i get this following error

[root@localhost hello]# make cris-axis-linux-gnu
Makefile:2: /tools/build/Rules.axis: No such file or directory
make: *** No rule to make target `/tools/build/Rules.axis'.  Stop.

but i can c the rule.axis file in that folder..

plz give me a solution
0
genesiscircle
Asked:
genesiscircle
  • 2
  • 2
1 Solution
 
xRalfCommented:
Hi genesiscircle,
try to use full path for the file Rules.axis in your program.
0
 
ahoffmannCommented:
please post the corresponding target from the Makefile and the result of;

  id && ls -l /tools/build/Rules.axis
0
 
genesiscircleAuthor Commented:

I tried giving the full path
but i got the same error.
0
 
genesiscircleAuthor Commented:
hi ahoffmann
the cris compiler is in /usr/local/cris/bin
the s/w distribution is in /etc/devboard-R2_01
and i ve created a folder in apps as hello and i ve a sample file hello.c in it.
so the path is like /etc/devboard-R2_01/apps/hello/hello.c
the makefile is also inside the folder hello
to create the object file i issued the command make cris-axis-linux-gnu
it worked well for the first time and the object file was also created the second time is says error

in the make file the target i ve used is
include $(AXIS_TOP_DIR)/tools/buid/Rules.axis
 
the result of id && ls -l /tools/build/Rules.axis  is

[root@localhost hello]# id && ls -l /tools/build/Rules.axis
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
ls: /tools/build/Rules.axis: No such file or directory
 
waiting for ur reply

0
 
ahoffmannCommented:
sounds like you need to set $(AXIS_TOP_DIR)
either as environment variable in your shell (and export it), or in the Makefile itself. I guess the latter.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now