Re[2]: GHC on Snow Leopard: best practices?

2009-10-08 Thread Bulat Ziganshin
Hello Barney, Thursday, October 8, 2009, 12:58:01 AM, you wrote: Incidentally, 6.12 doesn't appear to be in http://www.haskell.org/ghc/dist/ , only in the Darcs repo. Was that intentional? it's not yet released: http://haskell.org/ghc/ -- Best regards, Bulat

Re: GHC on Snow Leopard: best practices?

2009-10-08 Thread Manuel M T Chakravarty
David Menendez: Is there any consensus about what needs to be done to get a working ghc installation on a Snow Leopard (Mac OS X 10.6) system? The Mac OS X wiki page[1] currently links to a blog post[2] that recommends manually patching /usr/bin/ghc, but I have also seen recommendations that

Re: GHC on Snow Leopard: best practices?

2009-10-08 Thread Duncan Coutts
On Thu, 2009-10-08 at 18:32 +1100, Manuel M T Chakravarty wrote: David Menendez: Is there any consensus about what needs to be done to get a working ghc installation on a Snow Leopard (Mac OS X 10.6) system? The Mac OS X wiki page[1] currently links to a blog post[2] that recommends

Re: Snow Leopard GHC

2009-10-08 Thread Barney Stratford
Latest set of problems. I've tried using the i386 build of GHC 6.10.4 to build the x86_64 version in the manner that I described in an earlier post. I'm not getting any segfaults now, but instead it says the following during make: /Users/bjs/Desktop/GHC_Build/ghc-6.10.4/libraries/cabal-bin

Re: Ghci dynamic linking (Was: C++ libraries and GHCI)

2009-10-08 Thread C Rodrigues
I've encountered the problem with weak symbols also, and filed a bug report against ghc (#). Weak symbols are used by gcc (with elf) to accommodate C++'s compilation model. In C++, it's permitted to define class methods and template code in header files. Because header files can be

Re: GHC on Snow Leopard: best practices?

2009-10-08 Thread Simon Marlow
On 07/10/2009 21:58, Barney Stratford wrote: I'm back in Cambridge now. Snowdonia was great, and just as wet as expected. As far as I'm aware, nobody's got a fully functioning Snow Leopard GHC yet. Just before going away, I tried to use my partly-functioning 64-bit GHC to build 6.10, but found

Re: Snow Leopard GHC

2009-10-08 Thread Barney Stratford
So which compiler is generating the bogus code here? Is this the stage1 x86-64 compiler, or the i386 compiler? It's the stage1 x86_64 compiler. The problem here is that 375900174587920 doesn't even fit into 64 bits, hence the assembler's complaint. Cheers, Barney.

Re: Snow Leopard GHC

2009-10-08 Thread Simon Marlow
On 08/10/2009 15:07, Barney Stratford wrote: So which compiler is generating the bogus code here? Is this the stage1 x86-64 compiler, or the i386 compiler? It's the stage1 x86_64 compiler. The problem here is that 375900174587920 doesn't even fit into 64 bits, hence the assembler's

Ghci fails to load modules, but ghc compiles OK

2009-10-08 Thread Colin Paul Adams
I've been using ghc 6.10.3 on 64-bit Linux to compile my application, and it runs OK, modulo bugs. I want to debug a problem, so I load it in ghci, but when i type main I get: Loading package network-2.2.1.1 ... GHCi runtime linker: fatal error: I found a duplicate definition for symbol