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

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Wed Mar 17 17:50:53 EDT 2010

On Mar 17, 2010, at 06:08 , Vincent Hanquez wrote:
> On Wed, Mar 17, 2010 at 08:18:50AM +1100, Erik de Castro Lopo wrote:
>> Vincent Hanquez wrote:
>>> I was looking for a way to generate 32 bits haskell binary on a 64  
>>> bits linux.
>> Once absolutely reliable and foolproof way of doing this is to run a
>> 32 bit chroot within your 64 bit system and then then install the 32
>> bit vesion of GHC in the chroot.
> That's what i do on a personal system, but we're looking for a way  
> that doesn't requires
> root priviledge/chroot to integrate into an openembedded (target is  
> i386) type build.

Follow the directions for Haskell on Snow Leopard; the 64-bit version  
doesn't work there yet, so the install instructions force it into 32- 
bit mode.  (This involves putting -m32 options in strategic places, so  
it should work on any Intel platform.)

brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20100317/d4e9883e/PGP.bin

More information about the Haskell-Cafe mailing list