[PolyORB-users] GNAT-GPL PolyORB 1.3r Red Hat 8.0 & 9.0
Anh Vo
anhvofrcaus at gmail.com
Fri Feb 17 23:52:24 CET 2006
<< 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
...
gnatbind -aO./ -I. -I. -I- -x idlac.ali
gnatlink idlac.ali
make[3]: Leaving directory
`/home/voax/0-download/2005/x86-linux/tools/polyorb/polyorb-1.3r
/compilers/idlac'
make[2]: Leaving directory
`/home/voax/0-download/2005/x86-linux/tools/polyorb/polyorb-1.3r
/compilers/idlac'
make[2]: Entering directory
`/home/voax/0-download/2005/x86-linux/tools/polyorb/polyorb-1.3r/compilers'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory
`/home/voax/0-download/2005/x86-linux/tools/polyorb/polyorb-1.3r/compilers'
make[1]: Leaving directory
`/home/voax/0-download/2005/x86-linux/tools/polyorb/polyorb-1.3r/compilers'
Making all in src
make[1]: Entering directory
`/home/voax/0-download/2005/x86-linux/tools/polyorb/polyorb-1.3r/src'
Making all in .
make[2]: Entering directory
`/home/voax/0-download/2005/x86-linux/tools/polyorb/polyorb-1.3r/src'
/bin/sh ../libtool --tag=CC --mode=compile ../support/adacompiler -c -g -O2
-gnatfy -gnatwae -gnatpn -gnatg -I. -I. polyorb-annotations.adb
../support/adacompiler -c -g -O2 -gnatfy -gnatwae -gnatpn -gnatg -I. -I.
polyorb-annotations.adb -o polyorb-annotations.o
#! /bin/sh -v
# Wrapper for GNAT
set -e
NATIVE_ADA="gnatgcc"
CROSS_ADA="gnatgcc"
SED="/bin/sed"
GREP="grep"
RM="rm"
case "`basename "$0"`" in
native-*)
ADA="${NATIVE_ADA}"
;;
*)
ADA="${CROSS_ADA}"
;;
esac
basename "$0"
while [ $# -gt 1 ]; do
case "$1" in
*.ad[sb])
src="$1"
srcdir=`dirname "$src"`
if [ "x$srcdir" = "x" ]
then
srcdir=.
fi
cline="$cline$1 "
;;
-I*)
include_path="$include_path:`echo $1 | ${SED} -e 's/^-I//'`"
cline="$cline$1 "
;;
-aI*)
cline="$cline"`echo "$1" | ${SED} -e 's/^-aI/-I/'`" "
include_path="$include_path:`echo $1 | ${SED} -e 's/^-aI//'`"
;;
-aO*)
;;
*)
cline="$cline$1 "
;;
esac
shift
done
echo $1 | ${SED} -e 's/^-I//'
echo $1 | ${SED} -e 's/^-I//'
dirname "$src"
tmp="tmp$$"
trap "${RM} -rf $tmp" 0 1 2 3 15
mkdir $tmp
newname=$tmp/`echo $1 | ${SED} -e 's,^\.libs/\(.*\).lo$,\1.o,'`
echo $1 | ${SED} -e 's,^\.libs/\(.*\).lo$,\1.o,'
add_cfg_pragma_file() {
case "${cfg_pragma_arg}" in
*-gnatec=$1*)
;;
*)
cfg_pragma_arg="${cfg_pragma_arg} -gnatec=$1"
;;
esac
}
_IFS="${IFS}"
IFS=": "
for srcdir in `echo $include_path`; do
srcdir=`echo ${srcdir} | ${SED} -e 's,^./,,'`
for cfg_pragma_file in ${srcdir}/*.adc; do
if [ ! -f "${cfg_pragma_file}" ]; then
# Case where no configuration pragmas file exists
# in srcdir: cfg_pragma_file still contains the glob
# pattern.
continue
fi
if ${GREP} "INCLUDE:" ${cfg_pragma_file} > /dev/null 2>&1; then
default_include=false
else
default_include=true
fi
pat="EXCLUDE: `basename $src`"
if ${GREP} "${pat}" ${cfg_pragma_file} > /dev/null 2>&1; then
no_specific_exclude=false
else
no_specific_exclude=true
fi
pat="INCLUDE: `basename $src`"
if ${GREP} "${pat}" $cfg_pragma_file > /dev/null 2>&1 ||
(${default_include} && ${no_specific_exclude})
then
# If unit included explicitly, or (unit not excluded explicitly,
# and file applicability is not specified by explicit inclusion)
add_cfg_pragma_file ${cfg_pragma_file}
fi
done
done
echo $include_path
echo ${srcdir} | ${SED} -e 's,^./,,'
basename $src
basename $src
basename $src
basename $src
echo ${srcdir} | ${SED} -e 's,^./,,'
basename $src
basename $src
basename $src
basename $src
IFS="${_IFS}"
$ADA $cline$newname $cfg_pragma_arg
gnat1: cannot find configuration pragmas file =./ravenscar_compatible.adc
rm -rf tmp2849
make[2]: *** [polyorb-annotations.lo] Error 1
make[2]: Leaving directory
`/home/voax/0-download/2005/x86-linux/tools/polyorb/polyorb-1.3r/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/voax/0-download/2005/x86-linux/tools/polyorb/polyorb-1.3r/src'
make: *** [all-recursive] Error 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/polyorb-users/attachments/20060217/5bafb76a/attachment.html
More information about the PolyORB-users
mailing list