[llvm-bugs] [Bug 28035] New: "FileCheck error: '-' is empty" at build time after #268662

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jun 6 23:13:42 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=28035

            Bug ID: 28035
           Summary: "FileCheck error: '-' is empty" at build time after
                    #268662
           Product: libraries
           Version: 3.6
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: ARM
          Assignee: unassignedbugs at nondot.org
          Reporter: leemgs at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 16483
  --> https://llvm.org/bugs/attachment.cgi?id=16483&action=edit
Linux/ARM: Fix incorrect load statement

After applying for
http://llvm.org/viewvc/llvm-project?view=revision&revision=268662 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
> /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.

https://llvm.org/bugs/show_bug.cgi?id=27836

* 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 at 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 <geunsik.lim at samsung.com>
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 <geunsik.lim at samsung.com>
---
 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

-- 
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/20160607/688219b7/attachment.html>


More information about the llvm-bugs mailing list