-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build failure both with system LLVM v12, and GCC v11 #228
Comments
Same issue happens also when using older (2021) "igc-1.0.9636" release. |
Is "SWSB_G4IR.cpp" code built with LLVM or GCC? The GCC version 11.2 in my Ubuntu 21.10 build container is the same one that will be in next Ubuntu 22.04 LTS release: https://packages.ubuntu.com/jammy/gcc |
That build breakage is due to change in GCC v11 requiring C++ code to actually include the headers for the functions they use: Fix is trivial, add following line to After that fix, and dropping the failing part of 661333e commit, IGC builds. PS. The latest "igc-1.0.10200" IGC release still contains both of these bugs. |
To me this looks like your CI is missing testing for:
When you'll fix the listed build errors, you could also look into improving your CI testing coverage in this respect (distro coverage needs occasional CI updates, external dep testing hopefully not). |
Thanks for your feedback. We upgrade our open-source CI infrastructure. List of changes bellow:
Link to first upgraded build: https://github.com/intel/intel-graphics-compiler/actions/runs/1883449664 Please let me know if the issue you presented has been addressed. |
Commit 4369c97 looks OK [1], but missed the new "igc-1.0.10395" IGC release. With the CI updates, it should fine, so I'll wait until (next) release containing the fix, before testing and closing this. [1] "visa/LocalScheduler/SWSB_G4IR.cpp" issue that I was seeing, was fixed in earlier 4f51046 commit, so I wonder why I did not bump into limits header missing also from "visa/iga/IGALibrary/IR/SWSBSetter.hpp" fixed in 4369c97 (maybe that issue was introduced only in the "igc-1.0.10395" release?) |
I tried building that IGC release, and yes, that issue was added there. |
Verified that the latest release contains the fixes => Closing. |
Setup / dependencies
Ubuntu 21.10 (container) packages:
Git builds of following source versions:
Build options
-DCMAKE_BUILD_TYPE=Release
-DIGC_OPTION__LLVM_PREFERRED_VERSION=12
-DIGC_OPTION__SPIRV_TRANSLATOR_MODE=Source
-DIGC_OPTION__LINK_KHRONOS_SPIRV_TRANSLATOR=ON
Build failures
First build failure:
is due to change added by commit 661333e to
external/llvm/llvm_deps.cmake
which breaks build when system LLVM is used (i.e. there's no path to LLVM sources). Reverting that change fixes the issue.Note: I'm actually more interested about LLVM v13 support, but because the tests are not passing with it yet (according to IGC status page), I tried using v12 instead. Above issue is relevant for both though.
Next build failure:
The text was updated successfully, but these errors were encountered: