Menu

Matching compiler with RTS

2014-12-23
2014-12-23
  • Simon Wright

    Simon Wright - 2014-12-23

    srini said, in [tickets:#1],

    My gnatmake is version 4.9.1. Can I "install" on top of this? Or should i look for gnat 4.7.4?

     

    Related

    Tickets: #1

  • Simon Wright

    Simon Wright - 2014-12-23

    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

    PATH=/opt/gcc-4.9.1/bin:/opt/gnat-gpl-2014-arm-eabi/bin:$PATH
    

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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.