[Top][All Lists]

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

Re: *** make.exe: [kw.o] Error 11

From: Paul D. Smith
Subject: Re: *** make.exe: [kw.o] Error 11
Date: Fri, 8 Dec 2000 11:25:31 -0500

%% "Lauer, Thilo" <address@hidden> writes:

  lt> i'm using the AVR port of gnu gcc for a small project consisting
  lt> of a simple kw.c file.

I don't know what AVR is; is it some kind of Windows-based thing?

  lt> So i tried to install the latest version of make (v3.79.1, from
  lt> the djgpp distribution), hoping that this error would be
  lt> resolved. But then i got the following when executing make:

  lt> avr-gcc -c -g -O3 -Wall -Wstrict-prototypes -Wa,-ahlms=kw.lst -msize
  lt> -mmcu=at90s2313 -I. kw.c -o kw.o
  lt> *** make.exe: [kw.o] Error 11

GNU make invokes the subprocess you specify, then tries to determine if
it worked or not.  It does this based solely on the exit code of the
subprocess: if it exits with zero (which is EXIT_SUCCESS), then the program
succeeded.  If it exits with any other value, that means to make that
the program failed.

This message ("*** make.exe: [kw.o] Error 11") means that the subprocess
make invoked (avr-gcc) exited with a non-zero value (11, in this case).

Thus make believes the subprocess failed.

The right answer here is to find out why avr-gcc is exiting with a
failure exit code if it really succeeded.

Another possibility is to modify the GNU make code so that it treats
exit codes other than zero as success as well; perhaps that's what they
did for the AVR port.  But, that's a broken, hack solution.  IMHO :).
  lt> Issuing the gcc command manually gets executed just fine, it's
  lt> only the make which bombs like described above.

If you issue the gcc command manually, then check its exit code, you'll
find it exited with an exit code of 11 rather than the correct 0.

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