[llvm-bugs] [Bug 37045] New: Clang :: Misc/warning-flags-tree.c fails with -D_GLIBCXX_DEBUG
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Apr 7 05:37:37 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=37045
Bug ID: 37045
Summary: Clang :: Misc/warning-flags-tree.c fails with
-D_GLIBCXX_DEBUG
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: matthias.krueger at famsik.de
CC: llvm-bugs at lists.llvm.org
Hi, I used the monorepo as source.
CC and CXX used to build were clang(++) 6.0
Cmake config:
cmake ../llvm-project-20170507/llvm -G "Ninja" \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_BINUTILS_INCDIR=/usr/include \
-DCMAKE_C_FLAGS="-march=native -O3 -g0 -D_GLIBCXX_DEBUG" \
-DCMAKE_CXX_FLAGS="-march=native -O3 -g0 -D_GLIBCXX_DEBUG" \
-DLLVM_PARALLEL_LINK_JOBS=1 \
-DLLVM_TARGETS_TO_BUILD="X86" \
-DLLVM_OPTIMIZED_TABLEGEN=1 \
-DLLVM_BUILD_TOOLS=0 \
-DLLVM_ENABLE_PROJECTS="llvm;clang;lld"
test output:
FAIL: Clang :: Misc/warning-flags-tree.c (5417 of 12211)
******************** TEST 'Clang :: Misc/warning-flags-tree.c' FAILED
********************
Script:
--
diagtool tree --internal |
/home/matthias/LLVM/LLVM_debug/stage_1/build/bin/FileCheck -strict-whitespace
/home/matthias/LLVM/LLVM_debug/stage_1/llvm-project-20170507/clang/test/Misc/warning-flags-tree.c
diagtool tree --internal -Weverything |
/home/matthias/LLVM/LLVM_debug/stage_1/build/bin/FileCheck -strict-whitespace
/home/matthias/LLVM/LLVM_debug/stage_1/llvm-project-20170507/clang/test/Misc/warning-flags-tree.c
diagtool tree --internal everything |
/home/matthias/LLVM/LLVM_debug/stage_1/build/bin/FileCheck -strict-whitespace
/home/matthias/LLVM/LLVM_debug/stage_1/llvm-project-20170507/clang/test/Misc/warning-flags-tree.c
not diagtool tree -Wthis-is-not-a-valid-flag
diagtool tree --internal -Wgnu |
/home/matthias/LLVM/LLVM_debug/stage_1/build/bin/FileCheck -strict-whitespace
-check-prefix CHECK-GNU
/home/matthias/LLVM/LLVM_debug/stage_1/llvm-project-20170507/clang/test/Misc/warning-flags-tree.c
diagtool tree -Wgnu |
/home/matthias/LLVM/LLVM_debug/stage_1/build/bin/FileCheck -check-prefix
CHECK-FLAGS-ONLY
/home/matthias/LLVM/LLVM_debug/stage_1/llvm-project-20170507/clang/test/Misc/warning-flags-tree.c
--
Exit Code: 2
Command Output (stderr):
--
/usr/lib64/gcc/x86_64-pc-linux-gnu/7.3.1/../../../../include/c++/7.3.1/bits/stl_algo.h:2031:
Error: elements in iterator range [__first, __last) are not partitioned by
the predicate __comp and value __val.
Objects involved in the operation:
iterator "__first" @ 0x0x7ffd8cc77940 {
}
iterator "__last" @ 0x0x7ffd8cc77938 {
}
FileCheck error: '-' is empty.
FileCheck command line:
/home/matthias/LLVM/LLVM_debug/stage_1/build/bin/FileCheck -strict-whitespace
/home/matthias/LLVM/LLVM_debug/stage_1/llvm-project-20170507/clang/test/Misc/warning-flags-tree.c
--
********************
meta:
glibc 2.26-1
gcc 7.3.1+20180312-1
linux 4.14.30-1-MANJARO
--
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/20180407/594cfd3c/attachment.html>
More information about the llvm-bugs
mailing list