[Haskell-cafe] Re: compiling 32 bits haskell program on 64 bits linux

Vincent Hanquez tab at snarc.org
Wed Mar 17 06:09:33 EDT 2010

On Tue, Mar 16, 2010 at 06:27:42PM +0100, Christian Maeder wrote:
> I think you need to install the 32bit ghc first, because you'll need all
> the 32bit haskell libs. At least I was able to use the 32bit ghc
> (version 6.8.2) on a 64 bit linux by changing the script in the bin
> directory from
>   exec $GHCBIN $TOPDIROPT ${1+"$@"}
> to
>   exec $GHCBIN -optc-m32 -opta-m32 -optl-m32 $TOPDIROPT ${1+"$@"}
> (no -fvia-C)

That seems to do what i want, I'll look into this solution.

Thanks you,

More information about the Haskell-Cafe mailing list