#1648: ghci linker does not know about rts_getWord64
-----------------------------+----------------------------------------------
  Reporter:  duncan          |          Owner:                
      Type:  bug             |         Status:  new           
  Priority:  normal          |      Milestone:  6.8           
 Component:  Runtime System  |        Version:  6.6.1         
  Severity:  major           |       Keywords:                
Difficulty:  Easy (1 hr)     |             Os:  Linux         
  Testcase:                  |   Architecture:  x86_64 (amd64)
-----------------------------+----------------------------------------------
I stumbled into this with this code:

 {{{
 foreign export ccall "gtk2hs_store_get_column_type_impl"
   customTreeModelGetColumnType_static :: StablePtr
     (CustomTreeModelImplementation row) -> CInt -> IO GType
 }}}

 {{{GType}}} turns out to be a {{{CULong}}} and I'm on a 64bit arch.

 So the _stub.c file end up using {{{rts_getWord64}}}

 However when we try and load {{{ghci -package gtk}}} we get a linker error
 from the ghci linker because it doesn't know {{{rts_getWord64}}}.

 Indeed, inspecting {{{rts/Linker.c we}}} have {{{rts_getWord}}} and
 {{{rts_getWord32}}} but not {{{rts_getWord64}}}.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1648>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to