public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* problem building 6.1 for powerpc on cygwin
@ 2004-06-02 15:31 Marc Schafer
  2004-06-02 16:30 ` Keith Seitz
  0 siblings, 1 reply; 6+ messages in thread
From: Marc Schafer @ 2004-06-02 15:31 UTC (permalink / raw)
  To: insight

I am trying to build insight 6.1 for powerpc-eabi but it is failing in
the tk build.  It appears that it is looking for X.  I have built
older versions under cygwin and I thought X was not required.  It
generates hundreds of errors, but here is a snippet.

thanks,
marc


make[1]: Entering directory `/tmp/build/buildinsight/gdb'
gcc -c -g -O2    -I. -I../../insight-6.1/gdb -I../../insight-6.1/gdb/c
onfig -DLOCALEDIR="\"/usr/local/ppctools/share/locale\"" -DHAVE_CONFIG
_H -I../../insight-6.1/gdb/../include/opcode -I../../insight-6.1/gdb/.
./readline/.. -I../bfd -I../../insight-6.1/gdb/../bfd -I../../insight-
6.1/gdb/../include -I../intl -I../../insight-6.1/gdb/../intl  -DMI_OUT
=1 -DGDBTK -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wp
arentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral -Wunuse
d-label -Wunused-function  -I../../insight-6.1/gdb/../libgui/src  -I/t
mp/build/insight-6.1/itcl/itcl/generic \
        -I/tmp/build/insight-6.1/itcl/itk/generic  \
-I/tmp/build/insight-6.1/tcl/generic -I/tmp/build/insight-6.1/tk/gener
ic  -I"/tmp/build/insight-6.0.90/tk/xlib" -fwritable-strings\
 ../../insight-6.1/gdb/gdbtk/generic/gdbtk.c \
 -DGDBTK_LIBRARY=\"/usr/local/ppctools/share/insight1.0\" -DSRC_DIR=\"
/tmp/build/insight-6.1/gdb\"
In file included from /tmp/build/insight-6.1/tcl/generic/tcl.h:2269,
                 from
/tmp/build/insight-6.1/itcl/itcl/generic/itcl.h:55,
                 from ../../insight-6.1/gdb/gdbtk/generic/gdbtk.c:44:
/tmp/build/insight-6.1/tcl/generic/tclPlatDecls.h:19: warning:
redefinition of `TCHAR'
/usr/include/w32api/winnt.h:92: warning: `TCHAR' previously declared
here
In file included from
/tmp/build/insight-6.1/itcl/itk/generic/itk.h:61,
                 from ../../insight-6.1/gdb/gdbtk/generic/gdbtk.c:45:
/tmp/build/insight-6.1/tk/generic/tk.h:96:29: X11/Xlib.h: No such file
or directory
In file included from
/tmp/build/insight-6.1/itcl/itk/generic/itk.h:61,
                 from ../../insight-6.1/gdb/gdbtk/generic/gdbtk.c:45:
