[GHC] #15420: executable with library and template haskell doesn't compile statically

GHC ghc-devs at haskell.org
Fri Jul 20 03:56:15 UTC 2018


#15420: executable with library and template haskell doesn't compile statically
-------------------------------------+-------------------------------------
           Reporter:  tiny           |             Owner:  (none)
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:  8.6.1
          Component:  Compiler       |           Version:  8.4.3
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  GHC rejects
  Unknown/Multiple                   |  valid program
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 See the attached program. Make sure to compile it under a cabal sandbox so
 that it picks up the static compilation options in cabal.config.

 It doesn't compile, complaining about a missing dynamic (.so/.dll) library
 although everything should be static.

 It does work if either
 - the static compilation options are left out of cabal.config and
 everything compiles dynamically, or
 - the `tmp` variable from Main.hs is removed, or
 - the staticth library import is removed from the executable (remove
 dependency in staticth.cabal and import statement from Main.hs).

 If all 3 are present it doesn't compile.

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


More information about the ghc-tickets mailing list