This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug bootstrap/67158] New: ICE dwarf2out.c:19910/gen_inlined_subroutine_die, at : Compiling gcc6.0 with gcc6.0 -flto


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67158

            Bug ID: 67158
           Summary: ICE dwarf2out.c:19910/gen_inlined_subroutine_die, at :
                    Compiling gcc6.0 with gcc6.0 -flto
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dilyan.palauzov at aegee dot org
  Target Milestone: ---

I run

/git/gcc/configure --enable-host-shared --enable-threads=posix
--with-arch=haswell --enable-__cxa_atexit --enable-languages=c,c++,lto,jit
--enable-targets=all --enable-nls --with-linker-hash-style=gnu
--with-system-zlib --disable-multilib --prefix=/usr/local/gcc60

/usr/local/gcc60/etc/config.site contains:

export CC=/usr/local/gcc60/bin/gcc
export CXX=/usr/local/gcc60/bin/g++
export   CFLAGS="-pipe -O3 -flto -fno-fat-lto-objects"
export CXXFLAGS="${CFLAGS}"
export LDFLAGS="-Wl,-O1,-z,relro,-s -flto=4"

where/usr/local/gcc60/bin contains a freshly compiled gcc6.0 (but without
passing -flto when building it)

and still at stage1:
$ make
[ -f stage_final ] || echo stage3 > stage_final
make[1]: Entering directory '/src/gcc/gcc4'
make[2]: Entering directory '/src/gcc/gcc4'
make[3]: Entering directory '/src/gcc/gcc4'
rm -f stage_current
make[3]: Leaving directory '/src/gcc/gcc4'
make[2]: Leaving directory '/src/gcc/gcc4'
make[2]: Entering directory '/src/gcc/gcc4'
make[3]: Entering directory '/src/gcc/gcc4/libiberty'
make[4]: Entering directory '/src/gcc/gcc4/libiberty/testsuite'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/src/gcc/gcc4/libiberty/testsuite'
make[3]: Leaving directory '/src/gcc/gcc4/libiberty'
make[3]: Entering directory '/src/gcc/gcc4/lto-plugin'
make  all-am
make[4]: Entering directory '/src/gcc/gcc4/lto-plugin'
make[4]: Leaving directory '/src/gcc/gcc4/lto-plugin'
make[3]: Leaving directory '/src/gcc/gcc4/lto-plugin'
make[3]: Entering directory '/src/gcc/gcc4/intl'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/src/gcc/gcc4/intl'
make[3]: Entering directory '/src/gcc/gcc4/build-x86_64-pc-linux-gnu/libiberty'
make[4]: Entering directory
'/src/gcc/gcc4/build-x86_64-pc-linux-gnu/libiberty/testsuite'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory
'/src/gcc/gcc4/build-x86_64-pc-linux-gnu/libiberty/testsuite'
make[3]: Leaving directory '/src/gcc/gcc4/build-x86_64-pc-linux-gnu/libiberty'
make[3]: Entering directory
'/src/gcc/gcc4/build-x86_64-pc-linux-gnu/fixincludes'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory
'/src/gcc/gcc4/build-x86_64-pc-linux-gnu/fixincludes'
make[3]: Entering directory '/src/gcc/gcc4/build-x86_64-pc-linux-gnu/libcpp'
test -f config.h || (rm -f stamp-h1 && make stamp-h1)
make[3]: Leaving directory '/src/gcc/gcc4/build-x86_64-pc-linux-gnu/libcpp'
make[3]: Entering directory '/src/gcc/gcc4/libbacktrace'
make  all-am
make[4]: Entering directory '/src/gcc/gcc4/libbacktrace'
true  DO=all multi-do # make
make[4]: Leaving directory '/src/gcc/gcc4/libbacktrace'
make[3]: Leaving directory '/src/gcc/gcc4/libbacktrace'
make[3]: Entering directory '/src/gcc/gcc4/libcpp'
test -f config.h || (rm -f stamp-h1 && make stamp-h1)
make[3]: Leaving directory '/src/gcc/gcc4/libcpp'
make[3]: Entering directory '/src/gcc/gcc4/libdecnumber'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/src/gcc/gcc4/libdecnumber'
make[3]: Entering directory '/src/gcc/gcc4/gcc'
/usr/local/gcc60/bin/g++ -std=gnu++98   -g -DIN_GCC -fPIC    -fno-exceptions
-fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-fno-common  -DHAVE_CONFIG_H -DGENERATOR_FILE -fno-PIE -static-libstdc++
-static-libgcc -Wl,-O1,-z,relro,-s -flto=4 -no-pie -o build/genmatch \
    build/genmatch.o ../build-x86_64-pc-linux-gnu/libcpp/libcpp.a
