[GHC] #8054: Undefined symbol during linking

GHC ghc-devs at haskell.org
Sat Jul 13 03:22:47 CEST 2013


#8054: Undefined symbol during linking
------------------------------------+-------------------------------------
       Reporter:  case              |             Owner:
           Type:  bug               |            Status:  new
       Priority:  normal            |         Milestone:
      Component:  Compiler          |           Version:  7.6.3
       Keywords:                    |  Operating System:  Unknown/Multiple
   Architecture:  Unknown/Multiple  |   Type of failure:  None/Unknown
     Difficulty:  Unknown           |         Test Case:
     Blocked By:                    |          Blocking:
Related Tickets:                    |
------------------------------------+-------------------------------------
 On OSX, using GHC 7.6.3 and the package recursion-schemes 3.0.0.2, the
 following code causes the compiler to emit an error about undefined
 symbols.

 Code:
 {{{
 import Data.Functor.Foldable

 x = project 1 :: Integer
 main = x `seq` return ()
 }}}

 Error:
 {{{
 λ ~/ ghc test.hs
 Linking test ...
 Undefined symbols for architecture x86_64:
   "_Main_x_closure", referenced from:
       _Main_main_info in test.o
       _Main_main_srt in test.o
 ld: symbol(s) not found for architecture x86_64
 collect2: ld returned 1 exit status
 }}}

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



More information about the ghc-tickets mailing list