GHC 6.12 + zlib + Mac OS 10.6

2009-11-28 Thread Antoine Latter
Hello folks, Everything has been going beautifully with the latest versions of GHC 6.12, except that anything involving zlib dies at run-time. In ghci: > :m Codec.Compression.Zlib > :m +Data.ByteString.Lazy.Char8 > :s -XOverloadedStrings > compress "hello" *** Exception: user error (Codec.Compre

Re: GHC 6.12 + zlib + Mac OS 10.6

2009-11-28 Thread Yusaku Hashimoto
I think you installed zlib without proper flags to link with 32-bit libraries. configuring with ./Setup configure --with-hsc2hs='--cc-flag=-m32 --ld-flag=-m32' should do the tricks. See also http://hackage.haskell.org/trac/ghc/ticket/3681. HTH -~nwn On Sun, Nov 29, 2009 at 6:01 AM, Antoine Latte

Re: GHC 6.12 + zlib + Mac OS 10.6

2009-11-28 Thread Antoine Latter
On Sat, Nov 28, 2009 at 3:54 PM, Yusaku Hashimoto wrote: > I think you installed zlib without proper flags to link with 32-bit > libraries. configuring with ./Setup configure > --with-hsc2hs='--cc-flag=-m32 --ld-flag=-m32' should do the tricks. > > See also http://hackage.haskell.org/trac/ghc/tick

Re: GHC 6.12 + zlib + Mac OS 10.6

2009-11-28 Thread Yusaku Hashimoto
I had wrote last mail without verifications, so ./Setup configure --hsc2hs-options='--cflag=-m32 --lflag=-m32' is correct. But I'm glad to know you got working fine with zlib :) ~-nwn On Sun, Nov 29, 2009 at 8:00 AM, Antoine Latter wrote: > On Sat, Nov 28, 2009 at 3:54 PM, Yusaku Hashimoto wro

Re: GHC 6.12 + zlib + Mac OS 10.6

2009-11-29 Thread Manuel M T Chakravarty
Antoine Latter: > On Sat, Nov 28, 2009 at 3:54 PM, Yusaku Hashimoto wrote: >> I think you installed zlib without proper flags to link with 32-bit >> libraries. configuring with ./Setup configure >> --with-hsc2hs='--cc-flag=-m32 --ld-flag=-m32' should do the tricks. >> >> See also http://hackage.h

Re: GHC 6.12 + zlib + Mac OS 10.6

2009-11-29 Thread Antoine Latter
On Sun, Nov 29, 2009 at 9:08 PM, Manuel M T Chakravarty wrote: > > Which version of 6.12 are you running?  These options or manually patching > the hsc2hs wrapper should not be necessary with 6.12 anymore.  (They are only > a temporary workaround to use the old 6.10 release on Snow Leopard.) > >

Re: GHC 6.12 + zlib + Mac OS 10.6

2009-11-29 Thread Yusaku Hashimoto
This was reproduced on rc2, too. I installed ghc-6.12 rc2 by the installer. As the ticket I mentioned[1] says, The problem is the flags to build 32-bit binaries is not passed to the hsc2hs executable when the hsc2hs wrapper get any --cc parameter. Cabal passes --cc parameter to the wrapper to tell

RE: GHC 6.12 + zlib + Mac OS 10.6

2009-11-30 Thread Simon Peyton-Jones
: glasgow-haskell-users@haskell.org; Haskell Libraries | Subject: Re: GHC 6.12 + zlib + Mac OS 10.6 | | On Sat, Nov 28, 2009 at 3:54 PM, Yusaku Hashimoto wrote: | > I think you installed zlib without proper flags to link with 32-bit | > libraries. configuring with ./Setup configure | > --wi

Re: GHC 6.12 + zlib + Mac OS 10.6

2009-11-30 Thread Yusaku Hashimoto
| Sent: 28 November 2009 23:01 > | To: Yusaku Hashimoto > | Cc: glasgow-haskell-users@haskell.org; Haskell Libraries > | Subject: Re: GHC 6.12 + zlib + Mac OS 10.6 > | > | On Sat, Nov 28, 2009 at 3:54 PM, Yusaku Hashimoto > wrote: > | > I think you installed zlib witho

RE: GHC 6.12 + zlib + Mac OS 10.6

2009-11-30 Thread Duncan Coutts
On Mon, 2009-11-30 at 08:44 +, Simon Peyton-Jones wrote: > Should this go in a FAQ? For GHC? Or for a particular architecture? For ghc-6.10, yes. It'd should be a section "GHC on OSX 10.6 (Snow Leopard)" and should describe the changes required to the shell script wrappers of ghc and hsc2hs. I

RE: GHC 6.12 + zlib + Mac OS 10.6

2009-11-30 Thread Simon Peyton-Jones
c: glasgow-haskell-users@haskell.org; Haskell Libraries | Subject: RE: GHC 6.12 + zlib + Mac OS 10.6 | | On Mon, 2009-11-30 at 08:44 +, Simon Peyton-Jones wrote: | > Should this go in a FAQ? For GHC? Or for a particular architecture? | | For ghc-6.10, yes. It'd should be a section &quo

RE: GHC 6.12 + zlib + Mac OS 10.6

2009-11-30 Thread Duncan Coutts
On Mon, 2009-11-30 at 12:20 +, Simon Peyton-Jones wrote: > | For ghc-6.12, we should just fix ticket #3681. > > OK, good. But who is "we"? I think the short-term fix is just to change the hsc2hs wrapper script. So that'd be Ian. Longer term we might want to do it differently to allow a si