/tmp/build/insight-6.1/tk/generic/tk.h:573: error: syntax error before
"Window"
/tmp/build/insight-6.1/tk/generic/tk.h:573: warning: type defaults to
`int' in declaration of `Window'
/tmp/build/insight-6.1/tk/generic/tk.h:573: error: `Window' declared
as function returning a function
/tmp/build/insight-6.1/tk/generic/tk.h:573: warning: parameter names
(without types) in function declaration
/tmp/build/insight-6.1/tk/generic/tk.h:576: error: syntax error before
"XEvent"
/tmp/build/insight-6.1/tk/generic/tk.h:584: error: syntax error before
"Tk_ClassCreateProc"
/tmp/build/insight-6.1/tk/generic/tk.h:584: warning: no semicolon at
end of struct or union
/tmp/build/insight-6.1/tk/generic/tk.h:592: error: syntax error before
'}' token
/tmp/build/insight-6.1/tk/generic/tk.h:592: warning: type defaults to
`int' in declaration of `Tk_ClassProcs'
/tmp/build/insight-6.1/tk/generic/tk.h:592: warning: data definition
has no type or storage class
/tmp/build/insight-6.1/tk/generic/tk.h:678: error: syntax error before
"Bool"
/tmp/build/insight-6.1/tk/generic/tk.h:678: warning: no semicolon at
end of struct or union
/tmp/build/insight-6.1/tk/generic/tk.h:679: warning: type defaults to
`int' in declaration of `display'
/tmp/build/insight-6.1/tk/generic/tk.h:679: warning: data definition
has no type or storage class
/tmp/build/insight-6.1/tk/generic/tk.h:683: error: syntax error before
"time"
/tmp/build/insight-6.1/tk/generic/tk.h:683: warning: type defaults to
`int' in declaration of `time'
/tmp/build/insight-6.1/tk/generic/tk.h:683: warning: data definition
has no type or storage class
/tmp/build/insight-6.1/tk/generic/tk.h:688: error: syntax error before
"same_screen"
/tmp/build/insight-6.1/tk/generic/tk.h:688: warning: type defaults to
`int' in declaration of `same_screen'
/tmp/build/insight-6.1/tk/generic/tk.h:688: warning: data definition
has no type or storage class
/tmp/build/insight-6.1/tk/generic/tk.h:689: warning: type defaults to
`int' in declaration of `XVirtualEvent'
/tmp/build/insight-6.1/tk/generic/tk.h:689: warning: data definition
has no type or storage class
/tmp/build/insight-6.1/tk/generic/tk.h:694: error: syntax error before
"Bool"
/tmp/build/insight-6.1/tk/generic/tk.h:694: warning: no semicolon at
end of struct or union
/tmp/build/insight-6.1/tk/generic/tk.h:695: warning: type defaults to
`int' in declaration of `display'
/tmp/build/insight-6.1/tk/generic/tk.h:695: warning: data definition
has no type or storage class
/tmp/build/insight-6.1/tk/generic/tk.h:697: error: syntax error before
'}' token
/tmp/build/insight-6.1/tk/generic/tk.h:697: warning: type defaults to
`int' in declaration of `XActivateDeactivateEvent'
/tmp/build/insight-6.1/tk/generic/tk.h:697: warning: data definition
has no type or storage class
/tmp/build/insight-6.1/tk/generic/tk.h:698: error: syntax error before
"XActivateEvent"
/tmp/build/insight-6.1/tk/generic/tk.h:698: warning: type defaults to
`int' in declaration of `XActivateEvent'
/tmp/build/insight-6.1/tk/generic/tk.h:698: warning: data definition
has no type or storage class

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

* Re: problem building 6.1 for powerpc on cygwin
  2004-06-02 15:31 problem building 6.1 for powerpc on cygwin Marc Schafer
@ 2004-06-02 16:30 ` Keith Seitz
       [not found]   ` <04a101c448c4$bd2c6650$0b01a8c0@maestrale>
  0 siblings, 1 reply; 6+ messages in thread
From: Keith Seitz @ 2004-06-02 16:30 UTC (permalink / raw)
  To: Marc Schafer; +Cc: insight

On Wed, 2004-06-02 at 08:31, Marc Schafer wrote:
> I am trying to build insight 6.1 for powerpc-eabi but it is failing in
> the tk build.  It appears that it is looking for X.  I have built
> older versions under cygwin and I thought X was not required.  It
> generates hundreds of errors, but here is a snippet.

You are correct: X is not required for cygwin, and it does look like it
is looking for X stuff.

Do you have the output of your run of configure?

I'm pretty sure that I've built this within the last few weeks... Maybe
a snapshot would be worth investigating?

Keith

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

* Re: problem building 6.1 for powerpc on cygwin
       [not found]   ` <04a101c448c4$bd2c6650$0b01a8c0@maestrale>
@ 2004-06-02 17:21     ` Keith Seitz
  2004-06-03  2:00       ` Stephen & Linda Smith
  0 siblings, 1 reply; 6+ messages in thread
From: Keith Seitz @ 2004-06-02 17:21 UTC (permalink / raw)
  To: Marc Schafer; +Cc: insight

On Wed, 2004-06-02 at 10:12, Marc Schafer wrote:
> configure doesn't seem to do much.  i guess most of it happens when
> you do a make?

Grr.. That's right. Can you send me the output of "make all-tk"?

> I looked here for a snapshot to try:
> ftp://sources.redhat.com/pub/gdb/snapshots/current/
> 
> The newest insight snapshot seems to be from April.  Am I looking the
> wrong place?

Hmm. That's the right place. I guess the gdb folk have decided to drop
all "support" for insight until the official FSF donation is complete.
[Of course, that would make two of us!] Or it could just be that the
snapshot process got broken.

Anyway, if worse comes to worse and you can't or don't want to check out
HEAD, I can get you a tarball.

Keith


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

* Re: problem building 6.1 for powerpc on cygwin
  2004-06-02 17:21     ` Keith Seitz
@ 2004-06-03  2:00       ` Stephen & Linda Smith
       [not found]         ` <001a01c44916$481e7400$6501a8c0@canoli>
  0 siblings, 1 reply; 6+ messages in thread
From: Stephen & Linda Smith @ 2004-06-03  2:00 UTC (permalink / raw)
  To: Keith Seitz; +Cc: Marc Schafer, insight

