Link failures using GHC 6.8.2 on OS X 10.1.11 (PPC)

Robin Houston robin.houston at gmail.com
Wed Jan 23 11:38:25 EST 2008


This morning I downloaded and installed ghc-6.8.2-powerpc-apple-darwin.tar.bz2.
I'm now getting link errors when I use ghc. For example, the simple program

  import qualified Data.IntSet as IntSet
  main = print $ IntSet.empty

gives the errors:

  /usr/bin/ld: Undefined symbols:
  ___stginit_containerszm0zi1zi0zi1_DataziIntSet_
  _containerszm0zi1zi0zi1_DataziIntSet_empty_closure
  _containerszm0zi1zi0zi1_DataziIntSet_zdf3_closure

These symbols are defined in
/usr/local/lib/ghc-6.8.2/lib/containers-0.1.0.1/libHScontainers-0.1.0.1.a,
so apparently the linker is not finding this library.

The same program does work in ghci, and in ghc-6.6 (which I was using
previously).

I've searched the list archives, and I haven't found any mention of
this problem. Any help would be much appreciated!

Robin


More information about the Glasgow-haskell-users mailing list