But a GHC developer should not have to modify the source code of hsc2hs to make GHC build!!
If hsc2hs is trying to delete a file that it has not closed (relying instead on the garbage collector to close it), then hsc2hs is asking for trouble, and should be fixed. Would someone like to create a Trac bug report for this? Assuming that Esa is correct about the cause. Simon | -----Original Message----- | From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Esa Ilari Vuokko | Sent: 07 September 2006 10:34 | To: Brian Smith | Cc: [EMAIL PROTECTED] | Subject: Re: What causes hsc2hs "permission denied" errors during build? | | 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 _______________________________________________ Cvs-ghc mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/cvs-ghc
