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


On Mon, Oct 22, 2001 at 07:22:37AM -0700, Keith Seitz wrote:
>On Sun, 21 Oct 2001, Ramapriya Rangachar wrote:
>>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?

This is a symptom of building an older version of libiberty with a newer
version of cygwin.  By semi-popular demand, we started exporting
sys_errlist in Cygwin 1.3.3.  This simple act confused libiberty and,
apparently, scores of people building libiberty.

So, the addition of sys_errlist, to satisfy four or five people who
complained about it, ended up causing much more mailing list traffic
than its absence ever did.

Welcome to the world of Cygwin.

The simplest solution is to remove all occurrences of strerror.? from the
libiberty Makefile.in.

Or, use the latest libiberty from CVS.

cgf

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

-- 
cgf@cygnus.com                        Red Hat, Inc.
http://sources.redhat.com/            http://www.redhat.com/


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