axiom-developer
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Axiom-developer] RE: [Gcl-devel] RE: Axiom on Windows


From: Mike Thomas
Subject: [Axiom-developer] RE: [Gcl-devel] RE: Axiom on Windows
Date: Wed, 9 Jun 2004 15:37:29 +1000

Hi Bill.

As promised here is a CVS diff - I got stuck on a real life problem this
afternoon and did this to procrastinate.   The build logs have been sent
separately to yourself and David M.

1. The source tree was HEAD from a few days ago.  It is critical that you
use the compiler and binutils listed in point 10 below.

2. Open an MSYS bash shell and cd to the top of the source.

3. export AXIOM=/c/cvs/head/axiom/mnt/windows

4. export PATH=$AXIOM/bin:$PATH

5. Patch source tree as shown below - some of those patches circumvent the
GCL source archive untar and patch steps.

6. Insert a GCL Version_2_6_2c2 source tree into "lsp" and rename as
"lsp/gcl-2.6.2a"

7. Patch that new GCL source tree by hand in view of the deleted patch steps
in "lsp/Makefile.pamphlet" mentioned in 5 above.  Maybe this isn't
necessary, I just assumed patch would not be smart enough to apply the
patches in potentially altered files.  I didn't bother with the compiler
warning suppression patches to save time, as you can see from the logs I
sent.

8. Apply the "lsp/Makefile.pamphlet" patch for "h/linux.defs" to
"h/mingw.defs".

9. If memory serves I then let "make" have at it.  It crashed a couple of
times but I believe that this is a bug which has since been fixed - my MSYS
is fairly old now; 1.09.

10. It is critical that you use MinGW32 gcc 3.3.1 and binutils 2.14.90;
otherwise GCL will not work properly.

11. I haven't checked the C source hacks yet for stupid errors which might
be contributing to the general wobbliness of the new Windows Axiom
executable I have in front of me - we may be lucky.  Normally the CLtl1 GCL
build is fairly stable on Windows so I'm a bit surprised - even more so as I
had previously thought that Axiom was using the ANSI build.

I hope this is all I did; when I look back, it doesn't seem like much.

Please ask if you have queries and good luck.

Cheers

Mike Thomas.



