help-make
[Top][All Lists]
Advanced

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

Re: Error output


From: Paul D. Smith
Subject: Re: Error output
Date: Sat, 19 Oct 2002 09:54:03 -0400

%% Russell <address@hidden> writes:

  r> The line:
  r>         avr-ld -o proj.o -Map proj.map analog.o
  r> generates lots of errors when run manually on the
  r> command line, but no errors are seen on the screen
  r> when it is run in the makefile. How can i see these?

Make does not suppress any messages; everything printed by the shell
script goes directly to the stdin/stderr of the make process.

  r> SUBDIRS= analog
  r> .PHONY: $(SUBDIRS) clean proj

  r> proj:   $(SUBDIRS)
  r>         cd objs \
  r>         avr-ld -o proj.o -Map proj.map $(addsuffix .o,$(SUBDIRS)) \
  r>         avr-objcopy -O ihex -R .eeprom -g proj.o proj.hex

You don't see any output because your commands are not being invoked.

This is due to the syntax errors I mentioned in your previous message;
you are missing semicolons between your commands.

Since you don't have semicolons, all your commands are being passed as
arguments to "cd".  Apparently the "cd" command in your shell does not
print any errors if you pass multiple arguments to it: it ignores
without comment all but the first.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "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]