gcc < 5 не собирается с помощью gcc >=5
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66692
[Bug ada/66692] ada form gcc-4.9 fails to compile with gcc-5.1.0 with error "undefined reference to `__gnat_runtime_finalize'"
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66692
Arnaud Charlet <charlet at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |charlet at gcc dot gnu.org
Resolution|--- |INVALID
--- Comment #1 from Arnaud Charlet <charlet at gcc dot gnu.org> ---
You need to use an older version of GNAT in order to bootstrap GNAT, and
not the other way around which isn't guaranteed to work (and indeed often
won't).