public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc compile problem(s)
@ 2003-03-24 12:51 Edward Byard
  2003-03-25  8:30 ` LLeweLLyn Reese
  0 siblings, 1 reply; 2+ messages in thread
From: Edward Byard @ 2003-03-24 12:51 UTC (permalink / raw)
  To: gcc-help

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.

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gcc compile problem(s)
  2003-03-24 12:51 gcc compile problem(s) Edward Byard
@ 2003-03-25  8:30 ` LLeweLLyn Reese
  0 siblings, 0 replies; 2+ messages in thread
From: LLeweLLyn Reese @ 2003-03-25  8:30 UTC (permalink / raw)
  To: Edward Byard; +Cc: gcc-help

"Edward Byard" <ed@edwardbyard.co.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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-03-24 22:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-24 12:51 gcc compile problem(s) Edward Byard
2003-03-25  8:30 ` LLeweLLyn Reese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).