[GHC] #10986: GHC should delete all temporary files it creates in /tmp

GHC ghc-devs at haskell.org
Sun Sep 30 12:44:21 UTC 2018


#10986: GHC should delete all temporary files it creates in /tmp
-------------------------------------+-------------------------------------
        Reporter:  erikd             |                Owner:  (none)
            Type:  feature request   |               Status:  new
        Priority:  high              |            Milestone:
       Component:  Compiler          |              Version:  7.11
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D2324
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by monoidal):

 I found out this still happens with Template Haskell + -fno-code.

 Given `M.hs`

 {{{
 {-# LANGUAGE TemplateHaskell #-}
 module M where
 $(return [])
 }}}

 compiling `ghc -fno-code -v2 M.hs` fails to remove the directory:

 {{{
 *** Deleting temp dirs:
 Warning: exception raised when deleting /tmp/ghc17992_0:
 /tmp/ghc17992_0: removeDirectory: unsatisfied constraints (Directory not
 empty)
 }}}

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10986#comment:26>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list