Closed JacekDanecki closed 3 years ago
Same issue, gcc 10.1.0/Gentoo.
Also fails to build on Arch Linux with gcc 10.1.0. Same error.
@JacekDanecki,
So I talked with our IGA (Intel Graphics Assembler) team and it appears this is a specific GCC 10 compiler bug for handling constexpr. Rather than rolling out a workaround for this, there is a change in the pipe that is remodeling how these bxml model files are being generated.
Thanks, Alex Paige
@paigeale do you have any details about the GCC 10 bug? Can you link me to a bug report for it?
I can confirm this on a clean fedora 32 installation.
intel-graphics-compiler-6805d6db81566a166945a11e08b7ee1000d9a801/visa/iga/IGALibrary/Models/bxml/Model7P5.hpp:2055:5: internal compiler error: in tree_to_uhwi, at tree.h:4519 2055 | }; | ^ there is no gcc 9 on fedora 32.
i searched for 'constexpr' ... https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=bf732686c0b9c42a2fe119db774c5a65e5a97174
Look like there is a workaround (thanks @8tab) https://github.com/intel/intel-graphics-compiler/pull/135/commits/f4efb15429bdaca0122640ae63042a8950b491df
Also bug is filed against GCC 10 here https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95241
With #135 , builds on copr finished correctly: https://copr.fedorainfracloud.org/coprs/jdanecki/intel-opencl-ci/build/1400645/
Using gcc: 10.0.1-0.12.fc33 compilation failed on copr: https://download.copr.fedorainfracloud.org/results/jdanecki/intel-opencl/fedora-rawhide-x86_64/01346761-intel-igc/builder-live.log.gz