This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
internal compiler error: verify_type failed
- From: Alex Markin <alexanius at gmail dot com>
- To: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Wed, 24 Jun 2015 17:52:42 +0300
- Subject: internal compiler error: verify_type failed
- Authentication-results: sourceware.org; auth=none
Hello.
I don't know how to reproduce this bug shortly so I will not open a
bug, but just leave information here. When building current llvm with
recent gcc I get the following internal error:
In file included from
/home/markin_a/soft/gcc-trunk-x86-64/usr/local/include/c++/6.0.0/vector:64:0,
from
/home/markin_a/soft/gcc-trunk-x86-64/usr/local/include/c++/6.0.0/bits/random.h:34,
from
/home/markin_a/soft/gcc-trunk-x86-64/usr/local/include/c++/6.0.0/random:49,
from
/home/markin_a/soft/gcc-trunk-x86-64/usr/local/include/c++/6.0.0/bits/stl_algo.h:66,
from
/home/markin_a/soft/gcc-trunk-x86-64/usr/local/include/c++/6.0.0/algorithm:62,
from
/home/markin_a/soft/llvm_trunk/include/llvm/ADT/StringRef.h:13,
from
/home/markin_a/soft/llvm_trunk/include/llvm/Support/ErrorHandling.h:18,
from /home/markin_a/soft/llvm_trunk/include/llvm/IR/User.h:26,
from
/home/markin_a/soft/llvm_trunk/include/llvm/IR/Constant.h:17,
from
/home/markin_a/soft/llvm_trunk/include/llvm/IR/GlobalValue.h:21,
from
/home/markin_a/soft/llvm_trunk/include/llvm/ExecutionEngine/JITSymbolFlags.h:17,
from
/home/markin_a/soft/llvm_trunk/include/llvm/ExecutionEngine/RuntimeDyld.h:17,
from
/home/markin_a/soft/llvm_trunk/include/llvm/ExecutionEngine/ExecutionEngine.h:18,
from
/home/markin_a/soft/llvm_trunk/lib/ExecutionEngine/Interpreter/Interpreter.h:17,
from
/home/markin_a/soft/llvm_trunk/lib/ExecutionEngine/Interpreter/Execution.cpp:14:
/home/markin_a/soft/gcc-trunk-x86-64/usr/local/include/c++/6.0.0/bits/stl_vector.h:
In instantiation of 'class std::vector<llvm::GenericValue>':
/home/markin_a/soft/llvm_trunk/include/llvm/ExecutionEngine/GenericValue.h:40:29:
required from here
/home/markin_a/soft/gcc-trunk-x86-64/usr/local/include/c++/6.0.0/bits/stl_vector.h:214:11:
error: TYPE_CANONICAL is not compatible
class vector : protected _Vector_base<_Tp, _Alloc>
^
<record_type 0x2b1b6055c5e8 GenericValue readonly type_5 type_6 VOID
align 8 symtab 1618698640 alias set -1 canonical type
0x2b1b6055c5e8 context <namespace_decl 0x2b1b56c19390 llvm>
full-name "const struct llvm::GenericValue"
n_parents=0 use_template=0 interface-unknown
pointer_to_this <pointer_type 0x2b1b607a7f18> reference_to_this
<reference_type 0x2b1b6055c690>>
<record_type 0x2b1b608419d8 value_type readonly used type_5 type_6 VOID
align 8 symtab 1619541040 alias set -1 canonical type 0x2b1b6055c5e8
fields <field_decl 0x2b1b6079ac78 IntVal
type <record_type 0x2b1b56ffdc78 APInt addressable asm_written
needs-constructing type_1 type_4 type_5 type_6 BLK
size <integer_cst 0x2b1b560e8ea0 constant 128>
unit size <integer_cst 0x2b1b560e8eb8 constant 16>
align 64 symtab 1540401264 alias set 10 canonical type
0x2b1b56ffdc78 fields <field_decl 0x2b1b5bd6a130 BitWidth> context
<namespace_decl 0x2b1b56c19390 llvm>
full-name "class llvm::APInt"
needs-constructor needs-destructor X() X(constX&)
this=(X&) sorted-fields 0x2b1b579a9c30 n_parents=0 use_template=0
interface-unknown
pointer_to_this <pointer_type 0x2b1b5709e9d8>
reference_to_this <reference_type 0x2b1b5702e5e8> chain <type_decl
0x2b1b56fcbed8 APInt>>
decl_3 VOID file
/home/markin_a/soft/llvm_trunk/include/llvm/ExecutionEngine/GenericValue.h
line 38 col 9
align 1 offset_align 1 context <record_type 0x2b1b6020b9d8 GenericValue>
chain <field_decl 0x2b1b6079abe0 D.235924 type <union_type
0x2b1b607a1e70 ._244>
VOID file
/home/markin_a/soft/llvm_trunk/include/llvm/ExecutionEngine/GenericValue.h
line 31 col 3
align 1 offset_align 1 context <record_type 0x2b1b6020b9d8
GenericValue> chain <type_decl 0x2b1b6079a390 GenericValue>>> context
<namespace_decl 0x2b1b56c19390 llvm>
full-name "const value_type"
n_parents=0 use_template=0 interface-unknown reference_to_this
<reference_type 0x2b1b60841a80>>
/home/markin_a/soft/gcc-trunk-x86-64/usr/local/include/c++/6.0.0/bits/stl_vector.h:214:11:
internal compiler error: verify_type failed
0xf60434 verify_type(tree_node const*)
../../gcc_trunk/gcc/tree.c:13450
0x9648c4 gen_type_die_with_usage
../../gcc_trunk/gcc/dwarf2out.c:20655
0x965005 gen_type_die_with_usage
../../gcc_trunk/gcc/dwarf2out.c:20753
0x967ea7 gen_formal_types_die
../../gcc_trunk/gcc/dwarf2out.c:18200
0x95f2f7 gen_subprogram_die
../../gcc_trunk/gcc/dwarf2out.c:19057
0x96358a gen_decl_die
../../gcc_trunk/gcc/dwarf2out.c:21404
0x96244a gen_member_die
../../gcc_trunk/gcc/dwarf2out.c:20347
0x96244a gen_struct_or_union_type_die
../../gcc_trunk/gcc/dwarf2out.c:20431
0x96244a gen_tagged_type_die
../../gcc_trunk/gcc/dwarf2out.c:20632
0x965395 gen_type_die_with_usage
../../gcc_trunk/gcc/dwarf2out.c:20794
0x9632be gen_decl_die
../../gcc_trunk/gcc/dwarf2out.c:21427
0x9640dc dwarf2out_decl
../../gcc_trunk/gcc/dwarf2out.c:21877
0x96445b dwarf2out_type_decl
../../gcc_trunk/gcc/dwarf2out.c:21587
0xc0742f rest_of_type_compilation(tree_node*, int)
../../gcc_trunk/gcc/passes.c:351
0x699a53 finish_struct_1(tree_node*)
../../gcc_trunk/gcc/cp/class.c:6714
0x66b4af instantiate_class_template_1
../../gcc_trunk/gcc/cp/pt.c:9675
0x66b4af instantiate_class_template(tree_node*)
../../gcc_trunk/gcc/cp/pt.c:9715
0x706a4b complete_type(tree_node*)
../../gcc_trunk/gcc/cp/typeck.c:140
0x60b74b grokdeclarator(cp_declarator const*, cp_decl_specifier_seq*,
decl_context, int, tree_node**)
../../gcc_trunk/gcc/cp/decl.c:10792
0x6aba36 grokfield(cp_declarator const*, cp_decl_specifier_seq*,
tree_node*, bool, tree_node*, tree_node*)
../../gcc_trunk/gcc/cp/decl2.c:879
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.
My gcc:
$ gcc-trunk-x86_64 --version
gcc-trunk-x86_64 (GCC) 6.0.0 20150611 (experimental)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
llvm was configured with the following command:
$ ../../llvm_trunk/configure CC=gcc-trunk-x86_64 CXX=g++-trunk-x86_64
--enable-optimized --enable-cxx1y --enable-targets=x86,x86_64,sparc
--enable-profiling CFLAGS="-static -O3" CXXFLAGS="-static -O3"
My machine:
$ uname -a
Linux ubuntu64 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC
2012 x86_64 x86_64 x86_64 GNU/Linux
Kind regards,
Markin Alex