? axiom_build_logs.tar.bz2
? diff.txt
? int
? junk.txt
? lastBuildDate
? make.log
? make.log.last
? make1.log
? make2.log
? make3.log
? Makefile.windows
? make_clean.log
? mnt
? noweb
? obj
? rubbish.stex
? test.lsp
? update.log
? wk
? lsp/gcl-2.6.2a
? lsp/gcldir
? lsp/Makefile
? lsp/Makefile.dvi
? src/Makefile
? src/Makefile.dvi
? src/algebra/make.exe.stackdump
? src/algebra/Makefile
? src/algebra/Makefile.dvi
? src/boot/Makefile
? src/boot/Makefile.dvi
? src/interp/Makefile
? src/interp/Makefile.dvi
? src/lib/Makefile
? src/lib/Makefile.dvi
? src/scripts/Makefile
? src/scripts/Makefile.dvi
? src/share/Makefile
? src/share/Makefile.dvi
? zips/gcl-2.6.2a.tgz-
cvs diff: Diffing .
Index: Makefile
===================================================================
RCS file: /cvsroot/axiom/axiom/Makefile,v
retrieving revision 1.8
diff -r1.8 Makefile
1c1
< SPD=$(shell pwd)
---
> SPD=$(shell pwd -W)
17c17
< ZIPS=${SPD}/zips
---
> ZIPS=${shell pwd}/zips
59a60,62
>       cp ${ZIPS}/noweb.src.Makefile.patch . ; \
>       patch <noweb.src.Makefile.patch ; \
>       cd ${OBJ}/noweb/src ; \
Index: Makefile.pamphlet
===================================================================
RCS file: /cvsroot/axiom/axiom/Makefile.pamphlet,v
retrieving revision 1.20
diff -r1.20 Makefile.pamphlet
1305a1306,1354
>
> \subsection{Makefile.windows}
> Annoyingly enough it seems that GCL uses a default extension of .lsp
> rather than .lisp so we add the {\bf LISP} variable here. We need to
> depend on the default extension behavior because the system build
> will load either the interpreted or compiled form of a file depending
> on which is available. This varies at different stages of the build.
> <<Makefile.windows>>=
> # System dependent Makefile for the Intel/Windows/MSYS platform
> # Platform variable
> PLF:=MSYSplatform
> # C compiler flags
> CCF:="-O2 -fno-strength-reduce -Wall -D_GNU_SOURCE -D${PLF}"
> #CCF:=-g -fno-strength-reduce -Wall -D_GNU_SOURCE  -D${PLF}
> # Loader flags
> LDF:= -L/usr/X11R6/lib
> # C compiler to use
> CC:=gcc
> AWK=awk
> RANLIB=ranlib
> TOUCH=touch
> TAR=tar
> AXIOMXLROOT=${AXIOM}/compiler
> O=o
> BYE=bye
> LISP=lsp
> DAASE=${SRC}/share
>
> ENV=PLF=${PLF} CCF=${CCF} LDF=${LDF} CC=${CC} AWK=${AWK} RANLIB=${RANLIB}
\
>     TOUCH=${TOUCH} TAR=${TAR} AXIOMXLROOT=${AXIOMXLROOT} O=${O} BYE=${BYE}
\
>     LISP=${LISP} DAASE=${DAASE}
>
> all: rootdirs noweb srcsetup lspdir srcdir
>       @echo 45 Makefile.windows called
>       @echo 46 Environment : ${ENV}
>       @echo 47 finished system build on `date` | tee >lastBuildDate
>
> <<rootdirs>>
> <<noweb.windows>>
> <<literate commands>>
> <<srcsetup>>
> <<src>>
> <<lsp>>
> <<document>>
> <<clean>>
>
> @
>
>
cvs diff: Diffing license
cvs diff: Diffing lsp
Index: lsp/Makefile.pamphlet
===================================================================
RCS file: /cvsroot/axiom/axiom/lsp/Makefile.pamphlet,v
retrieving revision 1.7
diff -r1.7 Makefile.pamphlet
39a40,42
>       @(cd ${GCLVERSION}/h ; \
>         echo 3a applying EXTRAS patch to h/mingw.defs ; \
>         patch <${SPD}/zips/${GCLVERSION}.h.mingw.defs.patch )
62,63c65
<         echo 3 applying EXTRAS patch to h/linux.defs ; \
<         patch <${SPD}/zips/${GCLVERSION}.h.linux.defs.patch )
---
>         echo 3 NOT applying EXTRAS patch to h/linux.defs )
100,101c102
<         echo 6 applying libspad.a patch to unixport/makefile ; \
<         patch <${SPD}/zips/${GCLVERSION}.unixport.makefile.patch )
---
>         echo 6 NOT applying libspad.a patch to unixport/makefile )
126,127c127
<         echo 7 applying toploop patch to unixport/init_gcl.lsp ; \
<         patch <${SPD}/zips/${GCLVERSION}.unixport.init_gcl.lsp.in.patch )
---
>         echo 7 NOT applying toploop patch to unixport/init_gcl.lsp )
207,208c207
<         echo 11 applying tail-recursive noise patch ; \
<         patch <${SPD}/zips/${GCLVERSION}.cmpnew.gcl_cmpflet.lsp.patch )
---
>         echo 11 NOT applying tail-recursive noise patch )
210,211c209
<         echo 12 applying tail-recursive noise patch ; \
<         patch <${SPD}/zips/${GCLVERSION}.cmpnew.gcl_cmpcall.lsp.patch )
---
>         echo 12 NOT applying tail-recursive noise patch )
266c264
<

