Can't build Ada
Iain Sandoe
iain@sandoe.co.uk
Sun Nov 27 11:54:41 GMT 2022
Hi Paul,
> On 26 Nov 2022, at 18:06, Paul Koning via Gcc <gcc@gcc.gnu.org> wrote:
>
>> On Nov 26, 2022, at 11:42 AM, Arnaud Charlet via Gcc <gcc@gcc.gnu.org> 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.
For the record, I have now pushed an updated development branch (based off upstream r13-4309-g309e2d95e3b9) which builds c-family, fortran and Ada on
- x86_64 [Darwin20] (with cross and native cross to aarch64), using XC CLT 12.5
- x86_64 Rosetta 2 [Darwin21] bootstrap and cross, using XC CLT 14.1RC + macOSX12 sdk.
- aarch64 [Darwin21] native (assuming you have an existing aarch64 darwin GCC bootstrap), using XC CLT 14.1RC + macOSX12 sdk.***
.. I’ve fixed up the DFP and testcases (although clang does not support _DecimalXX on aarch64 Darwin, so maybe it’s of limited use) .. but at least that source of testsuite noise is eliminated.
cheers
Iain
*** note that we have some issues with the macOS13 SDK still to be resolved so make sure you use the 12 version on macOS 12 (at least).
More information about the Gcc
mailing list