1
===============================================
2
BUILDING NATIVE WIN32 GNU COMMON LISP FROM CVS
3
===============================================
5
The preferred build host system for the Mingw32 compiler is MSYS.
7
I use gcc version 3.3.1 and binutils 2.14.90, but earlier versions
8
of gcc back to 2.95 are OK provided that you remove the
9
"-fno-zero-initialized-in-bss" flag in "h/mingw.defs" before running
12
Note that gcc 3.3.3 and gcc 3.4.0 do NOT work; likewise binutils 2.13.90
15
The working binutils version can be found at:
17
ftp://ftp.sf.net/m/mi/mingw/binutils-2.14.90-20030807-1.tar.gz
20
===============================================
21
BUILDING GCL USING MSYS AS THE HOST
22
===============================================
26
- Mingw32 Version 2 Windows native gcc:
29
- MSYS Mingw build environment, including the MSYS DTK
32
- Source code for GCL.
33
http://savannah.gnu.org/projects/gcl/
35
Subject to the above warnings, it is usually a good idea to keep up to
36
date with Mingw32 and MSYS. Updates for various parts of these packages
37
are available on the web site.
42
- Install Mingw32 and MSYS using the instructions at those sites.
47
- Start by installing the latest version of MinGW2.exe.
49
- By looking at the dates and version numbers appended to the other
50
packages on the download page, get any versions of gcc 3.2, binutils,
51
mingw-runtime, and w32api that are later than the Mingw2 package.
53
- Go to the top level Mingw32 installation directory - the one in which you
54
can see "bin", "lib" etc
56
- Extract those other packages in that directory eg:
58
tar xzf rumpty-dumpty.tar.gz
60
- Remove the Mingw version of "make" from the bin directory - it has serious
61
bugs and will not work properly for most tasks including building GCL and
62
Maxima. We will be using the MSYS version.
64
- Get MSYS and install it - follow the instructions - subscribe to the
65
mailing list and read the archives.
67
- In the MSYS directory install the "msysDTK-1.0.0-alpha-1.tar.gz" package
68
which gives you cvs, ssh, rlogin, etc.
74
- Change to your GCL source directory eg:
78
- You are now ready to configure GCL:
80
./configure --prefix="c:/gcl" > configure.log 2>&1
82
Change the prefix directory as required for your final installation path.
83
I find it helpful to redirect output from "configure" and "make" into log
84
files for debugging and checking.
92
- The "saved_gcl.exe" should turn up eventually in the unixport directory. You
93
can try it out directly by typing:
95
./unixport/saved_gcl.exe
97
at the command prompt.
101
make install >& install.log
103
It is necessary to install GCL before building Maxima.
105
- The batch file "gclm.bat" can be used to make a Windows desktop
108
- BFD fasloading, Stratified Garbage Collection (SGC) readline and GCL-TK
109
don't work under Windows. The configuration options above provide a
110
"traditional" GCL executable which will build the current CVS version of
111
Maxima. The BFD option will depend on someone with knowledge of BFD and
112
PE-COFF linking fixing some problems with the BFD library - I am slowly
113
absorbing the info needed, but we really need input from an expert. My
114
inclination is to stick with custom relocation as BFD is less efficient.