I built insight successfully from CVS (mainline as opposed to the 
branch) targeting powerpc-motorola-elf about a week ago.  I was getting
the errors refered to earlier without Keith's patch 

http://sources.redhat.com/ml/insight/2004-q2/msg00032.html .When I applied patch that everything worked.

Be sure you have a reasonably up to date tcltk on your cygwin installation.


sps


Keith Seitz wrote:

>On Wed, 2004-06-02 at 10:12, Marc Schafer wrote:
>  
>
>>configure doesn't seem to do much.  i guess most of it happens when
>>you do a make?
>>    
>>
>
>Grr.. That's right. Can you send me the output of "make all-tk"?
>
>  
>
>>I looked here for a snapshot to try:
>>ftp://sources.redhat.com/pub/gdb/snapshots/current/
>>
>>The newest insight snapshot seems to be from April.  Am I looking the
>>wrong place?
>>    
>>
>
>Hmm. That's the right place. I guess the gdb folk have decided to drop
>all "support" for insight until the official FSF donation is complete.
>[Of course, that would make two of us!] Or it could just be that the
>snapshot process got broken.
>
>Anyway, if worse comes to worse and you can't or don't want to check out
>HEAD, I can get you a tarball.
>
>Keith
>
>
>
>
>  
>

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

* Re: problem building 6.1 for powerpc on cygwin
       [not found]         ` <001a01c44916$481e7400$6501a8c0@canoli>
@ 2004-06-03  3:23           ` Stephen & Linda Smith
  0 siblings, 0 replies; 6+ messages in thread
From: Stephen & Linda Smith @ 2004-06-03  3:23 UTC (permalink / raw)
  To: Marc Schafer; +Cc: insight, Keith Seitz

What you need to do is have the base cygwin install *plus* the 
development  packages  *including* tcl\tk (not the sources) from 
cygwin.  Then, I checked out from CVS the insight+dejagnu tree. 

export  host=`$curdir/*-${insight_version}/config.guess`
export  build=`$curdir/*-${insight_version}/config.guess`
export target=powerpc-motorola-elf  # yours will be something different.
${curdir}/insight-${insight_version}/configure --prefix=$prefix 
--target=$target --host=$host --build=$build
make CFLAGS:=-DUSE_SYS_TYPES_FD_SET $packaging_dir 2>&1 | tee make.log  
# I am using a very old cygwin with an up to date cygwin tcl/tk
make CFLAGS:=-DUSE_SYS_TYPES_FD_SET $packaging_dir install 2>&1 | tee 
install.log  # I am using a very old cygwin with an up to date cygwin tcl/tk

sps

Marc Schafer wrote:

>I applied the patch but still ended up with errors from the build of tcltk.  Can you use tcltk from cygwin
>instead of building the one inside the insight tree?
>
>thanks,
>marc
>
>----- Original Message ----- 
>From: "Stephen & Linda Smith" <ischis2@cox.net>
>To: "Keith Seitz" <keiths@redhat.com>
>Cc: "Marc Schafer" <mschafer@avidyne.com>; <insight@sources.redhat.com>
>Sent: Wednesday, June 02, 2004 7:00 PM
>Subject: Re: problem building 6.1 for powerpc on cygwin
>  
>
>>I built insight successfully from CVS (mainline as opposed to the
>>branch) targeting powerpc-motorola-elf about a week ago.  I was getting
>>the errors refered to earlier without Keith's patch
>>
>>http://sources.redhat.com/ml/insight/2004-q2/msg00032.html .When I applied patch that everything worked.
>>
>>Be sure you have a reasonably up to date tcltk on your cygwin installation.
>>
>>
>>sps
>>
>>    
>>
>  
>

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

* Re: problem building 6.1 for powerpc on cygwin
@ 2004-06-02 17:21 Keith Seitz
  0 siblings, 0 replies; 6+ messages in thread
From: Keith Seitz @ 2004-06-02 17:21 UTC (permalink / raw)
  To: insight

