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

Joe Ciccone jciccone at gmail.com
Sat Apr 16 14:40:22 PDT 2011


On Thu, 2011-04-14 at 20:11 -0600, Layne Cook wrote: 
> 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?

Probably due to the distance between those 2 versions. See if you can
get a copy of a 4.2 gnat or use gcc 4.4 in your build. Patches are
available at http://svn.cross-lfs.org/svn/repos/patches/gcc/ for all the
different gcc series we've had in the book in the past.

Thanks

-- 
Joe Ciccone




More information about the Clfs-support mailing list