Skip to content

ghci linker does not know about rts_getWord64

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.

Trac metadata
Trac field Value
Version 6.6.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Runtime System
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information