This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: More problems with make
- From: "Rupert Wood" <me at rupey dot net>
- To: <kabir dot patel at uk dot andersen dot com>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Tue, 29 Jan 2002 07:30:39 -0000
- Subject: RE: More problems with make
Kabir Patel wrote:
> example1: $(HEADERS) $(OBJS) example1.c
> $(GCC) example1.c $(OBJS) $(DBLIBS) $(CFLAGS) -o example1
:
> ./example1.c: static: not found
> ./example1.c: syntax error at line 13: `(' unexpected
> make: *** [example1] Error 2
Is the GCC environment variable set?
It looks like your source file is execute-permission-set and it's trying
to invoke it. # is the usual shell script comment, so the first line of
your source it tries to execute is the second - which starts with
'static'. Error 2 is the return code from the shell process - it may
mean something specific (check the sh manpage) but in this case it's
just important that it's non-zero, which means failure or 'false'.
Try 'make -n' to see what command it's actually trying to invoke or, if
it's GNU make,
make --warn-undefined-variables
and then set the GCC variable if necessary, or change it to $(CC) or
similar.
Rup.