[llvm-bugs] [Bug 38172] New: Building of LLVM with expensive checks fails with libstdc++-8-dev:amd64 8.1.0-10
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Jul 15 06:41:23 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=38172
Bug ID: 38172
Summary: Building of LLVM with expensive checks fails with
libstdc++-8-dev:amd64 8.1.0-10
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: lebedev.ri at gmail.com
CC: llvm-bugs at lists.llvm.org
Expensive checks enable -D_GLIBCXX_DEBUG
And tablegen fails, with messages like:
/build/llvm-build-Clang6-release$ ninja -j1
[1/3099] Building IntrinsicImpl.inc...
FAILED: include/llvm/IR/IntrinsicImpl.inc.tmp
cd /build/llvm-build-Clang6-release &&
/build/llvm-build-Clang6-release/bin/llvm-tblgen -gen-intrinsic-impl -I
/build/llvm/include/llvm/IR -I /build/llvm/include
/build/llvm/include/llvm/IR/Intrinsics.td -o
include/llvm/IR/IntrinsicImpl.inc.tmp -d include/llvm/IR/IntrinsicImpl.inc.d
/usr/bin/../lib64/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/debug/safe_container.h:83:
Error: attempt to self move assign.
Objects involved in the operation:
sequence "this" @ 0x0x7fe883407a78 {
}
#0 0x0000000000458401 __interceptor_backtrace.part.117
(/build/llvm-build-Clang6-release/bin/llvm-tblgen+0x458401)
#1 0x00007fe88751aaf2 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
/build/llvm/lib/Support/Unix/Signals.inc:490:13
#2 0x00007fe887514874 llvm::sys::RunSignalHandlers()
/build/llvm/lib/Support/Signals.cpp:68:18
#3 0x00007fe88751b1bf SignalHandler(int)
/build/llvm/lib/Support/Unix/Signals.inc:343:3
#4 0x00007fe886f328e0 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x128e0)
#5 0x00007fe886a3df3b gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x35f3b)
#6 0x00007fe886a3f2f1 abort (/lib/x86_64-linux-gnu/libc.so.6+0x372f1)
#7 0x00007fe886e2677d __strtof_l
(/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x8e77d)
#8 0x0000000000863179 swap<llvm::MVT::SimpleValueType *>
/usr/bin/../lib64/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/bits/move.h:193:19
#9 0x0000000000863179 _M_swap_data
/usr/bin/../lib64/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/bits/stl_vector.h:112:0
#10 0x0000000000863179 _M_move_assign
/usr/bin/../lib64/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/bits/stl_vector.h:1680:0
#11 0x0000000000863179 operator=
/usr/bin/../lib64/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/bits/stl_vector.h:601:0
#12 0x0000000000863179 std::__debug::vector<llvm::MVT::SimpleValueType,
std::allocator<llvm::MVT::SimpleValueType>
>::operator=(std::__debug::vector<llvm::MVT::SimpleValueType,
std::allocator<llvm::MVT::SimpleValueType> >&&)
/usr/bin/../lib64/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/debug/vector:231:0
#13 0x0000000000862a1d operator=
/build/llvm/utils/TableGen/CodeGenIntrinsics.h:40:10
#14 0x0000000000862a1d
llvm::CodeGenIntrinsic::operator=(llvm::CodeGenIntrinsic&&)
/build/llvm/utils/TableGen/CodeGenIntrinsics.h:27:0
#15 0x0000000000861c88 swap<llvm::CodeGenIntrinsic>
/usr/bin/../lib64/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/bits/move.h:195:11
#16 0x0000000000861c88 void
std::iter_swap<__gnu_debug::_Safe_iterator<__gnu_cxx::__normal_iterator<llvm::CodeGenIntrinsic*,
std::__cxx1998::vector<llvm::CodeGenIntrinsic,
std::allocator<llvm::CodeGenIntrinsic> > >,
std::__debug::vector<llvm::CodeGenIntrinsic,
std::allocator<llvm::CodeGenIntrinsic> > >,
__gnu_debug::_Safe_iterator<__gnu_cxx::__normal_iterator<llvm::CodeGenIntrinsic*,
std::__cxx1998::vector<llvm::CodeGenIntrinsic,
std::allocator<llvm::CodeGenIntrinsic> > >,
std::__debug::vector<llvm::CodeGenIntrinsic,
std::allocator<llvm::CodeGenIntrinsic> > >
>(__gnu_debug::_Safe_iterator<__gnu_cxx::__normal_iterator<llvm::CodeGenIntrinsic*,
std::__cxx1998::vector<llvm::CodeGenIntrinsic,
std::allocator<llvm::CodeGenIntrinsic> > >,
std::__debug::vector<llvm::CodeGenIntrinsic,
std::allocator<llvm::CodeGenIntrinsic> > >,
__gnu_debug::_Safe_iterator<__gnu_cxx::__normal_iterator<llvm::CodeGenIntrinsic*,
std::__cxx1998::vector<llvm::CodeGenIntrinsic,
std::allocator<llvm::CodeGenIntrinsic> > >,
std::__debug::vector<llvm::CodeGenIntrinsic,
std::allocator<llvm::CodeGenIntrinsic> > >)
/usr/bin/../lib64/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/bits/stl_algobase.h:148:0
#17 0x0000000000861189 ~_Safe_iterator_base
/usr/bin/../lib64/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/debug/safe_base.h:100:36
#18 0x0000000000861189 ~_Safe_iterator
/usr/bin/../lib64/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/debug/safe_iterator.h:86:0
#19 0x0000000000861189 void
std::shuffle<__gnu_debug::_Safe_iterator<__gnu_cxx::__normal_iterator<llvm::CodeGenIntrinsic*,
std::__cxx1998::vector<llvm::CodeGenIntrinsic,
std::allocator<llvm::CodeGenIntrinsic> > >,
std::__debug::vector<llvm::CodeGenIntrinsic,
std::allocator<llvm::CodeGenIntrinsic> > >,
std::mersenne_twister_engine<unsigned long, 32ul, 624ul, 397ul, 31ul,
2567483615ul, 11ul, 4294967295ul, 7ul, 2636928640ul, 15ul, 4022730752ul, 18ul,
1812433253ul>&>(__gnu_debug::_Safe_iterator<__gnu_cxx::__normal_iterator<llvm::CodeGenIntrinsic*,
std::__cxx1998::vector<llvm::CodeGenIntrinsic,
std::allocator<llvm::CodeGenIntrinsic> > >,
std::__debug::vector<llvm::CodeGenIntrinsic,
std::allocator<llvm::CodeGenIntrinsic> > >,
__gnu_debug::_Safe_iterator<__gnu_cxx::__normal_iterator<llvm::CodeGenIntrinsic*,
std::__cxx1998::vector<llvm::CodeGenIntrinsic,
std::allocator<llvm::CodeGenIntrinsic> > >,
std::__debug::vector<llvm::CodeGenIntrinsic,
std::allocator<llvm::CodeGenIntrinsic> > >,
std::mersenne_twister_engine<unsigned long, 32ul, 624ul, 397ul, 31ul,
2567483615ul, 11ul, 4294967295ul, 7ul, 2636928640ul, 15ul, 4022730752ul, 18ul,
1812433253ul>&&&)
/usr/bin/../lib64/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/bits/stl_algo.h:3844:0
#20 0x000000000083c57c ~_Safe_iterator
/usr/bin/../lib64/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/debug/safe_iterator.h:86:11
#21 0x000000000083c57c
sort<__gnu_debug::_Safe_iterator<__gnu_cxx::__normal_iterator<llvm::CodeGenIntrinsic
*, std::__cxx1998::vector<llvm::CodeGenIntrinsic,
std::allocator<llvm::CodeGenIntrinsic> > >,
std::__debug::vector<llvm::CodeGenIntrinsic,
std::allocator<llvm::CodeGenIntrinsic> > >, (lambda at
/build/llvm/utils/TableGen/CodeGenTarget.cpp:517:14)>
/build/llvm/include/llvm/ADT/STLExtras.h:871:0
#22 0x000000000083c57c
llvm::CodeGenIntrinsicTable::CodeGenIntrinsicTable(llvm::RecordKeeper const&,
bool) /build/llvm/utils/TableGen/CodeGenTarget.cpp:516:0
#23 0x0000000000a91e32 (anonymous
namespace)::IntrinsicEmitter::run(llvm::raw_ostream&, bool)
/build/llvm/utils/TableGen/IntrinsicEmitter.cpp:62:25
#24 0x0000000000a9a645 _M_data
/usr/bin/../lib64/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/bits/basic_string.h:176:28
#25 0x0000000000a9a645 _M_is_local
/usr/bin/../lib64/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/bits/basic_string.h:211:0
#26 0x0000000000a9a645 _M_dispose
/usr/bin/../lib64/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/bits/basic_string.h:220:0
#27 0x0000000000a9a645 ~basic_string
/usr/bin/../lib64/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/bits/basic_string.h:657:0
#28 0x0000000000a9a645 ~IntrinsicEmitter
/build/llvm/utils/TableGen/IntrinsicEmitter.cpp:28:0
#29 0x0000000000a9a645 llvm::EmitIntrinsicImpl(llvm::RecordKeeper&,
llvm::raw_ostream&, bool) /build/llvm/utils/TableGen/IntrinsicEmitter.cpp:853:0
#30 0x0000000000c382dc (anonymous
namespace)::LLVMTableGenMain(llvm::raw_ostream&, llvm::RecordKeeper&)
/build/llvm/utils/TableGen/TableGen.cpp:0:5
#31 0x00007fe886ff7b9e llvm::TableGenMain(char*, bool (*)(llvm::raw_ostream&,
llvm::RecordKeeper&)) /build/llvm/lib/TableGen/Main.cpp:109:7
#32 0x0000000000c3742e main /build/llvm/utils/TableGen/TableGen.cpp:247:10
#33 0x00007fe886a2ab17 __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x22b17)
#34 0x00000000003d702a _start
(/build/llvm-build-Clang6-release/bin/llvm-tblgen+0x3d702a)
Stack dump:
0. Program arguments: /build/llvm-build-Clang6-release/bin/llvm-tblgen
-gen-intrinsic-impl -I /build/llvm/include/llvm/IR -I /build/llvm/include
/build/llvm/include/llvm/IR/Intrinsics.td -o
include/llvm/IR/IntrinsicImpl.inc.tmp -d include/llvm/IR/IntrinsicImpl.inc.d
Aborted
ninja: build stopped: subcommand failed.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180715/00632f4d/attachment.html>
More information about the llvm-bugs
mailing list