public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* GDB build cannot find tkWinInt.h
@ 2008-07-16 15:02 Samuel Sparks
  2008-07-17  0:00 ` Brian Dessent
       [not found] ` <487E8B81.640DAE03@dessent.net>
  0 siblings, 2 replies; 5+ messages in thread
From: Samuel Sparks @ 2008-07-16 15:02 UTC (permalink / raw)
  To: cygwin

Hello All,

I am trying to build a Cygwin hosted gdb executable to remotely debug
Linux applications on a powerpc target, but the build breaks in the
libgui directory. Does anyone have any _insight_ into the issue?

I've started with a clean Cygwin download, and added the following
packages to the defaults.
- ddd v3.3.9-1 binary
- gcc v3.4.4-3 binary
- gdb v6.8-2 binary and source
- make v3.81-2 binary
- Xorg-x11-devel v6.8.99.901-1 binary
- Tcltk v 20080420-1 binary and source

After creating a clean directory for the build, I configure with the
following command (note that I tried the --disable-gdbtk option per a
suggestion I found on the mailing list, but got the same error):
/usr/src/gdb-6.8-2/configure --target=powerpc-603-linux-gnu
--program-prefix=ppc-

And I am seeing the following error when I make:
make[4]: Entering directory `/usr/src/ppc-gdb/libgui/src'
gcc -DHAVE_CONFIG_H -I. -I/usr/src/gdb-6.8-2/libgui/src -I.. -DWIN32
-mwin32  -I/usr/include -I/usr/include  -DPACKAGE_NAME=\"\"
-DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DP
ACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_NO_SEH=1
-DEXCEPTION_DISPOSITION=int -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_
H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DPACKAGE_NAME=\"\"
-DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRIN
G=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES
_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -I/usr/include/../unix
-I/usr/include/../win -DTBL_VERSION=\"2.7\" -DTBL_COMMAND=\"table\"
-DTBL_RUNTIME=\"tkTable.tcl\" -DTBL_RUNTIME_DI
R=\"/usr/local/share/redhat/gui\" -DSTATIC_BUILD    -g -O2 -c
/usr/src/gdb-6.8-2/libgui/src/subcommand.c
/usr/src/gdb-6.8-2/libgui/src/subcommand.c: In function
`subcommand_implementation':
/usr/src/gdb-6.8-2/libgui/src/subcommand.c:78: warning: passing arg 4
of pointer to function from incompatible pointer type
/usr/src/gdb-6.8-2/libgui/src/subcommand.c: In function
`ide_create_command_with_subcommands':
/usr/src/gdb-6.8-2/libgui/src/subcommand.c:122: warning: passing arg 3
of `Tcl_CreateCommand' from incompatible pointer type
gcc -DHAVE_CONFIG_H -I. -I/usr/src/gdb-6.8-2/libgui/src -I.. -DWIN32
-mwin32  -I/usr/include -I/usr/include  -DPACKAGE_NAME=\"\"
-DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DP
ACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_NO_SEH=1
-DEXCEPTION_DISPOSITION=int -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_
H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DPACKAGE_NAME=\"\"
-DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRIN
G=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES
_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -I/usr/include/../unix
-I/usr/include/../win -DTBL_VERSION=\"2.7\" -DTBL_COMMAND=\"table\"
-DTBL_RUNTIME=\"tkTable.tcl\" -DTBL_RUNTIME_DI
R=\"/usr/local/share/redhat/gui\" -DSTATIC_BUILD    -g -O2 -c
/usr/src/gdb-6.8-2/libgui/src/tclwinprint.c
/usr/src/gdb-6.8-2/libgui/src/tclwinprint.c:26:22: tkWinInt.h: No such
file or directory
/usr/src/gdb-6.8-2/libgui/src/tclwinprint.c: In function
`winprint_page_setup_command':
/usr/src/gdb-6.8-2/libgui/src/tclwinprint.c:187: warning: assignment
makes pointer from integer without a cast
/usr/src/gdb-6.8-2/libgui/src/tclwinprint.c: In function
`winprint_print_text_dialog':
/usr/src/gdb-6.8-2/libgui/src/tclwinprint.c:360: warning: assignment
makes pointer from integer without a cast
/usr/src/gdb-6.8-2/libgui/src/tclwinprint.c: At top level:
/usr/src/gdb-6.8-2/libgui/src/tclwinprint.c:905: warning:
initialization from incompatible pointer type
/usr/src/gdb-6.8-2/libgui/src/tclwinprint.c:906: warning:
initialization from incompatible pointer type
/usr/src/gdb-6.8-2/libgui/src/tclwinprint.c:907: warning:
initialization from incompatible pointer type
/usr/src/gdb-6.8-2/libgui/src/tclwinprint.c:908: warning:
initialization from incompatible pointer type
make[4]: *** [tclwinprint.o] Error 1
make[4]: Leaving directory `/usr/src/ppc-gdb/libgui/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/src/ppc-gdb/libgui'
make[2]: *** [all-recursive-am] Error 2
make[2]: Leaving directory `/usr/src/ppc-gdb/libgui'
make[1]: *** [all-libgui] Error 2
make[1]: Leaving directory `/usr/src/ppc-gdb'
make: *** [all] Error

Thanks for the  help,
Sam

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* Re: GDB build cannot find tkWinInt.h
  2008-07-16 15:02 GDB build cannot find tkWinInt.h Samuel Sparks
@ 2008-07-17  0:00 ` Brian Dessent
       [not found] ` <487E8B81.640DAE03@dessent.net>
  1 sibling, 0 replies; 5+ messages in thread
From: Brian Dessent @ 2008-07-17  0:00 UTC (permalink / raw)
  To: cygwin

Samuel Sparks wrote:

> /usr/src/gdb-6.8-2/libgui/src/tclwinprint.c:26:22: tkWinInt.h: No such
> file or directory

AFAIK libgui is a component of insight.  So it looks like you've got a
full copy of the gdb+insight tree, as opposed to a plain gdb tree. 
(Insight is an overlay on top of the gdb tree.)  If you don't want to
build insight (which is what --disable-gdbtk means) then you shouldn't
have those directories in your source tree.  You didn't state what
method you used to get the source, but I suggest using a gdb release
tarball downloaded from the gdb site, as it will not contain any of the
insight components.  If you are using the gdb source package from Cygwin
then it's going to have all the insight components as Cygwin's gdb
includes insight.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* Re: GDB build cannot find tkWinInt.h
       [not found] ` <487E8B81.640DAE03@dessent.net>
