This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Error Compiling eCos ARM program


Hello Xavier,

Your toolchain looks like in a bad shape and it is outdated. Try to
get a better toolchain, more uptodate. Let me tell you some places you
can dig for such information:

 Codesourcery - http://www.codesourcery.com/
 Pretty good toolchains.

 Crosstool script - http://kegel.com/crosstool/
 A set of scripts that does the terrible work for you.

 For Debian specific project, http://www.emdebian.org is trying to
maintain a cross toolchain for all arches in sync with Debian.

There are lots of toolchains outthere, just have to find the good ones :-)

Regards,
Hector Oron


2007/7/12, f.xavier cano palazón <f_x_cano@hotmail.com>:
Hi,

I instaled cygwin, and  then binutils-2.13, gcc-3.2.1, gdb-5.3 and
newlib-1.11. Create a kernel with ecos configuration tool.

An try to compile a very simple hello.c program:

/* this is a simple hello world program */

#include <stdio.h>

int main(void)
{
printf("Hello, eCos world!\n");
return 0;
}


I work from the directory where the file is located, using this sentence:


arm-elf-gcc -g hello.c -Lkernel_install/lib -Ttarget.


But appears the messages:


In file included from /gnutools/arm-elf/include/stdio.h:34,
                 from hello.c:8:
/gnutools/lib/gcc-lib/arm-elf/3.2.1/include/stddef.h:202: parse error before
"typedef"
In file included from /gnutools/arm-elf/include/stdio.h:46,
                 from hello.c:8:
/gnutools/arm-elf/include/sys/types.h:123: conflicting types for `caddr_t'
/gnutools/arm-elf/include/sys/types.h:23: previous declaration of `caddr_t'
/gnutools/arm-elf/include/sys/types.h:131: conflicting types for `ino_t'
/gnutools/arm-elf/include/sys/types.h:21: previous declaration of `ino_t'
/gnutools/arm-elf/include/sys/types.h:165: conflicting types for `dev_t'
/gnutools/arm-elf/include/sys/types.h:20: previous declaration of `dev_t'
/gnutools/arm-elf/include/sys/types.h:172: conflicting types for `uid_t'
/gnutools/arm-elf/include/sys/types.h:19: previous declaration of `uid_t'
/gnutools/arm-elf/include/sys/types.h:173: conflicting types for `gid_t'
/gnutools/arm-elf/include/sys/types.h:18: previous declaration of `gid_t'
/gnutools/arm-elf/include/sys/types.h:191: conflicting types for `mode_t'
/gnutools/arm-elf/include/sys/types.h:22: previous declaration of `mode_t'
In file included from hello.c:8:
/gnutools/arm-elf/include/stdio.h:168: parse error before "size_t"
/gnutools/arm-elf/include/stdio.h:188: parse error before "fread"
/gnutools/arm-elf/include/stdio.h:188: parse error before "size_t"
/gnutools/arm-elf/include/stdio.h:189: parse error before "fwrite"
/gnutools/arm-elf/include/stdio.h:189: parse error before "size_t"
/gnutools/arm-elf/include/stdio.h:215: parse error before "size_t"
/gnutools/arm-elf/include/stdio.h:221: parse error before "size_t"
/gnutools/arm-elf/include/stdio.h:272: parse error before "size_t"
/gnutools/arm-elf/include/stdio.h:281: parse error before "size_t"
/gnutools/arm-elf/include/stdio.h:286: parse error before "size_t"
/gnutools/arm-elf/include/stdio.h:287: parse error before "size_t"
hello.c:16:1: warning: no newline at end of file

Why appears this errors?. What i do wrong. Please help me

Best reggards

Xavier Cano

_________________________________________________________________
Descarga gratis la Barra de Herramientas de MSN
http://www.msn.es/usuario/busqueda/barra?XAPID=2031&DI=1055&SU=http%3A//www.hotmail.com&HL=LINKTAG1OPENINGTEXT_MSNBH


-- For unsubscribe information see http://sourceware.org/lists.html#faq




--
Héctor Orón

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]