Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR (re-)enables gcc-ada support in Arch Linux ARM. I found myself with the need for it when trying to compile ghdl, a popular open-source VHDL simulator written in Ada.
First off, I have seen #1557, where this was previously considered in 2018. Since I know it's a big ask and more work than just enabling the extra package in the PKGBUILD, I tried (and succeeded) bootstrapping the package at least on aarch64 (Apple M2). Since gcc-ada itself requires gcc-ada to compile, I started using suitable foreign GCC binaries provided by Fedora.
The bootstrap flow I have used is provided here: https://gist.github.com/thasti/60ea4c72b085a01ae98fe07a1934c7bd
A few remarks: In fact, I found that the gcc PKGBUILD on master does not currently compile (even without any changes), since some of the patches do not apply cleanly. Therefore (and to minimize the number of variables in the results), my approach was to build the same releases (glibc, binutils, gcc) as currently provided in the binary ALARM repositories. With the resulting packages, I was able to successfully build a working gcc & gcc-ada and can compile and use ghdl.
The patch provided in the gist above cleanly applies to 7343534 - and results in this commit: https://github.com/thasti/PKGBUILDs/tree/enable_gcc_ada. To get from from that branch to this PR, I merely solved the conflicts arising from rebasing the branch onto master, but was not able to build-test them at that stage any longer (due to the GCC patches not applying cleanly).
I hope the addition of gcc-ada can be considered for an upcoming Archlinux ARM release. If there's anything else I could provide to help with that effort, please let me know!