Re: Is LLVM 13 (git) really ready for testing/development? libclc didn't compile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Not Marek, but hope this answer will help.
libclc uses clang CLC preprocessor on .ll files, llvm/clang-13 started including clc declarations by default (clang cf3ef15a6ec5e5b45c6c54e8fbe3769255e815ce),
thus corrupting any .ll assembly files that are used by libclc.
Inclusion of the default declarations can be turned off using a cmdline switch but that remains to be implemented in the libclc build system.
manually adding '-cl-no-stdinc' should work as a workaround.

Jan


On Thu, Mar 4, 2021 at 10:27 PM Dieter Nützel <Dieter@xxxxxxxxxxxxx> wrote:
Hello Marek,

can't compile anything, here.
Poor Intel Nehalem X3470.

Trying LLVM 12-rc2 later.

Greetings,
Dieter

llvm-project/libclc> cd build && cmake ../
-- The CXX compiler identification is GNU 10.2.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
LLVM version: 13.0.0git
LLVM system libs:
LLVM libs: -lLLVM-13git
LLVM libdir: /usr/local/lib
LLVM bindir: /usr/local/bin
LLVM ld flags: -L/usr/local/lib
LLVM cxx flags:
-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

clang: /usr/local/bin/clang
llvm-as: /usr/local/bin/llvm-as
llvm-link: /usr/local/bin/llvm-link
opt: /usr/local/bin/opt
llvm-spirv: /usr/local/bin/llvm-spirv

-- Check for working CLC compiler: /usr/local/bin/clang
-- Check for working CLC compiler: /usr/local/bin/clang -- works
-- Check for working LLAsm compiler: /usr/local/bin/llvm-as
-- Check for working LLAsm compiler: /usr/local/bin/llvm-as -- broken
CMake Error at cmake/CMakeTestLLAsmCompiler.cmake:40 (message):
   The LLAsm compiler "/usr/local/bin/llvm-as" is not able to compile a
simple
   test program.

   It fails with the following output:

    Change Dir: /opt/llvm-project/libclc/build/CMakeFiles/CMakeTmp



   Run Build Command(s):/usr/bin/gmake cmTC_87af9/fast && /usr/bin/gmake
-f
   CMakeFiles/cmTC_87af9.dir/build.make CMakeFiles/cmTC_87af9.dir/build

   gmake[1]: Verzeichnis
   „/opt/llvm-project/libclc/build/CMakeFiles/CMakeTmp“ wird betreten

   Building LLAsm object CMakeFiles/cmTC_87af9.dir/testLLAsmCompiler.bc

   /usr/local/bin/clang -E -P -x cl

/opt/llvm-project/libclc/build/CMakeFiles/CMakeTmp/testLLAsmCompiler.ll
-o
   CMakeFiles/cmTC_87af9.dir/testLLAsmCompiler.bc.temp

   /usr/local/bin/llvm-as -o
CMakeFiles/cmTC_87af9.dir/testLLAsmCompiler.bc
   CMakeFiles/cmTC_87af9.dir/testLLAsmCompiler.bc.temp

   /usr/local/bin/llvm-as:
   CMakeFiles/cmTC_87af9.dir/testLLAsmCompiler.bc.temp:1:1: error:
expected
   top-level entity

   typedef unsigned char uchar;

   ^

   gmake[1]: *** [CMakeFiles/cmTC_87af9.dir/build.make:86:
   CMakeFiles/cmTC_87af9.dir/testLLAsmCompiler.bc] Fehler 1

   gmake[1]: Verzeichnis
   „/opt/llvm-project/libclc/build/CMakeFiles/CMakeTmp“ wird verlassen

   gmake: *** [Makefile:140: cmTC_87af9/fast] Fehler 2







   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 "/opt/llvm-project/libclc/build/CMakeFiles/CMakeOutput.log".
See also "/opt/llvm-project/libclc/build/CMakeFiles/CMakeError.log".


CMakeError.log
Determining if the LLAsm compiler works failed with the following
output:
Change Dir: /opt/llvm-project/libclc/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_87af9/fast && /usr/bin/gmake 
-f CMakeFiles/cmTC_87af9.dir/build.make CMakeFiles/cmTC_87af9.dir/build
gmake[1]: Verzeichnis
„/opt/llvm-project/libclc/build/CMakeFiles/CMakeTmp“ wird betreten
Building LLAsm object CMakeFiles/cmTC_87af9.dir/testLLAsmCompiler.bc
/usr/local/bin/clang -E -P     -x cl
/opt/llvm-project/libclc/build/CMakeFiles/CMakeTmp/testLLAsmCompiler.ll
-o CMakeFiles/cmTC_87af9.dir/testLLAsmCompiler.bc.temp
/usr/local/bin/llvm-as -o CMakeFiles/cmTC_87af9.dir/testLLAsmCompiler.bc
CMakeFiles/cmTC_87af9.dir/testLLAsmCompiler.bc.temp
/usr/local/bin/llvm-as:
CMakeFiles/cmTC_87af9.dir/testLLAsmCompiler.bc.temp:1:1: error: expected
top-level entity
typedef unsigned char uchar;
^
gmake[1]: *** [CMakeFiles/cmTC_87af9.dir/build.make:86:
CMakeFiles/cmTC_87af9.dir/testLLAsmCompiler.bc] Fehler 1
gmake[1]: Verzeichnis
„/opt/llvm-project/libclc/build/CMakeFiles/CMakeTmp“ wird verlassen
gmake: *** [Makefile:140: cmTC_87af9/fast] Fehler 2
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux