[llvm-bugs] [Bug 49431] New: libclc fail to build after [OpenCL] Add builtin declarations by default.
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Mar 4 01:45:13 PST 2021
https://bugs.llvm.org/show_bug.cgi?id=49431
Bug ID: 49431
Summary: libclc fail to build after [OpenCL] Add builtin
declarations by default.
Product: libclc
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: release blocker
Priority: P
Component: All Bugs
Assignee: unassignedbugs at nondot.org
Reporter: lordheavym at gmail.com
CC: llvm-bugs at lists.llvm.org, tstellar at redhat.com
Created attachment 24587
--> https://bugs.llvm.org/attachment.cgi?id=24587&action=edit
testLLAsmCompiler.bc.temp
clang commit
https://github.com/llvm/llvm-project/commit/cf3ef15a6ec5e5b45c6c54e8fbe3769255e815ce
result:
-- Check for working LLAsm compiler: /usr/bin/llvm-as -- broken
CMake Error at cmake/CMakeTestLLAsmCompiler.cmake:40 (message):
The LLAsm compiler "/usr/bin/llvm-as" is not able to compile a simple test
program.
It fails with the following output:
Change Dir:
/build/libclc-git/src/llvm-project-git/libclc/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_e2881 && [1/2] Building LLAsm
object CMakeFiles/cmTC_e2881.dir/testLLAsmCompiler.bc
FAILED: CMakeFiles/cmTC_e2881.dir/testLLAsmCompiler.bc
/usr/bin/clang -E -P -x cl testLLAsmCompiler.ll -o
CMakeFiles/cmTC_e2881.dir/testLLAsmCompiler.bc.temp && /usr/bin/llvm-as -o
CMakeFiles/cmTC_e2881.dir/testLLAsmCompiler.bc
CMakeFiles/cmTC_e2881.dir/testLLAsmCompiler.bc.temp
/usr/bin/llvm-as: CMakeFiles/cmTC_e2881.dir/testLLAsmCompiler.bc.temp:1:1:
error: expected top-level entity
typedef unsigned char uchar;
^
ninja: build stopped: subcommand failed.
Solution:
Add -cl-no-stdinc
--
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/20210304/dd07de43/attachment.html>
More information about the llvm-bugs
mailing list