This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
Re: Redboot compilation problems
- From: RaÃl SÃnchez Siles <rsanchezs at infoglobal dot es>
- To: ecos-patches at ecos dot sourceware dot org
- Date: Mon, 9 Feb 2009 17:42:12 +0100
- Subject: Re: Redboot compilation problems
- References: <47876537.8010808@free.fr> <200801111426.05112.larsi@wh2.tu-dresden.de>
Hello All:
On Friday 11 January 2008 14:26:05 Lars Poeschel wrote:
> On Freitag, 11. Januar 2008, Paul Chavent wrote:
> > Good morning.
> >
> > When i compile redboot i get this error :
> >
> > 8<-------------------------------------
> >
> > make -r -C redboot/current build
> > make[1]: Entering directory
> > `/opt/gba/ecos/untitled_build/redboot/current' arm-thumb-elf-gcc -c
> > -I/opt/gba/ecos/untitled_install/include
> > -I/home/paul/Gba/sources/ecos/packages/redboot/current
> > -I/home/paul/Gba/sources/ecos/packages/redboot/current/src
> > -I/home/paul/Gba/sources/ecos/packages/redboot/current/tests -I.
> > -I/home/paul/Gba/sources/ecos/packages/redboot/current/src/
> > -finline-limit=7000 -mthumb-interwork -Wall -Wpointer-arith
> > -Wstrict-prototypes -Winline -Wundef -g -O2 -ffunction-sections
> > -fdata-sections -fno-exceptions -Wp,-MD,src/main.tmp -o
> > src/redboot_main.o
> > /home/paul/Gba/sources/ecos/packages/redboot/current/src/main.c
> > make[1]: Leaving directory `/opt/gba/ecos/untitled_build/redboot/current'
> > /home/paul/Gba/sources/ecos/packages/redboot/current/src/main.c: In
> > function 'cyg_start':
> > make: Leaving directory `/opt/gba/ecos/untitled_build'
> > /home/paul/Gba/sources/ecos/packages/redboot/current/src/main.c:397:
> > error: lvalue required as left operand of assignment
> >
> > /home/paul/Gba/sources/ecos/packages/redboot/current/src/main.c: In
> > function 'do_go':
> > /home/paul/Gba/sources/ecos/packages/redboot/current/src/main.c:603:
> > error: lvalue required as left operand of assignment
> > make[1]: *** [src/main.o.d] Error 1
> > make: *** [build] Error 2
>
> ...
>
> > The atached patch solve this problem.
> >
> > Thanks for your comments.
>
> Hi!
>
> I also have the problem using a recent gcc version.
> The problem with your patch is that a compiler warning is generated about
> not converted types in an assignment.
> I'd suggest the attatched solution.
>
> Lars
I've also run into this problem. I acknowledge mine's not a quite common
configuration: cross gcc-4.2 toolchain from emdebian and a tailored ecos
version from Vitesse which should be quite close to 2.0 release.
Thing is that I've applied the patch successfully and I was able to go on
with the compilation. I still have other issues, but I understand that ecos
building is just supported under toolchain provided by ecos web.
HTH,
Ps.: Please, CC me, I'm not subscribed.
--
RaÃl SÃnchez Siles
Departamento de Montaje
INFOGLOBAL, S. A.
* C/ Virgilio, 2. Ciudad de la Imagen.
28223 Pozuelo de AlarcÃn (Madrid), EspaÃa
* T: +34 91 506 40 00
* F: +34 91 506 40 01