bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: insufficient debug info from gnu-make


From: Peter Lawrence
Subject: Re: insufficient debug info from gnu-make
Date: Sat, 31 Jul 2010 07:41:49 -0700

Paul,
one thing I remember in detail about Sun's make, is that instead of writing a level number

make[3]: ...
make[2]: ...
make[1]: ...

it wrote out the directory that the commands had cd'ed to before recursing (and maybe the file name, can't be sure any more)

make[foo/bar]: ...
make[foo]: ...
make[.]: ...


even that simple tidbit of information is really useful.!!.


-Peter Lawrence.








On Jul 29, 2010, at 9:54 PM, Paul Smith wrote:

On Thu, 2010-07-29 at 21:09 -0700, Peter Lawrence wrote:
make[3]: *** No rule to make target `real-install-headers-tar'. Stop.

This is printed when you've invoked make and the target you asked for on
the command line cannot be created (for example you ran "make foo" but
the makefile has no target "foo" defined).  There's no line number or
filename information to provide, here, because the request came from the
command line, not from inside the makefile.

here is where the offending command originates:

$(MAKE) real-$(INSTALL_HEADERS_DIR) DESTDIR=`pwd`/../gcc/ \
             libsubdir=. ; \

So the sub-make is the one that generated the error message, and as I
mentioned it can't give you information about what line of the parent
make's makefile was the problem (just like your C compiler has no way to
tell you what line of the makefile it was invoked from).

All that could be done in this case is that the parent make could be
asked to show filename/linenumber information for the target that failed
(that is, the error after the error you quote above).


I'm certainly not asserting that GNU make couldn't do a better job
giving error messages with more details regarding where the error
happened, I'm just saying that this particular case is not quite so
clear-cut as it may appear at first.

--
---------------------------------------------------------------------- ---------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.net
"Please remain calm...I may be mad, but I am a professional." -- Mad Scientist





reply via email to

[Prev in Thread] Current Thread [Next in Thread]