@ 2008-07-17 13:18   ` Samuel Sparks
  2008-07-17 13:43     ` Brian Dessent
  0 siblings, 1 reply; 5+ messages in thread
From: Samuel Sparks @ 2008-07-17 13:18 UTC (permalink / raw)
  To: Brian Dessent, cygwin

Brian Dessent wrote:

> (Insight is an overlay on top of the gdb tree.)  If you don't want to
> build insight (which is what --disable-gdbtk means) then you shouldn't

I'm not currently planning on using insight, but it would be nice to
have it available.

> have those directories in your source tree.  You didn't state what
> method you used to get the source, but I suggest using a gdb release

I downloaded the latest version of gdb provided through cygwin's setup
executable. I can download the source tarball from gdb's website, but
I'm confused as to why this didn't build. Obviously, someone was able
to build these sources, as the binary can be downloaded for the cygwin
target and host.

Anyway, thanks for the suggestion. I'll try downloading the gdb
tarball, but I'd really like to understand what I am doing wrong here
- this seems like it should be simple enough (just need to have the
proper include path or header files).

--Sam

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* Re: GDB build cannot find tkWinInt.h
  2008-07-17 13:18   ` Samuel Sparks
@ 2008-07-17 13:43     ` Brian Dessent
  2008-07-17 15:32       ` Samuel Sparks
  0 siblings, 1 reply; 5+ messages in thread
From: Brian Dessent @ 2008-07-17 13:43 UTC (permalink / raw)
  To: Samuel Sparks; +Cc: cygwin

Samuel Sparks wrote:

> Anyway, thanks for the suggestion. I'll try downloading the gdb
> tarball, but I'd really like to understand what I am doing wrong here
> - this seems like it should be simple enough (just need to have the
> proper include path or header files).

Probably because you have a mutant configuration: a source tree with the
insight dirs present, but insight disabled.  That or you are also
missing the in-tree tcltk.  I think using the source package from setup
is what's confusing you, because the source packages mirror the layout
of the binary packages which are split into "gdb+insight" and "tcltk",
however the source tree is actually represented by (and must be built
as) "gdb" and "insight+tcltk".  If you want to build insight then you
must have everything combined into the same tree, and that is what you
will get if you check out the "insight" cvs module, or grab an insight
source tarball, but apparently not what you get if you use the source
packages.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* Re: GDB build cannot find tkWinInt.h
  2008-07-17 13:43     ` Brian Dessent
@ 2008-07-17 15:32       ` Samuel Sparks
  0 siblings, 0 replies; 5+ messages in thread
From: Samuel Sparks @ 2008-07-17 15:32 UTC (permalink / raw)
  To: cygwin, Brian Dessent

Brian Dessent wrote:
> Probably because you have a mutant configuration: a source tree with the
> insight dirs present, but insight disabled.  That or you are also
> missing the in-tree tcltk.  I think using the source package from setup

I'm certainly missing the in-tree tcltk, so that could be the problem,
but I haven't been able to build with or without insight disabled.  Is
this a Cygwin bug?  Should the source provided by the setup executable
be buildable, or are they just for reference?  Obviously, the cvs
source is necessary for development and source control, but
downloadable snapshots should build as well, right?

Sam

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

end of thread, other threads:[~2008-07-17 15:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-16 15:02 GDB build cannot find tkWinInt.h Samuel Sparks
2008-07-17  0:00 ` Brian Dessent
     [not found] ` <487E8B81.640DAE03@dessent.net>
2008-07-17 13:18   ` Samuel Sparks
2008-07-17 13:43     ` Brian Dessent
2008-07-17 15:32       ` Samuel Sparks

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