ghc-split accepts building 6.0 on Windows

Simon Peyton-Jones simonpj@microsoft.com
Tue, 24 Jun 2003 09:06:13 +0100


Sigbjorn has now fixed this in a better way: GHC now canonicalises the
TMPDIR stuff internally.
So it should just work in future.  Thanks to Sigbjorn; and thaks to
Dominic for pointing this one out.

Simon

| -----Original Message-----
| From: glasgow-haskell-users-admin@haskell.org
[mailto:glasgow-haskell-users-admin@haskell.org]
| On Behalf Of Dominic Cooney
| Sent: 30 May 2003 11:46
| To: glasgow-haskell-users@haskell.org
| Subject: ghc-split accepts building 6.0 on Windows
|=20
| My environment's TEMP and TMP are C:\temp, but for some reason, my
recent
| Cygwin install makes 'TEMP' and 'TMP' /cygdrive/c/temp/4; this duly
gets
| passed to ghc-inplace as C:\temp\4.
|=20
| Then, in libraries\base, ghc-split complains that \4 mentions a
non-existent
| group in a regexp:
|=20
| ../../ghc/compiler/ghc-inplace -H16m -O -fglasgow-exts -cpp -Iinclude
| -#include HsBase.h -Icbits/regex -funbox-strict-fields -package-name
base -O
| -Rghc-timing -split-objs    -c GHC/Base.lhs -o GHC/Base.o  -ohi
GHC/Base.hi
| Reference to nonexistent group in regex; marked by <-- HERE in
m/"c:\temp\4
| <--HERE \ghc936.split\.c"/ at
| d:\\users\\cooney\\ghc\\ghc-6.0\ghc\driver\split\ghc-split line 51,
<TMPI>
| line 23.
| make[2]: *** [GHC/Base.o] Error 255
|=20
| All I needed to do was editing ghc\driver\split\ghc-split so
|=20
| $Tmp_prefix =3D $ARGV[1]
|=20
| was instead
|=20
| ($Tmp_prefix =3D $ARGV[1]) =3D~ s/\\/\\\\/g;
|=20
| I don't know whether this habit of appending \4 is a delightful quirk
of my
| Cygwin install, but FWIW for other Windows Server 2k3/Cygwin users out
| there...
|=20
| Dominic Cooney
|=20
|=20
| _______________________________________________
| Glasgow-haskell-users mailing list
| Glasgow-haskell-users@haskell.org
| http://www.haskell.org/mailman/listinfo/glasgow-haskell-users