From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21357 invoked by alias); 24 Mar 2003 22:12:47 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 21350 invoked from network); 24 Mar 2003 22:12:47 -0000 Received: from unknown (HELO lifesupport.shutdown.com) (66.93.79.177) by sources.redhat.com with SMTP; 24 Mar 2003 22:12:47 -0000 Received: (from llewelly@localhost) by lifesupport.shutdown.com (8.11.2/8.11.2) id h2OM9dd29520; Mon, 24 Mar 2003 14:09:39 -0800 (PST) To: "Edward Byard" Cc: Subject: Re: gcc compile problem(s) Reply-To: gcc-help@gcc.gnu.org References: <000901c2f1f9$478a6c80$a912bd50@edwardby> From: LLeweLLyn Reese Date: Tue, 25 Mar 2003 08:30:00 -0000 In-Reply-To: <000901c2f1f9$478a6c80$a912bd50@edwardby> Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-03/txt/msg00278.txt.bz2 "Edward Byard" 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