public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] eCos bad patch for i386 target gcc?
@ 2000-12-07 13:38 Pasko, Matt
  2000-12-07 13:50 ` Jonathan Larmour
  0 siblings, 1 reply; 2+ messages in thread
From: Pasko, Matt @ 2000-12-07 13:38 UTC (permalink / raw)
  To: 'ecos-discuss@sources.redhat.com'

[-- Attachment #1: Type: text/plain, Size: 393 bytes --]

Help!

I'm setting up eCos. I've followed
http://sources.redhat.com/ecos/tools/win-i386-elf.html
< http://sources.redhat.com/ecos/tools/win-i386-elf.html > 

directions a couple of times now and when I try to build gcc, the build dies
and i386elf.h looks like it has parse errors.  The patch to gcc2.95.2
appeared to work.
What is wrong?

Attached is make.out


 <<make.out>> 
Matthew Pasko



[-- Attachment #2: make.out --]
[-- Type: text/plain, Size: 6831 bytes --]

make: Entering directory `/tmp/build/gcc'
make[1]: Entering directory `/tmp/build/gcc/libiberty'
make[2]: Entering directory `/tmp/build/gcc/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/build/gcc/libiberty/testsuite'
make[1]: Leaving directory `/tmp/build/gcc/libiberty'
make[1]: Entering directory `/tmp/build/gcc/texinfo'
make all-recursive
make[2]: Entering directory `/tmp/build/gcc/texinfo'
Making all in intl
make[3]: Entering directory `/tmp/build/gcc/texinfo/intl'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/tmp/build/gcc/texinfo/intl'
Making all in lib
make[3]: Entering directory `/tmp/build/gcc/texinfo/lib'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/tmp/build/gcc/texinfo/lib'
Making all in makeinfo
make[3]: Entering directory `/tmp/build/gcc/texinfo/makeinfo'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/tmp/build/gcc/texinfo/makeinfo'
make[2]: Leaving directory `/tmp/build/gcc/texinfo'
make[1]: Leaving directory `/tmp/build/gcc/texinfo'
make[1]: Entering directory `/tmp/build/gcc/gcc'
(cd intl && make all)
make[2]: Entering directory `/tmp/build/gcc/gcc/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/build/gcc/gcc/intl'
if [ -f libgcc2.ready ] ; then \
	true; \
else \
	touch libgcc2.ready; \
fi
rm -f tmplibgcc2.a
for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3 _ashldi3 _ashrdi3 _ffsdi2 _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf _floatdisf _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi _fixtfdi _fixunstfdi _floatditf __gcc_bcmp _varargs __dummy _eprintf _bb _shtab _clear_cache _trampoline __main _exit _ctors _pure; \
do \
  echo ${name}; \
  /tmp/build/gcc/gcc/xgcc -B/tmp/build/gcc/gcc/ -B/tools/H-i686-pc-cygwin/i386-elf/bin/ -I/tools/H-i686-pc-cygwin/i386-elf/include -O2  -DCROSS_COMPILE -DIN_GCC     -g -O2 -I./include    -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc  -I. -I/src/gcc/gcc-2.95.2/gcc -I/src/gcc/gcc-2.95.2/gcc/config -I/src/gcc/gcc-2.95.2/gcc/../include -c -DL${name} \
       /src/gcc/gcc-2.95.2/gcc/libgcc2.c -o ${name}.o; \
  if [ $? -eq 0 ] ; then true; else exit 1; fi; \
  i386-elf-ar rc tmplibgcc2.a ${name}.o; \
  rm -f ${name}.o; \
done
_muldi3
In file included from tm.h:5,
                 from /src/gcc/gcc-2.95.2/gcc/config/i386/xm-i386.h:43,
                 from tconfig.h:5,
                 from /src/gcc/gcc-2.95.2/gcc/libgcc2.c:33:
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:36: warning: `TARGET_DEFAULT' redefined
/src/gcc/gcc-2.95.2/gcc/config/i386/unix.h:136: warning: this is the location of the previous definition
In file included from tm.h:5,
                 from /src/gcc/gcc-2.95.2/gcc/config/i386/xm-i386.h:43,
                 from tconfig.h:5,
                 from /src/gcc/gcc-2.95.2/gcc/libgcc2.c:33:
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:49: parse error before string constant
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:62: parse error before `('
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:62: parse error before `)'
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:77: parse error before `('
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:77: parse error before `)'
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:81: parse error before `('
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:86: parse error before `('
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:94: parse error before `('
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:94: parse error before `)'
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:98: parse error before `('
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:99: parse error before `('
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:104: parse error before `('
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:105: parse error before `('
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:116: parse error before string constant
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:116: warning: data definition has no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:208: `_ascii_bytes' undeclared here (not in a function)
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:208: `LENGTH' undeclared here (not in a function)
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:208: initializer element is not constant
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:208: register name not specified for `limit'
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:209: register name not specified for `bytes_in_chunk'
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:210: parse error before `for'
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:216: conflicting types for `bytes_in_chunk'
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:209: previous declaration of `bytes_in_chunk'
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:216: warning: data definition has no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:217: parse error before `}'
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:225: redefinition of `bytes_in_chunk'
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:216: `bytes_in_chunk' previously defined here
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:225: warning: data definition has no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:226: parse error before `}'
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:227: register name not specified for `ch'
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:227: parse error before `('
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:227: conflicting types for `ch'
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:227: previous declaration of `ch'
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:227: `_limited_str' undeclared here (not in a function)
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:227: warning: data definition has no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:227: parse error before `++'
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:227: parse error before `('
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:227: parse error before `('
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:228: `p' undeclared here (not in a function)
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:228: warning: data definition has no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:229: parse error before `}'
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:236: parse error before `('
In file included from /src/gcc/gcc-2.95.2/gcc/libgcc2.c:45:
/src/gcc/gcc-2.95.2/gcc/machmode.h:138: warning: parameter has incomplete type
/src/gcc/gcc-2.95.2/gcc/machmode.h:142: warning: parameter has incomplete type
make[1]: *** [libgcc2.a] Error 1
make[1]: Leaving directory `/tmp/build/gcc/gcc'
make: *** [all-gcc] Error 2
make: Leaving directory `/tmp/build/gcc'

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] eCos bad patch for i386 target gcc?
  2000-12-07 13:38 [ECOS] eCos bad patch for i386 target gcc? Pasko, Matt
@ 2000-12-07 13:50 ` Jonathan Larmour
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Larmour @ 2000-12-07 13:50 UTC (permalink / raw)
  To: Pasko, Matt; +Cc: 'ecos-discuss@sources.redhat.com'

"Pasko, Matt" wrote:
> 
> Help!
> 
> I'm setting up eCos. I've followed
> http://sources.redhat.com/ecos/tools/win-i386-elf.html
> < http://sources.redhat.com/ecos/tools/win-i386-elf.html >
> 
> directions a couple of times now and when I try to build gcc, the build dies
> and i386elf.h looks like it has parse errors.  The patch to gcc2.95.2
> appeared to work.
> What is wrong?

If this is on Windows please look at
http://sources.redhat.com/ecos/faq.html#problems_windows

Your problem is almost certainly due to CRLFs.

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-07 13:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-07 13:38 [ECOS] eCos bad patch for i386 target gcc? Pasko, Matt
2000-12-07 13:50 ` 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).