alire-project / GNAT-FSF-builds

Builds of the GNAT Ada compiler from FSF GCC releases
MIT License
32 stars 9 forks source link

Add scripts for MacOS X for ARM compiler #61

Closed reznikmm closed 3 months ago

reznikmm commented 4 months ago

This PR builds gnat-aarch64-darwin-13.2.0-x.tar.gz for MacOS X ARM.

I've dropped gprbuild part, because I can't build it. Version 24.0 fails (even on x86_64) because the script calls gcc -static while linking gprbuild executable and MacOS X doesn't support static linking. To be investigated.

Cross should work for arm and riscv when gprbuild is ready. But avrlib fails fails with machineaarch64-apple' not recognized. However cross archives have name collision: both x86_64 and arm64 have namegnat-riscv64-elf-darwin-13.2.0-1.tar.gz`

SPARK depends on gnatcoll/gprbuild also.

XRef: https://github.com/alire-project/alire/discussions/1492

reznikmm commented 3 months ago

I've found the reason why gprbuild 24 doesn't build on MacOS and I have a patch for this.