[GHC] #8025: -fno-code and Template Haskell are incompatible (was: "During interactive linking, GHCi couldn't find the following symbol" typechecker error with TemplateHaskell involved)

GHC ghc-devs at haskell.org
Wed Apr 5 01:17:22 UTC 2017


#8025: -fno-code and Template Haskell are incompatible
-------------------------------------+-------------------------------------
        Reporter:  mojojojo          |                Owner:  (none)
            Type:  bug               |               Status:  patch
        Priority:  normal            |            Milestone:
       Component:  Compiler (Type    |              Version:  7.6.3
  checker)                           |
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:  x86
 Type of failure:  Incorrect         |            Test Case:
  warning at compile-time            |
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by bgamari):

 * status:  new => patch


Old description:

> Building the included project with
> {{{
> cabal configure && cabal build --ghc-options="-fforce-recomp -Wall -fno-
> code"
> }}}
> results in the following typechecker error:
> {{{
> ByteCodeLink.lookupCE
> During interactive linking, GHCi couldn't find the following symbol:
>   supabugzm0zi1zi0_A_makeLenseszq_closure
> This may be due to you not asking GHCi to load extra object files,
> archives or DLLs needed by your current session.  Restart GHCi,
> specifying
> the missing library using the -L/path/to/object/dir and -lmissinglibname
> flags, or simply by naming the relevant files on the GHCi command line.
> Alternatively, this link failure might indicate a bug in GHCi.
> If you suspect the latter, please send a bug report to:
>   glasgow-haskell-bugs at haskell.org
> }}}

New description:

 Building the included project with
 {{{
 cabal configure && cabal build --ghc-options="-fforce-recomp -Wall -fno-
 code"
 }}}
 results in the following typechecker error:
 {{{
 ByteCodeLink.lookupCE
 During interactive linking, GHCi couldn't find the following symbol:
   supabugzm0zi1zi0_A_makeLenseszq_closure
 This may be due to you not asking GHCi to load extra object files,
 archives or DLLs needed by your current session.  Restart GHCi, specifying
 the missing library using the -L/path/to/object/dir and -lmissinglibname
 flags, or simply by naming the relevant files on the GHCi command line.
 Alternatively, this link failure might indicate a bug in GHCi.
 If you suspect the latter, please send a bug report to:
   glasgow-haskell-bugs at haskell.org
 }}}

 The problem here is that GHC goes looking for the code of modules needed
 for TemplateHaskell splices, which was not produced due to `-fno-code`.

--

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


More information about the ghc-tickets mailing list