Closed ArchangeGabriel closed 4 years ago
Are you building IGC with LLVM11?
Yes, I implied so just above, sorry if it wasn’t clear.
Hello Bruno,
We currently don't fully support building IGC with LLVM 11, it is still in the development stage. I can see that you try to build igc-1.0.5353 release, this will not build with LLVM 11.
If you wish to fix the errors you mention locally, you will have to change llvm::VectorType::get()
method to IGCLLVM::FixedVectorType::get()
. This function is declared in DerivedTypes.h
header in our WrapperLLVM module, which provides backwards compatibility with previous LLVM versions. These changes are already committed to the repository on revision https://github.com/intel/intel-graphics-compiler/commit/2e257d4149901c73e6ede0552e07cee10d7a809b.
The latest IGC build that I've tested building with LLVM 11 is on commit https://github.com/intel/intel-graphics-compiler/commit/7d11ff43f42564fdfe2753b4d008abfd56ec9671. You can use this revision to build IGC with LLVM 11. Please note that we don't provide production quality on non-release builds.
@pszymich Thanks for pointing to this new commit, I’ll use it in my build. :)
As I’m building for a distro (Arch Linux), I have to try to stay on releases, while moving with our dependencies. We added LLVM 11 recently, for now it is in our [staging] area, but it will soon enter [testing] and I needed a LLVM 11 build before that, so I went ahead by removing -Werror but will now proceed with the patch. ;)
I had to turn off
-Werror
to build, because:I suppose this is new in LLVM 11.