RE: Rebuilding GDB
On Mon, 2004-09-20 at 18:14, Dave Korn wrote: -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. BTW, when discussing compile problems with gnu packages, you should always quote the options you gave to configure (if any). 1) Use setup.exe to download the gdb source. 2) mkdir /tmp/build 3) cd /tmp/build 4) /usr/src/gdb-20030919-1/configure --prefix=/usr/local/test 5) make 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 ib -DHAVE_NO_SEH=1 -DEXCEPTION_DISPOSITION=int -I/usr/include/../unix -I/usr/ include/../win -DTBL_VERSION=\2.7\ -DTBL_COMMAND=\table\ -DTBL_RUNTIME=\tkT able.tcl\ -DTBL_RUNTIME_DIR=\/usr/local/insight/share/redhat/gui\ -DSTATIC_BU 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 /usr/src/gdb-20030919-1/tk/win. ls /usr/src/gdb-20030919-1/tk ls: /usr/src/gdb-20030919-1/tk: No such file or directory [...] 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/includes 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. I've just had a second go at downloading with setup.exe, and the tk directory is still missing. This makes me think that the bug is really in setup.exe or in the Cygwin repository. I haven't really worked out how Cygwin packages work yet - should each source package contain a build script, like Redhat or Debian packages do? - Adrian Cox -- 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/
RE: Rebuilding GDB
On Tue, 21 Sep 2004, Adrian Cox wrote: On Mon, 2004-09-20 at 18:14, Dave Korn wrote: -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. BTW, when discussing compile problems with gnu packages, you should always quote the options you gave to configure (if any). 1) Use setup.exe to download the gdb source. 2) mkdir /tmp/build 3) cd /tmp/build 4) /usr/src/gdb-20030919-1/configure --prefix=/usr/local/test If you don't need/want the insight GUI, adding --disable-gdbtk here will remove this issue. -- Brian Ford Senior Realtime Software Engineer VITAL - Visual Simulation Systems FlightSafety International the best safety device in any aircraft is a well-trained pilot... -- 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/
Rebuilding GDB
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: 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 ib -DHAVE_NO_SEH=1 -DEXCEPTION_DISPOSITION=int -I/usr/include/../unix -I/usr/ include/../win -DTBL_VERSION=\2.7\ -DTBL_COMMAND=\table\ -DTBL_RUNTIME=\tkT able.tcl\ -DTBL_RUNTIME_DIR=\/usr/local/insight/share/redhat/gui\ -DSTATIC_BU 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 /usr/src/gdb-20030919-1/libgui/src/tclwinprint.c: In function `winprint_page_set up_command': /usr/src/gdb-20030919-1/libgui/src/tclwinprint.c:187: warning: assignment makes pointer from integer without a cast /usr/src/gdb-20030919-1/libgui/src/tclwinprint.c: In function `winprint_print_te xt_dialog': /usr/src/gdb-20030919-1/libgui/src/tclwinprint.c:360: warning: assignment makes pointer from integer without a cast /usr/src/gdb-20030919-1/libgui/src/tclwinprint.c: At top level: /usr/src/gdb-20030919-1/libgui/src/tclwinprint.c:905: warning: initialization fr om incompatible pointer type /usr/src/gdb-20030919-1/libgui/src/tclwinprint.c:906: warning: initialization fr om incompatible pointer type /usr/src/gdb-20030919-1/libgui/src/tclwinprint.c:907: warning: initialization fr om incompatible pointer type /usr/src/gdb-20030919-1/libgui/src/tclwinprint.c:908: warning: initialization fr om incompatible pointer type make[3]: *** [tclwinprint.o] Error 1 Where should tkWinInt.h come from? I've got other Tcl/Tk header files in /usr/include, but I'm missing this one. - Adrian Cox Humboldt Solutions Ltd. Cygwin Configuration Diagnostics Current System Time: Mon Sep 20 14:45:16 2004 Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 4 Path: C:\cygwin\usr\local\bin C:\cygwin\bin C:\cygwin\bin C:\cygwin\usr\X11R6\bin c:\WINNT\system32 c:\WINNT c:\WINNT\System32\Wbem Output from C:\cygwin\bin\id.exe (nontsec) UID: 500(Administrator) GID: 513(None) 513(None) Output from C:\cygwin\bin\id.exe (ntsec) UID: 500(Administrator) GID: 513(None) 0(root) 513(None) 544(Administrators) 545(Users) SysDir: C:\WINNT\system32 WinDir: C:\WINNT HOME = `C:\cygwin\home\Administrator' MAKE_MODE = `unix' PWD = `/home/Administrator' USER = `Administrator' ALLUSERSPROFILE = `C:\Documents and Settings\All Users' APPDATA = `C:\Documents and Settings\Administrator\Application Data' COMMONPROGRAMFILES = `C:\Program Files\Common Files' COMPUTERNAME = `FROG' COMSPEC = `C:\WINNT\system32\cmd.exe' CVS_RSH = `/bin/ssh' HOMEDRIVE = `C:' HOMEPATH = `\Documents and Settings\Administrator' HOSTNAME = `frog' INFOPATH = `/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:' LOGONSERVER = `\\FROG' MANPATH = `/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man::/usr/ssl/man' NUMBER_OF_PROCESSORS = `2' OLDPWD = `/usr/bin' OS2LIBPATH = `C:\WINNT\system32\os2\dll;' OS = `Windows_NT' PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' PKG_CONFIG_PATH = `/usr/X11R6/lib/pkgconfig' PRINTER = `\\http://newt.humboldt.co.uk:631\Kyocera FS-600' PROCESSOR_ARCHITECTURE = `x86' PROCESSOR_IDENTIFIER = `x86 Family 6 Model 8 Stepping 3, GenuineIntel' PROCESSOR_LEVEL = `6' PROCESSOR_REVISION = `0803' PROGRAMFILES = `C:\Program Files' PROMPT = `$P$G' PS1 = `\[\033]0;\w\007 [EMAIL PROTECTED] \[\033[33m\w\033[0m\] $ ' SHLVL = `1' SYSTEMDRIVE = `C:' SYSTEMROOT = `C:\WINNT' TEMP = `C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp' TERM = `cygwin' TMP = `C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp' USERDOMAIN = `FROG' USERNAME = `Administrator' USERPROFILE = `C:\Documents and Settings\Administrator' WINDIR = `C:\WINNT' _ = `/usr/bin/cygcheck' POSIXLY_CORRECT = `1' HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 (default) = `/cygdrive' cygdrive flags = 0x0022 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) = `C:\cygwin' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/home/adrian (default) = `h:' flags = 0x010a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = `C:\cygwin/bin' flags = 0x000a
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 ib -DHAVE_NO_SEH=1 -DEXCEPTION_DISPOSITION=int -I/usr/include/../unix -I/usr/ include/../win -DTBL_VERSION=\2.7\ -DTBL_COMMAND=\table\ -DTBL_RUNTIME=\tkT able.tcl\ -DTBL_RUNTIME_DIR=\/usr/local/insight/share/redhat/gui\ -DSTATIC_BU 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 /usr/src/gdb-20030919-1/tk/win. 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/generic -I/repository/tools/gdb-6.1.1/tk/xlib -DHAVE_NO_SEH=1 -DEXCEPTION_DISPOSITION=int -I/repository/tools/gdb-6.1.1/tk/generic/../unix -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/includes 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. cheers, DaveK -- Can't think of a witty .sigline today -- 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/