[GHC] #8443: cannot find normal object file when compiling TH code

GHC ghc-devs at haskell.org
Mon May 1 18:58:31 UTC 2017


#8443: cannot find normal object file when compiling TH code
-------------------------------------+-------------------------------------
        Reporter:  snoyberg          |                Owner:  (none)
            Type:  bug               |               Status:  closed
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.7
      Resolution:  invalid           |             Keywords:
Operating System:  Linux             |         Architecture:  x86_64
 Type of failure:  GHC rejects       |  (amd64)
  valid program                      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by nh2):

 2 years later, some insight on *why* `other-extensions: TemplateHaskell`
 helps here:

 > thoughtpolice: -dynamic-too is sort of designed to not have too much
 overhead but it's a giant shitshow how it works
 >
 > In short, it will only re-run the assembler, mostly, since it 'just' has
 to change some stuff like relocations, etc in the backend for a shared
 object. It used to not be so easy on windows; the way it's implemented is
 a hack.
 >
 > And yeah, Cabal does use the knowledge of TemplateHaskell to know when
 to turn on -dynamic-too automatically for GHC, so it will build shared
 object files, which it can link in the background and load in GHCi

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


More information about the ghc-tickets mailing list