You can *run* a 32-bit GHC on a 64-bit Linux install and generate 32-bit
binaries, but it's a bit inconvenient. You usually have to pass the flags
-optc-m32 -optl-m32 -opta-m32
to the 32-bit GHC every time you run it.
We don't support building cross-compilers right now, although much of
the infrastructure is in place and in principle it wouldn't be too hard
to make it work.
Cheers,
Simon
On 13/05/2010 12:48, Chris Nicholls wrote:
Thanks, That works ok now.
However, the stuff I'd been playing with was mainly inside the code
generator and doesn't seem to work well with the 64 version.
Is there a way I can build the 32 bit version on my machine?
I've tried playing with variations on
./configure --host=x86_64-unknown-linux --target=i386-unknown-linux
--build=i386-unknown-linux
But I get told "cannot run test program while cross compiling".
Sorry, I feel like this is a bit of a stupid question...
Chris
On Sat, May 1, 2010 at 4:01 PM, Ian Lynagh <[email protected]
<mailto:[email protected]>> wrote:
Hi Chris,
On Sat, May 01, 2010 at 02:56:46AM +0100, Chris Nicholls wrote:
>
> I'm running a 64 bit linux box [...]
>
> Any ideas? GHC used to build fine, but I upgraded my os from 32
bit last
> week and it hasn't been happy since. I could downgrade again, but
if there's
> a better solution then I'd be grateful.
It sounds like you need to install an x86_64 build of GHC, either from
your OS's package, or from a bindist from the GHC webpage:
http://www.haskell.org/ghc/download_ghc_6_12_2.html
Thanks
Ian
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc