GNAT/GCC 4.2 build problem on FreeBSD-CURRENT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Since FreeBSD imported GCC 4.2 into it's current branch I
am no longer able to build any release or snapshot of
GNAT/GCC 4.2, 4.1 builds fine.

Some info on the system:
------------------------

# uname -a
FreeBSD bsd7.xxx.net 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Thu Aug 23 18:37:34 CEST 2007 root@xxxxxxxxxxxx:/usr/obj/usr/src/sys/GENERIC i386
# gcc -v
Using built-in specs.
Target: i386-undermydesk-freebsd
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070719  [FreeBSD]

Build ends with:
----------------

# gnattools2
gmake -C ../gcc/ada/tools -f ../Makefile \^M
"CC=../../xgcc -B../../" "CFLAGS=-O2 -O2 -fno-strict-aliasing -pipe " "ADAFLAGS=-gnatpg -gnata" "INCLUDES=-I. -I.. -I../.. -I/usr/ports/lang/gnat-gcc42/work/gcc-4. ../../gnatchop ../../gnat ../../gnatkr ../../gnatls ../../gnatprep ../../gnatxref ../../gnatfind ../../gnatname ../../gnatclean ../../gprmake gmake[3]: Entering directory `/usr/ports/lang/gnat-gcc42/work/build/gcc/ada/tools' ../../gnatmake -c -I../rts -I. -I/usr/ports/lang/gnat-gcc42/work/gcc-4.2-20070822/gcc/ada gnatchop --GCC="../../xgcc -B../../ -O2 -O2 -fno-strict-aliasing -pipe -
Exception name: STORAGE_ERROR
Message: stack overflow or erroneous memory access

gnatmake: INTERNAL ERROR. Please report.^M
gmake[3]: *** [../../gnatchop] Error 4
gmake[3]: Leaving directory `/usr/ports/lang/gnat-gcc42/work/build/gcc/ada/tools'
gmake[2]: *** [gnattools-native] Error 2
gmake[2]: Leaving directory `/usr/ports/lang/gnat-gcc42/work/build/gnattools'
gmake[1]: *** [all-gnattools] Error 2
gmake[1]: Leaving directory `/usr/ports/lang/gnat-gcc42/work/build'
gmake: *** [bootstrap-lean] Error 2
*** Error code 2

Stop in /usr/ports/lang/gnat-gcc42.

Reduced problem:
----------------

# cd /usr/ports/lang/gnat-gcc42/work/build/gcc/ada/tools
# ../../gnatmake -I../rts x
Exception name: STORAGE_ERROR
Message: stack overflow or erroneous memory access

gnatmake: INTERNAL ERROR. Please report.

Interesting thing:
------------------

# ../../xgcc -B../../ -O2 -fno-strict-aliasing -pipe -gnatpg -gnata -c -I../rts -I. /usr/ports/lang/gnat-gcc42/work/gcc-4.2-20070822/gcc/ada/gnatchop.adb
# ls gnatch*
gnatchop.ali    gnatchop.o

So it must be gnatmake:
-----------------------

# find ../rts | wc -l
2123 # mkdir xx # mv ../rts/*.o ../rts/*.ali ../rts/[i-z]* xx/
# find ../rts | wc -l
549 # ../../gnatmake -I../rts x fatal error, run-time library not installed correctly cannot locate file system.ads gnatmake: *** make failed.

Can somebody please help me with this?

--

Regards,
Karel Miklav

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux