Gnat cross-compilation toolchain for target "aarch64-linux" (from host "x86_64-linux")

Hello,

Anyone out there has (or can provide) a GNAT FSF toolchain build/release (preferably for the latest 14.2 version) for cross-compilation, for an “aarch64-linux” target, from a “x86_64-linux” host?

I am trying to generate one using the alire-project instructions and scripts (GitHub - alire-project/GNAT-FSF-builds: Builds of the GNAT Ada compiler from FSF GCC releases), but haven’t managed to achieve a successful completion yet.

I don’t know about an Alire cross toolchain for that target, but on Debian stable (bookworm) you can apt install gnat-12-aarch64-linux-gnu. GNAT 14 is available in Debian testing (trixie).

You are right, that will probably be the safest path. Thank you for the quick answer and for taking the blindfold off my eyes (in fact, if the solution had been a dog, it would have bitten me for seeking unnecessary complications)

AFAIK, aarch64 build targets just became available in Github’s CI, so hopefully we can see native toolchains being available in Alire by default. But, it may take some time…

Well… That was quick :slight_smile: Aarch64 linux GNAT by mosteo · Pull Request #1440 · alire-project/alire-index · GitHub It is now merged!

1 Like