[Clfs-support] Ada Compile Error--Anybody Seen This Before?

Layne Cook laynelinux at pcisys.net
Thu Apr 14 19:11:20 PDT 2011


Thanks Joe and Steve for your comments on an earlier post "Is a
Cross-Toolchain with Ada Possible using CLFS Procedure?". I'm continuing
using your suggestions.

One problem I keep running up against is the following Ada build error.
It says it's a warning, but it stops the build, even when configured
with --enable-werror=no. I also get it whether I'm building a cross or
native gcc.  No luck finding patches on the web.  Here it is:

==========< start snippet >===========
gcc -c -g -O2      -gnatpg -gnata -I- -I. -Iada
-I../../gcc-4.2.4/gcc/ada ../../gcc-4.2.4/gcc/ada/atree.adb -o
ada/atree.o
atree.adb:507:32: warning: lower bound test optimized away
atree.adb:507:32: warning: value is known to be in range
.
. < LOTS of identical "warnings" on many similar lines omitted >
.
atree.adb:6644:35: warning: lower bound test optimized away
atree.adb:6644:35: warning: value is known to be in range
make[1]: *** [ada/atree.o] Error 1
make[1]: Leaving directory `/mnt/native/sources/gcc-build/gcc'
make: *** [all-gcc] Error 2
===========< end snippet >============
This was using native gcc/gnat 4.4.2 to build a native gcc/gnat 4.2.4.
Can anybody offer a clue?




More information about the Clfs-support mailing list