[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cross-building GHC

From: Nikita Karetnikov
Subject: Re: Cross-building GHC
Date: Thu, 14 Mar 2013 23:12:09 +0400

> You mean it _tries_ to use it, because it’s not available in chroot
> builds, right?

It'll try to use '/usr/bin/ld' if I run 'unset COMPILER_PATH'.  I guess
that it's trying to autodetect the right linker during './configure'.

However, if I run


to specify the location of subprograms, it'll complain about
unrecognized opcodes.  For example:

configure: Building in-tree ghc-pwd
/tmp/ghc30831_0/ghc30831_0.s: Assembler messages:

     Error: Unrecognized opcode `cmpl $92,3(%esi)'

     Error: Unrecognized opcode `jne .LcF1'

> Perhaps it needs both a native GCC and a cross-GCC (ditto for ‘ld’), no?
> (For instance because ghc-pwd is a program to run during the build, so
> it needs to be a native program.)

I think that it's the reason for the above messages, but I can't say for

> Does it have --with-target-gcc or similar in addition to --with-gcc?

No.  Is there a workaround (e.g., envvars)?

Attachment: pgpxodblmbaa8.pgp
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]