[Bug lto/54705] New: Building gcc with ADA and LTO results in an internal error
mikulas at artax dot karlin.mff.cuni.cz
gcc-bugzilla@gcc.gnu.org
Tue Sep 25 14:23:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54705
Bug #: 54705
Summary: Building gcc with ADA and LTO results in an internal
error
Classification: Unclassified
Product: gcc
Version: 4.7.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: mikulas@artax.karlin.mff.cuni.cz
When gcc is being built with ada and lto, it fails with an internal error:
ada/b_gnat1.adb:196:7: warning: type of 'locking_policy' does not match
original declaration [enabled by default]
In file included from /usr/include/unistd.h:563:0,
from ../../gcc-4.7.2/gcc/ada/cstreams.c:268,
from /usr/include/stdio.h:188,
from <built-in>:10,
from <built-in>:5,
from <built-in>:78,
from :9:
../../gcc-4.7.2/gcc/ada/init.c:96:7: note: previously declared here
lto1: internal compiler error: in output_die, at dwarf2out.c:8469
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: /usr/src/gcc-4.7.2-build-5/./prev-gcc/g++ returned 1 exit status
/usr/local/bin/ld: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[3]: *** [gnat1] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from :1725:0:
../../gcc-4.7.2/gcc/lto/lto-lang.c: In function 'lto_define_builtins':
../../gcc-4.7.2/gcc/lto/lto-lang.c:587:0: note: variable tracking size limit
exceeded with -fvar-tracking-assignments, retrying without
rm gcc.pod
make[3]: Leaving directory `/usr/src/gcc-4.7.2-build-5/gcc'
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory `/usr/src/gcc-4.7.2-build-5'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/usr/src/gcc-4.7.2-build-5'
make: *** [all] Error 2
Command exited with non-zero status 2
How to reproduce:
Use Debian 6, install gcc-4.4 and gnat-4.4 from the repository.
Build gcc 4.7.2 with this script:
#!/bin/sh
set -e
CFLAGS="-O3 -march=barcelona -fomit-frame-pointer"
export CFLAGS
CXXFLAGS="$CFLAGS"
export CXXFLAGS
../gcc-4.7.2/configure \
--prefix=/usr/local/gcc/ \
--enable-lto \
--with-system-zlib \
--enable-languages=ada,c \
--enable-multilib \
--with-multilib-list=m32,m64 \
&&
make -j8 BOOT_CFLAGS="$CFLAGS -flto"
More information about the Gcc-bugs
mailing list