public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* Building Insight-6.1 under Cygwin
@ 2004-12-31  3:27 Peter Stephens
  0 siblings, 0 replies; only message in thread
From: Peter Stephens @ 2004-12-31  3:27 UTC (permalink / raw)
  To: insight

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

I thought this might help some of the Cygwin people.  I am not a great
developer, but managed to put this together from the various sources and
e-mails out there.  This is for an AMD K6-2/500 host running Cygwin (see
cygsum.txt attachment for details - also shows packages I have).

i586-pc-cygwin, AMD K6-2/500 running Windows 2000 Professional

Download sources via Insight-6.1 SNAPSHOT, not development sources.

1. Add "-mnop-fun-dllimport" to the AC_FLAGS variable in tcl/win/Makefile.in
and tk/win/Makefile.in

2. Add a symbolic link to X11 in the gdb directory, gdb$>ln -s
../tk/xlib/X11 X11

3. Install patch in main configure file, src/configure.in

===================================================================
RCS file: /cvs/src/src/configure.in,v
retrieving revision 1.207
diff -u -p -r1.207 configure.in
--- configure.in	24 Mar 2004 22:34:31 -0000	1.207
+++ configure.in	29 Apr 2004 16:47:57 -0000
@@ -1789,7 +1789,7 @@ esac
 
 # Host dirs don't like to share a cache file either, horribly enough.
 # This seems to be due to autoconf 2.5x stupidity.
-host_configargs="--cache-file=./config.cache --build=${build_alias}
--host=${host_alias} --target=${target_alias} ${extra_host_args}
${baseargs}"
+host_configargs="${cache_file_option} --build=${build_alias}
--host=${host_alias} --target=${target_alias} ${extra_host_args}
${baseargs}"
 
 target_configargs=${baseargs}


Note:  I had to add Bison and Flex in addition to my current cygwin
packages.

Libraries have been installed in:
   /usr/local/lib

4. Install patch in targetselection.itb (and other files referring to com1!)

