This is the mail archive of the ecos-discuss@sourceware.cygnus.com mailing list for the eCos project.


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

Error compiling for Arm


I am running cygwin 1.1.2, and ecos 1.3.1 on NT and followed the
installation instructions on the cygnus web site.  However, when I try to
compile the simple hello world program I get a bunch of errors with the
include files from eCos 1.3.1.  Here are the errors I am given.  I tried
rebuiling the tools and it didn't help, is it an eCos problem or gcc, or is
it just me.  Here is what I did.

Thanks
Eric

bash-2.04$ arm-elf-gcc -g -Iecos_install/include
hello.c -Lecos_install/lib -Tt
arget.ld -nostdlib
In file included from ecos_install/include/stdio.h:56,
                 from hello.c:2:
ecos_install/include/cyg/infra/cyg_type.h:161: parse error before `__tmp1'
ecos_install/include/cyg/infra/cyg_type.h:161: `_name_' undeclared here (not
in
a function)
ecos_install/include/cyg/infra/cyg_type.h:161: warning: data definition has
no t
ype or storage class
ecos_install/include/cyg/infra/cyg_type.h:161: stray '\' in program
ecos_install/include/cyg/infra/cyg_type.h:162: parse error before `__tmp2'
ecos_install/include/cyg/infra/cyg_type.h:162: initializer element is not
consta
nt
ecos_install/include/cyg/infra/cyg_type.h:162: warning: data definition has
no t
ype or storage class
ecos_install/include/cyg/infra/cyg_type.h:162: stray '\' in program
ecos_install/include/cyg/infra/cyg_type.h:163: redefinition of `__tmp1'
ecos_install/include/cyg/infra/cyg_type.h:161: `__tmp1' previously defined
here
ecos_install/include/cyg/infra/cyg_type.h:163: initializer element is not
consta
nt
ecos_install/include/cyg/infra/cyg_type.h:163: warning: data definition has
no t
ype or storage class
ecos_install/include/cyg/infra/cyg_type.h:163: stray '\' in program
ecos_install/include/cyg/infra/cyg_type.h:164: parse error before `}'
ecos_install/include/cyg/infra/cyg_type.h:172: stray '\' in program
ecos_install/include/cyg/infra/cyg_type.h:173: stray '\' in program
ecos_install/include/cyg/infra/cyg_type.h:174: stray '\' in program
ecos_install/include/cyg/infra/cyg_type.h:224: parse error before `CYG_BYTE'
ecos_install/include/cyg/infra/cyg_type.h:224: warning: data definition has
no t
ype or storage class
ecos_install/include/cyg/infra/cyg_type.h:283: parse error before `#'
ecos_install/include/cyg/infra/cyg_type.h:318: stray '\' in program
ecos_install/include/cyg/infra/cyg_type.h:343: warning: This file contains
more
`}'s than `{'s.
In file included from ecos_install/include/stdio.h:58
                 from hello.c:2:
/tools/H-i686-pc-cygwin/lib/gcc-lib/arm-elf/2.95.2/include/stdarg.h:99:
warning:
 parameter names (without types) in function declaration
/tools/H-i686-pc-cygwin/lib/gcc-lib/arm-elf/2.95.2/include/stdarg.h:188:
parse e
rror before `va_list'
/tools/H-i686-pc-cygwin/lib/gcc-lib/arm-elf/2.95.2/include/stdarg.h:188:
warning
: data definition has no type or storage class
In file included from hello.c:2:
ecos_install/include/stdio.h:174: parse error before `va_list'
ecos_install/include/stdio.h:177: parse error before `va_list'
ecos_install/include/stdio.h:181: parse error before `va_list'
ecos_install/include/stdio.h:270: parse error before `va_list'
ecos_install/include/stdio.h:274: parse error before `va_list'
ecos_install/include/stdio.h:277: parse error before `va_list'
ecos_install/include/stdio.h:281: parse error before `va_list'
ecos_install/include/stdio.h:285: parse error before `va_list'
In file included from ecos_install/include/stdio.h:291,
                 from hello.c:2:
ecos_install/include/stdio.inl:88: parse error before `va_list'
ecos_install/include/stdio.inl: In function `vfprintf':
ecos_install/include/stdio.inl:90: `stream' undeclared (first use in this
functi
on)
ecos_install/include/stdio.inl:90: (Each undeclared identifier is reported
only
once
ecos_install/include/stdio.inl:90: for each function it appears in.)
ecos_install/include/stdio.inl:90: `format' undeclared (first use in this
functi
on)
ecos_install/include/stdio.inl:90: `arg' undeclared (first use in this
function)

ecos_install/include/stdio.inl: At top level:
ecos_install/include/stdio.inl:95: parse error before `va_list'
ecos_install/include/stdio.inl: In function `vprintf':
ecos_install/include/stdio.inl:97: `format' undeclared (first use in this
functi
on)
ecos_install/include/stdio.inl:97: `arg' undeclared (first use in this
function)

ecos_install/include/stdio.inl: At top level:
ecos_install/include/stdio.inl:102: parse error before `va_list'
ecos_install/include/stdio.inl: In function `vsprintf':
ecos_install/include/stdio.inl:104: `s' undeclared (first use in this
function)
ecos_install/include/stdio.inl:104: `format' undeclared (first use in this
funct
ion)
ecos_install/include/stdio.inl:104: `arg' undeclared (first use in this
function
)
ecos_install/include/stdio.inl: At top level:
ecos_install/include/stdio.inl:145: parse error before `va_list'
ecos_install/include/stdio.inl: In function `vscanf':
ecos_install/include/stdio.inl:147: `format' undeclared (first use in this
funct
ion)
ecos_install/include/stdio.inl:147: `arg' undeclared (first use in this
function
)
In file included from hello.c:2:
hello.c: At top level:
ecos_install/include/stdio.h:299: warning: This file contains more `}'s than
`{'
s.
bash-2.04$


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