This is the mail archive of the ecos-discuss@sources.redhat.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]
Other format: [Raw text]

Hello Program Make Error


Hi,

I have built default library for EB40 with eCos configuration tool 2.08.  
And then I used the following command to make it.

$ arm-elf-gcc -g -I../eb40/eb_install/include hello.c -L../eb40/eb_install/lib -Ttarget.ld -nostdlib

 But it failed with the error message listed below.   Can anyone help me?


==================================================================
In file included from ../eb40/eb_install/include/cyg/libc/stdio/stdio.h:53,
                 from ../eb40/eb_install/include/stdio.h:65,
                 from hello.c:2:
./eb40/eb_install/include/cyg/infra/cyg_type.h:173: parse error before `__tmp1'
./eb40/eb_install/include/cyg/infra/cyg_type.h:173: `_name_' undeclared here (not in a function)
./eb40/eb_install/include/cyg/infra/cyg_type.h:173: warning: data definition has no type or storage class
./eb40/eb_install/include/cyg/infra/cyg_type.h:173: stray '\' in program
./eb40/eb_install/include/cyg/infra/cyg_type.h:174: parse error before `__tmp2'
./eb40/eb_install/include/cyg/infra/cyg_type.h:174: initializer element is not constant
./eb40/eb_install/include/cyg/infra/cyg_type.h:174: warning: data definition has no type or storage class
./eb40/eb_install/include/cyg/infra/cyg_type.h:174: stray '\' in program
./eb40/eb_install/include/cyg/infra/cyg_type.h:175: redefinition of `__tmp1'
./eb40/eb_install/include/cyg/infra/cyg_type.h:173: `__tmp1' previously defined here
./eb40/eb_install/include/cyg/infra/cyg_type.h:175: initializer element is not constant
./eb40/eb_install/include/cyg/infra/cyg_type.h:175: warning: data definition has no type or storage class
./eb40/eb_install/include/cyg/infra/cyg_type.h:175: stray '\' in program
./eb40/eb_install/include/cyg/infra/cyg_type.h:176: parse error before `}'
./eb40/eb_install/include/cyg/infra/cyg_type.h:184: stray '\' in program
./eb40/eb_install/include/cyg/infra/cyg_type.h:185: stray '\' in program
./eb40/eb_install/include/cyg/infra/cyg_type.h:186: stray '\' in program
./eb40/eb_install/include/cyg/infra/cyg_type.h:236: parse error before `CYG_BYTE'
./eb40/eb_install/include/cyg/infra/cyg_type.h:236: warning: data definition has no type or storage class
./eb40/eb_install/include/cyg/infra/cyg_type.h:318: parse error before `#'
./eb40/eb_install/include/cyg/infra/cyg_type.h:363: stray '\' in program
./eb40/eb_install/include/cyg/infra/cyg_type.h:401: warning: This file contains more `}'s than `{'s.
In file included from ../eb40/eb_install/include/stdarg.h:57,
                 from ../eb40/eb_install/include/cyg/libc/stdio/stdio.h:54,
                 from ../eb40/eb_install/include/stdio.h:65,
                 from hello.c:2:
/home/Administrator/install/lib/gcc-lib/arm-elf/2.95.3/include/stdarg.h:99: warning: parameter names (without types) in function declaration
/home/Administrator/install/lib/gcc-lib/arm-elf/2.95.3/include/stdarg.h:188: parse error before `va_list'
/home/Administrator/install/lib/gcc-lib/arm-elf/2.95.3/include/stdarg.h:188: warning: data definition has no type or storage class
In file included from ../eb40/eb_install/include/stdio.h:65,
                 from hello.c:2:
./eb40/eb_install/include/cyg/libc/stdio/stdio.h:159: parse error before `va_list'
./eb40/eb_install/include/cyg/libc/stdio/stdio.h:162: parse error before `va_list'
./eb40/eb_install/include/cyg/libc/stdio/stdio.h:166: parse error before `va_list'
./eb40/eb_install/include/cyg/libc/stdio/stdio.h:273: parse error before `va_list'
./eb40/eb_install/include/cyg/libc/stdio/stdio.h:277: parse error before `va_list'
./eb40/eb_install/include/cyg/libc/stdio/stdio.h:280: parse error before `va_list'
./eb40/eb_install/include/cyg/libc/stdio/stdio.h:284: parse error before `va_list'
./eb40/eb_install/include/cyg/libc/stdio/stdio.h:288: parse error before `va_list'
In file included from ../eb40/eb_install/include/cyg/libc/stdio/stdio.h:294,
                 from ../eb40/eb_install/include/stdio.h:65,
                 from hello.c:2:
./eb40/eb_install/include/cyg/libc/stdio/stdio.inl:85: parse error before `va_list'
./eb40/eb_install/include/cyg/libc/stdio/stdio.inl: In function `vfprintf':
./eb40/eb_install/include/cyg/libc/stdio/stdio.inl:87: `stream' undeclared (first use in this function)
./eb40/eb_install/include/cyg/libc/stdio/stdio.inl:87: (Each undeclared identifier is reported only once
./eb40/eb_install/include/cyg/libc/stdio/stdio.inl:87: for each function it appears in.)
./eb40/eb_install/include/cyg/libc/stdio/stdio.inl:87: `format' undeclared (first use in this function)
./eb40/eb_install/include/cyg/libc/stdio/stdio.inl:87: `arg' undeclared (first use in this function)
./eb40/eb_install/include/cyg/libc/stdio/stdio.inl: At top level:
./eb40/eb_install/include/cyg/libc/stdio/stdio.inl:92: parse error before `va_list'
./eb40/eb_install/include/cyg/libc/stdio/stdio.inl: In function `vprintf':
./eb40/eb_install/include/cyg/libc/stdio/stdio.inl:94: `format' undeclared (first use in this function)
./eb40/eb_install/include/cyg/libc/stdio/stdio.inl:94: `arg' undeclared (first use in this function)
./eb40/eb_install/include/cyg/libc/stdio/stdio.inl: At top level:
./eb40/eb_install/include/cyg/libc/stdio/stdio.inl:99: parse error before `va_list'
./eb40/eb_install/include/cyg/libc/stdio/stdio.inl: In function `vsprintf':
./eb40/eb_install/include/cyg/libc/stdio/stdio.inl:101: `s' undeclared (first use in this function)
./eb40/eb_install/include/cyg/libc/stdio/stdio.inl:101: `format' undeclared (first use in this function)
./eb40/eb_install/include/cyg/libc/stdio/stdio.inl:101: `arg' undeclared (first use in this function)
./eb40/eb_install/include/cyg/libc/stdio/stdio.inl: At top level:
./eb40/eb_install/include/cyg/libc/stdio/stdio.inl:142: parse error before `va_list'
./eb40/eb_install/include/cyg/libc/stdio/stdio.inl: In function `vscanf':
./eb40/eb_install/include/cyg/libc/stdio/stdio.inl:144: `format' undeclared (first use in this function)
./eb40/eb_install/include/cyg/libc/stdio/stdio.inl:144: `arg' undeclared (first use in this function)
In file included from ../eb40/eb_install/include/stdio.h:65,
                 from hello.c:2:
./eb40/eb_install/include/stdio.h: At top level:
./eb40/eb_install/include/cyg/libc/stdio/stdio.h:300: warning: This file contains more `}'s than `{'s.
In file included from hello.c:2:
./eb40/eb_install/include/stdio.h:141: warning: This file contains more `}'s than `{'s.
==========================================================================
 				

Best Regards,
Lin Ming
2002-05-06



-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


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