Re: Porting GHC to QNXNTO ARM

Stephen Paul Weber <[email protected]> Tue, 8 Jan 2013 10:23:58 -0500
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <20130108152358.GA1845@singpolyma-svelti>
--===============3578773610983864828==
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature"; boundary="YZ5djTAD1cGYuMQK"
Content-Disposition: inline


--YZ5djTAD1cGYuMQK
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Somebody claiming to be Stephen Paul Weber wrote:
>I've decided to move on to the essential ARM port of my GHC=20
>cross-compiler.  I got pretty far.
>
>I also needed to install LLVM, since there is no native code generator for=
=20
>ARM.  However, it seems like something in the build system is not properly=
=20
>aware that I should be building for ARM, since the errors I'm getting (see=
=20
><http://pastie.org/pastes/5503341/text>) seem to contain x86 assembly.

This seems to have worked:

diff --git a/compiler/main/DriverPipeline.hs b/compiler/main/DriverPipeline=
=2Ehs
index fd5694f..80a7b99 100644
--- a/compiler/main/DriverPipeline.hs
+++ b/compiler/main/DriverPipeline.hs
@@ -1331,9 +1331,9 @@ runPhase LlvmOpt input_fn dflags
      output_fn <- phaseOutputFilename LlvmLlc
      io $ SysTools.runLlvmOpt dflags
                 ([ SysTools.FileOption "" input_fn,
                      SysTools.Option "-o",
-                    SysTools.FileOption "" output_fn]
+                    SysTools.FileOption "" output_fn, SysTools.Option "-mt=
riple=3Darm-unknown-nto-qnx8.0.0eabi"]
                  ++ optFlag
                  ++ [SysTools.Option tbaa]
                  ++ map SysTools.Option lo_opts)

Shouldn't we just always pass through the target triple?

--=20
Stephen Paul Weber, @singpolyma
See <http://singpolyma.net> for how I prefer to be contacted
edition right joseph

--YZ5djTAD1cGYuMQK
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCAAGBQJQ7DoOAAoJENEcKRHOUZzeCGoQAKJ7Qr0Nm8UG514YA0EHnZwH
BYQue8ArRL5kVF8Ikbm8JjXRPIoP03XsbCaSRLJVhq1srEDAGyXGD1eG/JpzlxHG
I0z5IBi88rplr0dwdZnGRtAJ2i/yJ0zFAW1Uba72vha4zQj6buKSUT3YawcqbhWD
sKXILmaXJlIpc4D+MycJDaBA46p0dInG4/+DJqzxGgyf5rmStxMxJuzd1G1YWpxn
NUDzSNsLU4QA6g2/7fPRqsb7qwC/PiMmL1QBkVb//TI3IOVFSy2tBZzWRH+8XYxN
IlDgDYMHIqJqpnBM+HfOfHLS7EuahauB+yR8xBgj4Cn+tbyrDkmXWjhUKkcKqNA8
K7+vqJQ8i1Y2/hP8vnGoKAL9ZBjcliepThnKQKIiBygZeY5l1gBdn3jIsYR1i38r
sU6dc7Ihebn5iNmMuaCsGty19GvxprRMIJ7/DABgFyjGF3g+NzRJNzFpldUllFca
C3eRWcEz8awVDgcXTvROVsAuOvTnofGGMBgqXfF9xTA+GUmE2sRhbMqFv5DfQ/or
MSGOkr+2UM4hJVu5q+6lafQjvABIQpJutkL/kJ/EBZvuygqo9Lgv2VhmcmhfZejm
P3MYljPrzeXjpVy4F6T4oWoQ7E4fXP/myCtN1SA9bXsPsz1EAMxxSneSIwMeVxkH
CXBuUFHOHDPAraMoVU7Z
=ylnl
-----END PGP SIGNATURE-----

--YZ5djTAD1cGYuMQK--


--===============3578773610983864828==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

--===============3578773610983864828==--