[Haskell-iPhone] Hey Stephen - more on cross compiling

Stephen Paul Weber singpolyma at singpolyma.net
Tue Nov 20 00:02:06 CET 2012


Somebody claiming to be Stephen Blackheath [to GHC-iPhone] wrote:
>Gabor Greif had some cross-compiler changes checked in to mainline recently 
>(see email below), so you should be able to get started with your 
>Blackberry port. I'll re-do GHC-iOS against the latest master.
>On 20/11/12 09:53, Gabor Greif wrote:
>> Though I did not yet have a chance to test it. I'd suggest that you
>> simply "./configure" with --target=ios --build=macos --host=macos
>> (substitute correct triples) and report the results.
>>
>> I believe --with-gcc=<cross-gcc> is enough. Possibly 'nm' must be
>> around that correctly lists the symbols created by <cross-gcc>.

First test.  I had to edit aclocal.m4:

-	dragonfly|osf1|hpux|linuxaout|freebsd2|cygwin32|gnu|nextstep2|nextstep3|sunos4|ultrix|irix|aix)
+	dragonfly|osf1|hpux|linuxaout|freebsd2|cygwin32|gnu|nextstep2|nextstep3|sunos4|ultrix|irix|aix|nto-qnx)
@@
     $2="freebsd"
     ;;
+  nto-qnx*)
+    $2="nto-qnx"
+    ;;

Then `perl boot` and run:

	./configure --target=i486-pc-nto-qnx8.0.0 --build=i686-linux-gnu --host=i686-linux-gnu --with-gcc=/home/singpolyma/bbndk/host_10_0_9_52/linux/x86/usr/bin/i486-pc-nto-qnx8.0.0-gcc

Success!  It says <http://pastie.org/5403570>.
I try to run `make` and it says <http://pastie.org/5403589>.
Am I missing a step?

Thanks for all the help so far :)

-- 
Stephen Paul Weber, @singpolyma
See <http://singpolyma.net> for how I prefer to be contacted
edition right joseph



More information about the iPhone mailing list