* [ECOS] about compiling the examples
@ 2000-11-14 18:04 yyl
2000-12-05 19:56 ` Jonathan Larmour
0 siblings, 1 reply; 2+ messages in thread
From: yyl @ 2000-11-14 18:04 UTC (permalink / raw)
To: eCos_discuss
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 7259 bytes --]
Hi,I have finished building the
development tools for PowerPC under WindowsNT.
Now I want to cross compile a example
named hello.c.The order I do as followed:
1.Configuring and Building eCos from
Source
     select the template
:Cogent CMA286/287 board
     specify the tools
paths
     I don't know what
the repository means,and how to configure it.
 2.built libary
  Up to now no error
occurs.
 3.make the hello.c
  edit the makefile,then do:make
hello
  Â
 the out messages is:
 powerpc-eabi-gcc -msoft-float
-mcpu=860Â Â Â Â Â Â Â Â Â -c -o hello.o -g
-Wall -I/ecos_work2/ecos_install/include -ffunction-sections -fdata-sections
hello.c In file included from
/ecos_work2/ecos_install/include/stdio.h:56, Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
from hello.c:1: /ecos_work2/ecos_install/include/cyg/infra/cyg_type.h:160:
parse error before
`__tmp1' /ecos_work2/ecos_install/include/cyg/infra/cyg_type.h:160: warning:
type defaults to `int' in declaration of
`__tmp1' /ecos_work2/ecos_install/include/cyg/infra/cyg_type.h:160: `_name_'
undeclared here (not in a
function) /ecos_work2/ecos_install/include/cyg/infra/cyg_type.h:160: warning:
data definition has no type or storage
class /ecos_work2/ecos_install/include/cyg/infra/cyg_type.h:160: stray '\' in
program /ecos_work2/ecos_install/include/cyg/infra/cyg_type.h:161: parse
error before
`__tmp2' /ecos_work2/ecos_install/include/cyg/infra/cyg_type.h:161: warning:
type defaults to `int' in declaration of
`__tmp2' /ecos_work2/ecos_install/include/cyg/infra/cyg_type.h:161:
initializer element is not
constant /ecos_work2/ecos_install/include/cyg/infra/cyg_type.h:161: warning:
data definition has no type or storage
class /ecos_work2/ecos_install/include/cyg/infra/cyg_type.h:161: stray '\' in
program /ecos_work2/ecos_install/include/cyg/infra/cyg_type.h:162: warning:
type defaults to `int' in declaration of
`__tmp1' /ecos_work2/ecos_install/include/cyg/infra/cyg_type.h:162:
redefinition of
`__tmp1' /ecos_work2/ecos_install/include/cyg/infra/cyg_type.h:160: `__tmp1'
previously defined
here /ecos_work2/ecos_install/include/cyg/infra/cyg_type.h:162: initializer
element is not
constant /ecos_work2/ecos_install/include/cyg/infra/cyg_type.h:162: warning:
data definition has no type or storage
class /ecos_work2/ecos_install/include/cyg/infra/cyg_type.h:162: stray '\' in
program /ecos_work2/ecos_install/include/cyg/infra/cyg_type.h:163: parse
error before `}' /ecos_work2/ecos_install/include/cyg/infra/cyg_type.h:171:
stray '\' in
program /ecos_work2/ecos_install/include/cyg/infra/cyg_type.h:172: stray '\'
in program /ecos_work2/ecos_install/include/cyg/infra/cyg_type.h:173: stray
'\' in program /ecos_work2/ecos_install/include/cyg/infra/cyg_type.h:223:
parse error before
`CYG_BYTE' /ecos_work2/ecos_install/include/cyg/infra/cyg_type.h:223:
warning: type defaults to `int' in declaration of
`CYG_BYTE' /ecos_work2/ecos_install/include/cyg/infra/cyg_type.h:223:
warning: data definition has no type or storage
class /ecos_work2/ecos_install/include/cyg/infra/cyg_type.h:282: parse error
before `#' /ecos_work2/ecos_install/include/cyg/infra/cyg_type.h:317: stray
'\' in program /ecos_work2/ecos_install/include/cyg/infra/cyg_type.h:341:
warning: This file contains more `}'s than `{'s. In file included from
/tools/H-i686-pc-cygwin/lib/gcc-lib/powerpc-eabi/2.95.2/include/stdarg.h:43, Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
from
/ecos_work2/ecos_install/include/stdio.h:58, Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
from
hello.c:1: /tools/H-i686-pc-cygwin/lib/gcc-lib/powerpc-eabi/2.95.2/include/va-ppc.h:29:
parse error before
`}' /tools/H-i686-pc-cygwin/lib/gcc-lib/powerpc-eabi/2.95.2/include/va-ppc.h:29:
warning: data definition has no type or storage class In file included from
/ecos_work2/ecos_install/include/stdio.h:58, Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
from
hello.c:1: /tools/H-i686-pc-cygwin/lib/gcc-lib/powerpc-eabi/2.95.2/include/stdarg.h:189:
parse error before
`va_list' /tools/H-i686-pc-cygwin/lib/gcc-lib/powerpc-eabi/2.95.2/include/stdarg.h:189:
warning: data definition has no type or storage class In file included from
hello.c:1: /ecos_work2/ecos_install/include/stdio.h:174: parse error before
`va_list' /ecos_work2/ecos_install/include/stdio.h:177: parse error before
`va_list' /ecos_work2/ecos_install/include/stdio.h:181: parse error before
`va_list' /ecos_work2/ecos_install/include/stdio.h:270: parse error before
`va_list' /ecos_work2/ecos_install/include/stdio.h:274: parse error before
`va_list' /ecos_work2/ecos_install/include/stdio.h:277: parse error before
`va_list' /ecos_work2/ecos_install/include/stdio.h:281: parse error before
`va_list' /ecos_work2/ecos_install/include/stdio.h:285: parse error before
`va_list' In file included from
/ecos_work2/ecos_install/include/stdio.h:291, Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
from hello.c:1: /ecos_work2/ecos_install/include/stdio.inl:88: parse error
before `va_list' /ecos_work2/ecos_install/include/stdio.inl: In function
`vfprintf': /ecos_work2/ecos_install/include/stdio.inl:90: `stream'
undeclared (first use in this
function) /ecos_work2/ecos_install/include/stdio.inl:90: (Each undeclared
identifier is reported only
once /ecos_work2/ecos_install/include/stdio.inl:90: for each function it
appears in.) /ecos_work2/ecos_install/include/stdio.inl:90: `format'
undeclared (first use in this
function) /ecos_work2/ecos_install/include/stdio.inl:90: `arg' undeclared
(first use in this function) /ecos_work2/ecos_install/include/stdio.inl: At
top level: /ecos_work2/ecos_install/include/stdio.inl:95: parse error before
`va_list' /ecos_work2/ecos_install/include/stdio.inl: In function
`vprintf': /ecos_work2/ecos_install/include/stdio.inl:97: `format' undeclared
(first use in this function) /ecos_work2/ecos_install/include/stdio.inl:97:
`arg' undeclared (first use in this
function) /ecos_work2/ecos_install/include/stdio.inl: At top
level: /ecos_work2/ecos_install/include/stdio.inl:102: parse error before
`va_list' /ecos_work2/ecos_install/include/stdio.inl: In function
`vsprintf': /ecos_work2/ecos_install/include/stdio.inl:104: `s' undeclared
(first use in this function) /ecos_work2/ecos_install/include/stdio.inl:104:
`format' undeclared (first use in this
function) /ecos_work2/ecos_install/include/stdio.inl:104: `arg' undeclared
(first use in this function) /ecos_work2/ecos_install/include/stdio.inl: At
top level: /ecos_work2/ecos_install/include/stdio.inl:145: parse error before
`va_list' /ecos_work2/ecos_install/include/stdio.inl: In function
`vscanf': /ecos_work2/ecos_install/include/stdio.inl:147: `format' undeclared
(first use in this function) /ecos_work2/ecos_install/include/stdio.inl:147:
`arg' undeclared (first use in this function) In file included from
hello.c:1: hello.c: At top
level: /ecos_work2/ecos_install/include/stdio.h:299: warning: This file
contains more `}'s than `{'s. make: *** [hello.o] Error 1
Â
Thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ECOS] about compiling the examples
2000-11-14 18:04 [ECOS] about compiling the examples yyl
@ 2000-12-05 19:56 ` Jonathan Larmour
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Larmour @ 2000-12-05 19:56 UTC (permalink / raw)
To: yyl; +Cc: eCos_discuss
> yyl wrote:
>
> 3.make the hello.c
> edit the makefile,then do:make hello
>
> the out messages is:
[snip]
> /ecos_work2/ecos_install/include/cyg/infra/cyg_type.h:160: stray '\' in
> program
This is generally a sign that you some of your files are on a cygwin binary
mounted filesystem but contain CRLFs. Instead ensure your install tree is
mounted in text mode. Use the cygwin "mount" command to do this.
Jifl
--
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow." || These opinions are all my own fault
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-12-05 19:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-14 18:04 [ECOS] about compiling the examples yyl
2000-12-05 19:56 ` Jonathan Larmour
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).