[ECOS] error while build tools in cygwin

Jonathan Larmour jlarmour@redhat.co.uk
Thu Aug 24 09:33:00 GMT 2000


> "adon@walkersun" wrote:
> 
> hi,
> 
> i have a new project which have to use TX3904 at cygwin envirenment. I
> followed the intruction in the document "Installing eCos under Windows"
> to build the GNUpro's utility. At the current situation, i could make the
> binutils.2.10. but I could not build gcc.2.95.2 and insight.5.0.
> 
> when i make the gcc, the system always promt error to me the following
> message:
> 
> ==============================================
> ......
> config/mips/elf.h:304: stray '\' in program
> config/mips/elf.h:305: parse error before string constant
> config/mips/elf.h:305: stray '\' in program
> config/mips/elf.h:306: warning: parameter names (without types) in
> function decl
> aration
> config/mips/elf.h:306: warning: data definition has no type or storage
> class
> config/mips/elf.h:306: stray '\' in program
> config/mips/elf.h:307: parse error before string constant
> config/mips/elf.h:307: warning: data definition has no type or storage
> class
> config/mips/elf.h:307: stray '\' in program
> config/mips/elf.h:311: stray '\' in program
> config/mips/elf.h:312: `func_ptr' undeclared here (not in a function)
> config/mips/elf.h:312: initializer element is not constant
> config/mips/elf.h:312: (near initialization for `__CTOR_LIST__[0]')
> config/mips/elf.h:315: parse error before `asm'
> config/mips/elf.h:315: stray '\' in program
> config/mips/elf.h:316: `func_ptr' undeclared here (not in a function)
> config/mips/elf.h:316: initializer element is not constant
> config/mips/elf.h:316: (near initialization for `__CTOR_END__[0]')
> config/mips/elf.h:316: parse error before `0'
> config/mips/elf.h:316: warning: data definition has no type or storage
> class
> config/mips/elf.h:319: stray '\' in program
> config/mips/elf.h:320: parse error before `__DTOR_LIST__'
> config/mips/elf.h:320: `func_ptr' undeclared here (not in a function)
> config/mips/elf.h:320: initializer element is not constant
> config/mips/elf.h:320: (near initialization for `__DTOR_LIST__[0]')
> config/mips/elf.h:323: parse error before `asm'
> config/mips/elf.h:323: stray '\' in program
> config/mips/elf.h:324: `func_ptr' undeclared here (not in a function)
> config/mips/elf.h:324: initializer element is not constant
> config/mips/elf.h:324: (near initialization for `__DTOR_END__[0]')
> config/mips/elf.h:324: parse error before `0'
> config/mips/elf.h:324: warning: data definition has no type or storage
> class
> In file included from system.h:32,
>                  from cccp.c:23:
> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/stdio.h:142:
> conflict
> ing types for `fprintf'
> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/stdio.h:142: A
> parame
> ter list with an ellipsis can't match an empty parameter name list
> declaration.
> config/mips/elf.h:307: previous declaration of `fprintf'
> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/stdio.h:175:
> conflict
> ing types for `sprintf'
> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/stdio.h:175: A
> parame
> ter list with an ellipsis can't match an empty parameter name list
> declaration.
> config/mips/elf.h:232: previous declaration of `sprintf'
> make[1]: *** [cccp.o] Error 1
> make[1]: Leaving directory `/src/gcc-2.95.2/gcc'
> make: *** [all-gcc] Error 2
> make: Leaving directory `/src/gcc-2.95.2'
> ====================================================
> 
> what is wrong with me??? this is a new project, my boss ask me to
> evaluate eCos system, so could you tell me how to solve the tool build
> problem???

Out of interest, how are the sources and build directory mounted in cygwin?
you can determine this by giving the output of "mount" in cygwin, and
telling me where your source and build directories are.

Here's something that might work as a workaround. Do this in your gcc
source tree.

tr -d '\r' config/mips/elf.h > foo
mv foo config/mips/elf.h

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


More information about the Ecos-discuss mailing list