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

GHC ghc-devs at haskell.org
Mon Jan 6 13:01:17 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:
----------------------------------------------+---------------------------
Changes (by MichalGajda):

 * status:  closed => new
 * failure:   => GHC rejects valid program
 * version:  6.6 => 7.4.1
 * resolution:  invalid =>
 * architecture:  x86 => arm


Comment:

 Can replicate on armel (Raspberry Pi with Raspbian) - cabal install
 pandoc-1.11.1 gives:

 {{{
 Linking dist/build/make-pandoc-man-pages/make-pandoc-man-pages ...
 dist/build/make-pandoc-man-pages/make-pandoc-man-pages-tmp/Main.o: In
 function `s7g3_info':
 /tmp/ghc15975_0/ghc15975_0.bc:(.text+0x3d64): undefined reference to
 `pandoczm1zi11zi1_TextziPandocziReadersziMarkdown_readMarkdown1_closure'
 dist/build/make-pandoc-man-pages/make-pandoc-man-pages-tmp/Main.o: In
 function `s7fm_info':
 /tmp/ghc15975_0/ghc15975_0.bc:(.text+0x3e4c): undefined reference to
 `pandoczm1zi11zi1_TextziPandocziReadersziMarkdown_readMarkdown2_closure'
 dist/build/make-pandoc-man-pages/make-pandoc-man-pages-
 tmp/Main.o:(.rodata+0x270): undefined reference to
 `pandoczm1zi11zi1_TextziPandocziReadersziMarkdown_readMarkdown1_closure'
 dist/build/make-pandoc-man-pages/make-pandoc-man-pages-
 tmp/Main.o:(.rodata+0x288): undefined reference to
 `pandoczm1zi11zi1_TextziPandocziReadersziMarkdown_readMarkdown2_closure'
 collect2: ld returned 1 exit status
 }}}

 I will try to construct a minimal test case in the following week.

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


More information about the ghc-tickets mailing list