This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Rebuilding GDB

> -----Original Message-----
> From: cygwin-owner On Behalf Of Adrian Cox
> Sent: 20 September 2004 14:44

> I'm trying to build a Cygwin hosted GDB for debugging ARM and PowerPC
> boards.  After running into a lot of problems, I tried to rebuild the
> native GDB that Cygwin installed for me, and that didn't work either.
> I'm up to date with Cygwin setup, and running on Win2k SP4. 
> Below is the
> end of the build where everything goes wrong:

  BTW, when discussing compile problems with gnu packages, you should always
quote the options you gave to configure (if any).

> make[3]: Entering directory `/tmp/inbuild/libgui/src'
> gcc -DHAVE_CONFIG_H -I. -I/usr/src/gdb-20030919-1/libgui/src 
> -I.. -DWIN32 -mwin3
> 2 -fwritable-strings -I/usr/include -I/usr/include 
> -I"/netrel/src/libtcltk/tk/xl
> -I/usr/include/../unix -I/usr/
> include/../win -DTBL_VERSION=\"2.7\" -DTBL_COMMAND=\"table\" 
> able.tcl\" > -DTBL_RUNTIME_DIR=\"/usr/local/insight/share/redhat/gui\"
> ILD    -g -O2 -c /usr/src/gdb-20030919-1/libgui/src/tclwinprint.c
> /usr/src/gdb-20030919-1/libgui/src/tclwinprint.c:26:22: 
> tkWinInt.h: No such file
>  or directory

  Hmm.  It should be in the source distribution itself, at

  Let me see compare with the command line I got when I built insight from
source last time....  I didn't use the cygwin sources, but they're currently
in fairly close sync with the repository.... I get the same warnings from
the compile as you did, but didn't get the fatal error from the missing
header.  So it should be instructive to compare the "-I" options in our
respective versions:

gcc -DHAVE_CONFIG_H -I. -I../../../../tools/gdb-6.1.1/libgui/src -I..
-DWIN32 -mwin32 -fwritable-strings -I/repository/tools/gdb-6.1.1/tcl/generic
-I"/repository/tools/gdb-6.1.1/tk/xlib" -DHAVE_NO_SEH=1
-I/repository/tools/gdb-6.1.1/tk/generic/../win -DTBL_VERSION=\"2.7\"
-DTBL_COMMAND=\"table\" -DTBL_RUNTIME=\"tkTable.tcl\"
-DTBL_RUNTIME_DIR=\"/usr/local/share/redhat/gui\" -DSTATIC_BUILD    -g -O2
-c ../../../../tools/gdb-6.1.1/libgui/src/tclwinprint.c

  Ok, so your one has this strange include path to
/netrel/src/libtcltk/tk/xlib which my one doesn't.  Looks like maybe you
have an older version of the tcl/tk headers in your installation and somehow
it got chosen at configure time over the ones included with the gdb source
distro?  Also, there really shouldn't be all those "-I /usr/include"s in
there.  And what on earth are "/usr/include/../win" and
"/usr/include/../unix"?  Maybe configure has somehow failed to find
something and is using /usr/include as a default, no-hope-last-chance
fallback; and then bogusly concatenating relative paths onto it that would
have been relevant if it had found the real headers but make no sense when
just hoping they're in the standard system includes dir.  Yech.  

Can't think of a witty .sigline today....

Unsubscribe info:
Problem reports:

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