[PolyORB-users] Re: GNAT-GPL PolyORB 1.3r Red Hat 8.0 & 9.0

Anh Vo anhvofrcaus at gmail.com
Sat Feb 18 18:25:59 CET 2006


I figured out what the problem. The problem is that /usr/bin/gnatgcc,
older version of gnat-3.2, is used instead of gnat-gpl. There are two
to fix this problem. First, change the two lines in Makefile

NATIVE_ADA="gnatgcc"
CROSS_ADA="gnatgcc"

to

NATIVE_ADA="gcc"
CROSS_ADA="gcc"

Second, create a soft link gnatgcc inside /gnat-gpl/bin pointing gcc
in the gnat-gpl/bin.  I would prefer the first solution.

Is there any way to configue the Makefile to use gcc instead of gnatgcc?

AV



On 2/18/06, Anh Vo <anhvofrcaus at gmail.com> wrote:
> On 2/18/06, Jerome Hugues <hugues at infres.enst.fr> wrote:
> > Anh Vo a écrit :
> > >
> > >
> > > << In fact, it is not make, but gcc, called by support/adacompier that
> > > does not find "=./ravenscar_compatible.adc" file, which is strange.
> > > Another strange point is that it does not find
> > >
> > >     "=./ravenscar_compatible.adc" not "./ravenscar_compatible.adc" The
> > >     first name is wrong.
> > >
> > >     What is you shell ? Can you please add "-v" to the first line of
> > >     support/adacompiler ? it will make the script more verbose. >>
> > >
> > >
> > > I am using bash shell. After adding -v to the first line of
> > > support/adacompiler, here is the output  below
> >
> > [..] it outputs a lot of things .. in fact I was expecting it would
> > output the exact line, can you please add
> >
> > echo $ADA $cline$newname $cfg_pragma_arg
> >
> > just before the
> > $ADA $cline$newname $cfg_pragma_arg
> >
> > line
> >
> > > $ADA $cline$newname $cfg_pragma_arg
> > >  gnat1: cannot find configuration pragmas file
> =./ravenscar_compatible.adc
> >
> > given this error message, I really suspect a bug with the shell
> >
> > thanks,
>
> Here is the output, output before this echo not shown, is below after
> incoporating your suggestion.
> ....
> echo $ADA $cline$newname $cfg_pragma_arg
> gnatgcc -c -g -O2 -gnatfy -gnatwae -gnatpn -gnatg -I. -I.
> polyorb-annotations.adb -o tmp12290/polyorb-annotations.o
> -gnatec=./ravenscar_compatible.adc
> $ADA $cline$newname $cfg_pragma_arg
> gnat1: cannot find configuration pragmas file =./ravenscar_compatible.adc
> rm -rf tmp12290
> make[2]: *** [polyorb-annotations.lo] Error 1
> make[2]: Leaving directory
> `/home/voax/0-download/ada/2005/x86-linux/tools/polyorb/polyorb-1.3r/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/home/voax/0-download/ada/2005/x86-linux/tools/polyorb/polyorb-1.3r/src'
> make: *** [all-recursive] Error 1
>


More information about the PolyORB-users mailing list