> On 26 Nov 2022, at 16:42, Arnaud Charlet <char...@adacore.com> wrote:
>
>
>>> The current statement (https://gcc.gnu.org/install/prerequisites.html) is:
>>>
>>> GNAT
>>> In order to build GNAT, the Ada compiler, you need a working GNAT compiler
>>> (GCC version 5.1 or later).
>>>
>>> so, if 5.1 is not working, then perhaps a PR is in order.
>>
>> I will do that, if the "shell in Rosetta" thing doesn't cure the problem.
>
> You won’t need to, the version of gnat you are using is recent enough, you
> need to follow Ian’s instructions to the letter. The Ada 2022 code is a red
> herring and is only problematic when you build a cross with a non matching
> native, not when building a native compiler.
One additional question/point - which branch are you trying to build the cross
from?
I am sure it will not work from upstream master.
Unfortunately, owing to lack of free time… aarch64-darwin is not yet completely
ready to upstream, so folks are using the development branch here:
https://github.com/iains/gcc-darwin-arm64 (which I will update later, based on
the master version mentioned earlier; if testing goes OK).
Iain.