intel / intel-graphics-compiler

Other
605 stars 158 forks source link

IGC 1.0.3826 compilation failed on Fedora rawhide #132

Closed JacekDanecki closed 3 years ago

JacekDanecki commented 4 years ago

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

[ 26%] Building CXX object IGC/visa/iga/IGALibrary/CMakeFiles/IGA_ENC_LIB.dir/Models/Models.cpp.o
cd /builddir/build/BUILD/intel-graphics-compiler-6805d6db81566a166945a11e08b7ee1000d9a801/build/IGC/visa/iga/IGALibrary && /usr/bin/c++  -DCL_KHR_FP64_EXT -DCOMPILE_DEFINITIONS -DDISABLE_ENCODER_EXCEPTIONS -DGED_external -DGHAL3D=USC -DICBE_LINUX -DIGA_BUILDING_LIB -DIGA_VERSION_SUFFIX=\"\" -DIGC_CMAKE -DIGC_EXPORTS=1 -DIGC_SPIRV_ENABLED -DINSIDE_PLUGIN -DISTDLIB_UMD -DLINUX -DNDEBUG -DNOMINMAX -DSTD_CALL -DUSC_EXPORTS=1 -DUSE_MMX -DUSE_SSE -DUSE_SSE2 -DUSE_SSE3 -DUSE_SSSE3 -D_AMD64_ -D_COMPILER_DLL_ -D_CONSOLE -D_CRT_SECURE_NO_WARNINGS -D_HAS_EXCEPTIONS=1 -D_IGC_ -D_LIB -D_SCL_SECURE_NO_WARNINGS -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I/builddir/build/BUILD/intel-graphics-compiler-6805d6db81566a166945a11e08b7ee1000d9a801/IGC/WrapperLLVM/include -I/builddir/build/BUILD/intel-graphics-compiler-6805d6db81566a166945a11e08b7ee1000d9a801/build/IGC/autogen -I/builddir/build/BUILD/intel-graphics-compiler-6805d6db81566a166945a11e08b7ee1000d9a801/IGC -I/builddir/build/BUILD/intel-graphics-compiler-6805d6db81566a166945a11e08b7ee1000d9a801/IGC/common -I/builddir/build/BUILD/intel-graphics-compiler-6805d6db81566a166945a11e08b7ee1000d9a801/IGC/.. -I/builddir/build/BUILD/intel-graphics-compiler-6805d6db81566a166945a11e08b7ee1000d9a801/IGC/../Common -I/builddir/build/BUILD/intel-graphics-compiler-6805d6db81566a166945a11e08b7ee1000d9a801/IGC/../3d/common -I/builddir/build/BUILD/intel-graphics-compiler-6805d6db81566a166945a11e08b7ee1000d9a801/IGC/../inc -I/builddir/build/BUILD/intel-graphics-compiler-6805d6db81566a166945a11e08b7ee1000d9a801/IGC/../inc/common -I/builddir/build/BUILD/intel-graphics-compiler-6805d6db81566a166945a11e08b7ee1000d9a801/IGC/../inc/common/Compiler -I/builddir/build/BUILD/intel-graphics-compiler-6805d6db81566a166945a11e08b7ee1000d9a801/IGC/../inc/common/Compiler/API -I/builddir/build/BUILD/intel-graphics-compiler-6805d6db81566a166945a11e08b7ee1000d9a801/IGC/../visa/include -I/builddir/build/BUILD/intel-graphics-compiler-6805d6db81566a166945a11e08b7ee1000d9a801/build/IGC/Release -I/builddir/build/BUILD/intel-graphics-compiler-6805d6db81566a166945a11e08b7ee1000d9a801/IGC/AdaptorOCL/ocl_igc_shared/executable_format -I/builddir/build/BUILD/intel-graphics-compiler-6805d6db81566a166945a11e08b7ee1000d9a801/IGC/AdaptorOCL -I/builddir/build/BUILD/intel-graphics-compiler-6805d6db81566a166945a11e08b7ee1000d9a801/IGC/../inc/common/Compiler/common -I/builddir/build/BUILD/intel-graphics-compiler-6805d6db81566a166945a11e08b7ee1000d9a801/IGC/AdaptorOCL/cif/cif/.. -I/builddir/build/BUILD/intel-graphics-compiler-6805d6db81566a166945a11e08b7ee1000d9a801/IGC/Probe -I/builddir/build/BUILD/intel-graphics-compiler-6805d6db81566a166945a11e08b7ee1000d9a801/visa/iga/IGALibrary/../GEDLibrary/GED_external/build/autogen-intel64 -I/builddir/build/BUILD/intel-graphics-compiler-6805d6db81566a166945a11e08b7ee1000d9a801/visa/iga/IGALibrary/../GEDLibrary/GED_external/Source/common  -fno-exceptions -fdata-sections -ffunction-sections -O2 -pipe -fmessage-length=0 -march=corei7 -mstackrealign -fms-extensions -Werror -Wno-unused-parameter -Wno-missing-field-initializers -Wwrite-strings -Wno-long-long -Wswitch -Wno-sign-compare -Wno-unused-result -Wno-enum-compare -Wno-type-limits -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-extra -Wno-write-strings -finline -fno-strict-aliasing -msse -msse2 -msse3 -mssse3 -msse4 -msse4.1 -msse4.2 -Wno-unknown-pragmas -fPIC -D_FORTIFY_SOURCE=2 -fstack-protector -finline-functions -funswitch-loops -Wno-maybe-uninitialized -lrt -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden -DNDEBUG -g   -fexceptions -std=gnu++14 -o CMakeFiles/IGA_ENC_LIB.dir/Models/Models.cpp.o -c /builddir/build/BUILD/intel-graphics-compiler-6805d6db81566a166945a11e08b7ee1000d9a801/visa/iga/IGALibrary/Models/Models.cpp
make[2]: Leaving directory '/builddir/build/BUILD/intel-graphics-compiler-6805d6db81566a166945a11e08b7ee1000d9a801/build'
In file included from /builddir/build/BUILD/intel-graphics-compiler-6805d6db81566a166945a11e08b7ee1000d9a801/visa/iga/IGALibrary/Models/Models.cpp:7:
/builddir/build/BUILD/intel-graphics-compiler-6805d6db81566a166945a11e08b7ee1000d9a801/visa/iga/IGALibrary/Models/bxml/Model7P5.hpp:1238:34:   in 'constexpr' expansion of 'iga::Field(((const char*)"MathFC"), 24, 4)'
/builddir/build/BUILD/intel-graphics-compiler-6805d6db81566a166945a11e08b7ee1000d9a801/visa/iga/IGALibrary/Models/bxml/Model7P5.hpp:2055:5: internal compiler error: in tree_to_uhwi, at tree.h:4512
 2055 |     };
      |     ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccaiTXw8.out file, please attach this to your bugreport.
make[2]: *** [IGC/visa/iga/IGALibrary/CMakeFiles/IGA_ENC_LIB.dir/build.make:447: IGC/visa/iga/IGALibrary/CMakeFiles/IGA_ENC_LIB.dir/Models/Models.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1932: IGC/visa/iga/IGALibrary/CMakeFiles/IGA_ENC_LIB.dir/all] Error 2
make: *** [Makefile:172: all] Error 2

RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.HuNFCu (%build)
    Bad exit status from /var/tmp/rpm-tmp.HuNFCu (%build)
Nexion commented 4 years ago

Same issue, gcc 10.1.0/Gentoo.

dbermond commented 4 years ago

Also fails to build on Arch Linux with gcc 10.1.0. Same error.

paigeale commented 4 years ago

@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

Bidski commented 4 years ago

@paigeale do you have any details about the GCC 10 bug? Can you link me to a bug report for it?

andybe commented 4 years ago

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

paigeale commented 4 years ago

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

JacekDanecki commented 4 years ago

With #135 , builds on copr finished correctly: https://copr.fedorainfracloud.org/coprs/jdanecki/intel-opencl-ci/build/1400645/