RE: can't manage to compile ghc6

I'm having trouble compiling ghc6. I have two versions of ghc installed at the moment, one is 5.04.2 from Debian, and another is a CVS snapshot from some time back that I've been using because it fixes a pet bug of mine. I can't seem to use either of these to build ghc6 from source on i386 linux. The failure seems to be occuring during the make boot stage. Is there any particular compiler I need to build ghc 6?
Are you using GCC 3.3 by any chance? Cheers, Simon

Hi Simon, On Friday 30 May 2003 16:42, Simon Marlow wrote:
I'm having trouble compiling ghc6.
Are you using GCC 3.3 by any chance?
At least for me, this seemed to cause compiling errors, gcc 3.2 works. However, there seems to be a problem with HaXml and GHCi. I installed HaXml 1.08 newly under ghc 6 and get the following error when using ghci -package HaXml: Loading package base ... linking ... done. Loading package lang ... linking ... done. Loading package haskell98 ... linking ... done. Loading package concurrent ... linking ... done. Loading package readline ... linking ... done. Loading package unix ... linking ... done. Loading package posix ... linking ... done. Loading package util ... linking ... done. Loading package data ... linking ... done. Loading package HaXml ... GHCi runtime linker: fatal error: I found a duplicate definition for symbol TextziPrettyPrintziHughesPJ_zdzpzd_entry whilst processing object file /usr/local/lib/ghc-6.0/HSHaXml.o This could be caused by: * Loading two different object files which export the same symbol * Specifying the same object file twice on the GHCi command line * An incorrect `package.conf' entry, causing some object to be loaded twice. GHCi cannot safely continue in this situation. Exiting now. Sorry. Any ideas? Cheers, Jan

"Simon Marlow"
Are you using GCC 3.3 by any chance?
Aha, yes! However, "./configure --with-gcc=/blah/blah/gcc-3.2" didn't fix the problem. On a hunch I changed the link from /usr/bin/gcc to point to 3.2, and it worked happily. Thanks. peace, isaac
participants (3)
-
Isaac Jones
-
Jan Scheffczyk
-
Simon Marlow