[-- Attachment #1: Type: text/plain, Size: 1549 bytes --]

[Copy for the list]

-----Forwarded Message-----
From: Marc Schafer <mschafer@avidyne.com>
To: Keith Seitz <keiths@redhat.com>
Subject: Re: problem building 6.1 for powerpc on cygwin
Date: Wed, 02 Jun 2004 10:12:09 -0700

configure doesn't seem to do much.  i guess most of it happens when
you do a make?

i did this:
../insight-6.1/configure --prefix=/usr/local/ppctools --target=powerpc
-eabi >& config.out

I am pretty sure that my cross compiler is working (powerpc-eabi-gcc
3.4.0).

I looked here for a snapshot to try:
ftp://sources.redhat.com/pub/gdb/snapshots/current/

The newest insight snapshot seems to be from April.  Am I looking the
wrong place?

thanks for all your help,
marc



----- Original Message ----- 
From: "Keith Seitz" <keiths@redhat.com>
To: "Marc Schafer" <mschafer@avidyne.com>
Cc: <insight@sources.redhat.com>
Sent: Wednesday, June 02, 2004 9:31 AM
Subject: Re: problem building 6.1 for powerpc on cygwin


> On Wed, 2004-06-02 at 08:31, Marc Schafer wrote:
> > I am trying to build insight 6.1 for powerpc-eabi but it is
failing in
> > the tk build.  It appears that it is looking for X.  I have built
> > older versions under cygwin and I thought X was not required.  It
> > generates hundreds of errors, but here is a snippet.
>
> You are correct: X is not required for cygwin, and it does look like
it
> is looking for X stuff.
>
> Do you have the output of your run of configure?
>
> I'm pretty sure that I've built this within the last few weeks...
Maybe
> a snapshot would be worth investigating?
>
> Keith
>
>

[-- Attachment #2: config.log --]
[-- Type: application/octet-stream, Size: 1447 bytes --]

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:583: checking host system type
configure:604: checking target system type
configure:622: checking build system type
configure:677: checking for a BSD compatible install
configure:2856: checking for i686-pc-cygwin-ar
configure:2889: checking for ar
configure:2928: checking for i686-pc-cygwin-as
configure:2961: checking for as
configure:3000: checking for i686-pc-cygwin-dlltool
configure:3033: checking for dlltool
configure:3072: checking for i686-pc-cygwin-ld
configure:3144: checking for i686-pc-cygwin-nm
configure:3177: checking for nm
configure:3216: checking for i686-pc-cygwin-ranlib
configure:3249: checking for ranlib
configure:3288: checking for i686-pc-cygwin-windres
configure:3321: checking for windres
configure:3360: checking for i686-pc-cygwin-objcopy
configure:3393: checking for objcopy
configure:3432: checking for i686-pc-cygwin-objdump
configure:3465: checking for objdump
configure:3514: checking for powerpc-eabi-ar
configure:3586: checking for powerpc-eabi-as
configure:3658: checking for powerpc-eabi-dlltool
configure:3730: checking for powerpc-eabi-ld
configure:3802: checking for powerpc-eabi-nm
configure:3874: checking for powerpc-eabi-ranlib
configure:3946: checking for powerpc-eabi-windres
configure:4046: checking whether to enable maintainer-specific portions of Makefiles

[-- Attachment #3: config.out --]
[-- Type: application/octet-stream, Size: 1358 bytes --]

creating cache ./config.cache
checking host system type... i686-pc-cygwin
checking target system type... powerpc-unknown-eabi
checking build system type... i686-pc-cygwin
checking for a BSD compatible install... /bin/install -c
checking for i686-pc-cygwin-ar... no
checking for ar... ar
checking for i686-pc-cygwin-as... no
checking for as... as
checking for i686-pc-cygwin-dlltool... no
checking for dlltool... dlltool
checking for i686-pc-cygwin-ld... /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/ld.exe
checking for i686-pc-cygwin-nm... no
checking for nm... nm
checking for i686-pc-cygwin-ranlib... no
checking for ranlib... ranlib
checking for i686-pc-cygwin-windres... no
checking for windres... windres
checking for i686-pc-cygwin-objcopy... no
checking for objcopy... objcopy
checking for i686-pc-cygwin-objdump... no
checking for objdump... objdump
checking for powerpc-eabi-ar... powerpc-eabi-ar
checking for powerpc-eabi-as... powerpc-eabi-as
checking for powerpc-eabi-dlltool... no
checking for powerpc-eabi-ld... powerpc-eabi-ld
checking for powerpc-eabi-nm... powerpc-eabi-nm
checking for powerpc-eabi-ranlib... powerpc-eabi-ranlib
checking for powerpc-eabi-windres... no
checking whether to enable maintainer-specific portions of Makefiles... no
updating cache ./config.cache
creating ./config.status
creating Makefile

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

end of thread, other threads:[~2004-06-03  3:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-02 15:31 problem building 6.1 for powerpc on cygwin Marc Schafer
2004-06-02 16:30 ` Keith Seitz
     [not found]   ` <04a101c448c4$bd2c6650$0b01a8c0@maestrale>
2004-06-02 17:21     ` Keith Seitz
2004-06-03  2:00       ` Stephen & Linda Smith
     [not found]         ` <001a01c44916$481e7400$6501a8c0@canoli>
2004-06-03  3:23           ` Stephen & Linda Smith
2004-06-02 17:21 Keith Seitz

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