[GHC] #4114: Add a flag to remove/delete intermediate files generated by GHC

GHC ghc-devs at haskell.org
Thu Mar 8 07:44:00 UTC 2018


#4114: Add a flag to remove/delete intermediate files generated by GHC
-------------------------------------+-------------------------------------
        Reporter:  guest             |                Owner:  kaiha
            Type:  feature request   |               Status:  closed
        Priority:  normal            |            Milestone:  8.2.1
       Component:  Compiler          |              Version:  6.10.4
      Resolution:  fixed             |             Keywords:  newcomer
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
                                     |  driver/T4114a,b,c,d
      Blocked By:                    |             Blocking:
 Related Tickets:  #2258             |  Differential Rev(s):  Phab:D2021
       Wiki Page:                    |  Phab:D2050
-------------------------------------+-------------------------------------

Comment (by alpmestan):

 With master from yesterday, T4114c and T4114d are failing with the `ghci`
 way:

 {{{
 =====> T4114c(ghci) 1 of 2 [0, 0, 0]
 cd "./driver/T4114c.run" && "/home/alp/ghc/inplace/test   spaces/ghc-
 stage2" T4114c.hs -dcore-lint -dcmm-lint -no-user-package-db -rtsopts
 -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-
 color=never -fno-diagnostics-show-caret -dno-debug-output -fobject-code
 --interactive -v0 -ignore-dot-ghci -fno-ghci-history +RTS -I0.1 -RTS -no-
 keep-o-files< T4114c.genscript
 Wrong exit code for T4114c(ghci) (expected 0 , actual 1 )
 Stderr ( T4114c ):
 T4114c: error: intermediate 'T4114cSub.o' exists
 CallStack (from HasCallStack):
   error, called at ./T4114cSub.hs:9:8 in main:T4114cSub
 *** unexpected failure for T4114c(ghci)

 =====> T4114d(ghci) 2 of 2 [0, 1, 0]
 cd "./driver/T4114d.run" && "/home/alp/ghc/inplace/test   spaces/ghc-
 stage2" T4114d.hs -dcore-lint -dcmm-lint -no-user-package-db -rtsopts
 -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-
 color=never -fno-diagnostics-show-caret -dno-debug-output -fobject-code
 --interactive -v0 -ignore-dot-ghci -fno-ghci-history +RTS -I0.1 -RTS
 -hisuf .myhi -osuf .myo -no-keep-o-files< T4114d.genscript
 Wrong exit code for T4114d(ghci) (expected 0 , actual 1 )
 Stderr ( T4114d ):
 T4114d: error: intermediate 'T4114dSub.myo' exists
 CallStack (from HasCallStack):
   error, called at ./T4114dSub.hs:9:8 in main:T4114dSub
 *** unexpected failure for T4114d(ghci)
 }}}

 So it looks like `--interactive` does not honor `-no-keep-o-files`
 anymore. Shall I push a patch that expects just this way to fail, or shall
 I look into this somewhat soon to fix it instead? Or both I guess?

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


More information about the ghc-tickets mailing list