[GHC] #11495: TH_spliceE5_prof is failing with release candidate 8.0.1

GHC ghc-devs at haskell.org
Thu Feb 25 11:06:12 UTC 2016


#11495: TH_spliceE5_prof is failing with release candidate 8.0.1
-------------------------------------+-------------------------------------
        Reporter:  thomie            |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.0.1
       Component:  Compiler          |              Version:  8.0.1-rc1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by thomie):

 > I guess we should not put -dynamic in ghcThWayFlags

 That doesn't work in batch mode. Take this example:

 A.hs:
 {{{
 {-# LANGUAGE TemplateHaskell #-}
 module A where
 import B
 $(dec)
 }}}

 B.hs:
 {{{
 {-# LANGUAGE TemplateHaskell #-}
 module B where
 import Language.Haskell.TH
 dec = [d| x = 1 |]
 }}}

 Result:
 {{{
 $ ghc -c B.hs
 $ ghc -c A.hs
 A.hs:1:1:
     cannot find normal object file ‘./B.dyn_o’
     while linking an interpreted expression
 }}}


 How about this: when compiling with `-dynamic`, create `.dyn_o` and
 `.dyn_hi` files by default instead of `.o` and `.hi` files. Is there any
 drawback to this? It would be more consistent with what `-dynamic-too`
 does as well.

 `-osuf` and `-hisuf` could keep working as before.

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


More information about the ghc-tickets mailing list