GCC version for RTEMS 6? (Can Ada be used?)

Karel Gardas karel at functional.vision
Wed Apr 27 18:19:38 UTC 2022


On 4/27/22 20:12, Frank Kühndel wrote:
> Hi Karel,
> 
> On 4/27/22 19:46, Karel Gardas wrote:
>> On 4/27/22 19:25, Frank Kühndel wrote:
>>> I do not need ADA but ADA may be worth considering. With GCC 10 one
>>> needed to have a GNAT 10 compiler installed to build the tools incl.
>>> --with_ada. I presume, one would need a GNAT 12 to build ADA with the
>>> GCC 12 sources? The current Fedora 35 has GNAT 11. All other distros I
>>> know of have GNAT 10 at best (I have not checked on tumbleweed yet).
>>> OpenSUSE may get ADA 12 from an unusual repro???
>>
>> On https://gcc.gnu.org/install/prerequisites.html there is a text:
>>
>> "
>> GNAT
>>
>>      In order to build GNAT, the Ada compiler, you need a working GNAT
>> compiler (GCC version 5.1 or later).
>>
>> ...
>> "
>>
>> is it outdated? If so, this would require some bugreport to gcc team?
> 
> The text says too: "Other native compiler versions may work but this is
> not guaranteed and will typically fail with hard to understand
> compilation errors during the build."
> 

Hmm, I see, thanks for correcting me, but your citation is missing one 
important detail:

"In order to build a cross compiler, it is strongly recommended to 
install the new compiler as native first, and then use it to build the 
cross compiler."

So I'm afraid this looks like ball is on the RSB side which should first 
build native compiler of required version -- for this you may use older 
GNAT (at least GCC 5.1) and then use exactly this compiler to build a 
cross-compiler.

E.g. GNAT 10 native -> GNAT 12 native -> GNAT 12 cross-compiler (RTEMS).

Is that correct?

Thanks!
Karel


More information about the devel mailing list