~ubuntu-branches/ubuntu/quantal/gclcvs/quantal

« back to all changes in this revision

Viewing changes to readme.mingw

  • Committer: Bazaar Package Importer
  • Author(s): Camm Maguire
  • Date: 2004-06-24 15:13:46 UTC
  • Revision ID: james.westby@ubuntu.com-20040624151346-xh0xaaktyyp7aorc
Tags: 2.7.0-26
C_GC_OFFSET is 2 on m68k-linux

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
===============================================
 
2
BUILDING NATIVE WIN32 GNU COMMON LISP FROM CVS
 
3
===============================================
 
4
 
 
5
The preferred build host system for the Mingw32 compiler is MSYS.
 
6
 
 
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
 
10
"configure".
 
11
 
 
12
Note that gcc 3.3.3 and gcc 3.4.0 do NOT work; likewise binutils 2.13.90
 
13
and 2.15.90.
 
14
 
 
15
The working binutils version can be found at:
 
16
 
 
17
ftp://ftp.sf.net/m/mi/mingw/binutils-2.14.90-20030807-1.tar.gz
 
18
 
 
19
 
 
20
===============================================
 
21
BUILDING GCL USING MSYS AS THE HOST
 
22
===============================================
 
23
 
 
24
BUILD TOOLS
 
25
 
 
26
- Mingw32 Version 2 Windows native gcc:
 
27
    http://www.mingw.org/
 
28
 
 
29
- MSYS Mingw build environment, including the MSYS DTK
 
30
    http://www.mingw.org/
 
31
 
 
32
- Source code for GCL.
 
33
    http://savannah.gnu.org/projects/gcl/
 
34
 
 
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.
 
38
 
 
39
 
 
40
SHORT SETUP NOTES
 
41
 
 
42
- Install Mingw32 and MSYS using the instructions at those sites. 
 
43
 
 
44
 
 
45
DETAILED SETUP NOTES
 
46
 
 
47
- Start by installing the latest version of MinGW2.exe.
 
48
 
 
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. 
 
52
 
 
53
- Go to the top level Mingw32 installation directory - the one in which you
 
54
  can see "bin", "lib" etc
 
55
 
 
56
- Extract those other packages in that directory eg:
 
57
 
 
58
  tar xzf rumpty-dumpty.tar.gz
 
59
 
 
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.
 
63
 
 
64
- Get MSYS and install it - follow the instructions - subscribe to the
 
65
  mailing list and read the archives.
 
66
 
 
67
- In the MSYS directory install the "msysDTK-1.0.0-alpha-1.tar.gz" package
 
68
  which gives you cvs, ssh, rlogin, etc.
 
69
 
 
70
 
 
71
 
 
72
BUILDING
 
73
 
 
74
- Change to your GCL source directory eg:
 
75
 
 
76
  cd /c/cvs/gcl
 
77
 
 
78
- You are now ready to configure GCL:
 
79
 
 
80
  ./configure --prefix="c:/gcl" > configure.log 2>&1
 
81
 
 
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.
 
85
 
 
86
- Check the log.
 
87
 
 
88
- Type:
 
89
 
 
90
        make >& make.log 
 
91
 
 
92
- The "saved_gcl.exe" should turn up eventually in the unixport directory.  You
 
93
  can try it out directly by typing:
 
94
 
 
95
        ./unixport/saved_gcl.exe
 
96
 
 
97
  at the command prompt.
 
98
 
 
99
- To install:
 
100
 
 
101
        make install >& install.log
 
102
 
 
103
  It is necessary to install GCL before building Maxima.
 
104
 
 
105
- The batch file "gclm.bat" can be used to make a Windows desktop 
 
106
  shortcut.
 
107
 
 
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.
 
115
 
 
116
 
 
117
Mike Thomas
 
118
 
 
119
15 June 2004