[Haskell-cafe] Cross-compilation x64 -> x86 easier under Ubuntu 11.10 with multiarch?
Michael Lazarev
lazarev.michael at gmail.com
Thu Oct 13 19:49:36 CEST 2011
Hello!
2011/10/13 Antoine Latter <aslatter at gmail.com>
> It looks like some applications will be flagged as multiarch, so maybe
> you'll be able to install two GHCs side-by-side with apt.
>
I used x64 edition of Ubuntu 11.10 for a while, and was able to run both
64-bit and 32-bit GHCs.
Both GHCs were manually set-up (i.e. download; tar xvjf ...; ./configure
--prefix=...; make install)
All is needed is to install both versions of libgmp by "apt-get install
libgmp3-dev lib32gmp-dev"
32-bit version runs ghci fine, but I actually cannot compile stuff with it.
Haven't looked deeply into that issue, though.
The error is like the following:
*** Assembler:
/usr/bin/gcc -I.. -c /tmp/ghc6285_0/ghc6285_0.s -o ../Test.o
-fno-stack-protector -DDONT_WANT_WIN32_DLL_SUPPORT
/tmp/ghc6285_0/ghc6285_0.s: Assembler messages:
/tmp/ghc6285_0/ghc6285_0.s:29:0:
Error: invalid instruction suffix for `push'
Maybe the issue can be resolved by figuring out how to target gcc for 32-bit
build.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20111013/d83c7dd6/attachment.htm>
More information about the Haskell-Cafe
mailing list