Skip to content

Can not find true complier when Cross-Complie GHC

I am trying to complie a cross complie ghc on ubuntu for another platform. But when I run the ./configure, GHC can only find my local gcc\binutils.

./configure shown me like this:

image

However, my real version of gcc is this:

image

I believe that I use a correct configure:

./configure --target=${CROSS_TARGET} CC=${CROSS_TARGET}-gcc LD=${CROSS_TARGET}-ld NM=${CROSS_TARGET}-nm --with-objdump=${CROSS_TARGET}-objdump

So how it happened? And how to solve it?

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information