
On Thu, 17 Jan 2013 13:00:44 +0000
Simon Marlow
Cross-compilers please take note:
On 17/01/13 12:57, Simon Marlow wrote:
Before ------
To build a cross-compiler: ./configure --target=<..>
To compile a foreign GHC: ./configure --host=<..> --target=<..>
Now ---
To build a cross-compiler: ./configure --target=<..> And set "Stage1Only=YES" in mk/build.mk
To compile a foreign GHC: ./configure --target=<..>
Cheers, Simon
Looks great! Tried a while ago with the following setup: * --tagret=ia64-unknown-linux-gnu * "Stage1Only=YES" * host compiler is ghc-7.6.1 (unregisterised build) to get real cross-compiler and found out the following issues: mkGmpDerivedConstants is built for target and ran on host [attached patches for it] make install fails as it 'forgets' to install proper ghc-pkg in $(${cross}-ghc --print-libdir)/bin/ But the resulting cross-compiler was able to build working hello world! -- Sergei