fivemack: (Default)
Tom Womack ([personal profile] fivemack) wrote2005-05-08 09:30 pm

Tedious Mac question

Tiger seems to have broken ghci, which now says


Tom-Womacks-Computer:~/Projects/haskell tom$ ghci

dyld: Library not loaded: /sw/lib/libncurses.5.dylib

Referenced from: /sw/lib/libreadline.4.dylib

Reason: Incompatible library version: libreadline.4.dylib requires version 6.0.0 or later, but libncurses.5.dylib provides version 5.0.0

Trace/BPT trap

This is a very specific question but must be a case of a general problem; can anyone help me out?

[identity profile] jojomojo.livejournal.com 2005-05-08 08:48 pm (UTC)(link)
I take it updating fink doesn't help? IIRC everything under /sw is fink, so it looks like they're mismatched rather than Tiger per se...

[identity profile] fivemack.livejournal.com 2005-05-08 08:53 pm (UTC)(link)
fink update-all tells me there's nothing to update

fink update readline tells me that it can't compile readline-4.3 with gcc-4.0 (whose changed ABI may be the cause of all this fuss in the first place)

I'd recompile ghc from source, except that the source is in Haskell with ghc extensions!

[identity profile] jojomojo.livejournal.com 2005-05-08 09:10 pm (UTC)(link)
An example of why Wirthian self-hosting compilers are, while theoretically wonderful and pure and neat, in practice more pain than they're worth ;)

I didn't realise gcc 4 had changed the ABI yet again, I thought that'd been locked down early in the 3.x cycle. Bah.

[identity profile] hsenag.livejournal.com 2005-05-08 09:15 pm (UTC)(link)
You can bootstrap from .hc files. But I doubt it's a pleasant process.

[identity profile] hsenag.livejournal.com 2005-05-08 09:14 pm (UTC)(link)
#haskell thinks that this is a known problem that will hopefully be fixed soon. Not quite sure where to keep an eye on for the fix, though.