public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/54705] New: Building gcc with ADA and LTO results in an internal error
@ 2012-09-25 14:23 mikulas at artax dot karlin.mff.cuni.cz
  2012-09-26  8:28 ` [Bug lto/54705] ICE during custom LTO bootstrap with Ada enabled ebotcazou at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: mikulas at artax dot karlin.mff.cuni.cz @ 2012-09-25 14:23 UTC (permalink / raw)
  To: gcc-bugs


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"


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-09-28  9:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-25 14:23 [Bug lto/54705] New: Building gcc with ADA and LTO results in an internal error mikulas at artax dot karlin.mff.cuni.cz
2012-09-26  8:28 ` [Bug lto/54705] ICE during custom LTO bootstrap with Ada enabled ebotcazou at gcc dot gnu.org
2012-09-26 23:12 ` mikulas at artax dot karlin.mff.cuni.cz
2012-09-26 23:16 ` mikulas at artax dot karlin.mff.cuni.cz
2012-09-27 21:35 ` ebotcazou at gcc dot gnu.org
2012-09-28  9:54 ` ebotcazou at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).