[ECOS] new to Ecos ... pb building Redboot under Linux
Jonathan Larmour
jifl@eCosCentric.com
Wed Feb 12 23:47:00 GMT 2003
Philippe Moutarlier wrote:
> /home/philippe/ecos/ecos/packages/hal/i386/arch/current/src/hal_misc.c
> In file included from
> /home/philippe/ecos/ecos/packages/hal/i386/arch/current/src/hal_misc.c:56:
> /home/philippe/ecos_build/redboot/redboot_install/include/cyg/infra/cyg_type.h:257:
> Invalid token in expression
> make[1]: *** [src/hal_misc.o.d] Error 1
> make[1]: Leaving directory
> `/home/philippe/ecos_build/redboot/redboot_build/hal/i386/arch/current'
> make: *** [build] Error 2
>
> Seems it doesn't like the cyg_type.h :-(
Hmm. It's noticeable this is at a line continuation (with a '\'). I would
say this must be a windows problem, but you're using Linux :-), but it
makes me wonder if you are in fact using sources you downloaded on Windows
and copied to your linux box. If so, you will need to strip the carriage
returns from the file to make it a proper Unix text file. You can use tr
-d '\r' for this, e.g.
for i in `find . -type f` ; do tr -d '\r' < $i > $i.nocr ; mv $i.nocr $i ;
done
(note: untested, excuse typos)
> Can we compile Redboot under Linux or should it be done under Cygwin only ?
*Preferably* Linux really!
Jifl
--
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
More information about the Ecos-discuss
mailing list