Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-enable gcc-ada #1964

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

thasti
Copy link

@thasti thasti commented Dec 3, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant