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]

RE: Building Insight-5.0 for an x86 target under Cygwin


Look at the code where the error occurs and you should be able to fix it
easily.  Delete the two #ifdef and matching #endif.  It was a quick fix
for me :)

Mathieu Routhier



-----Original Message-----
From: ecos-discuss-owner@sources.redhat.com
[mailto:ecos-discuss-owner@sources.redhat.com] On Behalf Of Ramapriya
Rangachar
Sent: Sunday, October 21, 2001 6:58 PM
To: ecos-discuss@sourceware.cygnus.com
Subject: Re: [ECOS] Building Insight-5.0 for an x86 target under Cygwin

HI

Ok, a couple of changes since the error last night ....

I get this error when I try to build gcc for ECOS on Cygwin ...
________________________________________________________________________
gcc -c -DHAVE_CONFIG_H -g -O2 -I. 
-I/c/ECOS/src/gcc/gcc-2.95.2/libiberty/../include  
/c/ECOS/src/gcc/gcc-2.95.2/libiberty/strerror.c
/c/ECOS/src/gcc/gcc-2.95.2/libiberty/strerror.c:461: conflicting types
for 
`sys_errlist'
/usr/include/sys/errno.h:23: previous declaration of `sys_errlist'
make[1]: *** [strerror.o] Error 1
make[1]: Leaving directory `/tmp/build/gcc/libiberty'
make: *** [all-libiberty] Error 2
make: Leaving directory `/tmp/build/gcc'
________________________________________________________________________

Initially, I had a similar problem building binutils-2.10.1. I noticed
that 
there were sources for binutils-20011002-1 in my cygwin download ...so I

used it and the problem went away.

I have

$ uname -r
1.3.3(0.46/3/2)

$ gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/specs
gcc version 2.95.3-5 (cygwin special)

I also have gcc-2.95.3-5 sources ... I'd expect that
/usr/include/sys/errno.h would not conflict when building gcc 2.95.3-5 ,

right ?

Since the RedHat website suggests application of an ECOS specific patch
for 
gcc-2.95.2, I'm not sure how to so something similar for the above error
and 
compile gcc ....

Any suggestions ?

Ram


>From: Jonathan Larmour <jlarmour@redhat.com>
>To: Ramapriya Rangachar <ramapriya1@hotmail.com>
>CC: ecos-discuss@sourceware.cygnus.com
>Subject: Re: [ECOS] Building Insight-5.0 for an x86 target under Cygwin
>Date: Sun, 21 Oct 2001 14:17:35 +0100
>
>Ramapriya Rangachar wrote:
> >
> > HI All
> >
> > I'm having a problem building Insight for ECOS 1.3.1 under
Cygwin+Win2k.
>[snip]
>
>Try a snapshot from ftp://sources.redhat.com/pub/gdb/snapshots/
>
>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


_________________________________________________________________
Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp


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