<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - libclc cannot compile because of The LLAsm compiler "llvm-as" is not able to compile a simple test program."
href="https://bugs.llvm.org/show_bug.cgi?id=51063">51063</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>libclc cannot compile because of The LLAsm compiler "llvm-as" is not able to compile a simple test program.
</td>
</tr>
<tr>
<th>Product</th>
<td>libclc
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>release blocker
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>sylvestre@debian.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, tstellar@redhat.com
</td>
</tr></table>
<p>
<div>
<pre>Regression introduced between c6e4c1fbd80e..0da172b1766e
On Debian & Ubuntu on trunk:
cmake -DCMAKE_INSTALL_DATADIR=/usr/lib \
-DCMAKE_INSTALL_INCLUDEDIR=/usr/include \
-DLLVM_CONFIG=/build/llvm-toolchain-snapshot-13~++20210712091412+d3e14fafc69a/build-llvm/tools/clang/stage2-bins/bin/llvm-config
\
-DLIBCLC_TARGETS_TO_BUILD="amdgcn--;amdgcn--amdhsa;r600--;nvptx--;nvptx64--;nvptx--nvidiacl;nvptx64--nvidiacl"
Using cmake: cmake
-- The CXX compiler identification is GNU 7.3.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/lib/ccache/g++-7 - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
LLVM version: 13.0.0
LLVM system libs:
LLVM libs: -lLLVM-13
LLVM libdir:
/build/llvm-toolchain-snapshot-13~++20210712091412+d3e14fafc69a/build-llvm/tools/clang/stage2-bins/lib
LLVM bindir:
/build/llvm-toolchain-snapshot-13~++20210712091412+d3e14fafc69a/build-llvm/tools/clang/stage2-bins/bin
LLVM ld flags:
-L/build/llvm-toolchain-snapshot-13~++20210712091412+d3e14fafc69a/build-llvm/tools/clang/stage2-bins/lib
LLVM cxx flags:
-I/build/llvm-toolchain-snapshot-13~++20210712091412+d3e14fafc69a/llvm/include;-I/build/llvm-toolchain-snapshot-13~++20210712091412+d3e14fafc69a/build-llvm/tools/clang/stage2-bins/include;-std=c++14;;;-fno-exceptions;-D_GNU_SOURCE;-D__STDC_CONSTANT_MACROS;-D__STDC_FORMAT_MACROS;-D__STDC_LIMIT_MACROS;-fno-rtti;-fno-exceptions
clang:
/build/llvm-toolchain-snapshot-13~++20210712091412+d3e14fafc69a/build-llvm/tools/clang/stage2-bins/bin/clang
llvm-as:
/build/llvm-toolchain-snapshot-13~++20210712091412+d3e14fafc69a/build-llvm/tools/clang/stage2-bins/bin/llvm-as
llvm-link:
/build/llvm-toolchain-snapshot-13~++20210712091412+d3e14fafc69a/build-llvm/tools/clang/stage2-bins/bin/llvm-link
opt:
/build/llvm-toolchain-snapshot-13~++20210712091412+d3e14fafc69a/build-llvm/tools/clang/stage2-bins/bin/opt
llvm-spirv: LLVM_SPIRV-NOTFOUND
-- Check for working CLC compiler:
/build/llvm-toolchain-snapshot-13~++20210712091412+d3e14fafc69a/build-llvm/tools/clang/stage2-bins/bin/clang
-- Check for working CLC compiler:
/build/llvm-toolchain-snapshot-13~++20210712091412+d3e14fafc69a/build-llvm/tools/clang/stage2-bins/bin/clang
-- works
-- Check for working LLAsm compiler:
/build/llvm-toolchain-snapshot-13~++20210712091412+d3e14fafc69a/build-llvm/tools/clang/stage2-bins/bin/llvm-as
-- Check for working LLAsm compiler:
/build/llvm-toolchain-snapshot-13~++20210712091412+d3e14fafc69a/build-llvm/tools/clang/stage2-bins/bin/llvm-as
-- broken
CMake Error at cmake/CMakeTestLLAsmCompiler.cmake:40 (message):
The LLAsm compiler
"/build/llvm-toolchain-snapshot-13~++20210712091412+d3e14fafc69a/build-llvm/tools/clang/stage2-bins/bin/llvm-as"
is not able to compile a simple test program.
It fails with the following output:
Change Dir:
/build/llvm-toolchain-snapshot-13~++20210712091412+d3e14fafc69a/libclc/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_9bcb9/fast && make[2]: Entering
directory
'/build/llvm-toolchain-snapshot-13~++20210712091412+d3e14fafc69a/libclc/build/CMakeFiles/CMakeTmp'
/usr/bin/make -f CMakeFiles/cmTC_9bcb9.dir/build.make
CMakeFiles/cmTC_9bcb9.dir/build
make[3]: Entering directory
'/build/llvm-toolchain-snapshot-13~++20210712091412+d3e14fafc69a/libclc/build/CMakeFiles/CMakeTmp'
Building LLAsm object CMakeFiles/cmTC_9bcb9.dir/testLLAsmCompiler.bc
/build/llvm-toolchain-snapshot-13~++20210712091412+d3e14fafc69a/build-llvm/tools/clang/stage2-bins/bin/clang
-E -P -x cl
"/build/llvm-toolchain-snapshot-13~++20210712091412+d3e14fafc69a/libclc/build/CMakeFiles/CMakeTmp/testLLAsmCompiler.ll"
-o CMakeFiles/cmTC_9bcb9.dir/testLLAsmCompiler.bc.temp
"/build/llvm-toolchain-snapshot-13~++20210712091412+d3e14fafc69a/build-llvm/tools/clang/stage2-bins/bin/llvm-as"
-o CMakeFiles/cmTC_9bcb9.dir/testLLAsmCompiler.bc
CMakeFiles/cmTC_9bcb9.dir/testLLAsmCompiler.bc.temp
/build/llvm-toolchain-snapshot-13~++20210712091412+d3e14fafc69a/build-llvm/tools/clang/stage2-bins/bin/llvm-as:
CMakeFiles/cmTC_9bcb9.dir/testLLAsmCompiler.bc.temp:1:1: error: expected
top-level entity
typedef unsigned char uchar;
^
CMakeFiles/cmTC_9bcb9.dir/build.make:84: recipe for target
'CMakeFiles/cmTC_9bcb9.dir/testLLAsmCompiler.bc' failed
make[3]: *** [CMakeFiles/cmTC_9bcb9.dir/testLLAsmCompiler.bc] Error 1
make[3]: Leaving directory
'/build/llvm-toolchain-snapshot-13~++20210712091412+d3e14fafc69a/libclc/build/CMakeFiles/CMakeTmp'
Makefile:140: recipe for target 'cmTC_9bcb9/fast' failed
make[2]: *** [cmTC_9bcb9/fast] Error 2
make[2]: Leaving directory
'/build/llvm-toolchain-snapshot-13~++20210712091412+d3e14fafc69a/libclc/build/CMakeFiles/CMakeTmp'
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:127 (enable_language)
-- Configuring incomplete, errors occurred!
See also
"/build/llvm-toolchain-snapshot-13~++20210712091412+d3e14fafc69a/libclc/build/CMakeFiles/CMakeOutput.log".
See also
"/build/llvm-toolchain-snapshot-13~++20210712091412+d3e14fafc69a/libclc/build/CMakeFiles/CMakeError.log".
make[2]: Entering directory
'/build/llvm-toolchain-snapshot-13~++20210712091412+d3e14fafc69a/libclc/build'</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>