<div dir="ltr"><div>Hi,</div><div><br></div><div>I can't answer this because our Mesa team doesn't work on LLVM and we don't build libclc.</div><div><br></div><div>Marek<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 4, 2021 at 10:20 PM Dieter Nützel <<a href="mailto:Dieter@nuetzel-hh.de">Dieter@nuetzel-hh.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello Marek,<br>
<br>
can't compile anything, here.<br>
Poor Intel Nehalem X3470.<br>
<br>
Trying LLVM 12-rc2 later.<br>
<br>
Greetings,<br>
Dieter<br>
<br>
llvm-project/libclc> cd build && cmake ../<br>
-- The CXX compiler identification is GNU 10.2.1<br>
-- Detecting CXX compiler ABI info<br>
-- Detecting CXX compiler ABI info - done<br>
-- Check for working CXX compiler: /usr/bin/c++ - skipped<br>
-- Detecting CXX compile features<br>
-- Detecting CXX compile features - done<br>
LLVM version: 13.0.0git<br>
LLVM system libs:<br>
LLVM libs: -lLLVM-13git<br>
LLVM libdir: /usr/local/lib<br>
LLVM bindir: /usr/local/bin<br>
LLVM ld flags: -L/usr/local/lib<br>
LLVM cxx flags: <br>
-I/usr/local/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<br>
<br>
clang: /usr/local/bin/clang<br>
llvm-as: /usr/local/bin/llvm-as<br>
llvm-link: /usr/local/bin/llvm-link<br>
opt: /usr/local/bin/opt<br>
llvm-spirv: /usr/local/bin/llvm-spirv<br>
<br>
-- Check for working CLC compiler: /usr/local/bin/clang<br>
-- Check for working CLC compiler: /usr/local/bin/clang -- works<br>
-- Check for working LLAsm compiler: /usr/local/bin/llvm-as<br>
-- Check for working LLAsm compiler: /usr/local/bin/llvm-as -- broken<br>
CMake Error at cmake/CMakeTestLLAsmCompiler.cmake:40 (message):<br>
   The LLAsm compiler "/usr/local/bin/llvm-as" is not able to compile a <br>
simple<br>
   test program.<br>
<br>
   It fails with the following output:<br>
<br>
    Change Dir: /opt/llvm-project/libclc/build/CMakeFiles/CMakeTmp<br>
<br>
<br>
<br>
   Run Build Command(s):/usr/bin/gmake cmTC_87af9/fast && /usr/bin/gmake <br>
-f<br>
   CMakeFiles/cmTC_87af9.dir/build.make CMakeFiles/cmTC_87af9.dir/build<br>
<br>
   gmake[1]: Verzeichnis<br>
   „/opt/llvm-project/libclc/build/CMakeFiles/CMakeTmp“ wird betreten<br>
<br>
   Building LLAsm object CMakeFiles/cmTC_87af9.dir/testLLAsmCompiler.bc<br>
<br>
   /usr/local/bin/clang -E -P -x cl<br>
<br>
/opt/llvm-project/libclc/build/CMakeFiles/CMakeTmp/testLLAsmCompiler.ll <br>
-o<br>
   CMakeFiles/cmTC_87af9.dir/testLLAsmCompiler.bc.temp<br>
<br>
   /usr/local/bin/llvm-as -o <br>
CMakeFiles/cmTC_87af9.dir/testLLAsmCompiler.bc<br>
   CMakeFiles/cmTC_87af9.dir/testLLAsmCompiler.bc.temp<br>
<br>
   /usr/local/bin/llvm-as:<br>
   CMakeFiles/cmTC_87af9.dir/testLLAsmCompiler.bc.temp:1:1: error: <br>
expected<br>
   top-level entity<br>
<br>
   typedef unsigned char uchar;<br>
<br>
   ^<br>
<br>
   gmake[1]: *** [CMakeFiles/cmTC_87af9.dir/build.make:86:<br>
   CMakeFiles/cmTC_87af9.dir/testLLAsmCompiler.bc] Fehler 1<br>
<br>
   gmake[1]: Verzeichnis<br>
   „/opt/llvm-project/libclc/build/CMakeFiles/CMakeTmp“ wird verlassen<br>
<br>
   gmake: *** [Makefile:140: cmTC_87af9/fast] Fehler 2<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
   CMake will not be able to correctly generate this project.<br>
Call Stack (most recent call first):<br>
   CMakeLists.txt:127 (enable_language)<br>
<br>
<br>
-- Configuring incomplete, errors occurred!<br>
See also "/opt/llvm-project/libclc/build/CMakeFiles/CMakeOutput.log".<br>
See also "/opt/llvm-project/libclc/build/CMakeFiles/CMakeError.log".<br>
<br>
<br>
CMakeError.log<br>
Determining if the LLAsm compiler works failed with the following <br>
output:<br>
Change Dir: /opt/llvm-project/libclc/build/CMakeFiles/CMakeTmp<br>
<br>
Run Build Command(s):/usr/bin/gmake cmTC_87af9/fast && /usr/bin/gmake  <br>
-f CMakeFiles/cmTC_87af9.dir/build.make CMakeFiles/cmTC_87af9.dir/build<br>
gmake[1]: Verzeichnis <br>
„/opt/llvm-project/libclc/build/CMakeFiles/CMakeTmp“ wird betreten<br>
Building LLAsm object CMakeFiles/cmTC_87af9.dir/testLLAsmCompiler.bc<br>
/usr/local/bin/clang -E -P     -x cl <br>
/opt/llvm-project/libclc/build/CMakeFiles/CMakeTmp/testLLAsmCompiler.ll <br>
-o CMakeFiles/cmTC_87af9.dir/testLLAsmCompiler.bc.temp<br>
/usr/local/bin/llvm-as -o CMakeFiles/cmTC_87af9.dir/testLLAsmCompiler.bc <br>
CMakeFiles/cmTC_87af9.dir/testLLAsmCompiler.bc.temp<br>
/usr/local/bin/llvm-as: <br>
CMakeFiles/cmTC_87af9.dir/testLLAsmCompiler.bc.temp:1:1: error: expected <br>
top-level entity<br>
typedef unsigned char uchar;<br>
^<br>
gmake[1]: *** [CMakeFiles/cmTC_87af9.dir/build.make:86: <br>
CMakeFiles/cmTC_87af9.dir/testLLAsmCompiler.bc] Fehler 1<br>
gmake[1]: Verzeichnis <br>
„/opt/llvm-project/libclc/build/CMakeFiles/CMakeTmp“ wird verlassen<br>
gmake: *** [Makefile:140: cmTC_87af9/fast] Fehler 2<br>
</blockquote></div>