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

#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

#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 Resolution: | 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: | -------------------------------------+------------------------------------- Changes (by tiny): * Attachment "staticth-master.zip" added. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15420 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC