Build on Fedora #892
-
I have been trying to run the python tests in the triton-mlir branch. I followed the instructions from the script here but the build fails on There are several errors, all of the type:
I noticed that the release of LLVM was for Ubuntu and I'm on Fedora so I downloaded the source for LLVM 14.0.6 and built on my machine. When I redirect the version of llvm to the version I compiled from source, cmake fails on generation:
Has anyone seen this before? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The FileCheck executable is added in bin/FileCheck. I'm not sure where the conflicting executable of the same name is, but maybe LLVM? When I rename the FileCheck to TritonFileCheck the error goes away (but a new error surfaces) |
Beta Was this translation helpful? Give feedback.
-
(repeating this here so I can mark it as answer) (compiled with clang 15.0.2) inside /home/stumpos/compilers/llvm-project-14.0.6.src/build: inside triton's CMake (this is so that when I call setup the environment variables are not overridden by paths that point to an incompatible compiler; not the recommended way to do this obviously) Step 2: (not sure what to turn off to stop the llvm file check from also being added) Step 3: |
Beta Was this translation helpful? Give feedback.
(repeating this here so I can mark it as answer)
The following worked for me:
(compiled with clang 15.0.2)
Step 1: Build llvm 14.0.6 from source. Set the environment variables LLVM_INCLUDE_DIRS, LLVM_LIBRARY_DIR to point to the include and lib. For example, I did the following:
inside /home/stumpos/compilers/llvm-project-14.0.6.src/build:
cmake ../llvm -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="mlir" -DLLVM_TARGETS_TO_BUILD="X86;NVPTX;AMDGPU" -DLLVM_INCLUDE_TESTS=OFF
inside triton's CMake (this is so that when I call setup the environment variables are not overridden by paths that point to an incompatible compiler; not the recommended way to do this obviously)
set(LLVM_INC…