[llvm-bugs] [Bug 51364] New: CodeGen/flatten.c and CodeGenCXX/flatten.cpp tests fail when building clang standalone
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Aug 5 09:58:21 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=51364
Bug ID: 51364
Summary: CodeGen/flatten.c and CodeGenCXX/flatten.cpp tests
fail when building clang standalone
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: mgorny at gentoo.org
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
neeilans at live.com, richard-llvm at metafoo.co.uk
Blocks: 51236
I can reproduce by:
1. Installing LLVM 13.0.0rc1 to the system (static libs/dylib don't seem to
matter).
2. Build clang against it:
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=MinSizeRel
-DLLVM_MAIN_SRC_DIR=/home/mgorny/git/llvm-project/llvm
-DLLVM_TOOL_CLANG_TOOLS_EXTRA_BUILD=OFF
ninja check-clang
The tests used to pass 100% in 12.0.1. They also pass in a combined LLVM+Clang
build. I haven't been able to pinpoint a specific difference between these two
builds.
The test failures are:
FAIL: Clang :: CodeGenCXX/flatten.cpp (14777 of 28338)
******************** TEST 'Clang :: CodeGenCXX/flatten.cpp' FAILED
********************
Script:
--
: 'RUN: at line 5'; /home/mgorny/git/llvm-project/clang/build/bin/clang -cc1
-internal-isystem
/home/mgorny/git/llvm-project/clang/build/lib64/clang/13.0.0/include
-nostdsysteminc -triple=x86_64-linux-gnu -std=c++11
/home/mgorny/git/llvm-project/clang/test/CodeGenCXX/flatten.cpp -emit-llvm -o -
| /usr/lib/llvm/13/bin/FileCheck
/home/mgorny/git/llvm-project/clang/test/CodeGenCXX/flatten.cpp
--
Exit Code: 1
Command Output (stderr):
--
/home/mgorny/git/llvm-project/clang/test/CodeGenCXX/flatten.cpp:12:16: error:
CHECK-NOT: excluded string found in input
// CHECK-NOT: call {{.*}} @_Z1fv
^
<stdin>:15:2: note: found here
call void @_Z1fv() #1
^~~~~~~~~~~~~~~~
Input file: <stdin>
Check file: /home/mgorny/git/llvm-project/clang/test/CodeGenCXX/flatten.cpp
-dump-input=help explains the following input dump.
Input was:
<<<<<<
.
.
.
10: }
11:
12: ; Function Attrs: mustprogress noinline nounwind optnone
13: define dso_local void @_Z1gv() #0 {
14: entry:
15: call void @_Z1fv() #1
not:12 !~~~~~~~~~~~~~~~ error: no match expected
16: ret void
17: }
18:
19: attributes #0 = { mustprogress noinline nounwind optnone
"frame-pointer"="none" "min-legal-vector-width"="0" "no-trapping-math"="true"
"stack-protector-buffer-size"="8" "target-features"="+cx8,+mmx,+sse,+sse2,+x87"
}
20: attributes #1 = { alwaysinline }
.
.
.
>>>>>>
--
********************
FAIL: Clang :: CodeGen/flatten.c (22861 of 28338)
******************** TEST 'Clang :: CodeGen/flatten.c' FAILED
********************
Script:
--
: 'RUN: at line 7'; /home/mgorny/git/llvm-project/clang/build/bin/clang -cc1
-internal-isystem
/home/mgorny/git/llvm-project/clang/build/lib64/clang/13.0.0/include
-nostdsysteminc -triple=x86_64-linux-gnu
/home/mgorny/git/llvm-project/clang/test/CodeGen/flatten.c -emit-llvm -o - |
/usr/lib/llvm/13/bin/FileCheck
/home/mgorny/git/llvm-project/clang/test/CodeGen/flatten.c
--
Exit Code: 1
Command Output (stderr):
--
/home/mgorny/git/llvm-project/clang/test/CodeGen/flatten.c:16:16: error:
CHECK-NOT: excluded string found in input
// CHECK-NOT: call {{.*}} @f
^
<stdin>:21:2: note: found here
call void @f() #1
^~~~~~~~~~~~
Input file: <stdin>
Check file: /home/mgorny/git/llvm-project/clang/test/CodeGen/flatten.c
-dump-input=help explains the following input dump.
Input was:
<<<<<<
.
.
.
16: }
17:
18: ; Function Attrs: noinline nounwind optnone
19: define dso_local void @g() #0 {
20: entry:
21: call void @f() #1
not:16 !~~~~~~~~~~~ error: no match expected
22: call void @ni()
23: ret void
24: }
25:
26: ; Function Attrs: noinline nounwind optnone
.
.
.
>>>>>>
--
********************
Referenced Bugs:
https://bugs.llvm.org/show_bug.cgi?id=51236
[Bug 51236] [meta] 13.0.0 Release Blockers
--
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/20210805/e83d4888/attachment.html>
More information about the llvm-bugs
mailing list