#891: hsc2hs tries to remove an open file
-----------------------+----------------------------------------------------
Reporter: eivuokko | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.4.2
Severity: normal | Resolution:
Keywords: | Os: Windows
Difficulty: Unknown | Architecture: Unknown
-----------------------+----------------------------------------------------
Old description:
> hsc2hs sometimes fails with error "Permission denied" in Windows. This
> is because it tries to remove a file it has open handle to. The error
> usually repeats per-machine and file, but what file and machine it shows
> up with, is random.
>
> As a workaround, calls to removeFile can be removed, or exceptions
> catched.
>
> From a mail by Brian Smith:
> http://www.haskell.org/pipermail/cvs-ghc/2006-September/031186.html
New description:
When building GHC on Windows, hsc2hs sometimes fails with
{{{
hsc2hs.exe: System\CPUTime_hsc_make.exe: removeFile: permission denied
(Permission denied)
}}}
This is because it tries to remove a file it has open handle to. The
error usually repeats per-machine and file, but what file and machine it
shows up with, is random.
As a workaround, calls to removeFile can be removed, or exceptions
catched.
From a mail by Brian Smith:
http://www.haskell.org/pipermail/cvs-ghc/2006-September/031186.html
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/891>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs