[PATCH] Re: HEADS UP (was Re: [commit: ghc] master: Tidy up cross-compiling (109a1e5))

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

On Thu, 24 Jan 2013 15:06:58 +0000
Simon Marlow
On 23/01/13 23:44, Sergei Trofimovich wrote:
mkGmpDerivedConstants is built for target and ran on host [attached patches for it]
Thanks, I pushed your patches today.
Cheers, Simon
I see a ghc patch in tree, but not integer-gmp one: https://github.com/ghc/packages-integer-gmp/commits/master Thanks! -- Sergei

On 25/01/13 08:55, Sergei Trofimovich wrote:
On Thu, 24 Jan 2013 15:06:58 +0000 Simon Marlow
wrote: On 23/01/13 23:44, Sergei Trofimovich wrote:
mkGmpDerivedConstants is built for target and ran on host [attached patches for it]
Thanks, I pushed your patches today.
Cheers, Simon
I see a ghc patch in tree, but not integer-gmp one:
Just pushed it, sorry about that. Cheers, Simon
participants (2)
-
Sergei Trofimovich
-
Simon Marlow