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

Erik de Castro Lopo mle+hs at mega-nerd.com
Tue Mar 16 17:18:50 EDT 2010


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.

In Debian (and Ubuntu), the debootstrap and schroot packages are two
tools that make the creation and management of chroots trivial.

HTH,
Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/


More information about the Haskell-Cafe mailing list