diff -Naur original/targetselection.itb fixed/targetselection.itb
--- original/targetselection.itb	2004-01-22 10:03:22.096390400 +0100
+++ fixed/targetselection.itb	2004-01-22 12:45:33.729792000 +0100
                   
 itcl::body TargetSelection::default_port {} {
   global tcl_platform
   switch -regexp $tcl_platform(os) {
-    Windows { set port com1 }
+    Windows { set port /dev/com1 }
     Linux   { set port /dev/ttyS0 }
     SunOS   { set port /dev/ttya }
     AIX     { set port /dev/foo1 }
                   
       # Failed.  Find out why.
       if {[string first "permission denied" $msg] != -1} {
 	# Port is there, but busy right now. That's OK.
-	lappend plist com$i
+	lappend plist /dev/com$i
       } elseif {$i > 4} {
 	# if we've scanned the first 4 ports, then quit when we find no more

 	set quit 1
                   
     } else {
       # We got it.  Now close it and add to list.
       close $fd
-      lappend plist com$i
+      lappend plist /dev/com$i
     }
   }
   return $plist

5.  Change references to com1 in any gdbtk.ini to '/dev/com1'

Hope that this helps a little. - Pete

[-- Attachment #2: cygsum.txt --]
[-- Type: text/plain, Size: 4871 bytes --]

Cygwin Configuration Diagnostics
Current System Time: Thu Dec 30 03:03:56 2004

Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 4

Path:
   C:\cygwin\home\name\bin
	C:\cygwin\usr\local\bin
	C:\cygwin\bin
	c:\WINNT\system32
	c:\WINNT
	c:\WINNT\System32\Wbem
	c:\bin
	.\

CYGWIN = `tty notitle'
MAKE_MODE = `unix'

COMSPEC = `C:\WINNT\system32\cmd.exe'
CVSEDITOR = `emacs'
CVSROOT = `:local:/opt/.cvsroot'
CVS_RSH = `/bin/ssh'
DISPLAY = `:0'
FCEDIT = `emacs'
HISTCONTROL = `ignoredups'
HOMEDRIVE = `C:'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 5 Model 8 Stepping 12, AuthenticAMD'
PROCESSOR_LEVEL = `5'
PROCESSOR_REVISION = `080c'
TERM = `cygwin'

a:  fd             N/A    N/A                    
c:  hd  NTFS     14645Mb  35% CP CS UN PA FC     
d:  cd             N/A    N/A                    
e:  cd             N/A    N/A                    

C:\cygwin      /          system  textmode
\\.\a          /dev/fd0   system  binmode
C:\cygwin/bin  /usr/bin   system  textmode
C:\cygwin/lib  /usr/lib   system  textmode
.              /cygdrive  system  textmode,cygdrive

 1114k 2004/11/10 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2004/11/10 8:34
    Cygwin DLL version info:
        DLL version: 1.5.12
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 116
        Shared data: 4
        DLL identifier: cygwin1
        Mount registry: 2
        Cygnus registry name: Cygnus Solutions
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Cygwin mount registry name: mounts v2
        Cygdrive flags: cygdrive flags
        Cygdrive prefix: cygdrive prefix
        Cygdrive default prefix: 
        Build date: Wed Nov 10 08:34:47 EST 2004
        Shared id: cygwin1S4


Package              Version
_update-info-dir     00230-1
ash                  20040127-1
astyle               1.15.3-3
autoconf             2.59-1
autoconf-devel       2.59-1
autoconf-stable      2.13-5
automake-stable      1.4p6-2
base-files           3.1-4
base-passwd          2.1-1
bash                 2.05b-16
binutils             20041229-1
bison                20030307-1
bzip2                1.0.2-6
chere                0.5-2
cocom                0.995-1
coreutils            5.2.1-4
crypt                1.1-1
ctags                5.5-4
cvs                  1.11.17-1
cygutils             1.2.5-1
cygwin               1.5.12-1
cygwin-doc           1.3-7
diffutils            2.8.7-1
editrights           1.01-1
emacs                21.2-13
expat                1.95.8-1
fileutils            4.1-3
findutils            20041227-1
flex                 2.5.4a-3
gawk                 3.1.4-3
gcc                  3.3.3-3
gcc-core             3.3.3-3
gcc-g++              3.3.3-3
gcc-mingw-core       20040810-1
gcc-mingw-g++        20040810-1
gdb                  20030919-1
gdbm                 1.8.3-7
gettext              0.14.1-1
gettext-devel        0.14.1-1
glib                 1.2.10-2
gmp                  4.1.4-2
grep                 2.5-1
groff                1.18.1-2
gzip                 1.3.5-1
help2man             1.33.1-1
indent               2.2.9-1
less                 381-1
libbz2_1             1.0.2-6
libcharset1          1.9.2-1
libdb4.2             4.2.52-1
libgdbm              1.8.0-5
libgdbm-devel        1.8.3-7
libgdbm3             1.8.3-3
libgdbm4             1.8.3-7
libgettextpo0        0.14.1-1
libiconv             1.9.2-1
libiconv2            1.9.2-1
libintl1             0.10.40-1
libintl2             0.12.1-3
libintl3             0.14.1-1
libncurses5          5.2-1
libncurses6          5.2-8
libncurses7          5.3-4
libncurses8          5.4-1
libpcre              4.1-1
libpcre0             4.5-1
libpopt0             1.6.4-4
libreadline4         4.1-2
libreadline5         4.3-5
libreadline6         5.0-1
login                1.9-7
m4                   1.4.2-1
make                 3.80-1
man                  1.5o1-1
mc                   4.6.1-1
mingw-runtime        3.5-1
mktemp               1.5-3
ncurses              5.4-1
openssl              0.9.7e-1
perl                 5.8.5-3
rcs                  5.7-3
readline             5.0-1
rxvt                 2.7.10-4
sed                  4.1.2-1
sh-utils             2.0.15-5
sharutils            4.2.1-3
splint               3.1.1-1
tar                  1.13.25-5
tcltk                20030901-1
termcap              20021106-2
terminfo             5.4_20041009-1
texinfo              4.7-1
textutils            2.0.21-2
tidy                 041206-1
w32api               3.1-1
wget                 1.9.1-1
which                1.6-1
zip                  2.3-6
zlib                 1.2.2-1

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-12-31  3:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-31  3:27 Building Insight-6.1 under Cygwin Peter Stephens

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