Porting GHC to QNXNTO ARM

Stephen Paul Weber <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <[email protected]>
I've decided to move on to the essential ARM port of my GHC cross-compiler.  
I got pretty far.

./configure --target=arm-unknown-nto-qnx8.0.0eabi --build=i686-linux-gnu 
--host=i686-linux-gnu

I needed to patch to pass through ld as well as gcc:

diff --git a/rules/build-package-data.mk b/rules/build-package-data.mk
index 0cc8c96..38b5457 100644
--- a/rules/build-package-data.mk
+++ b/rules/build-package-data.mk
@@ -82,6 +82,7 @@ endif
  endif
  
  $1_$2_CONFIGURE_OPTS += --with-gcc="$$(CC_STAGE$3)"
+$1_$2_CONFIGURE_OPTS += --with-ld="$$(CC_STAGE$3)"

I also needed to install LLVM, since there is no native code generator for 
ARM.  However, it seems like something in the build system is not properly 
aware that I should be building for ARM, since the errors I'm getting (see 
<http://pastie.org/pastes/5503341/text>) seem to contain x86 assembly.

Is there another build setting I need to change?

-- 
Stephen Paul Weber, @singpolyma
See <http://singpolyma.net> for how I prefer to be contacted
edition right joseph
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.