Error Compiling eCos ARM program
Kai Ruottu
karuottu@mbnet.fi
Thu Jul 12 19:47:00 GMT 2007
f.xavier cano palazón wrote:
> I instaled cygwin, and then binutils-2.13, gcc-3.2.1, gdb-5.3 and
> newlib-1.11.
How did you "install"? From what prebuilt toolchain? Or did you build
them all yourself?
The Windoze platform with its CR+LF line ends in text files is something
where one must take care
what tools to use with any text... Unix-like text files with only LF in
line ends shouldn't be "converted"
to Windoze format!
> 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"
Here you see the line #, '202', so why not look at this and see what
could be unexpected in it?
> 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'
Again, please look at this file, there should be ONLY one 'typedef' for
'caddr_t' in a normal
header coming with newlib! Just as for all the other "duplicates" :
> /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'
> Why appears this errors?. What i do wrong. Please help me
As others have already told, there should be quite many prebuilt tools
for 'arm-elf', I could add
the well-known sites :
http://www.macraigor.com/full_gnu.htm
and
http://www.gnuarm.org
If you built it yourself, then something went badly wrong somewhere :-(
Why, is hard to tell without
more info...
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list