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

Anh Vo anhvofrcaus at gmail.com
Sat Feb 18 21:18:06 CET 2006


The make process went much further toward the end. However, it fails
when processing *.idl as shown in the captured out error message. Note
that there was no problem before this point. That is why I did not
show the output.

...
make[4]: Entering directory
`/home/voax/0-download/ada/2005/x86-linux/tools/polyorb/polyorb-1.3r/compilers/idlac'
Making all in testsuite
make[5]: Entering directory
`/home/voax/0-download/ada/2005/x86-linux/tools/polyorb/polyorb-1.3r/compilers/idlac/testsuite'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory
`/home/voax/0-download/ada/2005/x86-linux/tools/polyorb/polyorb-1.3r/compilers/idlac/testsuite'
make[5]: Entering directory
`/home/voax/0-download/ada/2005/x86-linux/tools/polyorb/polyorb-1.3r/compilers/idlac'
gnatmake -m -I. -I. idlac -cargs -g -O2 -gnatfy -gnatwae -gnatpn -gnatg -bargs
gnatmake: "idlac" up to date.
make[5]: Leaving directory
`/home/voax/0-download/ada/2005/x86-linux/tools/polyorb/polyorb-1.3r/compilers/idlac'
make[4]: Leaving directory
`/home/voax/0-download/ada/2005/x86-linux/tools/polyorb/polyorb-1.3r/compilers/idlac'
for i in ./CosNotification.idl ./CosNotifyChannelAdmin.idl
./CosNotifyComm.idl ./CosNotifyFilter.idl; do \
    ../../../compilers/idlac/idlac $i -I. -I../../../idls/CORBA_IDL
-I../../../idls/CORBA_PIDL -I../../../idls/Interop
-I../../../idls/Misc -I../../../idls/cos/event; \
done
CosNotification.idl:10:8: warning: extra tokens at end of #endif directive
CosNotification.idl:16:8: warning: extra tokens at end of #endif directive
CosNotifyChannelAdmin.idl:19:8: warning: extra tokens at end of #endif directive
CosNotifyChannelAdmin.idl:25:8: warning: extra tokens at end of #endif directive
CosNotification.idl:10:8: warning: extra tokens at end of #endif directive
CosNotification.idl:16:8: warning: extra tokens at end of #endif directive
CosNotifyFilter.idl:15:8: warning: extra tokens at end of #endif directive
CosNotifyFilter.idl:21:8: warning: extra tokens at end of #endif directive
../../../idls/CORBA_IDL/orb.idl:28:55: missing terminating ' character
../../../idls/CORBA_IDL/orb.idl:56:29: missing terminating ' character
../../../idls/CORBA_IDL/orb.idl:57:10: missing terminating ' character
../../../idls/CORBA_IDL/orb.idl:62:67: missing terminating ' character
In file included from ../../../idls/CORBA_IDL/orb.idl:123:
../../../idls/CORBA_IDL/CORBA_InterfaceRepository.idl:596:31: missing
terminating ' character
../../../idls/CORBA_IDL/CORBA_InterfaceRepository.idl:819:8: warning:
extra tokens at end of #endif directive
../../../idls/CORBA_IDL/orb.idl:182:8: warning: extra tokens at end of
#endif directive
<standard input>:0:0 Fatal: idlac: preprocessor failed

raised ERRORS.FATAL_ERROR : errors.adb:149
CosNotifyComm.idl:15:8: warning: extra tokens at end of #endif directive
CosNotifyComm.idl:21:8: warning: extra tokens at end of #endif directive
CosNotification.idl:10:8: warning: extra tokens at end of #endif directive
CosNotification.idl:16:8: warning: extra tokens at end of #endif directive
../../../idls/cos/event/CosEventComm.idl:10:8: warning: extra tokens
at end of #endif directive
../../../idls/cos/event/CosEventComm.idl:16:8: warning: extra tokens
at end of #endif directive
CosNotifyFilter.idl:15:8: warning: extra tokens at end of #endif directive
CosNotifyFilter.idl:21:8: warning: extra tokens at end of #endif directive
../../../idls/CORBA_IDL/orb.idl:28:55: missing terminating ' character
../../../idls/CORBA_IDL/orb.idl:56:29: missing terminating ' character
../../../idls/CORBA_IDL/orb.idl:57:10: missing terminating ' character
../../../idls/CORBA_IDL/orb.idl:62:67: missing terminating ' character
In file included from ../../../idls/CORBA_IDL/orb.idl:123:
../../../idls/CORBA_IDL/CORBA_InterfaceRepository.idl:596:31: missing
terminating ' character
../../../idls/CORBA_IDL/CORBA_InterfaceRepository.idl:819:8: warning:
extra tokens at end of #endif directive
../../../idls/CORBA_IDL/orb.idl:182:8: warning: extra tokens at end of
#endif directive
<standard input>:0:0 Fatal: idlac: preprocessor failed

raised ERRORS.FATAL_ERROR : errors.adb:149
make[3]: *** [cosnotification-adminpropertiesadmin.ads] Error 1
make[3]: Leaving directory
`/home/voax/0-download/ada/2005/x86-linux/tools/polyorb/polyorb-1.3r/idls/cos/notification'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/voax/0-download/ada/2005/x86-linux/tools/polyorb/polyorb-1.3r/idls/cos'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/voax/0-download/ada/2005/x86-linux/tools/polyorb/polyorb-1.3r/idls'
make: *** [all-recursive] Error 1


On 2/18/06, Anh Vo <anhvofrcaus at gmail.com> wrote:
> 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