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

Stephen Paul Weber singpolyma at singpolyma.net
Tue Nov 20 03:30:41 CET 2012


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:

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"  
--flags=integer-simple --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/base
Configuring base-4.6.0.0...
configure: WARNING: unrecognized options: --with-compiler, --with-gcc
checking for gcc...  
/home/singpolyma/bbndk/host_10_0_9_52/linux/x86/usr/bin/i486-pc-nto-qnx8.0.0-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...  checking whether we are cross 
compiling... configure: error: in 
`/home/singpolyma/src/ghc-7.7.20121119-src/ghc-7.7.20121119/libraries/base':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
make[1]: *** [libraries/base/dist-install/package-data.mk] Error 1
make: *** [all] Error 2


-- 
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