GNAT/RTEMS 4.5.0 build error in bit_ada

Ralf Corsepius corsepiu at faw.uni-ulm.de
Sat Aug 23 07:53:08 UTC 2003


On Sat, 2003-08-23 at 06:14, Dave Richards wrote:
> I am attempting to build GNAT/RTEMS from source on a Red Hat Linux 8.0
> system (i386).  I have been working through the GNAT/RTEMS Getting Started
> document, step by step, and am having trouble at the point of running the
> bit_ada script.  It appears that the GNAT compiler resident in RH8.0 (which
> identifies itself as gcc-gnat-3.2) is unable to build the cross-compiler.
I know - cross building gnat ;-(

> The target I selected is i386, i.e.:
> 
> 	./bit_ada i386
bit_ada has been abandoned for quite some time and probably is broken.

> The build output is below.  Any ideas as to why this is happening? 
I don't know what exactly is happening in your case. Given the
"maturity" of cross-building gnat it can be literally anything (Read:
building gnat is a PITA).

Basically, you must have a sufficently new version of a native gnat
installed when trying to build a cross-gnat. To be save,  you should
have at least a native gnat of the same version you are trying to build
cross. (I.e. if building i386-rtems-gcc-gnat-3.2.3 you should have at
least gcc-gnat-3.2.3 installed. Slightly older versions sometimes also
work, but you can't rely on this.

>  I have
> never succeessfully built GNAT from source either natively or as a
> cross-compiler, so I'm a bit in the dark here.
Since you are on RH-8.0, I would recommend you to using the rpms.
Joel's binary rpms (build on RH-7.3) probably work on RH-8.0,
alternatively, you could try building the rpms from src.rpm (Install all
of RH's gnat before).

Ralf





More information about the users mailing list