build/errors.o build/vec.o build/hash-table.o
../build-x86_64-pc-linux-gnu/libiberty/pic/libiberty.a
/git/gcc/libcpp/macro.c: In function â_cpp_create_definitionâ:
/git/gcc/libcpp/macro.c:3268:1: internal compiler error: in
gen_inlined_subroutine_die, at dwarf2out.c:19910
 }
 ^
0x6ecde1 gen_inlined_subroutine_die
        /git/gcc/gcc/dwarf2out.c:19909
0x6ecde1 gen_block_die
        /git/gcc/gcc/dwarf2out.c:20966
0x6ecf6a decls_for_scope
        /git/gcc/gcc/dwarf2out.c:21039
0x6eca8a gen_lexical_block_die
        /git/gcc/gcc/dwarf2out.c:19892
0x6eca8a gen_block_die
        /git/gcc/gcc/dwarf2out.c:20969
0x6ecf6a decls_for_scope
        /git/gcc/gcc/dwarf2out.c:21039
0x6ecbcf gen_block_die
        /git/gcc/gcc/dwarf2out.c:20972
0x6ecf6a decls_for_scope
        /git/gcc/gcc/dwarf2out.c:21039
0x6ecbcf gen_block_die
        /git/gcc/gcc/dwarf2out.c:20972
0x6ecf6a decls_for_scope
        /git/gcc/gcc/dwarf2out.c:21039
0x6ecbcf gen_block_die
        /git/gcc/gcc/dwarf2out.c:20972
0x6ecf6a decls_for_scope
        /git/gcc/gcc/dwarf2out.c:21039
0x6eca8a gen_lexical_block_die
        /git/gcc/gcc/dwarf2out.c:19892
0x6eca8a gen_block_die
        /git/gcc/gcc/dwarf2out.c:20969
0x6ecf6a decls_for_scope
        /git/gcc/gcc/dwarf2out.c:21039
0x6ecbcf gen_block_die
        /git/gcc/gcc/dwarf2out.c:20972
0x6ecf6a decls_for_scope
        /git/gcc/gcc/dwarf2out.c:21039
0x6eda6e gen_subprogram_die
        /git/gcc/gcc/dwarf2out.c:19188
0x6f2d84 gen_decl_die
        /git/gcc/gcc/dwarf2out.c:21442
0x6f3d3f dwarf2out_decl
        /git/gcc/gcc/dwarf2out.c:21915
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[4]: *** [/tmp/ccJAAnYp.ltrans5.ltrans.o] Error 1
make[4]: *** Waiting for unfinished jobs....
lto-wrapper: fatal error: make returned 2 exit status
compilation terminated.
/usr/local/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
Makefile:2641: recipe for target 'build/genmatch' failed
make[3]: *** [build/genmatch] Error 1
make[3]: Leaving directory '/src/gcc/gcc4/gcc'
Makefile:4376: recipe for target 'all-stage1-gcc' failed
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory '/src/gcc/gcc4'
Makefile:19773: recipe for target 'stage1-bubble' failed
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory '/src/gcc/gcc4'
Makefile:908: recipe for target 'all' failed
make: *** [all] Error 2

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]