From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28918 invoked by alias); 9 Mar 2006 20:42:58 -0000 Received: (qmail 28908 invoked by uid 22791); 9 Mar 2006 20:42:58 -0000 X-Spam-Check-By: sourceware.org Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 09 Mar 2006 20:42:55 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1FHRyF-0001f8-00; Thu, 09 Mar 2006 21:42:51 +0100 Date: Thu, 09 Mar 2006 20:42:00 -0000 To: "Doyle, Patrick" Cc: 'Andrew Lunn' , ecos-discuss@ecos.sourceware.org Message-ID: <20060309204251.GJ19406@lunn.ch> Mail-Followup-To: "Doyle, Patrick" , 'Andrew Lunn' , ecos-discuss@ecos.sourceware.org References: <3EDBCCE80E95E744A99895CA464987C4A7D293@dtcsrvr09> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3EDBCCE80E95E744A99895CA464987C4A7D293@dtcsrvr09> User-Agent: Mutt/1.5.11+cvs20060126 From: Andrew Lunn X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] JFFS2 on ARM target X-SW-Source: 2006-03/txt/msg00108.txt.bz2 On Thu, Mar 09, 2006 at 11:27:02AM -0500, Doyle, Patrick wrote: > > -----Original Message----- > > From: Andrew Lunn [mailto:andrew@lunn.ch] > > Sent: Wednesday, March 08, 2006 4:58 PM > > To: Doyle, Patrick > > Cc: ecos-discuss@ecos.sourceware.org > > Subject: Re: [ECOS] JFFS2 on ARM target > > > > packages/fs/jffs2/current/src/fs-ecos.c:24 > > > > #if (__GNUC__ == 3) && (__GNUC_MINOR__ == 2) && defined > > (__ARM_ARCH_4__) > > #error This compiler is known to be broken. Please see: > > #error > > http://ecos.sourceware.org/ml/ecos-patches/2003-08/msg00006.html > > #endif > > > > 2003-09-23 Andrew Lunn > > > > * src/fs-ecos.c: Added test to detect known broken > > ARM compiler > > > > Andrew > > > Thanks Andrew, > I'll look at mtd distribution, see if it includes ?yvind's patch, and figure > out what to do next based on what I find there. In the mean time, > experimental evidence suggests that the 'defined(__ARM_ARCH_4__)' should be > 'defined(__ARM_ARCH_4T_)' in fs-ecos.c. At least on my system, which > compiles fs-ecos.c with the following command: > > arm-elf-gcc -c -I/home/wpd/ess/redboot/dbw-redboot-ram/install/include > -I/home/wpd/eCos/ecos-20060228/packages/fs/jffs2/current > -I/home/wpd/eCos/ecos-20060228/packages/fs/jffs2/current/src > -I/home/wpd/eCos/ecos-20060228/packages/fs/jffs2/current/tests -I. > -I/home/wpd/eCos/ecos-20060228/packages/fs/jffs2/current/src/ > -finline-limit=7000 -mcpu=arm9 -Wall -Wpointer-arith -Wstrict-prototypes > -Winline -Wundef -g -O2 -ffunction-sections -fdata-sections > -fno-exceptions -D__ECOS -nostdinc -iwithprefix include > -Wp,-MD,src/fs-ecos.tmp -o src/fs_jffs2_fs-ecos.o > /home/wpd/eCos/ecos-20060228/packages/fs/jffs2/current/src/fs-ecos.c Strange, it works for me. I wounder if its becasue you are using arm9? Please could you give the output when you call gcc with -v. I think that will show all the defines which are passed to CPP. Thanks Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss