User:Landgraf/Building Gnat ARM

From FedoraProject

Jump to: navigation, search

Problem

THe problem is classic chicken-egg problem. The gnat bootstrap has to be built with native gnat compilier, the compiler must have current or previous version (gnat 4.8 can be built using gnat 4.7 and so on). However Fedora ARM doesn't contain gnat compilers at all.

Solution

We've build native compiler using cross-compilation and rebuild gcc using the compiler on the native platform. RPMs can be found here: fedorapeople. To make it in koji gnat* packages should be installed before gnat is build. The compliler should successfully rebuild gcc itself and packages from the Ada stack (xmlada and gprbuild at least).

Changes required

No major changes needed:

  • Add arm or %{arm} to the ada complilers list.
  • For current version (gcc-4.2) apply the patch