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 lto/78908] New: lto1: internal compiler error: in lto_read_decls, at lto/lto.c:1814


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

            Bug ID: 78908
           Summary: lto1: internal compiler error: in lto_read_decls, at
                    lto/lto.c:1814
           Product: gcc
           Version: 6.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: charles.frasch at gmail dot com
  Target Milestone: ---

Created attachment 40406
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40406&action=edit
lto_read_decls_reduce_ut.ii

"lto1: internal compiler error: in lto_read_decls, at lto/lto.c:1814" linking
the attached file with gcc-6.3.0

Reproduce with:
g++-6.3.0 -std=c++14 -Wfatal-errors -w -flto=4 -fuse-linker-plugin -O2 -DNDEBUG
 lto_read_decls_reduce_ut.ii -o lto_read_decls_reduce_ut.o


Output:
lto1: internal compiler error: in lto_read_decls, at lto/lto.c:1814
0xccbb85 lto_read_decls
        ../../gcc-6.3.0/gcc/lto/lto.c:1814
0xccbb85 lto_file_finalize(lto_file_decl_data*, lto_file*) [clone .isra.106]
        ../../gcc-6.3.0/gcc/lto/lto.c:2045
0xccbb85 lto_create_files_from_ids
        ../../gcc-6.3.0/gcc/lto/lto.c:2055
0xccbb85 lto_file_read
        ../../gcc-6.3.0/gcc/lto/lto.c:2096
0xccbb85 read_cgraph_and_symbols
        ../../gcc-6.3.0/gcc/lto/lto.c:2806
0xcc784d lto_main()
        ../../gcc-6.3.0/gcc/lto/lto.c:3310
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.
lto-wrapper: fatal error: /home/cfrasch/local/bin/g++ returned 1 exit status
compilation terminated.
/usr/bin/ld: lto-wrapper failed
collect2: error: ld returned 1 exit status


Build configuration:
Using built-in specs.
COLLECT_GCC=/home/cfrasch/local/bin/g++
COLLECT_LTO_WRAPPER=/home/cfrasch/local/bin/../libexec/gcc/x86_64-linux-gnu/6.3.0/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../gcc-6.3.0/configure -v --enable-languages=c,c++
--disable-multilib --with-build-config=bootstrap-lto --program-suffix=-6.3.0
--enable-shared --without-included-gettext --enable-threads=posix --enable-nls
--enable-nls --enable-gnu-unique-object --with-system-zlib --enable-multiarch
--disable-werror --with-arch-32=i686 --with-abi=m64 --with-tune=generic
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu --with-pkgversion=Thesys 6.3.0-1 ubuntu 14.04
Thread model: posix
gcc version 6.3.0 (Thesys) 


Thanks

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