Hello!<br><br><div class="gmail_quote">2011/10/13 Antoine Latter <span dir="ltr">&lt;<a href="mailto:aslatter@gmail.com">aslatter@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
It looks like some applications will be flagged as multiarch, so maybe<br>
you&#39;ll be able to install two GHCs side-by-side with apt.<br></blockquote></div><br>I used x64 edition of Ubuntu 11.10 for a while, and was able to run both 64-bit and 32-bit GHCs.<br>Both GHCs were manually set-up (i.e. download; tar xvjf ...; ./configure --prefix=...; make install)<br>
All is needed is to install both versions of libgmp by &quot;apt-get install libgmp3-dev lib32gmp-dev&quot;<br><br>32-bit version runs ghci fine, but I actually cannot compile stuff with it.<br>Haven&#39;t looked deeply into that issue, though.<br>
The error is like the following:<br><br> *** Assembler:<br>/usr/bin/gcc -I.. -c /tmp/ghc6285_0/ghc6285_0.s -o ../Test.o -fno-stack-protector -DDONT_WANT_WIN32_DLL_SUPPORT<br>/tmp/ghc6285_0/ghc6285_0.s: Assembler messages:<br>
<br>/tmp/ghc6285_0/ghc6285_0.s:29:0:<br>     Error: invalid instruction suffix for `push&#39;<br><br>Maybe the issue can be resolved by figuring out how to target gcc for 32-bit build.<br><br>