ghc 6.0.1 and Mac OS X 10.2.6 build

Gregory Wright gwright at comcast.net
Wed Aug 6 22:53:32 EDT 2003


Hi,

I've built ghc 6.0.1 under OS X 10.2.6 and have a curious problem with 
ghci.
ghc seems to work fine, but ghci give me an error. I should note that 
I've done
the build without Wolfgang's HaskellSupportFramework, by setting the 
include
and library paths in build.mk. This is more compatible with the 
automated packing
scheme of DarwinPorts.

This is what I see:

bash-2.05a$ ghci
    ___         ___ _
   / _ \ /\  /\/ __(_)
  / /_\// /_/ / /  | |      GHC Interactive, version 6.0.1, for Haskell 
98.
/ /_\\/ __  / /___| |      http://www.haskell.org/ghc/
\____/\/ /_/\____/|_|      Type :? for help.

Loading package base ... linking ...
/usr/local/lib/ghc-6.0.1/HSbase_cbits.o: unknown symbol `_free'
ghc-6.0.1: panic! (the `impossible' happened, GHC version 6.0.1):
         can't load package `base'

Please report it as a compiler bug to glasgow-haskell-bugs at haskell.org,
or http://sourceforge.net/projects/ghc/.


bash-2.05a$


The error message comes from ghc/rts/Linker.c. Apparently dlsym couldn't
find the symbol _free from libSystem.

I suspect that doing things this way I have to link HSbase_cbits.o (and 
its siblings)
with -lSystem, Is that correct, or is this a different problem? If it's 
obscure I have a
way I could build a new Framework out of the installed package 
dependencies,
but it's somewhat messy.

Thanks.

Greg




More information about the Glasgow-haskell-bugs mailing list