This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc compile problem(s)
- From: LLeweLLyn Reese <llewelly at lifesupport dot shutdown dot com>
- To: "Edward Byard" <ed at edwardbyard dot co dot uk>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: 24 Mar 2003 14:09:38 -0800
- Subject: Re: gcc compile problem(s)
- References: <000901c2f1f9$478a6c80$a912bd50@edwardby>
- Reply-to: gcc-help at gcc dot gnu dot org
"Edward Byard" <ed at edwardbyard dot co dot uk> writes:
> Hello,
>
> I am experiencing problems when compiling under the version below, for the
> h8300:
>
> gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release),
> GNU CPP version cygnus-2.7.2-970404 (68k, Motorola syntax)
>
> First problem is that I get the following:
>
> *Initialization*:1: warning: `__SIZE_TYPE__' redefined
> *Initialization*:1: warning: `__PTRDIFF_TYPE__' redefined
>
> This I understand is caused by a mis-matching or out-of-date version of
> cpp - does anyone know where I can get (or can anyone send me?) the version
> for the compiler I am using?
> I know it's an old version but I cannot update yet.
I believe source tarballs for 2.91.66 and 2.7.2 are still available at
most gnu mirrors.
>
> My other problem is that I cannot compile more than 1 file at a time. My
> makefile is listed below:
>
> CC=h8300-hms-gcc
> LD=h8300-hms-ld
>
> script= linker.scr
> output= VER01
> lstd= lib/gcc-lib/h8300-hms/egcs-2.91.66
> FLAGS= -fno-inline -Wcast-align -Wcast-qual
> CFLAGS= -O -g -b -mh8300h -c -o $@ $<
>
> OBJECTS = cstart.o \
> gmdump.o \
>
> cstart.o : cstart.c
> $(CC) $(FLAGS) $(CFLAGS)
>
> gmdump.o : gmdump.c
> $(CC) $(FLAGS) $(CFLAGS)
>
> ---
>
> Now, this will ONLY compile the first file cstart.o, then exit. It seems to
> ignore following file(s), so I tried a pattern rule thus:
>
> #Pattern rule to generate an object file from a 'C' file
> %.o : %.c
> $(CC) $(FLAGS) $(CFLAGS)
>
> ...and this didn't work either:
> MAKE.EXE: *** No rule to make target `cstart.o',
>
> Does anyone have any ideas? I'd be most grateful to hear from you...
>
> Regards,
> Ed Byard