public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Error about build and install GCC under i386
@ 2001-07-24 19:46 cguwinds
  2001-07-25 11:16 ` Jonathan Larmour
  0 siblings, 1 reply; 3+ messages in thread
From: cguwinds @ 2001-07-24 19:46 UTC (permalink / raw)
  To: ecos-discuss

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 5168 bytes --]

Thank's  Jifl  to reply the "Warning about Building the tools".
But when I redirect the output to the file,I find that there are still
some errors that made the GCC unsuccessful.
How to solve it?

==================================================================
 /* http://sources.redhat.com/ecos/tools/win-i386-elf.html */

 4.Build and install GCC:
     make -w all-gcc install-gcc \
       LANGUAGES="c c++" 2>&1 | tee make.out
==================================================================

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' rede
fined
/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:43: 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: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 con
stant
/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 her
e (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 co
nstant
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:208: register name not specified f
or `limit'
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:209: register name not specified f
or `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 `byte
s_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:217: parse error before `}'
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:225: redefinition of `bytes_in_chu
nk'
/src/gcc/gcc-2.95.2/gcc/config/i386/i386elf.h:216: `bytes_in_chunk' previously d
efined 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 f
or `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 her
e (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'

----== Mailed via Openfind ==-----
http://mail2000.com.tw/ ´£¨Ñ§K¶O¹q¤l¶l¥ó«H½c

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

* Re: [ECOS] Error about build and install GCC under i386
  2001-07-24 19:46 [ECOS] Error about build and install GCC under i386 cguwinds
@ 2001-07-25 11:16 ` Jonathan Larmour
  0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Larmour @ 2001-07-25 11:16 UTC (permalink / raw)
  To: cguwinds; +Cc: ecos-discuss

cguwinds wrote:
> 
> Thank's  Jifl  to reply the "Warning about Building the tools".
> But when I redirect the output to the file,I find that there are still
> some errors that made the GCC unsuccessful.
> How to solve it?

Probably a line ending problem. Run this from a cygwin prompt:

cd /src/gcc/gcc-2.95.2
for i in `find . -type f` ; do
  tr -d '\r' < $i > $i.new
  mv $i.new $i
done

Note the use of backquotes on the second line, and apostrophes on the third
line.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
Come to the Red Hat TechWorld open source conference in Brussels!
Keynotes, techie talks and exhibitions    http://www.redhat-techworld.com/

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

* Re: [ECOS] Error about build and install GCC under i386
@ 2001-07-26 20:49 cguwinds
  0 siblings, 0 replies; 3+ messages in thread
From: cguwinds @ 2001-07-26 20:49 UTC (permalink / raw)
  To: ecos-discuss; +Cc: jlarmour

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 432 bytes --]

Thank's Jifl.
It really work.
> 
> Probably a line ending problem. Run this from a cygwin prompt:
> 
> cd /src/gcc/gcc-2.95.2
> for i in `find . -type f` ; do
>   tr -d '\r' < $i > $i.new
>   mv $i.new $i
> done
> 
> Note the use of backquotes on the second line, and apostrophes on the third
> line.
> 
> Jifl


----== Mailed via Openfind ==-----
http://mail2000.com.tw/ ´£¨Ñ§K¶O¹q¤l¶l¥ó«H½c

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

end of thread, other threads:[~2001-07-26 20:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-24 19:46 [ECOS] Error about build and install GCC under i386 cguwinds
2001-07-25 11:16 ` Jonathan Larmour
2001-07-26 20:49 cguwinds

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).