[Haskell-iPhone] Hey Stephen - more on cross compiling
Stephen Paul Weber
singpolyma at singpolyma.net
Tue Nov 20 04:33:30 CET 2012
Somebody claiming to be Stephen Paul Weber wrote:
>Somebody claiming to be Stephen Paul Weber wrote:
>>Somebody claiming to be Stephen Paul Weber wrote:
>>>But it seems like maybe the configure flags are just not all
>>>being passed through to integer-gmp, so maybe it could work as
>>>well. Not sure what the tradeoffs are?
>>
>>Seems like it's not just integer-gmp that isn't being passed the
>>configure flags:
Sorry for being so noisy :) More progress (ish):
I added this to rules/build-package-data.mk :
$1_$2_CONFIGURE_OPTS += --configure-option=--target=i486-pc-nto-qnx8.0.0
--configure-option=--host=i686-linux-gnu
And it got much further. Then there was a hiccup in the unix library, but
I'm pretty sure that was a QNX thing, so I patched that in what seemed a
sensible way.
Then I got a weird error about test_array not being constant in
libraries/base/System/CPUTime.hsc, so I hacked that on line 190 to #if 0
Then, maybe related to that hack, maybe not, I got:
ghc-stage1: panic! (the 'impossible' happened)
(GHC version 7.7.20121119 for i386-unknown-nto-qnx):
expectJust initTcInteractive
but on the next run that did not happen again. I now get:
libraries/base/Foreign/C/Types.hs:164:405:
Not in scope: type constructor or class `HTYPE_DOUBLE'
libraries/base/Foreign/C/Types.hs:164:478:
Not in scope: type constructor or class `HTYPE_DOUBLE'
libraries/base/Foreign/C/Types.hs:164:557:
Not in scope: type constructor or class `HTYPE_DOUBLE'
make[1]: *** [libraries/base/dist-install/build/Foreign/C/Types.o] Error 1
make: *** [all] Error 2
So I hack ./libraries/base/include/HsBaseConfig.h to use Double for
HTYPE_DOUBLE and Float for HTYPE_FLOAT
And... I have a stage1 build! I have compiled and tested a hello world app
on my BB10 simulator. So, it would be nice to clean some of this up, and
I'm not sure I made all the right choices, but it is minimally worked :D
--
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