This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcc compile problem(s)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]