richfelker / musl-cross-make

Simple makefile-based build for musl cross compiler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ada support?

1ma opened this issue · comments

The config.mak.dist states that the only languages supported are C and C++, and indeed Ada is broken as-is.

However I've been able to build GCC 9.4.0 targeting x86_64-linux-musl with Ada support by applying a subset of patches from the Alpine Linux GCC port. I don't know how stable it is, but I've been able to build several well-known Ada projects with this toolchain (XmlAda, GPRBuild, GNATColl and Alire), and they all seem to work.

Are you interested in these patches?

Yes, I am. It's hard to bootstrap (you need a host compiler that supports Ada to begin with) which means you can't use an existing lineage of MCM toolchains to build it, but it would still be worthwhile to have.