Hi Brian
On 9/7/06, Brian Smith <[EMAIL PROTECTED]> wrote:
I tried to build GHC on Windows today (pulled from darcs) and I received an
error:
hsc2hs.exe: System\CPUTime_hsc_make.exe: removeFile: permission denied
(Permission denied)
Following has not been tested by me recently, but it might be usable
workaround.
The problem is that removeFile is called for a file that has an open handle,
because the handle is not garbage collected yet.
You can remove the calls to removeFile in ghc/utils/hsc2hs/Main.hs (there's
two.) and recompile it by entering the ghc/utils/hsc2hs and running make.
(I think that should be enough). Afterwards continue with build as you did
before.
You could also try to tweak RTS gc flags and hope handle gets collected on
right moment.
HTH,
--Esa
_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc