[PATCH] Re: HEADS UP (was Re: [commit: ghc] master: Tidy up cross-compiling (109a1e5))
Sergei Trofimovich
slyich at gmail.com
Thu Jan 24 00:44:33 CET 2013
On Thu, 17 Jan 2013 13:00:44 +0000
Simon Marlow <marlowsd at gmail.com> wrote:
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-integer-gmp-improve-cross-compiling-support-mkGmpDer.patch
Type: text/x-patch
Size: 7065 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/libraries/attachments/20130124/9af23f78/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-mkGmpDerivedConstants-binary-gone-away.patch
Type: text/x-patch
Size: 688 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/libraries/attachments/20130124/9af23f78/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/libraries/attachments/20130124/9af23f78/attachment.pgp>
More information about the Libraries
mailing list