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

Stephen Blackheath [to GHC-iPhone] likeliest.complexions.stephen at blacksapphire.com
Tue Nov 20 04:18:13 CET 2012


Stephen,

I can't tell you what that error means off the top of my head.

Here (attached) are the ghc-ios patches as they were in June 2012. Large 
amounts of it you can skip because it's iOS specific (and nowhere near 
fit to be integrated yet). Most of the stuff that's relevant to you will 
be in makefiles. Hopefully you'll find some clues there.

Some of it is radical stuff like adding of a new define called 
WhatLocalGccIsCalled. Gabor and Ian have probably solved the same 
problem differently. Another example is where I made alien work in more 
places, but Ian is (rightly) trying to phase alien out. But it sounds 
like Ian is not finished yet, so some parts of my patch might be helpful.

This is not the complete patch set. I have also made minor patches to 
base, unix and hsc2hs, and a few changes to Cabal to allow run-time 
selection of your toolchain. lukexi has offered to help with the Cabal 
changes, so I've cc'ed him in.


Steve

On 20/11/12 15:41, 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:
>
> I tried running the configure step on base by hand, passing in the build
> and target flags, and that succeeded, but now when I run make I get:
>
> CROSS_COMPILE="i486-pc-nto-qnx8.0.0-" "inplace/bin/ghc-cabal" configure
> --with-ghc="/home/singpolyma/src/ghc-7.7.20121119-src/ghc-7.7.20121119/inplace/bin/ghc-stage1"
> --with-ghc-pkg="/home/singpolyma/src/ghc-7.7.20121119-src/ghc-7.7.20121119/inplace/bin/ghc-pkg"
> --enable-library-vanilla --disable-library-profiling --disable-shared
> --disable-library-for-ghci --configure-option=CFLAGS="
> -fno-stack-protector " --configure-option=LDFLAGS=" -Wl,--hash-size=31
> -Wl,--reduce-memory-overheads  " --configure-option=CPPFLAGS="   "
> --with-gcc="/home/singpolyma/bbndk/host_10_0_9_52/linux/x86/usr/bin/i486-pc-nto-qnx8.0.0-gcc"
> --configure-option=--with-cc="/home/singpolyma/bbndk/host_10_0_9_52/linux/x86/usr/bin/i486-pc-nto-qnx8.0.0-gcc"
> --with-ar="/usr/bin/ar" --with-ranlib="true"   -- dist-install
> libraries/filepath
> Configuring filepath-1.3.0.1...
> ghc-cabal: At least the following dependencies are missing:
> base >=2 && <5
> make[1]: *** [libraries/filepath/dist-install/package-data.mk] Error 1
> make: *** [all] Error 2
>
> So, that didn't work out quite right.  I also tried making just in the
> directory for base and I get the same thing.
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ghc-ios-patches-ghc.patch
Type: text/x-patch
Size: 64720 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/iphone/attachments/20121120/48ce2332/attachment-0001.bin>


More information about the iPhone mailing list