Closed ConiKost closed 1 year ago
Hi @ConiKost, At what revision do you have vc-intrinsics checked out?
Hi @pszymich, I am using the 0.1.0 release, which is available here: https://github.com/intel/vc-intrinsics/tags
And what exact revision is LLVM?
We are verifying IGC against LLVM 13.0.0 and it's been building successfully: https://github.com/intel/intel-graphics-compiler/runs/5713751924. However, latest LLVM13 revision is 13.0.1 as of now.
@mnaczk, can we have build scripts updated to released 13.0.1?
And what exact revision is LLVM?
LLVM 13.0.1. I will have to lookup, if there are custom patches.
I would like to point out, that I am also using -DIGC_OPTION__VC_INTRINSICS_MODE="Prebuilds"
for adding vc-intrinsics externally installed. Maybe this makes some difference?
It shouldn't but verifying with vc-instrinsics built alongside IGC shouldn't take much time. Could you have a try with -DIGC_OPTION__VC_INTRINSICS_MODE="Source"
?
It shouldn't but verifying with vc-instrinsics built alongside IGC shouldn't take much time. Could you have a try with -DIGC_OPTION__VC_INTRINSICS_MODE="Source"?
As expected, it segfaults again. Tried now with Source option.
[787/906] cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10713/work/intel-graphics-compiler-igc-1.0.10713_build/IGC/VectorCompiler/lib/BiF && /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10713/work/intel-graphics-compiler-igc-1.0.10713_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfZE32.cmcl.bc VCBiFPrintfZE32.clang.bc
FAILED: IGC/VectorCompiler/lib/BiF/VCBiFPrintfZE32.cmcl.bc /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10713/work/intel-graphics-compiler-igc-1.0.10713_build/IGC/VectorCompiler/lib/BiF/VCBiFPrintfZE32.cmcl.bc
cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10713/work/intel-graphics-compiler-igc-1.0.10713_build/IGC/VectorCompiler/lib/BiF && /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10713/work/intel-graphics-compiler-igc-1.0.10713_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfZE32.cmcl.bc VCBiFPrintfZE32.clang.bc
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0. Program arguments: /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10713/work/intel-graphics-compiler-igc-1.0.10713_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfZE32.cmcl.bc VCBiFPrintfZE32.clang.bc
#0 0x00007c0c013e30c0 (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xdb20c0)
#1 0x00007c0c013e028e (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xdaf28e)
#2 0x00007c0c001dbbb0 (/lib64/libc.so.6+0x3dbb0)
#3 0x00007c0c00315f49 (/lib64/libc.so.6+0x177f49)
#4 0x00007c0c01375014 llvm::ToolOutputFile::ToolOutputFile(llvm::StringRef, std::error_code&, llvm::sys::fs::OpenFlags) (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xd44014)
#5 0x0000622cc12d3ae4 std::error_code::error_code() /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/include/g++-v11/system_error:200:7
#6 0x0000622cc12d3ae4 main /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10713/work/intel-graphics-compiler-igc-1.0.10713/IGC/VectorCompiler/CMCL/tools/Translator/Main.cpp:49:19
#7 0x00007c0c001c740b (/lib64/libc.so.6+0x2940b)
#8 0x00007c0c001c74bd __libc_start_main (/lib64/libc.so.6+0x294bd)
#9 0x0000622cc12d3ca1 _start (/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10713/work/intel-graphics-compiler-igc-1.0.10713_build/IGC/Release/CMCLTranslatorTool+0x2ca1)
[788/906] cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10713/work/intel-graphics-compiler-igc-1.0.10713_build/IGC/VectorCompiler/lib/BiF && /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10713/work/intel-graphics-compiler-igc-1.0.10713_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfZE64.cmcl.bc VCBiFPrintfZE64.clang.bc
FAILED: IGC/VectorCompiler/lib/BiF/VCBiFPrintfZE64.cmcl.bc /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10713/work/intel-graphics-compiler-igc-1.0.10713_build/IGC/VectorCompiler/lib/BiF/VCBiFPrintfZE64.cmcl.bc
cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10713/work/intel-graphics-compiler-igc-1.0.10713_build/IGC/VectorCompiler/lib/BiF && /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10713/work/intel-graphics-compiler-igc-1.0.10713_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfZE64.cmcl.bc VCBiFPrintfZE64.clang.bc
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0. Program arguments: /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10713/work/intel-graphics-compiler-igc-1.0.10713_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfZE64.cmcl.bc VCBiFPrintfZE64.clang.bc
#0 0x000070827394c0c0 (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xdb20c0)
#1 0x000070827394928e (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xdaf28e)
#2 0x0000708272744bb0 (/lib64/libc.so.6+0x3dbb0)
#3 0x000070827287ef49 (/lib64/libc.so.6+0x177f49)
#4 0x00007082738de014 llvm::ToolOutputFile::ToolOutputFile(llvm::StringRef, std::error_code&, llvm::sys::fs::OpenFlags) (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xd44014)
#5 0x00005bc4897cfae4 std::error_code::error_code() /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/include/g++-v11/system_error:200:7
#6 0x00005bc4897cfae4 main /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10713/work/intel-graphics-compiler-igc-1.0.10713/IGC/VectorCompiler/CMCL/tools/Translator/Main.cpp:49:19
#7 0x000070827273040b (/lib64/libc.so.6+0x2940b)
#8 0x00007082727304bd __libc_start_main (/lib64/libc.so.6+0x294bd)
#9 0x00005bc4897cfca1 _start (/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10713/work/intel-graphics-compiler-igc-1.0.10713_build/IGC/Release/CMCLTranslatorTool+0x2ca1)
[789/906] cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10713/work/intel-graphics-compiler-igc-1.0.10713_build/IGC/VectorCompiler/lib/BiF && /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10713/work/intel-graphics-compiler-igc-1.0.10713_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfOCL32.cmcl.bc VCBiFPrintfOCL32.clang.bc
FAILED: IGC/VectorCompiler/lib/BiF/VCBiFPrintfOCL32.cmcl.bc /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10713/work/intel-graphics-compiler-igc-1.0.10713_build/IGC/VectorCompiler/lib/BiF/VCBiFPrintfOCL32.cmcl.bc
cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10713/work/intel-graphics-compiler-igc-1.0.10713_build/IGC/VectorCompiler/lib/BiF && /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10713/work/intel-graphics-compiler-igc-1.0.10713_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfOCL32.cmcl.bc VCBiFPrintfOCL32.clang.bc
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0. Program arguments: /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10713/work/intel-graphics-compiler-igc-1.0.10713_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfOCL32.cmcl.bc VCBiFPrintfOCL32.clang.bc
#0 0x000075d37d4ab0c0 (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xdb20c0)
#1 0x000075d37d4a828e (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xdaf28e)
#2 0x000075d37c2a3bb0 (/lib64/libc.so.6+0x3dbb0)
#3 0x000075d37c3ddf49 (/lib64/libc.so.6+0x177f49)
#4 0x000075d37d43d014 llvm::ToolOutputFile::ToolOutputFile(llvm::StringRef, std::error_code&, llvm::sys::fs::OpenFlags) (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xd44014)
#5 0x0000632cab5ccae4 std::error_code::error_code() /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/include/g++-v11/system_error:200:7
#6 0x0000632cab5ccae4 main /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10713/work/intel-graphics-compiler-igc-1.0.10713/IGC/VectorCompiler/CMCL/tools/Translator/Main.cpp:49:19
#7 0x000075d37c28f40b (/lib64/libc.so.6+0x2940b)
#8 0x000075d37c28f4bd __libc_start_main (/lib64/libc.so.6+0x294bd)
#9 0x0000632cab5ccca1 _start (/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10713/work/intel-graphics-compiler-igc-1.0.10713_build/IGC/Release/CMCLTranslatorTool+0x2ca1)
[790/906] cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10713/work/intel-graphics-compiler-igc-1.0.10713_build/IGC/VectorCompiler/lib/BiF && /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10713/work/intel-graphics-compiler-igc-1.0.10713_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfOCL64.cmcl.bc VCBiFPrintfOCL64.clang.bc
FAILED: IGC/VectorCompiler/lib/BiF/VCBiFPrintfOCL64.cmcl.bc /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10713/work/intel-graphics-compiler-igc-1.0.10713_build/IGC/VectorCompiler/lib/BiF/VCBiFPrintfOCL64.cmcl.bc
cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10713/work/intel-graphics-compiler-igc-1.0.10713_build/IGC/VectorCompiler/lib/BiF && /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10713/work/intel-graphics-compiler-igc-1.0.10713_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfOCL64.cmcl.bc VCBiFPrintfOCL64.clang.bc
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0. Program arguments: /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10713/work/intel-graphics-compiler-igc-1.0.10713_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfOCL64.cmcl.bc VCBiFPrintfOCL64.clang.bc
#0 0x00007af8f6df60c0 (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xdb20c0)
#1 0x00007af8f6df328e (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xdaf28e)
#2 0x00007af8f5beebb0 (/lib64/libc.so.6+0x3dbb0)
#3 0x00007af8f5d28f49 (/lib64/libc.so.6+0x177f49)
#4 0x00007af8f6d88014 llvm::ToolOutputFile::ToolOutputFile(llvm::StringRef, std::error_code&, llvm::sys::fs::OpenFlags) (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xd44014)
#5 0x000057f4db25aae4 std::error_code::error_code() /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/include/g++-v11/system_error:200:7
#6 0x000057f4db25aae4 main /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10713/work/intel-graphics-compiler-igc-1.0.10713/IGC/VectorCompiler/CMCL/tools/Translator/Main.cpp:49:19
#7 0x00007af8f5bda40b (/lib64/libc.so.6+0x2940b)
#8 0x00007af8f5bda4bd __libc_start_main (/lib64/libc.so.6+0x294bd)
#9 0x000057f4db25aca1 _start (/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10713/work/intel-graphics-compiler-igc-1.0.10713_build/IGC/Release/CMCLTranslatorTool+0x2ca1)
Still happens with newest release :-(
@ConiKost, could you please try https://github.com/intel/vc-intrinsics/releases/tag/v0.2.0 ?
I tried IGC 10988 and VC 0.2.0, which still fails for me.
[783/909] cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10988/work/intel-graphics-compiler-igc-1.0.10988_build/IGC/VectorCompiler/lib/BiF && /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10988/work/intel-graphics-compiler-igc-1.0.10988_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfZE64.cmcl.bc VCBiFPrintfZE64.clang.bc
FAILED: IGC/VectorCompiler/lib/BiF/VCBiFPrintfZE64.cmcl.bc /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10988/work/intel-graphics-compiler-igc-1.0.10988_build/IGC/VectorCompiler/lib/BiF/VCBiFPrintfZE64.cmcl.bc
cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10988/work/intel-graphics-compiler-igc-1.0.10988_build/IGC/VectorCompiler/lib/BiF && /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10988/work/intel-graphics-compiler-igc-1.0.10988_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfZE64.cmcl.bc VCBiFPrintfZE64.clang.bc
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0. Program arguments: /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10988/work/intel-graphics-compiler-igc-1.0.10988_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfZE64.cmcl.bc VCBiFPrintfZE64.clang.bc
#0 0x00007de9980130c0 (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xdb20c0)
#1 0x00007de99801028e (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xdaf28e)
#2 0x00007de996e0bbb0 (/lib64/libc.so.6+0x3dbb0)
#3 0x00007de996f46149 (/lib64/libc.so.6+0x178149)
#4 0x00007de997fa5014 llvm::ToolOutputFile::ToolOutputFile(llvm::StringRef, std::error_code&, llvm::sys::fs::OpenFlags) (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xd44014)
#5 0x000064949c43aae4 std::error_code::error_code() /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/include/g++-v11/system_error:200:7
#6 0x000064949c43aae4 main /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10988/work/intel-graphics-compiler-igc-1.0.10988/IGC/VectorCompiler/CMCL/tools/Translator/Main.cpp:49:19
#7 0x00007de996df740b (/lib64/libc.so.6+0x2940b)
#8 0x00007de996df74bd __libc_start_main (/lib64/libc.so.6+0x294bd)
#9 0x000064949c43aca1 _start (/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10988/work/intel-graphics-compiler-igc-1.0.10988_build/IGC/Release/CMCLTranslatorTool+0x2ca1)
[784/909] cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10988/work/intel-graphics-compiler-igc-1.0.10988_build/IGC/VectorCompiler/lib/BiF && /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10988/work/intel-graphics-compiler-igc-1.0.10988_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfOCL64.cmcl.bc VCBiFPrintfOCL64.clang.bc
FAILED: IGC/VectorCompiler/lib/BiF/VCBiFPrintfOCL64.cmcl.bc /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10988/work/intel-graphics-compiler-igc-1.0.10988_build/IGC/VectorCompiler/lib/BiF/VCBiFPrintfOCL64.cmcl.bc
cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10988/work/intel-graphics-compiler-igc-1.0.10988_build/IGC/VectorCompiler/lib/BiF && /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10988/work/intel-graphics-compiler-igc-1.0.10988_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfOCL64.cmcl.bc VCBiFPrintfOCL64.clang.bc
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0. Program arguments: /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10988/work/intel-graphics-compiler-igc-1.0.10988_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfOCL64.cmcl.bc VCBiFPrintfOCL64.clang.bc
#0 0x00007098272d60c0 (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xdb20c0)
#1 0x00007098272d328e (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xdaf28e)
#2 0x00007098260cebb0 (/lib64/libc.so.6+0x3dbb0)
#3 0x000070982611a81c (/lib64/libc.so.6+0x8981c)
#4 0x00007098260ceb22 gsignal (/lib64/libc.so.6+0x3db22)
#5 0x00007098260b946a abort (/lib64/libc.so.6+0x2846a)
#6 0x000070982632993c (/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/libstdc++.so.6+0xa493c)
#7 0x0000709826357787 (/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/libstdc++.so.6+0xd2787)
#8 0x00007098263577f2 (/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/libstdc++.so.6+0xd27f2)
#9 0x0000709826357a84 (/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/libstdc++.so.6+0xd2a84)
#10 0x000070982632951e (/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/libstdc++.so.6+0xa451e)
#11 0x0000709827267ffa llvm::ToolOutputFile::ToolOutputFile(llvm::StringRef, std::error_code&, llvm::sys::fs::OpenFlags) (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xd43ffa)
#12 0x00005a71725f6ae4 std::error_code::error_code() /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/include/g++-v11/system_error:200:7
#13 0x00005a71725f6ae4 main /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10988/work/intel-graphics-compiler-igc-1.0.10988/IGC/VectorCompiler/CMCL/tools/Translator/Main.cpp:49:19
#14 0x00007098260ba40b (/lib64/libc.so.6+0x2940b)
#15 0x00007098260ba4bd __libc_start_main (/lib64/libc.so.6+0x294bd)
#16 0x00005a71725f6ca1 _start (/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10988/work/intel-graphics-compiler-igc-1.0.10988_build/IGC/Release/CMCLTranslatorTool+0x2ca1)
[785/909] cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10988/work/intel-graphics-compiler-igc-1.0.10988_build/IGC/VectorCompiler/lib/BiF && /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10988/work/intel-graphics-compiler-igc-1.0.10988_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfZE32.cmcl.bc VCBiFPrintfZE32.clang.bc
FAILED: IGC/VectorCompiler/lib/BiF/VCBiFPrintfZE32.cmcl.bc /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10988/work/intel-graphics-compiler-igc-1.0.10988_build/IGC/VectorCompiler/lib/BiF/VCBiFPrintfZE32.cmcl.bc
cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10988/work/intel-graphics-compiler-igc-1.0.10988_build/IGC/VectorCompiler/lib/BiF && /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10988/work/intel-graphics-compiler-igc-1.0.10988_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfZE32.cmcl.bc VCBiFPrintfZE32.clang.bc
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0. Program arguments: /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10988/work/intel-graphics-compiler-igc-1.0.10988_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfZE32.cmcl.bc VCBiFPrintfZE32.clang.bc
#0 0x00007033c2db00c0 (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xdb20c0)
#1 0x00007033c2dad28e (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xdaf28e)
#2 0x00007033c1ba8bb0 (/lib64/libc.so.6+0x3dbb0)
#3 0x00007033c1bf481c (/lib64/libc.so.6+0x8981c)
#4 0x00007033c1ba8b22 gsignal (/lib64/libc.so.6+0x3db22)
#5 0x00007033c1b9346a abort (/lib64/libc.so.6+0x2846a)
#6 0x00007033c1e0393c (/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/libstdc++.so.6+0xa493c)
#7 0x00007033c1e31787 (/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/libstdc++.so.6+0xd2787)
#8 0x00007033c1e317f2 (/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/libstdc++.so.6+0xd27f2)
#9 0x00007033c1e31a84 (/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/libstdc++.so.6+0xd2a84)
#10 0x00007033c1e0351e (/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/libstdc++.so.6+0xa451e)
#11 0x00007033c2d41ffa llvm::ToolOutputFile::ToolOutputFile(llvm::StringRef, std::error_code&, llvm::sys::fs::OpenFlags) (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xd43ffa)
#12 0x0000651bcbd12ae4 std::error_code::error_code() /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/include/g++-v11/system_error:200:7
#13 0x0000651bcbd12ae4 main /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10988/work/intel-graphics-compiler-igc-1.0.10988/IGC/VectorCompiler/CMCL/tools/Translator/Main.cpp:49:19
#14 0x00007033c1b9440b (/lib64/libc.so.6+0x2940b)
#15 0x00007033c1b944bd __libc_start_main (/lib64/libc.so.6+0x294bd)
#16 0x0000651bcbd12ca1 _start (/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10988/work/intel-graphics-compiler-igc-1.0.10988_build/IGC/Release/CMCLTranslatorTool+0x2ca1)
[786/909] cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10988/work/intel-graphics-compiler-igc-1.0.10988_build/IGC/VectorCompiler/lib/BiF && /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10988/work/intel-graphics-compiler-igc-1.0.10988_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfOCL32.cmcl.bc VCBiFPrintfOCL32.clang.bc
FAILED: IGC/VectorCompiler/lib/BiF/VCBiFPrintfOCL32.cmcl.bc /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10988/work/intel-graphics-compiler-igc-1.0.10988_build/IGC/VectorCompiler/lib/BiF/VCBiFPrintfOCL32.cmcl.bc
cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10988/work/intel-graphics-compiler-igc-1.0.10988_build/IGC/VectorCompiler/lib/BiF && /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10988/work/intel-graphics-compiler-igc-1.0.10988_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfOCL32.cmcl.bc VCBiFPrintfOCL32.clang.bc
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0. Program arguments: /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10988/work/intel-graphics-compiler-igc-1.0.10988_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfOCL32.cmcl.bc VCBiFPrintfOCL32.clang.bc
#0 0x000078a2720300c0 (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xdb20c0)
#1 0x000078a27202d28e (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xdaf28e)
#2 0x000078a270e28bb0 (/lib64/libc.so.6+0x3dbb0)
#3 0x000078a270f63149 (/lib64/libc.so.6+0x178149)
#4 0x000078a271fc2014 llvm::ToolOutputFile::ToolOutputFile(llvm::StringRef, std::error_code&, llvm::sys::fs::OpenFlags) (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xd44014)
#5 0x00005c2c7e64bae4 std::error_code::error_code() /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/include/g++-v11/system_error:200:7
#6 0x00005c2c7e64bae4 main /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10988/work/intel-graphics-compiler-igc-1.0.10988/IGC/VectorCompiler/CMCL/tools/Translator/Main.cpp:49:19
#7 0x000078a270e1440b (/lib64/libc.so.6+0x2940b)
#8 0x000078a270e144bd __libc_start_main (/lib64/libc.so.6+0x294bd)
#9 0x00005c2c7e64bca1 _start (/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.10988/work/intel-graphics-compiler-igc-1.0.10988_build/IGC/Release/CMCLTranslatorTool+0x2ca1)
I am also getting those segfaults with LLVM-12.
FAILED: IGC/VectorCompiler/lib/BiF/VCBiFPrintfOCL64.cmcl.bc /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061_build/IGC/VectorCompiler/lib/BiF/VCBiFPrintfOCL64.cmcl.bc
cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061_build/IGC/VectorCompiler/lib/BiF && /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfOCL64.cmcl.bc VCBiFPrintfOCL64.clang.bc
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0. Program arguments: /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfOCL64.cmcl.bc VCBiFPrintfOCL64.clang.bc
#0 0x00007ecd803fdd6d llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/lib/llvm/12/lib64/libLLVM-12.so+0x972d6d)
#1 0x00007ecd803fb8b4 llvm::sys::RunSignalHandlers() (/usr/lib/llvm/12/lib64/libLLVM-12.so+0x9708b4)
#2 0x00007ecd803fba25 (/usr/lib/llvm/12/lib64/libLLVM-12.so+0x970a25)
#3 0x00007ecd7f630bb0 (/lib64/libc.so.6+0x3dbb0)
#4 0x00007ecd7f67c81c (/lib64/libc.so.6+0x8981c)
#5 0x00007ecd7f630b22 raise (/lib64/libc.so.6+0x3db22)
#6 0x00007ecd7f61b46a abort (/lib64/libc.so.6+0x2846a)
#7 0x00007ecd7f88f95c (/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libstdc++.so.6+0xa495c)
#8 0x00007ecd7f8bd7a7 (/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libstdc++.so.6+0xd27a7)
#9 0x00007ecd7f8bc791 (/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libstdc++.so.6+0xd1791)
#10 0x00007ecd7f8bcf37 __gxx_personality_v0 (/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libstdc++.so.6+0xd1f37)
#11 0x00007ecd7f2efad4 (/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libgcc_s.so.1+0x10ad4)
#12 0x00007ecd7f2f01a3 _Unwind_RaiseException (/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libgcc_s.so.1+0x111a3)
#13 0x00007ecd7f8bda47 __cxa_throw (/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libstdc++.so.6+0xd2a47)
#14 0x00007ecd7f88f53e (/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libstdc++.so.6+0xa453e)
#15 0x00007ecd803fc00c llvm::sys::DontRemoveFileOnSignal(llvm::StringRef) (/usr/lib/llvm/12/lib64/libLLVM-12.so+0x97100c)
#16 0x00007ecd803a29f6 llvm::ToolOutputFile::CleanupInstaller::~CleanupInstaller() (/usr/lib/llvm/12/lib64/libLLVM-12.so+0x9179f6)
#17 0x00005a47da116994 std::error_code::error_code() /usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/include/g++-v11/system_error:200:7
#18 0x00005a47da116994 main /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061/IGC/VectorCompiler/CMCL/tools/Translator/Main.cpp:49:19
#19 0x00007ecd7f61c40b (/lib64/libc.so.6+0x2940b)
#20 0x00007ecd7f61c4bd __libc_start_main (/lib64/libc.so.6+0x294bd)
#21 0x00005a47da116b51 _start (/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061_build/IGC/Release/CMCLTranslatorTool+0x2b51)
[787/911] cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061_build/IGC/VectorCompiler/lib/BiF && /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfOCL32.cmcl.bc VCBiFPrintfOCL32.clang.bc
FAILED: IGC/VectorCompiler/lib/BiF/VCBiFPrintfOCL32.cmcl.bc /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061_build/IGC/VectorCompiler/lib/BiF/VCBiFPrintfOCL32.cmcl.bc
cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061_build/IGC/VectorCompiler/lib/BiF && /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfOCL32.cmcl.bc VCBiFPrintfOCL32.clang.bc
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0. Program arguments: /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfOCL32.cmcl.bc VCBiFPrintfOCL32.clang.bc
#0 0x00007a986766dd6d llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/lib/llvm/12/lib64/libLLVM-12.so+0x972d6d)
#1 0x00007a986766b8b4 llvm::sys::RunSignalHandlers() (/usr/lib/llvm/12/lib64/libLLVM-12.so+0x9708b4)
#2 0x00007a986766ba25 (/usr/lib/llvm/12/lib64/libLLVM-12.so+0x970a25)
#3 0x00007a98668a0bb0 (/lib64/libc.so.6+0x3dbb0)
#4 0x00007a98668ec81c (/lib64/libc.so.6+0x8981c)
#5 0x00007a98668a0b22 raise (/lib64/libc.so.6+0x3db22)
#6 0x00007a986688b46a abort (/lib64/libc.so.6+0x2846a)
#7 0x00007a9866aff95c (/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libstdc++.so.6+0xa495c)
#8 0x00007a9866b2d7a7 (/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libstdc++.so.6+0xd27a7)
#9 0x00007a9866b2c791 (/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libstdc++.so.6+0xd1791)
#10 0x00007a9866b2cf37 __gxx_personality_v0 (/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libstdc++.so.6+0xd1f37)
#11 0x00007a986655fad4 (/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libgcc_s.so.1+0x10ad4)
#12 0x00007a98665601a3 _Unwind_RaiseException (/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libgcc_s.so.1+0x111a3)
#13 0x00007a9866b2da47 __cxa_throw (/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libstdc++.so.6+0xd2a47)
#14 0x00007a9866aff53e (/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libstdc++.so.6+0xa453e)
#15 0x00007a986766c00c llvm::sys::DontRemoveFileOnSignal(llvm::StringRef) (/usr/lib/llvm/12/lib64/libLLVM-12.so+0x97100c)
#16 0x00007a98676129f6 llvm::ToolOutputFile::CleanupInstaller::~CleanupInstaller() (/usr/lib/llvm/12/lib64/libLLVM-12.so+0x9179f6)
#17 0x000063351da73994 std::error_code::error_code() /usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/include/g++-v11/system_error:200:7
#18 0x000063351da73994 main /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061/IGC/VectorCompiler/CMCL/tools/Translator/Main.cpp:49:19
#19 0x00007a986688c40b (/lib64/libc.so.6+0x2940b)
#20 0x00007a986688c4bd __libc_start_main (/lib64/libc.so.6+0x294bd)
#21 0x000063351da73b51 _start (/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061_build/IGC/Release/CMCLTranslatorTool+0x2b51)
[788/911] cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061_build/IGC/VectorCompiler/lib/BiF && /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfZE32.cmcl.bc VCBiFPrintfZE32.clang.bc
FAILED: IGC/VectorCompiler/lib/BiF/VCBiFPrintfZE32.cmcl.bc /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061_build/IGC/VectorCompiler/lib/BiF/VCBiFPrintfZE32.cmcl.bc
cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061_build/IGC/VectorCompiler/lib/BiF && /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfZE32.cmcl.bc VCBiFPrintfZE32.clang.bc
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0. Program arguments: /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfZE32.cmcl.bc VCBiFPrintfZE32.clang.bc
#0 0x00007a73afcecd6d llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/lib/llvm/12/lib64/libLLVM-12.so+0x972d6d)
#1 0x00007a73afcea8b4 llvm::sys::RunSignalHandlers() (/usr/lib/llvm/12/lib64/libLLVM-12.so+0x9708b4)
#2 0x00007a73afceaa25 (/usr/lib/llvm/12/lib64/libLLVM-12.so+0x970a25)
#3 0x00007a73aef1fbb0 (/lib64/libc.so.6+0x3dbb0)
#4 0x00007a73aef6b81c (/lib64/libc.so.6+0x8981c)
#5 0x00007a73aef1fb22 raise (/lib64/libc.so.6+0x3db22)
#6 0x00007a73aef0a46a abort (/lib64/libc.so.6+0x2846a)
#7 0x00007a73af17e95c (/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libstdc++.so.6+0xa495c)
#8 0x00007a73af1ac7a7 (/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libstdc++.so.6+0xd27a7)
#9 0x00007a73af1ab791 (/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libstdc++.so.6+0xd1791)
#10 0x00007a73af1abf37 __gxx_personality_v0 (/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libstdc++.so.6+0xd1f37)
#11 0x00007a73aebdead4 (/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libgcc_s.so.1+0x10ad4)
#12 0x00007a73aebdf1a3 _Unwind_RaiseException (/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libgcc_s.so.1+0x111a3)
#13 0x00007a73af1aca47 __cxa_throw (/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libstdc++.so.6+0xd2a47)
#14 0x00007a73af17e53e (/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libstdc++.so.6+0xa453e)
#15 0x00007a73afceb00c llvm::sys::DontRemoveFileOnSignal(llvm::StringRef) (/usr/lib/llvm/12/lib64/libLLVM-12.so+0x97100c)
#16 0x00007a73afc919f6 llvm::ToolOutputFile::CleanupInstaller::~CleanupInstaller() (/usr/lib/llvm/12/lib64/libLLVM-12.so+0x9179f6)
#17 0x000059a9ccdb7994 std::error_code::error_code() /usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/include/g++-v11/system_error:200:7
#18 0x000059a9ccdb7994 main /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061/IGC/VectorCompiler/CMCL/tools/Translator/Main.cpp:49:19
#19 0x00007a73aef0b40b (/lib64/libc.so.6+0x2940b)
#20 0x00007a73aef0b4bd __libc_start_main (/lib64/libc.so.6+0x294bd)
#21 0x000059a9ccdb7b51 _start (/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061_build/IGC/Release/CMCLTranslatorTool+0x2b51)
[789/911] cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061_build/IGC/VectorCompiler/lib/BiF && /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfZE64.cmcl.bc VCBiFPrintfZE64.clang.bc
FAILED: IGC/VectorCompiler/lib/BiF/VCBiFPrintfZE64.cmcl.bc /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061_build/IGC/VectorCompiler/lib/BiF/VCBiFPrintfZE64.cmcl.bc
cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061_build/IGC/VectorCompiler/lib/BiF && /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfZE64.cmcl.bc VCBiFPrintfZE64.clang.bc
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0. Program arguments: /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfZE64.cmcl.bc VCBiFPrintfZE64.clang.bc
#0 0x000077b0fe2a4d6d llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/lib/llvm/12/lib64/libLLVM-12.so+0x972d6d)
#1 0x000077b0fe2a28b4 llvm::sys::RunSignalHandlers() (/usr/lib/llvm/12/lib64/libLLVM-12.so+0x9708b4)
#2 0x000077b0fe2a2a25 (/usr/lib/llvm/12/lib64/libLLVM-12.so+0x970a25)
#3 0x000077b0fd4d7bb0 (/lib64/libc.so.6+0x3dbb0)
#4 0x000077b0fd52381c (/lib64/libc.so.6+0x8981c)
#5 0x000077b0fd4d7b22 raise (/lib64/libc.so.6+0x3db22)
#6 0x000077b0fd4c246a abort (/lib64/libc.so.6+0x2846a)
#7 0x000077b0fd73695c (/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libstdc++.so.6+0xa495c)
#8 0x000077b0fd7647a7 (/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libstdc++.so.6+0xd27a7)
#9 0x000077b0fd763791 (/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libstdc++.so.6+0xd1791)
#10 0x000077b0fd763f37 __gxx_personality_v0 (/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libstdc++.so.6+0xd1f37)
#11 0x000077b0fd196ad4 (/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libgcc_s.so.1+0x10ad4)
#12 0x000077b0fd1971a3 _Unwind_RaiseException (/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libgcc_s.so.1+0x111a3)
#13 0x000077b0fd764a47 __cxa_throw (/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libstdc++.so.6+0xd2a47)
#14 0x000077b0fd73653e (/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libstdc++.so.6+0xa453e)
#15 0x000077b0fe2a300c llvm::sys::DontRemoveFileOnSignal(llvm::StringRef) (/usr/lib/llvm/12/lib64/libLLVM-12.so+0x97100c)
#16 0x000077b0fe2499f6 llvm::ToolOutputFile::CleanupInstaller::~CleanupInstaller() (/usr/lib/llvm/12/lib64/libLLVM-12.so+0x9179f6)
#17 0x000058d1e6d4e994 std::error_code::error_code() /usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/include/g++-v11/system_error:200:7
#18 0x000058d1e6d4e994 main /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061/IGC/VectorCompiler/CMCL/tools/Translator/Main.cpp:49:19
#19 0x000077b0fd4c340b (/lib64/libc.so.6+0x2940b)
#20 0x000077b0fd4c34bd __libc_start_main (/lib64/libc.so.6+0x294bd)
#21 0x000058d1e6d4eb51 _start (/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061_build/IGC/Release/CMCLTranslatorTool+0x2b51)
[790/911] cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061_build/IGC/VectorCompiler/lib/BiF && /usr/lib/llvm/12/bin/clang-12 -cc1 -I/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061/IGC/VectorCompiler/CMCL/lib/Headers -I/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061/IGC/VectorCompiler/include -I/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061_build/IGC/VectorCompiler/include -I/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061_build/IGC/VectorCompiler/lib/BiF/Utils -x cl -cl-std=clc++ -triple=spir64 -O2 -disable-llvm-passes -emit-llvm-bc -o fp2ui_conversion.cpp.64.clang.bc /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061/IGC/VectorCompiler/lib/BiF/fp2ui_conversion.cpp
[791/911] cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061_build/IGC/VectorCompiler/lib/BiF && /usr/lib/llvm/12/bin/clang-12 -cc1 -I/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061/IGC/VectorCompiler/CMCL/lib/Headers -I/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061/IGC/VectorCompiler/include -I/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061_build/IGC/VectorCompiler/include -I/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061_build/IGC/VectorCompiler/lib/BiF/Utils -I/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061/IGC/BiFModule/Headers -x cl -cl-std=clc++ -triple=spir64 -O2 -disable-llvm-passes -emit-llvm-bc -o spirv_atomic_builtins_genx.cpp.64.clang.bc /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11061/work/intel-graphics-compiler-igc-1.0.11061/IGC/VectorCompiler/lib/BiF/spirv_atomic_builtins_genx.cpp
ninja: build stopped: subcommand failed.
* ERROR: dev-util/intel-graphics-compiler-1.0.11061::gentoo failed (compile phase):
* ninja -v -j9 -l8 failed
As expected, it segfaults again. Tried now with Source option. ... I tried IGC 10988 and VC 0.2.0, which still fails for me. ... I am also getting those segfaults with LLVM-12.
@ConiKost Are you sure everything LLVM related (llvm, liblld, llvm-spirv*, clang, opencl-clang) is built/using same version? E.g. Vector compiler and OpenCL-Clang need to be built with same libllvmspirv, with all of them using same LLVM version. See: https://github.com/intel/intel-graphics-compiler/issues/224#issuecomment-1103820725
FYI: build works fine for me when using:
And these IGC CMake options: "-DCMAKE_BUILD_TYPE=Release -DIGC_OPTION__LLVM_PREFERRED_VERSION=12".
Resulting IGC build worked fine with "compute-runtime" 22.15.22905 and 22.16.22992 versions.
Yes, this is the case. All stuff is build with LLVM-12.
I have:
Sources from following git tags:
And these IGC CMake options: "-DCMAKE_BUILD_TYPE=Release -DIGC_OPTION__LLVM_PREFERRED_VERSION=12".
Both options are set.
While LLVM13 seems fixed and works with current git master, it still fails with vc-intrinsics enabled.
Hi @ConiKost,
I compiled IGC just fine on these revisions:
.
├── SPIRV-Headers sdk-1.3.211.0
├── SPIRV-Tools sdk-1.3.211.0
├── igc igc-1.0.11279
├── llvm-project llvmorg-13.0.1
│ ├── llvm
│ │ ├── projects
│ │ │ ├── opencl-clang 9bd6fe4
│ │ │ └── llvm-spirv d7a03044
└── vc-intrinsics v0.4.2
Can you confirm the problem is still occuring?
Yes, I can confirm, that using your exact specified versions still reproduced the problem here.
Can you specify what do you mean by "enabling vc-intrinsics"? Compiling this module is enabled by default. Also, please share your exact CMake & build program command. Thanks
Can you specify what do you mean by "enabling vc-intrinsics"?
Yes, this means, I am setting this CMake options:
-DIGC_BUILD__VC_ENABLED="ON"
-DIGC_OPTION__VC_INTRINSICS_MODE="Prebuilds"
Also, please share your exact CMake & build program command. Thanks
cmake -C /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11378/work/intel-graphics-compiler-igc-1.0.11378_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DCCLANG_SONAME_VERSION=13 -DCMAKE_LIBRARY_PATH=/usr/lib/llvm/13/lib64 -DIGC_OPTION__ARCHITECTURE_TARGET=Linux64 -DIGC_OPTION__CLANG_MODE=Prebuilds -DIGC_OPTION__LINK_KHRONOS_SPIRV_TRANSLATOR=ON -DIGC_OPTION__LLD_MODE=Prebuilds -DIGC_OPTION__LLDELF_H_DIR=/usr/include/lld/Common -DIGC_OPTION__LLVM_MODE=Prebuilds -DIGC_OPTION__LLVM_PREFERRED_VERSION=13.0.1 -DIGC_OPTION__SPIRV_TOOLS_MODE=Prebuilds -DIGC_OPTION__SPIRV_TRANSLATOR_MODE=Prebuilds -DIGC_OPTION__USE_PREINSTALLED_SPRIV_HEADERS=ON -DINSTALL_GENX_IR=ON -DSPIRVLLVMTranslator_INCLUDE_DIR=/usr/lib/llvm/13/include/LLVMSPIRVLib -Wno-dev -DIGC_BUILD__VC_ENABLED=ON -DIGC_OPTION__VC_INTRINSICS_MODE=Prebuilds -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11378/work/intel-graphics-compiler-igc-1.0.11378_build/gentoo_toolchain.cmake /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11378/work/intel-graphics-compiler-igc-1.0.11378
I have tried to reproduce the error with the CMake command that you provided, but encountered a few unknowns.
To sum up. Without a complete log of the Cmake configuration stage, it is almost impossible to help out with your problem.
No response from the submitter in the last 14 days. I am closing the issue. @ConiKost If the problem still exists please reopen the issue.
No response from the submitter in the last 14 days. I am closing the issue.
@mnaczk IMHO 2 weeks is way too short time to wait for replies, people can easily be away for longer time (on vacation, sick, otherwise busy). Something like a month without a reply would be a more reasonable as a general rule for closing issues.
Single notification / question mail can more easily get accidentally filtered / ignored / lost, so pinging the issue few times before closing it may also be a good idea.
No response from the submitter in the last 14 days. I am closing the issue.
@mnaczk IMHO 2 weeks is way too short time to wait for replies, people can easily be away for longer time (on vacation, sick, otherwise busy). Something like a month without a reply would be a more reasonable as a general rule for closing issues.
@eero-t you're right, starting now, we'll wait a month for a reply. Thanks for paying attention.
Sorry, please apologize, but indeed, due holiday and some private stuff, I wasn't able to test further. Could we re-open please? :-)
How do you produce/provide prebuilds for -- LLVM -- LLD -- Clang -- OpenCL-clang -- KHRONOS_SPIRV_TRANSLATOR -- SPIRV_TOOLS
All stuff is being compiled external and provided as Prebuilds
in config options. What do you want exactly to know? configure/make calls? I can provide them, if you want.
Are you sure that all provided prebuilds are based on the same LLVM version.
Yes, this is 100% the case. All mentioned stuff is build with exact same LLVM version. Currently using LLVM 14.0.6.
Hard-coded linking to specific libs and headers may cause unpredicted behavior -- -DCMAKE_LIBRARY_PATH=/usr/lib/llvm/13/lib64 -- -DIGC_OPTION__LLDELF_H_DIR=/usr/include/lld/Common -- -DSPIRVLLVMTranslator_INCLUDE_DIR=/usr/lib/llvm/13/include/LLVMSPIRVLib --- especially this, VC and OpenCL-clang need to share the same LLVMSPIRVLib so without knowing how the prebuilds are provided I can not check if this option is correctly propagated to OpenCL-clang and VC
There is nothing I can do about. The linking needs to be specified, as Gentoo do supports called slotting of LLVM. This means, you can have multiple versions installed. In my case, I only have currently LLVM14 installed (but also tried in past with LLVM13 only). But I can't image in this case, that this an issue here. But since LLVMSPIRVLib is compiled once on the system, the exact same version is re-used accoss all stuff.
Knowing what is inside this toolchain will be helpful -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/dev-util/intel-graphics- compiler-1.0.11378/work/intel-graphics-compiler-igc-1.0.11378_build/gentoo_toolchain.cmake
Content of file is (currently for 1.0.11485):
set(CMAKE_ASM_COMPILER "x86_64-pc-linux-gnu-gcc")
set(CMAKE_ASM-ATT_COMPILER "x86_64-pc-linux-gnu-gcc")
set(CMAKE_C_COMPILER "x86_64-pc-linux-gnu-gcc")
set(CMAKE_CXX_COMPILER "x86_64-pc-linux-gnu-g++")
set(CMAKE_Fortran_COMPILER "x86_64-pc-linux-gnu-gfortran")
set(CMAKE_AR /usr/bin/x86_64-pc-linux-gnu-ar CACHE FILEPATH "Archive manager" FORCE)
set(CMAKE_RANLIB /usr/bin/x86_64-pc-linux-gnu-ranlib CACHE FILEPATH "Archive index generator" FORCE)
set(CMAKE_SYSTEM_PROCESSOR "x86_64")
Without a complete log of the Cmake configuration stage, it is almost impossible to help out with your problem.
Which files do you need?
build.log
: https://pastebin.com/UuLV7ecv
CMakeOutput.log
: https://dpaste.com/BCE2WHHZ8
@ConiKost Thanks for the response.
All stuff is being compiled external and provided as Prebuilds in config options. What do you want exactly to know? configure/make calls? I can provide them, if you want.
Configure /make calls will be useful. Also, build logs for OpenCL and Clang prebuilds will be useful too. I tried to reproduce the issue with my own prebuilds but I was unable to reproduce the issue.
I tried to reproduce the issue on Gentoo but I am not familiar with this distribution. So I still will be trying to reproduce the error on Ubuntu.
For now my main suspiction based on build.log is that Vector Compiler LIT tests use two different Clang. First clean build with LLVM, second provided by OpenCL clang. I should be able to check this hipotesis if I get build log of prebuilds componets.
Here we go.
The build.log
contains configure and make calls. If you need more, just say. I saved all logs and directories with compiled source, so I can get more stuff, if you need it.
Please note, some ebuilds are in Gentoo multilib
, so 32bit and 64bit are compiled and installed. But intel-graphics-compiler
is 64bit only compiled. All is handled my Gentoo itself. So ignore 32-bit compilation in logs, look only at 64bit.
And compiling of IGC itself (which fails with enabled -DIGC_BUILD__VC_ENABLED="ON"
and -DIGC_OPTION__VC_INTRINSICS_MODE="Prebuilds"
)
thanks for the update, I currently working on reproduction.
@mnaczk Where you able to figure out something?
Lack of updates due to vacation and holidays in Poland. I tried to reproduce the issue on Ubuntu but without success. I built every component but did not get any errors in the Vector Compiler.
I am going to make a reproduction on Gentoo. I am unfamiliar with this distro so it probably takes some time.
In the meantime. I see that crash occurs here.
cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11485-r1/work/intel-graphics-compiler-igc-1.0.11485_build/IGC/VectorCompiler/lib/BiF && \
/usr/lib/llvm/14/bin/clang-14 \
-cc1 \
-I/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11485-r1/work/intel-graphics-compiler-igc-1.0.11485/IGC/VectorCompiler/CMCL/lib/Headers \
-I/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11485-r1/work/intel-graphics-compiler-igc-1.0.11485/IGC/VectorCompiler/include \
-I/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11485-r1/work/intel-graphics-compiler-igc-1.0.11485_build/IGC/VectorCompiler/include \
-I/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11485-r1/work/intel-graphics-compiler-igc-1.0.11485_build/IGC/VectorCompiler/lib/BiF/Utils \
-x cl \
-cl-std=clc++ \
-triple=spir \
-O2 \
-disable-llvm-passes \
-emit-llvm-bc \
-o VCBiFPrintfOCL32.clang.bc\
/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11485-r1/work/intel-graphics-compiler-igc-1.0.11485/IGC/VectorCompiler/lib/BiF/printf_ocl_genx.cpp \
cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11485-r1/work/intel-graphics-compiler-igc-1.0.11485_build/IGC/VectorCompiler/lib/BiF \
/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11485-r1/work/intel-graphics-compiler-igc-1.0.11485_build/IGC/Release/CMCLTranslatorTool \
-o VCBiFPrintfOCL32.cmcl.bc VCBiFPrintfOCL32.clang.bc
Could you provide the files I listed below? I want to compare them with those I generated.
Yes, here are the files.
/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11485-r1/work/intel-graphics-compiler-igc-1.0.11485_build/IGC/VectorCompiler/lib/BiF/VCBiFPrintfOCL32.clang.bc -> https://www.bl4ckb0x.de/files/VCBiFPrintfOCL32.clang.bc.gz
/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11485-r1/work/intel-graphics-compiler-igc-1.0.11485_build/IGC/VectorCompiler/lib/BiF/Utils -> https://www.bl4ckb0x.de/files/Utils.tar.gz
/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11485-r1/work/intel-graphics-compiler-igc-1.0.11485_build/IGC/VectorCompiler/include -> https://www.bl4ckb0x.de/files/include.tar.gz
/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11485-r1/work/intel-graphics-compiler-igc-1.0.11485_build/IGC/Release/CMCLTranslatorTool -> https://www.bl4ckb0x.de/files/CMCLTranslatorTool.gz
I tried to build LLVM on Gentoo.
I managed to download LLVM sources from: https://github.com/llvm/llvm-project/releases/download/llvmorg-14.0.6/llvm-project-14.0.6.src.tar.xz
llvm-14.0.6-manpages.tar.bz2
and
llvm-gentoo-patchset-14.0.6-r1.tar.xz
from: https://dev.gentoo.org/~mgorny/dist/llvm/
I ran the CMake command:
cmake -C /var/tmp/portage/sys-devel/llvm-14.0.6-r1/work/llvm_build-abi_x86_32.x86/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DLLVM_APPEND_VC_REV=OFF -DCMAKE_INSTALL_PREFIX=/usr/lib/llvm/14 -DLLVM_LIBDIR_SUFFIX= -DBUILD_SHARED_LIBS=OFF -DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_LINK_LLVM_DYLIB=ON -DLLVM_DISTRIBUTION_COMPONENTS="LLVM;LTO;Remarks;llvm-config;cmake-exports;llvm-headers;LLVMDemangle;LLVMSupport;LLVMTableGen;" -DLLVM_TARGETS_TO_BUILD= -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="NVPTX;Hexagon;SystemZ;WebAssembly;ARM;Lanai;AVR;AArch64;VE;PowerPC;Sparc;BPF;Mips;XCore;MSP430;AMDGPU;RISCV;X86" -DLLVM_BUILD_TESTS=no -DLLVM_ENABLE_FFI=no -DLLVM_ENABLE_LIBEDIT=no -DLLVM_ENABLE_TERMINFO=yes -DLLVM_ENABLE_LIBXML2=yes -DLLVM_ENABLE_ASSERTIONS=no -DLLVM_ENABLE_LIBPFM=no -DLLVM_ENABLE_EH=ON -DLLVM_ENABLE_RTTI=ON -DLLVM_ENABLE_Z3_SOLVER=no -DLLVM_HOST_TRIPLE=i686-pc-linux-gnu -DFFI_INCLUDE_DIR= -DFFI_LIBRARY_DIR= -DLLVM_HAVE_LIBXAR=0 -DPython3_EXECUTABLE=/usr/bin/python3.10 -DOCAMLFIND=NO -DGO_EXECUTABLE=GO_EXECUTABLE-NOTFOUND -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/sys-devel/llvm-14.0.6-r1/work/llvm_build-abi_x86_32.x86/gentoo_toolchain.cmake /var/tmp/portage/sys-devel/llvm-14.0.6-r1/work/llvm
But encountered error:
CMake Error at /usr/share/cmake/Modules/CMakeDetermineSystem.cmake:130 (message):
Could not find toolchain file:
/var/tmp/portage/sys-devel/llvm-14.0.6-r1/work/llvm_build-abi_x86_32.x86/gentoo_toolchain.cmake
Call Stack (most recent call first):
CMakeLists.txt:49 (project)
Could you provide gentoo_toolchain.cmake?
AFAIK, this is being automatically created.
I've uploaded the whole source folder for all packages, after compilation was run. You can also find there the gentoo_toolchain.cmake. -> https://www.bl4ckb0x.de/files/dev.tar.bz2
Thanks for the archive. But I can not find LLVM, Clang, and LLD folders in it.
|-- dev-libs
| |-- intel-vc-intrinsics-0.5.0-r1
| | |-- build-info
| | |-- files -> /var/db/repos/gentoo/dev-libs/intel-vc-intrinsics/files
| | |-- temp
| | `-- work
| `-- opencl-clang-14.0.0
| |-- build-info
| |-- files -> /var/db/repos/gentoo/dev-libs/opencl-clang/files
| |-- temp
| `-- work
|-- dev-util
| |-- intel-graphics-compiler-1.0.11485-r1
| | |-- build-info
| | |-- distdir
| | |-- empty
| | |-- files -> /var/db/repos/gentoo/dev-util/intel-graphics-compiler/files
| | |-- homedir
| | |-- temp
| | `-- work
| |-- spirv-llvm-translator-14.0.0-r1
| | |-- build-info
| | |-- files -> /var/db/repos/gentoo/dev-util/spirv-llvm-translator/files
| | |-- temp
| | `-- work
| `-- spirv-tools-1.3.216
| |-- build-info
| |-- files -> /var/db/repos/gentoo/dev-util/spirv-tools/files
| |-- temp
| `-- work
Could you also provide source folders for LLVM, Clang, and LLD? If not, Can I safely assume that gentoo_toolchain.cmake is the same for all packages?
Could you also provide source folders for LLVM, Clang, and LLD?
Whoops, I am sorry. I just forgot to add them :-) Sorry! Uploaded a new archive containing LLVM, Clang and LLD. I also got them all saved. -> https://www.bl4ckb0x.de/files/dev.tar.bz2 (yes, same file name)
I was able to reproduce your issue on LLVM13.
My reproduction steps:
I am currently debugging the issue.
In the meantime, I want to ask why the command
emerge --ask --verbose dev-util/intel-graphics-compiler
forced me to build both LLVM13 and LLVM14?
I suspect that the issue may be caused by using different LLVM in the IGC stack.
[ebuild N ] sys-devel/llvm-common-14.0.6::gentoo USE="-verify-sig" 103143 KiB
[ebuild N ] sys-libs/binutils-libs-2.38-r2:0/2.38::gentoo USE="nls -64-bit-bfd (-cet) -multitarget -static-libs" ABI_X86="(64) -32 (-x32)" 23287 KiB
[ebuild N ] app-crypt/rhash-1.4.2::gentoo USE="nls ssl -debug -static-libs" ABI_X86="(64) -32 (-x32)" 408 KiB
[ebuild N ] dev-libs/jsoncpp-1.9.5:0/25::gentoo USE="-doc -test" 211 KiB
[ebuild N ] app-arch/libarchive-3.6.1:0/13::gentoo USE="acl bzip2 e2fsprogs iconv lzma xattr -blake2 -expat -lz4 -lzo -nettle -static-libs -verify-sig -zstd" ABI_X86="(64) -32 (-x32)" 7258 KiB
[ebuild N ] dev-libs/libuv-1.44.2:0/1::gentoo ABI_X86="(64) -32 (-x32)" 1279 KiB
[ebuild N ] dev-util/cmake-3.22.4::gentoo USE="ncurses -doc -emacs -qt5 -test" 9553 KiB
[ebuild N ] dev-util/spirv-headers-1.3.216::gentoo 427 KiB
[ebuild N ] sys-libs/libomp-14.0.6-r1::gentoo USE="(-cuda) -debug -hwloc -offload -ompt -test -verify-sig" ABI_X86="32 (64) (-x32)" LLVM_TARGETS="-AMDGPU -NVPTX" 16 KiB
[ebuild N ] dev-util/spirv-tools-1.3.216::gentoo ABI_X86="(64) -32 (-x32)" 2949 KiB
[ebuild N ] sys-devel/llvm-14.0.6-r2:14::gentoo USE="binutils-plugin libffi ncurses -debug -doc -exegesis -libedit -test -verify-sig -xar -xml -z3" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (Sparc) (SystemZ) (VE) (WebAssembly) (X86) (XCore) (-ARC) (-CSKY) (-M68k)" 214 KiB
[ebuild N ] sys-devel/llvmgold-14::gentoo 0 KiB
[ebuild N ] sys-devel/llvm-13.0.1:13::gentoo USE="binutils-plugin libffi ncurses -debug -doc -exegesis -libedit -test -xar -xml -z3" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (Sparc) (SystemZ) (WebAssembly) (X86) (XCore) (-ARC) (-CSKY) (-M68k) (-VE)" 144042 KiB
[ebuild N ] sys-devel/lld-13.0.1::gentoo USE="-debug -test" 0 KiB
[ebuild N ] sys-devel/clang-14.0.6-r1:14::gentoo USE="(pie) static-analyzer -debug -default-compiler-rt -default-libcxx -default-lld -doc -llvm-libunwind -test -verify-sig -xml" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (Sparc) (SystemZ) (VE) (WebAssembly) (X86) (XCore) (-ARC) (-CSKY) (-M68k)" PYTHON_SINGLE_TARGET="python3_10 -python3_8 -python3_9" 0 KiB
[ebuild N ] sys-devel/clang-common-14.0.6::gentoo USE="-verify-sig" 0 KiB
[ebuild N ] sys-libs/compiler-rt-14.0.6:14.0.6::gentoo USE="clang -debug -test -verify-sig" ABI_X86="32 (64)" 0 KiB
[ebuild N ] sys-libs/compiler-rt-sanitizers-14.0.6:14.0.6::gentoo USE="asan cfi clang dfsan gwp-asan hwasan libfuzzer lsan memprof msan orc profile safestack scudo tsan ubsan xray -debug (-shadowcallstack) -test -verify-sig" ABI_X86="32 (64)" 17 KiB
[ebuild N ] sys-devel/clang-runtime-14.0.6:14.0.6::gentoo USE="compiler-rt openmp sanitize -libcxx" ABI_X86="32 (64) (-x32)" 0 KiB
[ebuild N ] sys-libs/compiler-rt-13.0.1:13.0.1::gentoo USE="clang -debug -test" ABI_X86="32 (64)" 0 KiB
[ebuild N ] sys-libs/compiler-rt-sanitizers-13.0.1:13.0.1::gentoo USE="asan cfi clang dfsan gwp-asan hwasan libfuzzer lsan memprof msan orc profile safestack scudo tsan ubsan xray -debug (-shadowcallstack) -test" ABI_X86="32 (64)" 0 KiB
[ebuild N ] sys-devel/clang-runtime-13.0.1:13.0.1::gentoo USE="compiler-rt openmp sanitize -libcxx" ABI_X86="32 (64) (-x32)" 0 KiB
[ebuild N ] sys-devel/clang-13.0.1:13::gentoo USE="static-analyzer -debug -default-compiler-rt -default-libcxx -default-lld -doc -llvm-libunwind -test -xml" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (Sparc) (SystemZ) (WebAssembly) (X86) (XCore) (-ARC) (-CSKY) (-M68k) (-VE)" PYTHON_SINGLE_TARGET="python3_10 -python3_8 -python3_9" 0 KiB
[ebuild N ] dev-util/spirv-llvm-translator-13.0.0-r2:13::gentoo USE="tools -test" 1407 KiB
[ebuild N ] dev-libs/opencl-clang-13.0.0-r1:13::gentoo 25 KiB
[ebuild N ] dev-util/intel-graphics-compiler-1.0.11485-r2::gentoo USE="-debug" 8625 KiB
In the log above I can see that the below packages
Are installed only in LLVM 14 version
I was able to reproduce your issue on LLVM13.
Happy to hear, that you were able to reproduce :-)
In the meantime, I want to ask why the command emerge --ask --verbose dev-util/intel-graphics-compiler forced me to build both LLVM13 and LLVM14?
Could you add --tree
to the command, run again and show the new output?
For emerge --ask --verbose --tree dev-util/intel-graphics-compiler I got:
!!! It seems /run is not mounted. Process management may malfunction.
* IMPORTANT: 10 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
These are the packages that would be merged, in reverse order:
Calculating dependencies... done!
[ebuild N ] dev-util/intel-graphics-compiler-1.0.11485-r2::gentoo USE="-debug" 8625 KiB
[ebuild N ] dev-libs/opencl-clang-13.0.0-r1:13::gentoo 25 KiB
[ebuild N ] dev-util/spirv-llvm-translator-13.0.0-r2:13::gentoo USE="tools -test" 1407 KiB
[ebuild N ] sys-devel/clang-13.0.1:13::gentoo USE="static-analyzer -debug -default-compiler-rt -default-libcxx -default-lld -doc -llvm-libunwind -test -xml" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (Sparc) (SystemZ) (WebAssembly) (X86) (XCore) (-ARC) (-CSKY) (-M68k) (-VE)" PYTHON_SINGLE_TARGET="python3_10 -python3_8 -python3_9" 144042 KiB
[ebuild N ] sys-devel/clang-runtime-13.0.1:13.0.1::gentoo USE="compiler-rt openmp sanitize -libcxx" ABI_X86="32 (64) (-x32)" 0 KiB
[ebuild N ] sys-libs/compiler-rt-sanitizers-13.0.1:13.0.1::gentoo USE="asan cfi clang dfsan gwp-asan hwasan libfuzzer lsan memprof msan orc profile safestack scudo tsan ubsan xray -debug (-shadowcallstack) -test" ABI_X86="32 (64)" 0 KiB
[ebuild N ] sys-libs/compiler-rt-13.0.1:13.0.1::gentoo USE="clang -debug -test" ABI_X86="32 (64)" 0 KiB
[nomerge ] sys-libs/compiler-rt-sanitizers-13.0.1:13.0.1::gentoo USE="asan cfi clang dfsan gwp-asan hwasan libfuzzer lsan memprof msan orc profile safestack scudo tsan ubsan xray -debug (-shadowcallstack) -test" ABI_X86="32 (64)"
[nomerge ] sys-devel/clang-14.0.6-r1:14::gentoo USE="(pie) static-analyzer -debug -default-compiler-rt -default-libcxx -default-lld -doc -llvm-libunwind -test -verify-sig -xml" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (Sparc) (SystemZ) (VE) (WebAssembly) (X86) (XCore) (-ARC) (-CSKY) (-M68k)" PYTHON_SINGLE_TARGET="python3_10 -python3_8 -python3_9"
[ebuild N ] sys-devel/clang-runtime-14.0.6:14.0.6::gentoo USE="compiler-rt openmp sanitize -libcxx" ABI_X86="32 (64) (-x32)" 0 KiB
[ebuild N ] sys-libs/compiler-rt-sanitizers-14.0.6:14.0.6::gentoo USE="asan cfi clang dfsan gwp-asan hwasan libfuzzer lsan memprof msan orc profile safestack scudo tsan ubsan xray -debug (-shadowcallstack) -test -verify-sig" ABI_X86="32 (64)" 103160 KiB
[ebuild N ] sys-libs/compiler-rt-14.0.6:14.0.6::gentoo USE="clang -debug -test -verify-sig" ABI_X86="32 (64)" 16 KiB
[ebuild N ] sys-devel/clang-common-14.0.6::gentoo USE="-verify-sig" 0 KiB
[ebuild N ] sys-devel/clang-14.0.6-r1:14::gentoo USE="(pie) static-analyzer -debug -default-compiler-rt -default-libcxx -default-lld -doc -llvm-libunwind -test -verify-sig -xml" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (Sparc) (SystemZ) (VE) (WebAssembly) (X86) (XCore) (-ARC) (-CSKY) (-M68k)" PYTHON_SINGLE_TARGET="python3_10 -python3_8 -python3_9" 214 KiB
[nomerge ] dev-util/intel-graphics-compiler-1.0.11485-r2::gentoo USE="-debug"
[ebuild N ] sys-devel/lld-13.0.1::gentoo USE="-debug -test" 0 KiB
[ebuild N ] sys-devel/llvm-13.0.1:13::gentoo USE="binutils-plugin libffi ncurses -debug -doc -exegesis -libedit -test -xar -xml -z3" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (Sparc) (SystemZ) (WebAssembly) (X86) (XCore) (-ARC) (-CSKY) (-M68k) (-VE)" 0 KiB
[ebuild N ] sys-devel/llvmgold-14::gentoo 0 KiB
[ebuild N ] sys-devel/llvm-14.0.6-r2:14::gentoo USE="binutils-plugin libffi ncurses -debug -doc -exegesis -libedit -test -verify-sig -xar -xml -z3" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (Sparc) (SystemZ) (VE) (WebAssembly) (X86) (XCore) (-ARC) (-CSKY) (-M68k)" 0 KiB
[ebuild N ] dev-util/spirv-tools-1.3.216::gentoo ABI_X86="(64) -32 (-x32)" 2949 KiB
[nomerge ] sys-devel/clang-runtime-13.0.1:13.0.1::gentoo USE="compiler-rt openmp sanitize -libcxx" ABI_X86="32 (64) (-x32)"
[ebuild N ] sys-libs/libomp-14.0.6-r1::gentoo USE="(-cuda) -debug -hwloc -offload -ompt -test -verify-sig" ABI_X86="32 (64) (-x32)" LLVM_TARGETS="-AMDGPU -NVPTX" 0 KiB
[nomerge ] dev-util/spirv-tools-1.3.216::gentoo ABI_X86="(64) -32 (-x32)"
[ebuild N ] dev-util/spirv-headers-1.3.216::gentoo 427 KiB
[ebuild N ] dev-util/cmake-3.22.4::gentoo USE="ncurses -doc -emacs -qt5 -test" 9553 KiB
[ebuild N ] app-arch/libarchive-3.6.1:0/13::gentoo USE="acl bzip2 e2fsprogs iconv lzma xattr -blake2 -expat -lz4 -lzo -nettle -static-libs -verify-sig -zstd" ABI_X86="(64) -32 (-x32)" 7258 KiB
[ebuild N ] dev-libs/libuv-1.44.2:0/1::gentoo ABI_X86="(64) -32 (-x32)" 1279 KiB
[nomerge ] dev-util/intel-graphics-compiler-1.0.11485-r2::gentoo USE="-debug"
[nomerge ] sys-devel/llvm-13.0.1:13::gentoo USE="binutils-plugin libffi ncurses -debug -doc -exegesis -libedit -test -xar -xml -z3" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (Sparc) (SystemZ) (WebAssembly) (X86) (XCore) (-ARC) (-CSKY) (-M68k) (-VE)"
[ebuild N ] sys-libs/binutils-libs-2.38-r2:0/2.38::gentoo USE="nls -64-bit-bfd (-cet) -multitarget -static-libs" ABI_X86="(64) -32 (-x32)" 23287 KiB
[nomerge ] dev-util/intel-graphics-compiler-1.0.11485-r2::gentoo USE="-debug"
[nomerge ] dev-util/cmake-3.22.4::gentoo USE="ncurses -doc -emacs -qt5 -test"
[ebuild N ] dev-libs/jsoncpp-1.9.5:0/25::gentoo USE="-doc -test" 211 KiB
[ebuild N ] app-crypt/rhash-1.4.2::gentoo USE="nls ssl -debug -static-libs" ABI_X86="(64) -32 (-x32)" 408 KiB
[nomerge ] dev-libs/opencl-clang-13.0.0-r1:13::gentoo
[nomerge ] sys-devel/llvm-13.0.1:13::gentoo USE="binutils-plugin libffi ncurses -debug -doc -exegesis -libedit -test -xar -xml -z3" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (Sparc) (SystemZ) (WebAssembly) (X86) (XCore) (-ARC) (-CSKY) (-M68k) (-VE)"
[ebuild N ] sys-devel/llvm-common-14.0.6::gentoo USE="-verify-sig" 0 KiB
Total: 26 packages (26 new), Size of downloads: 302854 KiB
Would you like to merge these packages? [Yes/No]
I've spoken with the LLVM gentoo devs. It' normal, that *-common
and libomp
stuff is 14.x, since it's not slotted. For the rest, please disable, the use flag binutils-plugin
. I also don't have that locally enabled.
I also got a hint to check, if those created files maybe still wrongly use LLVM-14. I noticed an interessting thing. The Tool dev-util/intel-graphics-compiler-1.0.11485-r1/work/intel-graphics-compiler-igc-1.0.11485_build/IGC/Release/CMCLTranslatorTool
is linked to LLVM-14 instead of LLVM-13.
dev-util/intel-graphics-compiler-1.0.11485-r1/work/intel-graphics-compiler-igc-1.0.11485_build/IGC/Release/CMCLTranslatorTool (interpreter => /lib64/ld-linux-x86-64.so.2)
libLLVM-14.so => /usr/lib/llvm/14/lib64/libLLVM-14.so
libz.so.1 => /lib64/libz.so.1
libtinfo.so.6 => /lib64/libtinfo.so.6
libxml2.so.2 => /usr/lib64/libxml2.so.2
liblzma.so.5 => /lib64/liblzma.so.5
libicuuc.so.71 => /usr/lib64/libicuuc.so.71
libicudata.so.71 => /usr/lib64/libicudata.so.71
libm.so.6 => /lib64/libm.so.6
libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/libstdc++.so.6
libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/libgcc_s.so.1
libc.so.6 => /lib64/libc.so.6
Could it be possible, that there is some code, which does not honor -DIGC_OPTION__LLVM_PREFERRED_VERSION
?
I also got a hint to check, if those created files maybe still wrongly use LLVM-14. I noticed an interessting thing. The Tool dev-util/intel-graphics-compiler-1.0.11485-r1/work/intel-graphics-compiler-igc-1.0.11485_build/IGC/Release/CMCLTranslatorTool is linked to LLVM-14 instead of LLVM-13.
Interesting, but in my case, I can see that the CMCLTranslatorTool links with libLLVM-13.so as expected.
ldd ./CMCLTranslatorTool
linux-vdso.so.1 (0x00007fff905e4000)
libLLVM-13.so => /usr/lib/llvm/13/lib64/libLLVM-13.so (0x00007f2424039000)
libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libstdc++.so.6 (0x00007f2423e27000)
libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libgcc_s.so.1 (0x00007f2423e0d000)
libc.so.6 => /lib64/libc.so.6 (0x00007f2423c14000)
libffi.so.8 => /usr/lib64/libffi.so.8 (0x00007f2423c08000)
libz.so.1 => /lib64/libz.so.1 (0x00007f2423bec000)
libtinfo.so.6 => /lib64/libtinfo.so.6 (0x00007f2423bac000)
libm.so.6 => /lib64/libm.so.6 (0x00007f2423acd000)
/lib64/ld-linux-x86-64.so.2 (0x00007f242a374000)
I think that we have two different issues, both related to CMCLTranslatorTool.
In your build.log I can see a crash that generates an LLVM stack call, which might suggest that CMCLTranslatorTool links with a different LLVM version than Clang which generates VCBiFPrintfOCL64.clang.bc
[793/951] cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11485-r1/work/intel-graphics-compiler-igc-1.0.11485_build/IGC/VectorCompiler/lib/BiF && /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11485-r1/work/intel-graphics-compiler-igc-1.0.11485_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfOCL64.cmcl.bc VCBiFPrintfOCL64.clang.bc
[31mFAILED: [0mIGC/VectorCompiler/lib/BiF/VCBiFPrintfOCL64.cmcl.bc /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11485-r1/work/intel-graphics-compiler-igc-1.0.11485_build/IGC/VectorCompiler/lib/BiF/VCBiFPrintfOCL64.cmcl.bc
cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11485-r1/work/intel-graphics-compiler-igc-1.0.11485_build/IGC/VectorCompiler/lib/BiF && /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11485-r1/work/intel-graphics-compiler-igc-1.0.11485_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfOCL64.cmcl.bc VCBiFPrintfOCL64.clang.bc
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11485-r1/work/intel-graphics-compiler-igc-1.0.11485_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfOCL64.cmcl.bc VCBiFPrintfOCL64.clang.bc
#0 0x00007f35c576eba5 (/usr/lib/llvm/14/lib64/libLLVM-14.so+0xf6eba5)
#1 0x00007f35c576bc0b (/usr/lib/llvm/14/lib64/libLLVM-14.so+0xf6bc0b)
#2 0x00007f35c4242640 (/lib64/libc.so.6+0x3e640)
#3 0x00007f35c58fe4ec llvm::legacy::PassManagerImpl::run(llvm::Module&) (/usr/lib/llvm/14/lib64/libLLVM-14.so+0x10fe4ec)
#4 0x00006333187ccd04 llvm::ToolOutputFile::keep() /usr/lib/llvm/14/include/llvm/Support/ToolOutputFile.h:67:32
#5 0x00006333187ccd04 main /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11485-r1/work/intel-graphics-compiler-igc-1.0.11485/IGC/VectorCompiler/CMCL/tools/Translator/Main.cpp:59:14
#6 0x00007f35c422d70b (/lib64/libc.so.6+0x2970b)
#7 0x00007f35c422d7c6 __libc_start_main (/lib64/libc.so.6+0x297c6)
#8 0x00006333187cce51 _start (/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11485-r1/work/intel-graphics-compiler-igc-1.0.11485_build/IGC/Release/CMCLTranslatorTool+0x2e51)
In my build.log I got
[782/951] cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11485-r2/work/intel-graphics-compiler-igc-1.0.11485_build/IGC/VectorCompiler/lib/BiF && /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11485-r2/work/intel-graphics-compiler-igc-1.0.11485_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfOCL32.cmcl.bc VCBiFPrintfOCL32.clang.bc
FAILED: IGC/VectorCompiler/lib/BiF/VCBiFPrintfOCL32.cmcl.bc /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11485-r2/work/intel-graphics-compiler-igc-1.0.11485_build/IGC/VectorCompiler/lib/BiF/VCBiFPrintfOCL32.cmcl.bc
cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11485-r2/work/intel-graphics-compiler-igc-1.0.11485_build/IGC/VectorCompiler/lib/BiF && /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11485-r2/work/intel-graphics-compiler-igc-1.0.11485_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfOCL32.cmcl.bc VCBiFPrintfOCL32.clang.bc
/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11485-r2/work/intel-graphics-compiler-igc-1.0.11485_build/IGC/Release/CMCLTranslatorTool: error while loading shared libraries: unexpected PLT reloc type 0x00
error while loading shared libraries: unexpected PLT reloc type 0x00
is a strange error message. I am currently googling the possible root cause. Do you encounter anything like this earlier?
Interesting, but in my case, I can see that the CMCLTranslatorTool links with libLLVM-13.so as expected.
Please ignore my LLVM-14 stuff. This is wrong. I just tested again, where it failed. I re-checked and CMCLTranslatorTool is linked against libLLVM-13.so, so all fine! So as expected by you.
It's the same error here, so I guess, it's both the same. Do you have any idea, in which direction this issue could go, as this only happens with Gentoo LLVM toolchain?
[771/934] cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11702.1/work/intel-graphics-compiler-igc-1.0.11702.1_build/IGC/VectorCompiler/lib/BiF && /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11702.1/work/intel-graphics-compiler-igc-1.0.11702.1_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfZE64.cmcl.bc VCBiFPrintfZE64.clang.bc
FAILED: IGC/VectorCompiler/lib/BiF/VCBiFPrintfZE64.cmcl.bc /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11702.1/work/intel-graphics-compiler-igc-1.0.11702.1_build/IGC/VectorCompiler/lib/BiF/VCBiFPrintfZE64.cmcl.bc
cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11702.1/work/intel-graphics-compiler-igc-1.0.11702.1_build/IGC/VectorCompiler/lib/BiF && /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11702.1/work/intel-graphics-compiler-igc-1.0.11702.1_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfZE64.cmcl.bc VCBiFPrintfZE64.clang.bc
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0. Program arguments: /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11702.1/work/intel-graphics-compiler-igc-1.0.11702.1_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfZE64.cmcl.bc VCBiFPrintfZE64.clang.bc
#0 0x00007cdce8dea625 (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xdea625)
#1 0x00007cdce8de780b (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xde780b)
#2 0x00007cdce7a42640 (/lib64/libc.so.6+0x3e640)
#3 0x00007cdce7b58209 (/lib64/libc.so.6+0x154209)
#4 0x00007cdce8d7f503 llvm::ToolOutputFile::ToolOutputFile(llvm::StringRef, std::error_code&, llvm::sys::fs::OpenFlags) (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xd7f503)
#5 0x0000625ee5a4fc87 std::error_code::error_code() /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/include/g++-v12/system_error:200:7
#6 0x0000625ee5a4fc87 main /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11702.1/work/intel-graphics-compiler-igc-1.0.11702.1/IGC/VectorCompiler/CMCL/tools/Translator/Main.cpp:50:19
#7 0x00007cdce7a2d70b (/lib64/libc.so.6+0x2970b)
#8 0x00007cdce7a2d7c6 __libc_start_main (/lib64/libc.so.6+0x297c6)
#9 0x0000625ee5a4fe51 _start (/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11702.1/work/intel-graphics-compiler-igc-1.0.11702.1_build/IGC/Release/CMCLTranslatorTool+0x2e51)
[772/934] cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11702.1/work/intel-graphics-compiler-igc-1.0.11702.1_build/IGC/VectorCompiler/lib/BiF && /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11702.1/work/intel-graphics-compiler-igc-1.0.11702.1_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfZE32.cmcl.bc VCBiFPrintfZE32.clang.bc
FAILED: IGC/VectorCompiler/lib/BiF/VCBiFPrintfZE32.cmcl.bc /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11702.1/work/intel-graphics-compiler-igc-1.0.11702.1_build/IGC/VectorCompiler/lib/BiF/VCBiFPrintfZE32.cmcl.bc
cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11702.1/work/intel-graphics-compiler-igc-1.0.11702.1_build/IGC/VectorCompiler/lib/BiF && /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11702.1/work/intel-graphics-compiler-igc-1.0.11702.1_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfZE32.cmcl.bc VCBiFPrintfZE32.clang.bc
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0. Program arguments: /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11702.1/work/intel-graphics-compiler-igc-1.0.11702.1_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfZE32.cmcl.bc VCBiFPrintfZE32.clang.bc
#0 0x00007400e55ea625 (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xdea625)
#1 0x00007400e55e780b (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xde780b)
#2 0x00007400e4242640 (/lib64/libc.so.6+0x3e640)
#3 0x00007400e4358209 (/lib64/libc.so.6+0x154209)
#4 0x00007400e557f503 llvm::ToolOutputFile::ToolOutputFile(llvm::StringRef, std::error_code&, llvm::sys::fs::OpenFlags) (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xd7f503)
#5 0x000058d722bd1c87 std::error_code::error_code() /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/include/g++-v12/system_error:200:7
#6 0x000058d722bd1c87 main /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11702.1/work/intel-graphics-compiler-igc-1.0.11702.1/IGC/VectorCompiler/CMCL/tools/Translator/Main.cpp:50:19
#7 0x00007400e422d70b (/lib64/libc.so.6+0x2970b)
#8 0x00007400e422d7c6 __libc_start_main (/lib64/libc.so.6+0x297c6)
#9 0x000058d722bd1e51 _start (/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11702.1/work/intel-graphics-compiler-igc-1.0.11702.1_build/IGC/Release/CMCLTranslatorTool+0x2e51)
[773/934] cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11702.1/work/intel-graphics-compiler-igc-1.0.11702.1_build/IGC/VectorCompiler/lib/BiF && /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11702.1/work/intel-graphics-compiler-igc-1.0.11702.1_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfOCL64.cmcl.bc VCBiFPrintfOCL64.clang.bc
FAILED: IGC/VectorCompiler/lib/BiF/VCBiFPrintfOCL64.cmcl.bc /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11702.1/work/intel-graphics-compiler-igc-1.0.11702.1_build/IGC/VectorCompiler/lib/BiF/VCBiFPrintfOCL64.cmcl.bc
cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11702.1/work/intel-graphics-compiler-igc-1.0.11702.1_build/IGC/VectorCompiler/lib/BiF && /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11702.1/work/intel-graphics-compiler-igc-1.0.11702.1_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfOCL64.cmcl.bc VCBiFPrintfOCL64.clang.bc
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0. Program arguments: /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11702.1/work/intel-graphics-compiler-igc-1.0.11702.1_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfOCL64.cmcl.bc VCBiFPrintfOCL64.clang.bc
#0 0x000074bb453ea625 (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xdea625)
#1 0x000074bb453e780b (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xde780b)
#2 0x000074bb44042640 (/lib64/libc.so.6+0x3e640)
#3 0x000074bb44158209 (/lib64/libc.so.6+0x154209)
#4 0x000074bb4537f503 llvm::ToolOutputFile::ToolOutputFile(llvm::StringRef, std::error_code&, llvm::sys::fs::OpenFlags) (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xd7f503)
#5 0x00005d2e1b2e7c87 std::error_code::error_code() /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/include/g++-v12/system_error:200:7
#6 0x00005d2e1b2e7c87 main /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11702.1/work/intel-graphics-compiler-igc-1.0.11702.1/IGC/VectorCompiler/CMCL/tools/Translator/Main.cpp:50:19
#7 0x000074bb4402d70b (/lib64/libc.so.6+0x2970b)
#8 0x000074bb4402d7c6 __libc_start_main (/lib64/libc.so.6+0x297c6)
#9 0x00005d2e1b2e7e51 _start (/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11702.1/work/intel-graphics-compiler-igc-1.0.11702.1_build/IGC/Release/CMCLTranslatorTool+0x2e51)
[774/934] cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11702.1/work/intel-graphics-compiler-igc-1.0.11702.1_build/IGC/VectorCompiler/lib/BiF && /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11702.1/work/intel-graphics-compiler-igc-1.0.11702.1_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfOCL32.cmcl.bc VCBiFPrintfOCL32.clang.bc
FAILED: IGC/VectorCompiler/lib/BiF/VCBiFPrintfOCL32.cmcl.bc /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11702.1/work/intel-graphics-compiler-igc-1.0.11702.1_build/IGC/VectorCompiler/lib/BiF/VCBiFPrintfOCL32.cmcl.bc
cd /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11702.1/work/intel-graphics-compiler-igc-1.0.11702.1_build/IGC/VectorCompiler/lib/BiF && /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11702.1/work/intel-graphics-compiler-igc-1.0.11702.1_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfOCL32.cmcl.bc VCBiFPrintfOCL32.clang.bc
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0. Program arguments: /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11702.1/work/intel-graphics-compiler-igc-1.0.11702.1_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfOCL32.cmcl.bc VCBiFPrintfOCL32.clang.bc
#0 0x0000795f741ea625 (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xdea625)
#1 0x0000795f741e780b (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xde780b)
#2 0x0000795f72e42640 (/lib64/libc.so.6+0x3e640)
#3 0x0000795f72e90e1c (/lib64/libc.so.6+0x8ce1c)
#4 0x0000795f72e425b2 gsignal (/lib64/libc.so.6+0x3e5b2)
#5 0x0000795f72e2c46b abort (/lib64/libc.so.6+0x2846b)
#6 0x0000795f730a4a5f (/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/libstdc++.so.6+0xa4a5f)
#7 0x0000795f730d27d7 (/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/libstdc++.so.6+0xd27d7)
#8 0x0000795f730d2842 (/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/libstdc++.so.6+0xd2842)
#9 0x0000795f730d2a83 (/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/libstdc++.so.6+0xd2a83)
#10 0x0000795f730a45fe (/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/libstdc++.so.6+0xa45fe)
#11 0x0000795f7417f4ea llvm::ToolOutputFile::ToolOutputFile(llvm::StringRef, std::error_code&, llvm::sys::fs::OpenFlags) (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xd7f4ea)
#12 0x00006512d1471c87 std::error_code::error_code() /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/include/g++-v12/system_error:200:7
#13 0x00006512d1471c87 main /var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11702.1/work/intel-graphics-compiler-igc-1.0.11702.1/IGC/VectorCompiler/CMCL/tools/Translator/Main.cpp:50:19
#14 0x0000795f72e2d70b (/lib64/libc.so.6+0x2970b)
#15 0x0000795f72e2d7c6 __libc_start_main (/lib64/libc.so.6+0x297c6)
#16 0x00006512d1471e51 _start (/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.11702.1/work/intel-graphics-compiler-igc-1.0.11702.1_build/IGC/Release/CMCLTranslatorTool+0x2e51)
I was unable to solve
error while loading shared libraries: unexpected PLT reloc type 0x00
but, I can see that I use gcc-11.3.0 and you use gcc-12.2.0, so I will try to rebuild IGC with gcc-12.2.0.
I wonder why your workspace has gcc-12.2.0?
I am using a clean docker image and I have gcc-11.3.0?
About the future of this issue. I will try to make CMCL as a standalone project, for experimental purposes. If the problem persists in isolation from the rest of IGC, then it can be concluded that the problem is the LLVM toolchain on gentoo.
Allright, please give me an update, when available :-) Thank you so far!
Due to the high amount of work on upgrading IGC to LLVM 14 with production quality. I must postpone work on this issue, I will come back to this issue 2 weeks from now.
I tried to make CMCL a standalone project but this does not help to debug this issue. I want to try another approach. Do you know if this issue is a regression? Was there a point in the past when the IGC could build up with VectorCompiler on Gentoo? If so, I could try to isolate the problem.
I don't think, that this is a regression. I am not aware, that this was ever working on Gentoo.
I don't think, that this is a regression. I am not aware, that this was ever working on Gentoo.
Support for building using prebuilt vc-intrinsics came fairly late: https://github.com/intel/intel-graphics-compiler/issues/142
Has build been tried withvc-intrinsics sources instead of prebuild?
(All components in the stack need to use same components as other components in stack: llvm, opencl-clang, vc-intrinsics, spirv-*, igc, compute-runtime.)
Support for building using prebuilt vc-intrinsics came fairly late: https://github.com/intel/intel-graphics-compiler/issues/142
Yeah, at least, since I am the maintainer of that package, I was never able to build.
Has build been tried withvc-intrinsics sources instead of prebuild?
Yes, made no difference for me.
https://github.com/intel/intel-graphics-compiler/issues/260 mentions vISA, so it could be related too.
I gave a try, patched the path and tried to recompile. Still fails :/ AFAIK, @mnaczk was able to reproduce with his Gentoo test system?
I was able to reproduce the crash of building the Vector Compiler on Gentoo.
As mentioned by @ConiKost in this comment https://github.com/intel/intel-graphics-compiler/issues/236#issuecomment-1080998409 The crash occurs both when VC-Intrinsic is prebuilt and when it is built from the source. Therefore this should not be the case.
I hoped that this is a regression because this would be easier to resolve.
Always when I use the LLVM prebuilds from Gentoo to build CMCL Translator, which is a core component of Vector Compiler. I got error
error while loading shared libraries: unexpected PLT reloc type 0x00
Therefore I would like to try to build IGC completely without LLVM prebuilts. @ConiKost Could you please prepare a .ebuild file that instead of using prebuilts
dev-libs/opencl-clang:${LLVM_MAX_SLOT}=
dev-util/spirv-tools
sys-devel/lld:${LLVM_MAX_SLOT}=
sys-devel/llvm:${LLVM_MAX_SLOT}=
will build IGC with the source of the above components. Something similar to what you do with VC-Intrinsics prebuilds.
When the above step will be done then I will be able to continue work on this issue.
Yes, I can do that. I have prepared something locally, but need some help.
LLVM seems to consists of lot of subpackages. Which ones do I need and where do I need to place the source?
As for SPIRV-Tools, SPIRV-Headers, vc-intrinsics and SPIRV-LLVM-Translator, I as able to get their source included by IGC.
The instruction on to build IGC with the LLVM components from source can be found here: https://github.com/intel/intel-graphics-compiler/blob/master/documentation/build_ubuntu.md#build-from-sources
The directory structure should be like this
<workspace>
|- igc https://github.com/intel/intel-graphics-compiler
|- vc-intrinsics https://github.com/intel/vc-intrinsics
|- SPIRV-Tools https://github.com/KhronosGroup/SPIRV-Tools
|- SPIRV-Headers https://github.com/KhronosGroup/SPIRV-Headers
|- llvm-project https://github.com/llvm/llvm-project
|- llvm/projects/opencl-clang https://github.com/intel/opencl-clang
|- llvm/projects/llvm-spirv https://github.com/KhronosGroup/SPIRV-LLVM-Translator
If I do compile newest IGC release with enabled vc-intrinsics, compilation fails due segfaulting. Using LLVM 13.