Stephen, In ARM we don't have ghci support. Some parts of the build require it, particularly dph. In GHC-iOS I commented out the last four lines of 'packages' that pertain to dph. The top-level ghc.mk may also contain other tweaks. Steve On 20/11/12 12:02, Stephen Paul Weber wrote:
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 :)