[Haskell-cafe] [ghci] unknown symbol in base-unicode-symbols- ...

John Obbele john.obbele at gmail.com
Wed Mar 30 22:37:47 CEST 2011

Hi everyone !

I'm having a problem in GHCi when loading modules relying on the
base-unicode-symbols package. My prompt gives me the following

>> ghci $
GHCi, version 7.0.2: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Prelude> :m +System.USB
Prelude System.USB> newCtx
Loading package array- ... linking ... done.
Loading package containers- ... linking ... done.
Loading package deepseq- ... linking ... done.
Loading package bytestring- ... linking ... done.
Loading package text- ... linking ... done.
Loading package base-unicode-symbols- ... linking ... <interactive>: /home/john/.cabal/lib/base-unicode-symbols- unknown symbol `__stginit_basezmunicodezmsymbolszm0zi2zi1zi2_ControlziCategoryziUnicode_'
ghc: unable to load package `base-unicode-symbols-'
Prelude System.USB> 

I thought this was due to me screwing around cabal/ghc-pkg caches
but after a fresh install of Fedora15-alpha / cabal update /
cabal install usb I'm still getting the same error.

Moreover, a quick `nm HSbase-unicode-symbols-*.o | grep
ControlziCategoryziUnicode` give me the following output.

>> nm HSbase-unicode-symbols- | grep -C 4 'ControlziCategoryziUnicode_'
0000000000000070 T __stginit_basezmunicodezmsymbolszm0zi2zi1zi2_ControlziApplicativeziUnicode
0000000000000040 T __stginit_basezmunicodezmsymbolszm0zi2zi1zi2_ControlziApplicativeziUnicode_
0000000000000120 T __stginit_basezmunicodezmsymbolszm0zi2zi1zi2_ControlziArrowziUnicode
00000000000000d8 T __stginit_basezmunicodezmsymbolszm0zi2zi1zi2_ControlziArrowziUnicode_
                 U __stginit_basezmunicodezmsymbolszm0zi2zi1zi2_ControlziCategoryziUnicode_
00000000000001b8 T __stginit_basezmunicodezmsymbolszm0zi2zi1zi2_ControlziMonadziUnicode
0000000000000188 T __stginit_basezmunicodezmsymbolszm0zi2zi1zi2_ControlziMonadziUnicode_
0000000000000250 T __stginit_basezmunicodezmsymbolszm0zi2zi1zi2_DataziBoolziUnicode
0000000000000220 T __stginit_basezmunicodezmsymbolszm0zi2zi1zi2_DataziBoolziUnicode_

Could someone please explain to me what's happening ?


More information about the Haskell-Cafe mailing list