Building GHC on Mac OS X or Fixing readline

Wolfgang Thaller wolfgang.thaller at gmx.net
Fri Oct 31 16:01:15 EST 2003


> Loading package readline ... linking ...
> /usr/local/lib/ghc-6.0.1/HSreadline.o: unknown symbol  
> `_rl_free_undo_list'
> ghc-6.0.1: panic! (the `impossible' happened, GHC version 6.0.1):
>         can't load package `readline'
> ----- End of Listing 2 -----

> ----- Message Link 1 -----
> http://www.mail-archive.com/glasgow-haskell-users@haskell.org/ 
> msg05041.html
> ----- End Message Link 1 -----

Hrm. The bug that Arthur Baars refers to has definitely been fixed in  
GHC 6.0.1; I can't reproduce your problem here, everything works fine.  
Where is the libreadline.dylib file installed, and what version of  
readline is it?

You should be aware that if libreadline.dylib is installed when you  
build GHC, the GHC binary itself will depend on it, so you'll need to  
include a readline binary. I always made sure that I only had  
libreadline.a while you're building GHC, so I could refrain from making  
a libreadline distro, too.

Cheers,

Wolfgang



More information about the Glasgow-haskell-bugs mailing list