> I spoke too soon. I can only compile from C:\ not from any
> subdirectory, i.e. not just failure from another drive.

This I can't reproduce. Failure to compile from another drive, I can.

A fix is to edit C:/ghc/ghc-4.08/bin/ghc in the following way:

change the definition of $TMPDIR near the top to be 

$TMPDIR='C:/tmp';

and lower down find the line that says

if ( $ENV{'TMPDIR'} ) ...

and insert

$ENV{'TMPDIR'} = $TMPDIR;

directly before it.

Fiddling with the driver script directly is necessary because even if you
set the environment variable TMPDIR to C:/tmp, bash reduces it to /tmp,
and even if you set it in your .bashrc, Perl mangles it to /tmp. Aargh.

-- 
http://sc3d.org/rrt/
L'art des vers est de transformer en beautés les faiblesses (Aragon)


Reply via email to