* Building Insight for an x86 target
@ 2001-10-21 2:43 Ramapriya Rangachar
2001-10-22 7:22 ` Keith Seitz
0 siblings, 1 reply; 6+ messages in thread
From: Ramapriya Rangachar @ 2001-10-21 2:43 UTC (permalink / raw)
To: insight
HI All
I'm having a problem building Insight for ECOS 1.3.1 under Cygwin+Win2k.
My Cygwin version is: 1.3.3(0.46/3/2)
This is the error I get when trying to build Insight for an x86-target.
______________________________________________________________________
/c/ECOS/src/gdb/insight-5.0/libiberty/pexecute.c: In function `pexecute':
/c/ECOS/src/gdb/insight-5.0/libiberty/pexecute.c:375: warning: implicit
declaration of function `_pipe'
/c/ECOS/src/gdb/insight-5.0/libiberty/pexecute.c:423: warning: assignment
discards qualifiers from pointer target type
/c/ECOS/src/gdb/insight-5.0/libiberty/pexecute.c:358: warning: unused
variable `sleep_interval'
/c/ECOS/src/gdb/insight-5.0/libiberty/pexecute.c:358: warning: unused
variable `retries'
/c/ECOS/src/gdb/insight-5.0/libiberty/pexecute.c:350: warning: unused
parameter `this_pname'
/c/ECOS/src/gdb/insight-5.0/libiberty/pexecute.c:351: warning: unused
parameter `temp_base'
/c/ECOS/src/gdb/insight-5.0/libiberty/pexecute.c:356: warning: `org_stdin'
might be used uninitialized in this function
/c/ECOS/src/gdb/insight-5.0/libiberty/pexecute.c:356: warning: `org_stdout'
might be used uninitialized in this function
/c/ECOS/src/gdb/insight-5.0/libiberty/pexecute.c: In function `pwait':
/c/ECOS/src/gdb/insight-5.0/libiberty/pexecute.c:439:
warning: unused parameter `pid'
/c/ECOS/src/gdb/insight-5.0/libiberty/pexecute.c:441: warning: unused
parameter `flags'
test
x"no" != xyes || \
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/spaces.c -o
pic/spaces.o
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/spaces.c
test x"no" != xyes || \
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/splay-tree.c -o
pic/splay-tree.o
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/splay-tree.c
test x"no" != xyes || \
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
-o pic/strerror.o
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
make: Leaving
directory `/tmp/build/gdb'
______________________________________________________________________
Can anyone help me fix this ?
Thanks
Ram
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Building Insight for an x86 target
2001-10-21 2:43 Building Insight for an x86 target Ramapriya Rangachar
@ 2001-10-22 7:22 ` Keith Seitz
2001-10-22 10:43 ` Christopher Faylor
0 siblings, 1 reply; 6+ messages in thread
From: Keith Seitz @ 2001-10-22 7:22 UTC (permalink / raw)
To: Ramapriya Rangachar; +Cc: insight
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Building Insight for an x86 target
2001-10-22 7:22 ` Keith Seitz
@ 2001-10-22 10:43 ` Christopher Faylor
2001-10-22 10:47 ` Keith Seitz
0 siblings, 1 reply; 6+ messages in thread
From: Christopher Faylor @ 2001-10-22 10:43 UTC (permalink / raw)
To: Keith Seitz; +Cc: Ramapriya Rangachar, insight
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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Building Insight for an x86 target
2001-10-22 10:43 ` Christopher Faylor
@ 2001-10-22 10:47 ` Keith Seitz
0 siblings, 0 replies; 6+ messages in thread
From: Keith Seitz @ 2001-10-22 10:47 UTC (permalink / raw)
To: ramapriya1; +Cc: cgfInsight Maling List
On Mon, 22 Oct 2001, Christopher Faylor wrote:
> The simplest solution is to remove all occurrences of strerror.? from the
> libiberty Makefile.in.
>
> Or, use the latest libiberty from CVS.
Even better: download the 5.1 snapshot/branch. Insight on 5.0 is, um,
underwhelming.
Keith
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Building Insight for an x86 target
@ 2001-10-23 10:51 Ramapriya Rangachar
0 siblings, 0 replies; 6+ messages in thread
From: Ramapriya Rangachar @ 2001-10-23 10:51 UTC (permalink / raw)
To: insight
HI
Editing the makefile did solve my problem - thanks.
Ram
>From: Christopher Faylor <cgf@redhat.com>
>To: Keith Seitz <keiths@cygnus.com>
>CC: Ramapriya Rangachar <ramapriya1@hotmail.com>,
>insight@sources.redhat.com
>Subject: Re: Building Insight for an x86 target
>Date: Mon, 22 Oct 2001 13:44:38 -0400
>
>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/
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Building Insight for an x86 target
@ 2001-10-22 10:41 Ramapriya Rangachar
0 siblings, 0 replies; 6+ messages in thread
From: Ramapriya Rangachar @ 2001-10-22 10:41 UTC (permalink / raw)
To: insight
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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2001-10-23 10:51 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-21 2:43 Building Insight for an x86 target Ramapriya Rangachar
2001-10-22 7:22 ` Keith Seitz
2001-10-22 10:43 ` Christopher Faylor
2001-10-22 10:47 ` Keith Seitz
2001-10-22 10:41 Ramapriya Rangachar
2001-10-23 10:51 Ramapriya Rangachar
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).