[GHC] #1978: Error message: Undefined reference to `XXX_closure'

GHC ghc-devs at haskell.org
Mon Jan 6 23:14:45 UTC 2014


#1978: Error message: Undefined reference to `XXX_closure'
----------------------------------------------+---------------------------
        Reporter:  Andriy                     |            Owner:
            Type:  bug                        |           Status:  new
        Priority:  normal                     |        Milestone:
       Component:  Compiler                   |          Version:  7.4.1
      Resolution:                             |         Keywords:
Operating System:  Linux                      |     Architecture:  arm
 Type of failure:  GHC rejects valid program  |       Difficulty:  Unknown
       Test Case:                             |       Blocked By:
        Blocking:                             |  Related Tickets:
----------------------------------------------+---------------------------

Comment (by MichalGajda):

 Here is a patch that fixed the issue in Pandoc, to give idea how it looks:


 {{{
 diff -u -r orig/pandoc-1.11.1/src/Text/Pandoc/Readers/Markdown.hs
 pandoc-1.11.1/src/Text/Pandoc/Readers/Markdown.hs
 --- orig/pandoc-1.11.1/src/Text/Pandoc/Readers/Markdown.hs      2014-01-06
 23:09:47.928990710 +0000
 +++ pandoc-1.11.1/src/Text/Pandoc/Readers/Markdown.hs   2014-01-06
 21:33:46.963590240 +0000
 @@ -63,7 +63,10 @@
               -> String        -- ^ String to parse (assuming @'\n'@ line
 endings)
               -> Pandoc
  readMarkdown opts s =
 -  (readWith parseMarkdown) def{ stateOptions = opts } (s ++ "\n\n")
 +  readWithParser def { stateOptions = opts } (s ++ "\n\n")
 +
 +-- | Helper function to avoid missing closure bug. See GHC bug #1978
 +readWithParser state s = readWith parseMarkdown state s

  -- | Read markdown from an input string and return a pair of a Pandoc
 document
  -- and a list of warnings.
 }}}

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


More information about the ghc-tickets mailing list