From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20978 invoked by alias); 17 Oct 2003 10:48:16 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 20971 invoked from network); 17 Oct 2003 10:48:15 -0000 Received: from unknown (HELO sand4.gxn.net) (195.147.249.239) by sources.redhat.com with SMTP; 17 Oct 2003 10:48:15 -0000 Received: from ip02.quartzelec.adsl.gxn.net ([195.147.203.154] helo=server2000.Quartz.local) by sand4.gxn.net with esmtp (Exim 4.20) id 1AAS6p-0004qR-Jn; Fri, 17 Oct 2003 11:45:27 +0100 Date: Fri, 17 Oct 2003 10:48:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-ID: X-MS-Has-Attach: content-class: urn:content-classes:message X-MS-TNEF-Correlator: X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 From: "James Yates" To: "Andrew Lunn" Cc: Subject: RE: [ECOS] SH2 Build Problems X-SW-Source: 2003-10/txt/msg00322.txt.bz2 Many Thanks Andrew. I have finally sorted it out although i think my eyes a= re giving up on my after careful comparing lots of files. It turns out that= line 2 of my custom build step had the -S missing from it so gcc was tryin= g to assemble and link the file rather than just compile it.=20 Many thanks, no I can proceed. James Yates -----Original Message----- From: Andrew Lunn [mailto:andrew@lunn.ch] Sent: 17 October 2003 11:05 To: James Yates Cc: ecos-discuss@sources.redhat.com Subject: Re: [ECOS] SH2 Build Problems > The fgrep command is specified in the architecture cdl script: >=20 > make -priority 1 { > /include/cyg/hal/sh2_offsets.inc : /src/var_mk_d= efs.c > $(CC) $(CFLAGS) $(INCLUDE_PATH) -Wp,-MD,sh2_offsets.tmp -o var_mk= _defs.tmp -S $< > fgrep .equ var_mk_defs.tmp | sed s/#// > $@ > @echo $@ ": \\" > $(notdir $@).deps > @tail +2 sh2_offsets.tmp >> $(notdir $@).deps > @echo >> $(notdir $@).deps > @rm sh2_offsets.tmp var_mk_defs.tmp > } >=20 > The scripts in both the working and non-working trees are > identical. Can anyone tell me where this fgrep command is called > from in the build process or why in one build this doesn't happen > the second time. The "-priority 1" controls when this section of make script is executed. See: http://ecos.sourceware.org/ecos/docs-latest/cdl-guide/build.make.html#BUILD= .CUSTOM One guess as to why it does not do it is because the dependencies are wrong somehow. It thinks the target is up to date so there is no need to rebuilt it. Deleting the file should force it to rebuild it. Andrew -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss