X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=docs%2Fbuilding%2Fbuilding.sgml;h=7196bf1c499e8a7e6d9387eb8a29b20de025b660;hb=38178e3b480cbe8487df8ad3083c0938db5be7ac;hp=1fa1656520427832e7d8460c034f4774066ce636;hpb=feaf38913aefbc81cfe991a622820931f186e02d;p=ghc-hetmet.git diff --git a/docs/building/building.sgml b/docs/building/building.sgml index 1fa1656..7196bf1 100644 --- a/docs/building/building.sgml +++ b/docs/building/building.sgml @@ -58,7 +58,7 @@ the parser specifications. If you don't want to alter the parser then this saves you having to find and install happy. You will still need a working - version of GHC (preferably version 4.08+) on your machine in + version of GHC (version 5.x or later) on your machine in order to compile (most of) the sources, however. @@ -137,6 +137,12 @@ Set your $CVSROOT environment variable to :pserver:anoncvs@glass.cse.ogi.edu:/cvs + If you set $CVSROOT in a shell script, be sure not to + have any trailing spaces on that line, otherwise CVS will respond with + a perplexing message like + + /cvs : no such repository + Run the command @@ -1116,6 +1122,14 @@ $ cvs checkout nofib/spectral + mips64-sgi-irix6 + mips-sgi-irix6 + + GHC currently works unregisterised. + + + + powerpc-ibm-aix powerpc-ibm-aix @@ -1284,22 +1298,22 @@ $ cvs checkout nofib/spectral - Autoconf - pre-supposed: Autoconf - Autoconf, pre-supposed + Autoreconf + pre-supposed: Autoreconf + Autoreconf, pre-supposed - GNU Autoconf is needed if you intend to build from the + GNU Autoreconf is needed if you intend to build from the CVS sources, it is not needed if you just intend to build a standard source distribution. - Version 2.52 or later of autoconf is required. + Version 2.52 or later of autoreconf is required. NB. vesrion 2.13 will no longer work, as of GHC version 6.1. - Autoconf builds the configure + Autoreconf builds the configure script from configure.ac and aclocal.m4. If you modify either of - these files, you'll need autoconf to + these files, you'll need autoreconf to rebuild configure. @@ -1420,7 +1434,8 @@ $ cvs checkout nofib/spectral want a completely standard build, then the following should work: -$ ./configure +$ autoreconf +$ ./configure $ make $ make install @@ -1592,20 +1607,27 @@ $ make install Change directory to $(FPTOOLS_TOP) and issue the command - autoconfautoconf + +autoreconf + + autoreconf (with no arguments). This GNU program converts $(FPTOOLS_TOP)/configure.ac to a shell script called $(FPTOOLS_TOP)/configure. + If autoreconf bleats that it can't write the file configure, + then delete the latter and try again. Note that you must use autoreconf, + and not the old autoconf! If you erroneously use the latter, you'll get + a message like "No rule to make target 'mk/config.h.in'". Some projects, including GHC, have their own configure script. If there's an $(FPTOOLS_TOP)/<project>/configure.ac, - then you need to run autoconf in that + then you need to run autoreconf in that directory too. - Both these steps are completely + These steps are completely platform-independent; they just mean that the human-written file (configure.ac) can be short, although the resulting shell script, @@ -1885,7 +1907,7 @@ $ cd /scratch/joe-bloggs/myfptools-sun4 Prepare for system configuration: -$ autoconf +$ autoreconf (You can skip this step if you are starting from a @@ -1894,11 +1916,11 @@ $ autoconf mk/config.h.in.) Some projects, including GHC itself, have their own - configure scripts, so it is necessary to run autoconf again + configure scripts, so it is necessary to run autoreconf again in the appropriate subdirectories. eg: -$ (cd ghc; autoconf) +$ (cd ghc; autoreconf) @@ -4431,14 +4453,37 @@ but you do need it to build GHC. Install Cygwin from http://www.cygwin.com/. The installation process is straightforward; we install it in c:/cygwin. -During the installation dialogue, make sure that you select: -cvs, openssh, -autoconf, -binutils (includes ld and (I think) ar), -gcc, -flex, -make. - +During the installation dialogue, make sure that you select all of the following: + + + cvs, + + + openssh, + + + autoreconf, + + + automake, + + + binutils (includes ld and (I think) ar), + + + gcc, + + + flex, + + + make. + + +If you miss out any of these, strange things will happen to you. To see thse packages, +click on the "View" button in the "Select Packages" +stage of Cygwin's installation dialogue, until the view says "Full". The default view, which is +"Category" isn't very helpful, and the "View" button is rather unobtrousive. Now set the following user environment variables: @@ -4458,7 +4503,7 @@ don't do this you get very weird messages when you type Set SHELL to -c:/cygwin/bin/sh. When you invoke a shell in Emacs, this +c:/cygwin/bin/bash. When you invoke a shell in Emacs, this SHELL is what you get. @@ -4680,7 +4725,7 @@ you about Windows-specific wrinkles. -Run autoconf both in fptools +Run autoreconf both in fptools and in fptools/ghc. If you omit the latter step you'll get an error when you run ./configure: @@ -4695,11 +4740,11 @@ configure: error: ./configure failed for ghc - autoconf seems to create the file configure -read-only. So if you need to run autoconf again (which I sometimes do for safety's sake), + autoreconf seems to create the file configure +read-only. So if you need to run autoreconf again (which I sometimes do for safety's sake), you get -/usr/bin/autoconf: cannot create configure: permission denied +/usr/bin/autoreconf: cannot create configure: permission denied Solution: delete configure first. @@ -4722,7 +4767,7 @@ can be really confusing. - After autoconf run ./configure in + After autoreconf run ./configure in fptools/ thus: