This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: JFFS2 on big-endian system
On Dienstag, 25. November 2003 17:11, Andrew Lunn wrote:
> > The attached change fixed it to me, but I think maybe it is a compiler
> > bug?
> >
> > Maybe the other problems I have if I save a ready filesystem image in
> > FLASH has similar reasons.
>
> What compiler are you using? You might be interested in:
>
> http://ecos.sourceware.org/ml/ecos-patches/2003-08/msg00006.html
>
> Its is known that the eCosCentric ARM compiler is broken. fs-ecos.c
> checks this and gives an error message. It has the following code:
>
> #if (__GNUC__ == 3) && (__GNUC_MINOR__ == 2) && (__GNUC_PATCHLEVEL__ == 1)
> && \ 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
>
> It looks like i need to add another compiler to this check :-(
>
> Andrew
arm-elf-gcc -v
Reading specs from /opt/gnutools/lib/gcc-lib/arm-elf/3.2.2/specs
Configured with: ../../src/gcc-3.2.2/configure --target=arm-elf
--prefix=/opt/gnutools --enable-languages=c,c++ --with-gnu-as --with-gnu-ld
--with-newlib --with-gxx-include-dir=/opt/gnutools/arm-elf/include -v :
(reconfigured) ../../src/gcc-3.2.2/configure --target=arm-be-elf
--prefix=/opt/gnutools --enable-languages=c,c++ --with-gnu-as --with-gnu-ld
--with-newlib --with-gxx-include-dir=/opt/gnutools/arm-elf/include -v :
(reconfigured) ../../src/gcc-3.2.2/configure --target=armbe-elf
--prefix=/opt/gnutools --enable-languages=c,c++ --with-gnu-as --with-gnu-ld
--with-newlib --with-gxx-include-dir=/opt/gnutools/arm-elf/include -v :
(reconfigured) ../../src/gcc-3.2.2/configure --target=arm-elf
--prefix=/opt/gnutools --enable-languages=c,c++ --with-gnu-as --with-gnu-ld
--with-newlib --with-multilib
--with-gxx-include-dir=/opt/gnutools/arm-elf/include -v
Thread model: single
gcc version 3.2.2
And my main compiler options are:
arm-elf-gcc -mcpu=arm7tdmi -mbig-endian -mno-short-load-words
Seems like I have to update to gcc 3.3.
Roland
--
___________________________________________________
VS Vision Systems GmbH, Industrial Image Processing
Dipl.-Ing. Roland Caßebohm
Aspelohe 27A, D-22848 Norderstedt, Germany
Mail: roland.cassebohm@visionsystems.de
http://www.visionsystems.de
___________________________________________________
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss