From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22165 invoked by alias); 17 Oct 2003 09:37:36 -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 22104 invoked from network); 17 Oct 2003 09:37:35 -0000 Received: from unknown (HELO sand1.gxn.net) (195.147.249.207) by sources.redhat.com with SMTP; 17 Oct 2003 09:37:35 -0000 Received: from ip02.quartzelec.adsl.gxn.net ([195.147.203.154] helo=server2000.Quartz.local) by sand1.gxn.net with esmtp (Exim 4.20) id 1AARKZ-00062j-Ul for ecos-discuss@sources.redhat.com; Fri, 17 Oct 2003 10:55:36 +0100 Date: Fri, 17 Oct 2003 09:37: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-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 X-MS-TNEF-Correlator: From: "James Yates" To: Subject: [ECOS] SH2 Build Problems X-SW-Source: 2003-10/txt/msg00319.txt.bz2 I have a working V2 source tree of eCos with which I can build a library fo= r an SH2. I also have the latest source tree with which I get a build probl= em. During the start of the build process, 2 files, hal_mk_defs.c and var_mk_de= fs.c are processed. The source file is compiled to a tmp file and an 'fgrep= ' command is then run on it outputted to a file sh_offsets.inc, this is the= n compiled. On my working tree both these files go through this fgrep process. On my no= n-working but up-to-date tree, only the first file has fgrep run on it and = so the second one fails to build: Working build: sh-elf-gcc -mb -m2 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wund= ef -Woverloaded-virtual -ggdb -O2 -ffunction-sections -fdata-sections -fno-= rtti -fno-exceptions -fvtable-gc -finit-priority -I/ecos-d/Dev/eCos/builds= /unnamed3_install/include -I/ecos-d/ecos/Working/packages/hal/sh/sh2/v2_0 -= I/ecos-d/ecos/Working/packages/hal/sh/sh2/v2_0/src -I/ecos-d/ecos/Working/p= ackages/hal/sh/sh2/v2_0/tests -I. -Wp,-MD,sh2_offsets.tmp -o var_mk_defs.tm= p -S /ecos-d/ecos/Working/packages/hal/sh/sh2/v2_0/src/var_mk_defs.c fgrep .equ var_mk_defs.tmp | sed s/#// > /ecos-d/Dev/eCos/builds/unnamed3_i= nstall/include/cyg/hal/sh2_offsets.inc make[1]: Leaving directory `/ecos-d/Dev/eCos/builds/unnamed3_build/hal/sh/s= h2/v2_0' make -r -C hal/sh/arch/v2_0 build make[1]: Entering directory `/ecos-d/Dev/eCos/builds/unnamed3_build/hal/sh/= arch/v2_0' Non-working build: sh-elf-gcc -mb -m2 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wund= ef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtt= i -fno-exceptions -fvtable-gc -finit-priority -I/ecos-d/Dev/eCos/builds/un= named2_install/include -I/ecos-d/ecos/ecos_latest_modded/packages/hal/sh/sh= 2/current -I/ecos-d/ecos/ecos_latest_modded/packages/hal/sh/sh2/current/src= -I/ecos-d/ecos/ecos_latest_modded/packages/hal/sh/sh2/current/tests -I. -W= p,-MD,sh2_offsets.tmp -o var_mk_defs.tmp /ecos-d/ecos/ecos_latest_modded/pa= ckages/hal/sh/sh2/current/src/var_mk_defs.c make[1]: Leaving directory `/ecos-d/Dev/eCos/builds/unnamed2_build/hal/sh/s= h2/current' /ecos-c/temp/ccVwfqpP.s: Assembler messages: make: Leaving directory `/ecos-d/Dev/eCos/builds/unnamed2_build' /ecos-c/temp/ccVwfqpP.s:26: Error: bad expression /ecos-c/temp/ccVwfqpP.s:26: Warning: rest of line ignored; first ignored ch= aracter is `0' /ecos-c/temp/ccVwfqpP.s:29: Error: bad expression /ecos-c/temp/ccVwfqpP.s:29: Warning: rest of line ignored; first ignored ch= aracter is `0' /ecos-c/temp/ccVwfqpP.s:32: Error: bad expression /ecos-c/temp/ccVwfqpP.s:32: Warning: rest of line ignored; first ignored ch= aracter is `0' /ecos-c/temp/ccVwfqpP.s:35: Error: bad expression The fgrep command is specified in the architecture cdl script: make -priority 1 { /include/cyg/hal/sh2_offsets.inc : /src/var_mk_def= s.c $(CC) $(CFLAGS) $(INCLUDE_PATH) -Wp,-MD,sh2_offsets.tmp -o var_mk_d= efs.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 } The scripts in both the working and non-working trees are identical. Can an= yone tell me where this fgrep command is called from in the build process o= r why in one build this doesn't happen the second time. I am really scratching my head as I can't use the latest source until I sor= t out this problem. Many Thanks in advance. James Yates -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss