llvm-svn icon indicating copy to clipboard operation
llvm-svn copied to clipboard

LLVM :: BugPoint/compile-custom.ll test fails

Open cippaciong opened this issue 7 years ago • 3 comments
trafficstars

Hello, I'm trying to build llvm-svn in a Docker container but the compilation fails at the end on a specific regression test

[100%] Running the LLVM regression tests
FAIL: LLVM :: BugPoint/compile-custom.ll (4744 of 28479)
******************** TEST 'LLVM :: BugPoint/compile-custom.ll' FAILED ********************
Script:
--
: 'RUN: at line 1';   /home/buildy/llvm-svn/src/build/bin/bugpoint -load /home/buildy/llvm-svn/src/build/./lib/BugpointPasses.so --compile-custom --compile-command="/home/buildy/llvm-svn/src/llvm/test/BugPoint/compile-custom.ll.py arg1 arg2" --opt-command /home/buildy/llvm
-svn/src/build/bin/opt --output-prefix /home/buildy/llvm-svn/src/build/test/BugPoint/Output/compile-custom.ll.tmp /home/buildy/llvm-svn/src/llvm/test/BugPoint/compile-custom.ll | /home/buildy/llvm-svn/src/build/bin/FileCheck /home/buildy/llvm-svn/src/llvm/test/BugPoint/com
pile-custom.ll
--
Exit Code: 1

Command Output (stderr):
--
*** Debugging code generator crash!
<crash>
<crash>
<crash>
<crash>
<crash>
<crash>
/home/buildy/llvm-svn/src/llvm/test/BugPoint/compile-custom.ll:8:10: error: CHECK: expected string not found in input
; CHECK: Error: arg1 arg2
         ^
<stdin>:1:1: note: scanning from here
Read input file : '/home/buildy/llvm-svn/src/llvm/test/BugPoint/compile-custom.ll'
^
<stdin>:6:61: note: possible intended match here
 /home/buildy/llvm-svn/src/llvm/test/BugPoint/compile-custom.ll.py arg1 arg2 /home/buildy/llvm-svn/src/build/test/BugPoint/Output/compile-custom.ll.tmp-test-program-691e005.bc arg1 arg2
                                                            ^

--

********************
Testing Time: 180.24s
********************
Failing Tests (1):
    LLVM :: BugPoint/compile-custom.ll

  Expected Passes    : 27248
  Expected Failures  : 144
  Unsupported Tests  : 1086
  Unexpected Failures: 1
make[3]: *** [test/CMakeFiles/check-llvm.dir/build.make:58: test/CMakeFiles/check-llvm] Error 1
make[2]: *** [CMakeFiles/Makefile2:166146: test/CMakeFiles/check-llvm.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:118580: test/CMakeFiles/check.dir/rule] Error 2
make: *** [Makefile:29553: check] Error 2
==> ERROR: A failure occurred in check().
    Aborting...

The container is pretty minimal, this is the Dockerfile I wrote to create the image

from archlinux/base

RUN pacman --noconfirm -Sy archlinux-keyring && \
    pacman --noconfirm -Syu && \
    pacman --noconfirm -S base-devel atool yajl sudo nano vim bash-completion the_silver_searcher && \
    pacman --noconfirm -Scc

RUN useradd -m buildy
RUN echo "buildy ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
WORKDIR /home/buildy
RUN su buildy
RUN curl -LO https://aur.archlinux.org/cgit/aur.git/snapshot/cower.tar.gz

ENTRYPOINT "/bin/bash"

cippaciong avatar Nov 09 '18 13:11 cippaciong

@cippaciong Do you know if the test fails only on Arch, or is it rather an upstream problem?

kerberizer avatar Nov 12 '18 12:11 kerberizer

Honestly I don't know, it is the first time I try to build LLVM and I tried only on Arch

cippaciong avatar Nov 13 '18 16:11 cippaciong

@cippaciong Unless you have reasons to believe that the failure might be caused by the Arch environment specifically, I'd suggest just commenting out the make check commands from the PKGBUILD.

kerberizer avatar Nov 13 '18 18:11 kerberizer