Description
Bugzilla Link | 49431 |
Version | unspecified |
OS | All |
Attachments | testLLAsmCompiler.bc.temp |
Reporter | LLVM Bugzilla Contributor |
CC | @tstellar |
Extended Description
clang commit cf3ef15
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