[llvm-bugs] [Bug 51063] New: libclc cannot compile because of The LLAsm compiler "llvm-as" is not able to compile a simple test program.

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jul 12 08:37:04 PDT 2021


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

            Bug ID: 51063
           Summary: libclc cannot compile because of The LLAsm compiler
                    "llvm-as" is not able to compile a simple test
                    program.
           Product: libclc
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: All Bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: sylvestre at debian.org
                CC: llvm-bugs at lists.llvm.org, tstellar at redhat.com

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'

-- 
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/20210712/58da5059/attachment.html>


More information about the llvm-bugs mailing list