<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - "FileCheck error: '-' is empty" at build time after #268662"
href="https://llvm.org/bugs/show_bug.cgi?id=28035">28035</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>"FileCheck error: '-' is empty" at build time after #268662
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>3.6
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Backend: ARM
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>leemgs@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=16483" name="attach_16483" title="Linux/ARM: Fix incorrect load statement">attachment 16483</a> <a href="attachment.cgi?id=16483&action=edit" title="Linux/ARM: Fix incorrect load statement">[details]</a></span>
Linux/ARM: Fix incorrect load statement
After applying for
<a href="http://llvm.org/viewvc/llvm-project?view=revision&revision=268662">http://llvm.org/viewvc/llvm-project?view=revision&revision=268662</a> to fix
thread-local storage (TLS) issue on Linux/ARM, We have got the below build
error when we tried to merge r268662 into Ubuntu/ARM 14.04 x64 (Trusty)
distribution. It seems that this build error is generated by
test/FileCheck/check-empty.txt.
* Error message at build -time: Summary
<span class="quote">> /work/dotnet/llvm-3.6.2.fixed.packaging/llvm-toolchain-3.6-3.6/build-llvm/Release/bin/llc:
> /work/dotnet/llvm-3.6.2.fixed.packaging/llvm-toolchain-3.6-3.6/test/CodeGen/ARM/litpool-licm.ll:29:18: error: expected value token
> %val = load i32, i32* @var
> ^
> FileCheck error: '-' is empty.</span >
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Segfault of __thread varaible in Linux/ARM due to bug of LLVM ARM code generation"
href="show_bug.cgi?id=27836">https://llvm.org/bugs/show_bug.cgi?id=27836</a>
* Error message at build -time: Details
--------- Detail error messages
---------------------------------------------------------------------------------------------------
. . . . Omission . . . .
make[1]: Entering directory
`/work/dotnet/llvm-3.6.2.fixed.packaging/llvm-toolchain-3.6-3.6'
NJOBS="-j 8"
LD_LIBRARY_PATH=/work/dotnet/llvm-3.6.2.fixed.packaging/llvm-toolchain-3.6-3.6/build-llvm/Release/lib/
/usr/bin/make -C build-llvm check
make[2]: Entering directory
`/work/dotnet/llvm-3.6.2.fixed.packaging/llvm-toolchain-3.6-3.6/build-llvm'
llvm[2]: Running test suite
make[3]: Entering directory
`/work/dotnet/llvm-3.6.2.fixed.packaging/llvm-toolchain-3.6-3.6/build-llvm/test'
Making LLVM 'lit.site.cfg' file...
Making LLVM unittest 'lit.site.cfg' file...
( ulimit -t 600 ; ulimit -d 512000 ; ulimit -m 512000 ; ulimit -s 8192 ; \
/usr/bin/python
/work/dotnet/llvm-3.6.2.fixed.packaging/llvm-toolchain-3.6-3.6/utils/lit/lit.py
-s -v -j 8 . )
lit.py: lit.cfg:271: note: Did not find llvm-go in
/work/dotnet/llvm-3.6.2.fixed.packaging/llvm-toolchain-3.6-3.6/build-llvm/Release/bin
FAIL: LLVM :: CodeGen/ARM/litpool-licm.ll (1638 of 12267)
******************** TEST 'LLVM :: CodeGen/ARM/litpool-licm.ll' FAILED
********************
Script:
--
/work/dotnet/llvm-3.6.2.fixed.packaging/llvm-toolchain-3.6-3.6/build-llvm/Release/bin/llc
-mtriple=thumbv7-linux-gnueabihf -relocation-model=pic
/work/dotnet/llvm-3.6.2.fixed.packaging/llvm-toolchain-3.6-3.6/test/CodeGen/ARM/litpool-licm.ll
-o - |
/work/dotnet/llvm-3.6.2.fixed.packaging/llvm-toolchain-3.6-3.6/build-llvm/Release/bin/FileCheck
/work/dotnet/llvm-3.6.2.fixed.packaging/llvm-toolchain-3.6-3.6/test/CodeGen/ARM/litpool-licm.ll
--
Exit Code: 2
Command Output (stderr):
--
/work/dotnet/llvm-3.6.2.fixed.packaging/llvm-toolchain-3.6-3.6/build-llvm/Release/bin/llc:
/work/dotnet/llvm-3.6.2.fixed.packaging/llvm-toolchain-3.6-3.6/test/CodeGen/ARM/litpool-licm.ll:29:18:
error: expected value token
%val = load i32, i32* @var
^
FileCheck error: '-' is empty.
--
********************
Testing Time: 39.24s
********************
Unexpected Passing Tests (12):
LLVM :: BugPoint/crash-narrowfunctiontest.ll
LLVM :: BugPoint/metadata.ll
LLVM :: BugPoint/remove_arguments_test.ll
LLVM :: ExecutionEngine/MCJIT/cross-module-sm-pic-a.ll
LLVM :: ExecutionEngine/MCJIT/eh-lg-pic.ll
LLVM :: ExecutionEngine/MCJIT/eh-sm-pic.ll
LLVM :: ExecutionEngine/MCJIT/hello-sm-pic.ll
LLVM :: ExecutionEngine/MCJIT/multi-module-sm-pic-a.ll
LLVM :: ExecutionEngine/MCJIT/stubs-sm-pic.ll
LLVM :: ExecutionEngine/MCJIT/test-global-init-nonzero-sm-pic.ll
LLVM :: ExecutionEngine/MCJIT/test-ptr-reloc-sm-pic.ll
LLVM :: Feature/load_module.ll
********************
Failing Tests (1):
LLVM :: CodeGen/ARM/litpool-licm.ll
Expected Passes : 11998
Expected Failures : 75
Unsupported Tests : 181
Unexpected Passes : 12
Unexpected Failures: 1
make[3]: *** [check-local] Error 1
make[3]: Leaving directory
`/work/dotnet/llvm-3.6.2.fixed.packaging/llvm-toolchain-3.6-3.6/build-llvm/test'
make[2]: *** [check] Error 2
make[2]: Leaving directory
`/work/dotnet/llvm-3.6.2.fixed.packaging/llvm-toolchain-3.6-3.6/build-llvm'
make[1]: *** [override_dh_auto_test] Error 2
make[1]: Leaving directory
`/work/dotnet/llvm-3.6.2.fixed.packaging/llvm-toolchain-3.6-3.6'
make: *** [binary] Error 2
Command exited with non-zero status 2
100.38user 45.56system 0:40.75elapsed 358%CPU (0avgtext+0avgdata
538244maxresident)k
0inputs+180240outputs (6major+32138062minor)pagefaults 0swaps
invain@db400:/work/dotnet/llvm-3.6.2.fixed.packaging/llvm-toolchain-3.6-3.6$
* Solution:
>From 1d02a80feb1cc559ea7cb635dc0a0742ecc38f73 Mon Sep 17 00:00:00 2001
From: Geunsik Lim <<a href="mailto:geunsik.lim@samsung.com">geunsik.lim@samsung.com</a>>
Date: Fri, 3 Jun 2016 16:10:48 +0900
Subject: [PATCH] Linux/ARM: Fix incorrect load statement
At build-time, the "Fileheck error:'-' emptry" error is generated
by the incorrect load statement.
Signed-off-by: Geunsik Lim <<a href="mailto:geunsik.lim@samsung.com">geunsik.lim@samsung.com</a>>
---
litpool-licm.ll | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/litpool-licm.ll b/litpool-licm.ll
index dc6b37f..51c78c1 100644
--- a/litpool-licm.ll
+++ b/litpool-licm.ll
@@ -26,7 +26,7 @@ entry:
loop:
%i = phi i32 [ %inc, %next ], [ 0, %entry ]
- %val = load i32, i32* @var
+ %val = load i32* @var
%tst = icmp eq i32 %val, 0
br i1 %tst, label %next, label %call
--
1.9.1</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>