The RTS needs to be built with the cross compiler you’re going to use. For the moment, the only Mac-based arm-eabi cross compiler is the GNAT GPL 2014 version which I uploaded over in GnuAda - I’m working on a GCC 4.9.1 version right now.
DO NOT install the GNAT GPL compiler on top of GCC 4.9.1!!!
However, there’s no reason you shouldn’t install it in its own location (or even, I think, over the GNAT GPL 2014 from AdaCore Libre).
The trick is to have your PATH set up so that it finds gnatls from the host compiler (GCC 4.9.1) and arm-eabi-gnatls from the cross compiler: e.g. I have
If you do this, the GCC 4.9.1 gprbuild should be able to handle choosing the correct compiler (it’s a little tricker with GPS, but that’s another question!)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
srini said, in [tickets:#1],
Related
Tickets:
#1The RTS needs to be built with the cross compiler you’re going to use. For the moment, the only Mac-based arm-eabi cross compiler is the GNAT GPL 2014 version which I uploaded over in GnuAda - I’m working on a GCC 4.9.1 version right now.
DO NOT install the GNAT GPL compiler on top of GCC 4.9.1!!!
However, there’s no reason you shouldn’t install it in its own location (or even, I think, over the GNAT GPL 2014 from AdaCore Libre).
The trick is to have your
PATH
set up so that it findsgnatls
from the host compiler (GCC 4.9.1) andarm-eabi-gnatls
from the cross compiler: e.g. I haveIf you do this, the GCC 4.9.1
gprbuild
should be able to handle choosing the correct compiler (it’s a little tricker with GPS, but that’s another question!)