This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


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

Re: Building Insight for an x86 target


HI

Firstly, I reinstalled Cygwin only last week .... so, i guess the stuff in 
there is current.

As for the error, I traced it back to binutils ... - a similar error occured 
when I tried building it.Since I had the sources for binutils-20011002-1, I 
used it and the problem went away.

But now, gcc fails to build ...
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'
________________________________________________________________________

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)

Mathieu Routhier on the list suggests -
" 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 :)"

I havent tried this at the moment ...

Looks to me like Insight complains about the same error, .... if I go on to 
build it.

I ftp'ed the Insight-5.0 sources off RedHat ...

Here is config.status for insight
----------------------------------------------------------------------
#!/bin/sh
# This file was generated automatically by configure.  Do not edit.
# This directory was configured as follows:
/c/ECOS/src/gdb/insight-5.0/configure --host=i686-pc-cygwin 
--target=i386-elf --prefix=/c/ECOS/tools 
--exec-prefix=/c/ECOS/tools/H-i686-pc-cygwin -v --norecursion
# using "mh-frag"
----------------------------------------------------------------------
and mh-frag
----------------------------------------------------------------------
EXTRA_TARGET_HOST_ALL_MODULES=all-libtermcap
EXTRA_TARGET_HOST_INSTALL_MODULES=install-libtermcap
all-gdb: all-libtermcap
install-gdb: all-libtermcap
----------------------------------------------------------------------

Any ideas ???

Ram

>From: Keith Seitz <keiths@cygnus.com>
>To: Ramapriya Rangachar <ramapriya1@hotmail.com>
>CC: <insight@sourceware.cygnus.com>
>Subject: Re: Building Insight for an x86 target
>Date: Mon, 22 Oct 2001 07:22:37 -0700 (PDT)
>
>On Sun, 21 Oct 2001, Ramapriya Rangachar wrote:
>
> > HI All
> >
> > I'm having a problem building Insight for ECOS 1.3.1 under Cygwin+Win2k.
>
>Where did you obtain the sources for Insight? What file did you download?
>
> > My Cygwin version is: 1.3.3(0.46/3/2)
>
>I've never seen this error before, and I build Insight almost daily on
>cygwin and linux. What does "head config.status" say in the top of your
>build directory?
>
>Keith
>
>
> > This is the error I get when trying to build Insight for an x86-target.
> > gcc -mwin32 -c -DHAVE_CONFIG_H -g -O2 -I.
> > -I/c/ECOS/src/gdb/insight-5.0/libiberty/../include  -W -Wall
> > -Wtraditional /c/ECOS/src/gdb/insight-5.0/libiberty/strerror.c
> > /c/ECOS/src/gdb/insight-5.0/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/gdb/libiberty'
> > make: *** [all-libiberty] Error 2
>
>


_________________________________________________________________
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]