[llvm-bugs] [Bug 36060] New: Clang frontend command failed with exit code 70 when compiling BearSSL

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jan 23 04:45:41 PST 2018


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

            Bug ID: 36060
           Summary: Clang frontend command failed with exit code 70 when
                    compiling BearSSL
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: alexej.h at xiphos.de
                CC: llvm-bugs at lists.llvm.org

Created attachment 19726
  --> https://bugs.llvm.org/attachment.cgi?id=19726&action=edit
Source code and shell script mentioned in the error message.

Clang crashes when compiling BearSSL src/hash/ghash_pclmul.c (commit e51143d).

Tested on the following platforms:

- Windows 10 x64 WSL based on Ubuntu 16.04.3 LTS (LLVM 5.0.1)
- Ubuntu 16.04.3 LTS x64 (LLVM 5.0.1 and LLVM trunk r323185)
- FreeBSD 12.0-CURRENT r327691 (LLVM 5.0.1)

Here is the compiler output (mentioned files are attached to this report):

[154/245] Building C object
CMakeFiles/net.dir/src/bearssl/src/hash/ghash_pclmul.c.o
FAILED: /opt/llvm/bin/clang -DNET_USE_EPOLL=1 -I../../../src
-I../../../src/bearssl/inc -I../../../src/bearssl/src -I../../../include -g  
-std=c11 -MD -MT CMakeFiles/net.dir/src/bearssl/src/hash/ghash_pclmul.c.o -MF
CMakeFiles/net.dir/src/bearssl/src/hash/ghash_pclmul.c.o.d -o
CMakeFiles/net.dir/src/bearssl/src/hash/ghash_pclmul.c.o   -c
../../../src/bearssl/src/hash/ghash_pclmul.c
fatal error: error in backend: Cannot select: 0x68150b0: v16i8 = X86ISD::PSHUFB
0x6814960, 0x6814bd0
  0x6814960: v16i8,ch = CopyFromReg 0x674eaf8, Register:v16i8 %123
    0x6814828: v16i8 = Register %123
  0x6814bd0: v16i8,ch = CopyFromReg 0x674eaf8, Register:v16i8 %124
    0x6814a98: v16i8 = Register %124
In function: br_ghash_pclmul
clang-7.0: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
clang version 7.0.0 (trunk 323185)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/llvm/bin
clang-7.0: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang-7.0: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-7.0: note: diagnostic msg: /tmp/ghash_pclmul-59da01.c
clang-7.0: note: diagnostic msg: /tmp/ghash_pclmul-59da01.sh
clang-7.0: note: diagnostic msg:

********************
[154/245] Building C object CMakeFiles/net.dir/src/bearssl/src/rand/sysrng.c.o
ninja: build stopped: subcommand failed.
makefile:33: recipe for target 'debug' failed
make: *** [debug] Error 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/20180123/028aa38e/attachment-0001.html>


More information about the llvm-bugs mailing list