./configure --enable-vssize=65536*2 --enable-statsysbfd --enable-maxpage=128
*1024 ; \
---
>

./configure  --enable-debug --enable-vssize=65536*2 --enable-maxpage=128*102
4; \
297d294
<       @tar -zxf ${ZIPS}/${GCLVERSION}.tgz
351d347
<       @tar -zxf ${ZIPS}/${GCLVERSION}.tgz
453d448
<       @tar -zxf ${ZIPS}/${GCLVERSION}.tgz
cvs diff: Diffing lsp/ccl
cvs diff: Diffing lsp/ccl/src
cvs diff: Diffing lsp/ccl/src/axbase
cvs diff: Diffing lsp/ccl/src/axbase/compiler
cvs diff: Diffing lsp/ccl/src/axbase/compiler/lib
cvs diff: Diffing lsp/ccl/src/boot
cvs diff: Diffing lsp/ccl/src/caxbase
cvs diff: Diffing lsp/ccl/src/cclbase
cvs diff: Diffing lsp/ccl/src/cslbase
cvs diff: Diffing lsp/ccl/src/scripts
cvs diff: Diffing lsp/ccl/src/util
cvs diff: Diffing src
cvs diff: Diffing src/algebra
cvs diff: Diffing src/booklets
cvs diff: Diffing src/boot
cvs diff: Diffing src/clef
cvs diff: Diffing src/doc
cvs diff: Diffing src/doc/msgs
cvs diff: Diffing src/doc/ps
cvs diff: Diffing src/etc
cvs diff: Diffing src/include
cvs diff: Diffing src/input
cvs diff: Diffing src/interp
Index: src/interp/patches.lisp.pamphlet
===================================================================
RCS file: /cvsroot/axiom/axiom/src/interp/patches.lisp.pamphlet,v
retrieving revision 1.3
diff -r1.3 patches.lisp.pamphlet
452a453,455
> #+(not (and KCL :winnt))
> (progn
>
497a501
> )
Index: src/interp/sockio.lisp.pamphlet
===================================================================
RCS file: /cvsroot/axiom/axiom/src/interp/sockio.lisp.pamphlet,v
retrieving revision 1.3
diff -r1.3 sockio.lisp.pamphlet
48a49,50
> #+(not (and KCL :winnt))
> (progn
251c253
<
---
> )
cvs diff: Diffing src/lib
Index: src/lib/XDither.c.pamphlet
===================================================================
RCS file: /cvsroot/axiom/axiom/src/lib/XDither.c.pamphlet,v
retrieving revision 1.3
diff -r1.3 XDither.c.pamphlet
49a50
> #ifndef _WIN32
307a309
> #endif /* _WIN32 */
Index: src/lib/XShade.c.pamphlet
===================================================================
RCS file: /cvsroot/axiom/axiom/src/lib/XShade.c.pamphlet,v
retrieving revision 1.3
diff -r1.3 XShade.c.pamphlet
49a50
> #ifndef _WIN32
285c286
<
---
> #endif /* _WIN32 */
Index: src/lib/XSpadFill.c.pamphlet
===================================================================
RCS file: /cvsroot/axiom/axiom/src/lib/XSpadFill.c.pamphlet,v
retrieving revision 1.3
diff -r1.3 XSpadFill.c.pamphlet
64a65
> #ifndef _WIN32
376c377
<
---
> #endif /* _WIN32 */
Index: src/lib/bsdsignal.c.pamphlet
===================================================================
RCS file: /cvsroot/axiom/axiom/src/lib/bsdsignal.c.pamphlet,v
retrieving revision 1.5
diff -r1.5 bsdsignal.c.pamphlet
46a47,49
> \section{Windows}
> The signal function is not available under Windows.
>
66a70,72
> #if defined ( _WIN32 )
>   return (SignalHandlerFunc) -1;
> #else
83a90
> #endif /* _WIN32 */
Index: src/lib/cfuns-c.c.pamphlet
===================================================================
RCS file: /cvsroot/axiom/axiom/src/lib/cfuns-c.c.pamphlet,v
retrieving revision 1.3
diff -r1.3 cfuns-c.c.pamphlet
167a168
> #ifndef _WIN32
176a178
> #endif /* _WIN32 */
178a181
> #ifndef _WIN32
187a191
> #endif /* _WIN32 */
205a210
> #ifndef _WIN32
214a220
> #endif /* _WIN32 */
Index: src/lib/fnct_key.c.pamphlet
===================================================================
RCS file: /cvsroot/axiom/axiom/src/lib/fnct_key.c.pamphlet,v
retrieving revision 1.3
diff -r1.3 fnct_key.c.pamphlet
46a47,48
> \section{Windows}
> These functions are not implemented in Windows.
49a52
> #ifndef _WIN32
85a89
> #endif /* _WIN32 */
99a104
> #ifndef _WIN32
107a113
> #endif /* _WIN32 */
123a130
> #ifndef _WIN32
189a197
> #endif /* _WIN32 */
204a213
> #ifndef _WIN32
223a233
> #endif /* _WIN32 */
235a246,248
> #ifdef _WIN32
>     return 0;
> #else
251a265
> #endif /* _WIN32 */
272a287
> #ifndef _WIN32
393a409
> #endif /* _WIN32 */
Index: src/lib/pixmap.c.pamphlet
===================================================================
RCS file: /cvsroot/axiom/axiom/src/lib/pixmap.c.pamphlet,v
retrieving revision 1.3
diff -r1.3 pixmap.c.pamphlet
46a47,48
> /section{Windows}
> The function pixmap is not available under Windows/MSYS.
49a52
> #ifndef _WIN32
377a381
> #endif /* _WIN32 */
Index: src/lib/sockio-c.c.pamphlet
===================================================================
RCS file: /cvsroot/axiom/axiom/src/lib/sockio-c.c.pamphlet,v
retrieving revision 1.4
diff -r1.4 sockio-c.c.pamphlet
51c51
<
---
> #ifndef _WIN32
1434a1435
> #endif /* _WIN32 */
Index: src/lib/spadcolors.c.pamphlet
===================================================================
RCS file: /cvsroot/axiom/axiom/src/lib/spadcolors.c.pamphlet,v
retrieving revision 1.3
diff -r1.3 spadcolors.c.pamphlet
49c49
<
---
> #ifndef _WIN32
599a600
> #endif /* _WIN32 */
Index: src/lib/util.c.pamphlet
===================================================================
RCS file: /cvsroot/axiom/axiom/src/lib/util.c.pamphlet,v
retrieving revision 1.3
diff -r1.3 util.c.pamphlet
49a50
> #ifndef _WIN32
207a209
> #endif /* _WIN32 */
Index: src/lib/wct.c.pamphlet
===================================================================
RCS file: /cvsroot/axiom/axiom/src/lib/wct.c.pamphlet,v
retrieving revision 1.3
diff -r1.3 wct.c.pamphlet
57a58
> #ifndef _WIN32
870a872
> #endif /* _WIN32 */
cvs diff: Diffing src/scripts
cvs diff: Diffing src/scripts/tex
cvs diff: Diffing src/share
cvs diff: Diffing src/share/algebra
cvs diff: Diffing src/share/algebra/DEPENDENTS.DAASE
cvs diff: Diffing src/share/algebra/USERS.DAASE
cvs diff: Diffing src/share/doc
cvs diff: Diffing src/share/doc/hypertex
cvs diff: Diffing src/share/doc/hypertex/pages
cvs diff: Diffing src/share/doc/msgs
cvs diff: Diffing zips
cvs diff: cannot find zips/gcl-2.6.2a.tgz





reply via email to

[Prev in Thread] Current Thread [Next in Thread]