Skip to content
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

Compiling with enabled vc-intrinsics causes segfaults #236

Closed
ConiKost opened this issue Mar 27, 2022 · 61 comments
Closed

Compiling with enabled vc-intrinsics causes segfaults #236

ConiKost opened this issue Mar 27, 2022 · 61 comments
Assignees

Comments

@ConiKost
Copy link
Contributor

ConiKost commented Mar 27, 2022

If I do compile newest IGC release with enabled vc-intrinsics, compilation fails due segfaulting. Using LLVM 13.

[775/894] 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 0x000076f3def2a6e0 (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xdbd6e0)
#1 0x000076f3def278ae (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xdba8ae)
#2 0x000076f3ddd17c40 (/lib64/libc.so.6+0x3dc40)
#3 0x000076f3dde51187 (/lib64/libc.so.6+0x177187)
#4 0x000076f3deeb5a24 llvm::ToolOutputFile::ToolOutputFile(llvm::StringRef, std::error_code&, llvm::sys::fs::OpenFlags) (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xd48a24)
#5 0x000055654cde4ae4 std::error_code::error_code() /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/include/g++-v11/system_error:200:7
#6 0x000055654cde4ae4 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 0x000076f3ddd033eb (/lib64/libc.so.6+0x293eb)
#8 0x000076f3ddd03499 __libc_start_main (/lib64/libc.so.6+0x29499)
#9 0x000055654cde4ca1 _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)
[776/894] 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 0x00007844d8d466e0 (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xdbd6e0)
#1 0x00007844d8d438ae (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xdba8ae)
#2 0x00007844d7b33c40 (/lib64/libc.so.6+0x3dc40)
#3 0x00007844d7c6d187 (/lib64/libc.so.6+0x177187)
#4 0x00007844d8cd1a24 llvm::ToolOutputFile::ToolOutputFile(llvm::StringRef, std::error_code&, llvm::sys::fs::OpenFlags) (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xd48a24)
#5 0x000061dc0cfcaae4 std::error_code::error_code() /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/include/g++-v11/system_error:200:7
#6 0x000061dc0cfcaae4 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 0x00007844d7b1f3eb (/lib64/libc.so.6+0x293eb)
#8 0x00007844d7b1f499 __libc_start_main (/lib64/libc.so.6+0x29499)
#9 0x000061dc0cfcaca1 _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)
[777/894] 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
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.10713/work/intel-graphics-compiler-igc-1.0.10713_build/IGC/Release/CMCLTranslatorTool -o VCBiFPrintfOCL32.cmcl.bc VCBiFPrintfOCL32.clang.bc
 #0 0x000072305c6de6e0 (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xdbd6e0)
 #1 0x000072305c6db8ae (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xdba8ae)
 #2 0x000072305b4cbc40 (/lib64/libc.so.6+0x3dc40)
 #3 0x000072305b51784c (/lib64/libc.so.6+0x8984c)
 #4 0x000072305b4cbbb2 gsignal (/lib64/libc.so.6+0x3dbb2)
 #5 0x000072305b4b644a abort (/lib64/libc.so.6+0x2844a)
 #6 0x000072305b72693c (/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/libstdc++.so.6+0xa493c)
 #7 0x000072305b754787 (/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/libstdc++.so.6+0xd2787)
 #8 0x000072305b7547f2 (/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/libstdc++.so.6+0xd27f2)
 #9 0x000072305b754a84 (/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/libstdc++.so.6+0xd2a84)
#10 0x000072305b72651e (/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/libstdc++.so.6+0xa451e)
#11 0x000072305c669a0a llvm::ToolOutputFile::ToolOutputFile(llvm::StringRef, std::error_code&, llvm::sys::fs::OpenFlags) (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xd48a0a)
#12 0x000056f1b16e6ae4 std::error_code::error_code() /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/include/g++-v11/system_error:200:7
#13 0x000056f1b16e6ae4 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
#14 0x000072305b4b73eb (/lib64/libc.so.6+0x293eb)
#15 0x000072305b4b7499 __libc_start_main (/lib64/libc.so.6+0x29499)
#16 0x000056f1b16e6ca1 _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)
[778/894] 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 0x000076c80a2ed6e0 (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xdbd6e0)
#1 0x000076c80a2ea8ae (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xdba8ae)
#2 0x000076c8090dac40 (/lib64/libc.so.6+0x3dc40)
#3 0x000076c809214187 (/lib64/libc.so.6+0x177187)
#4 0x000076c80a278a24 llvm::ToolOutputFile::ToolOutputFile(llvm::StringRef, std::error_code&, llvm::sys::fs::OpenFlags) (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xd48a24)
#5 0x000055ff15de4ae4 std::error_code::error_code() /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/include/g++-v11/system_error:200:7
#6 0x000055ff15de4ae4 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 0x000076c8090c63eb (/lib64/libc.so.6+0x293eb)
#8 0x000076c8090c6499 __libc_start_main (/lib64/libc.so.6+0x29499)
#9 0x000055ff15de4ca1 _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)
[502440.006395] bash[17089]: segfault at 7ffc3d7b7f74 ip 000059515babb88e sp 00007ffc3d7b7f70 error 6 in bash[59515ba09000+b5000]
[502440.006403] Code: 0f 1f 84 00 00 00 00 00 0f 1f 40 00 41 57 41 56 41 55 49 89 f5 41 54 49 89 fc 55 53 48 8d a4 24 b8 fe ff ff 8b 1d 92 71 04 00 <89> 54 24 04 64 48 8b 04 25 28 00 00 00 48 89 84 24 38 01 00 00 31
[502440.012737] bash[17086]: segfault at 7fff2e87efa4 ip 00005cd9fc69988e sp 00007fff2e87efa0 error 6 in bash[5cd9fc5e7000+b5000]
[502440.012746] Code: 0f 1f 84 00 00 00 00 00 0f 1f 40 00 41 57 41 56 41 55 49 89 f5 41 54 49 89 fc 55 53 48 8d a4 24 b8 fe ff ff 8b 1d 92 71 04 00 <89> 54 24 04 64 48 8b 04 25 28 00 00 00 48 89 84 24 38 01 00 00 31
[502440.086531] bash[17093]: segfault at 7ffc682a7f34 ip 000059bd9abb288e sp 00007ffc682a7f30 error 6 in bash[59bd9ab00000+b5000]
[502440.086538] Code: 0f 1f 84 00 00 00 00 00 0f 1f 40 00 41 57 41 56 41 55 49 89 f5 41 54 49 89 fc 55 53 48 8d a4 24 b8 fe ff ff 8b 1d 92 71 04 00 <89> 54 24 04 64 48 8b 04 25 28 00 00 00 48 89 84 24 38 01 00 00 31
@pszymich
Copy link
Contributor

Hi @ConiKost,
At what revision do you have vc-intrinsics checked out?

@ConiKost
Copy link
Contributor Author

Hi @pszymich,
I am using the 0.1.0 release, which is available here: https://github.com/intel/vc-intrinsics/tags

@pszymich
Copy link
Contributor

pszymich commented Mar 28, 2022

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?

@ConiKost
Copy link
Contributor Author

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?

@pszymich
Copy link
Contributor

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"?

@ConiKost
Copy link
Contributor Author

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)

@pszymich pszymich self-assigned this Mar 28, 2022
@ConiKost
Copy link
Contributor Author

ConiKost commented Apr 7, 2022

Still happens with newest release :-(

@vmustya
Copy link
Contributor

vmustya commented Apr 22, 2022

@ConiKost
Copy link
Contributor Author

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)

@ConiKost
Copy link
Contributor Author

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

@eero-t
Copy link

eero-t commented Apr 29, 2022

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: #224 (comment)

FYI: build works fine for me when using:

  • Ubuntu 21.10 container with following packages:
    • gcc: 11.2.0
    • clang-12: 12.0.1
    • llvm-12-dev: 12.0.1
    • liblld-12-dev: 12.0.1
    • llvm-spirv: 12.0.0
    • libllvmspirvlib-dev: 12.0.0
    • libopencl-clang-dev: 12.0.0
  • Sources from following git tags:
    • gmmlib: intel-gmmlib-22.1.2
    • SPIRV-Headers: sdk-1.3.211.0
    • SPIRV-Tools: sdk-1.3.211.0
    • vc-intrinsics: v0.2.0 (v0.3.0 worked fine too)
    • intel-graphics-compiler: igc-1.0.10988

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.

@ConiKost
Copy link
Contributor Author

Yes, this is the case. All stuff is build with LLVM-12.

I have:

  • sys-devel/gcc-11.3.0
  • sys-devel/clang-12.0.1
  • sys-devel/llvm-12.0.1
  • sys-devel/lld-12.0.1
  • dev-util/spirv-llvm-translator-12.0.0
  • dev-libs/opencl-clang-12.0.0

Sources from following git tags:

  • media-libs/gmmlib-21.1.2
  • dev-util/spirv-headers-1.3.211
  • dev-util/spirv-tools-1.3.211-r1
  • dev-libs/intel-vc-intrinsics-0.3.0
  • dev-util/intel-graphics-compiler-1.0.11061

And these IGC CMake options: "-DCMAKE_BUILD_TYPE=Release -DIGC_OPTION__LLVM_PREFERRED_VERSION=12".

Both options are set.

@ConiKost
Copy link
Contributor Author

While LLVM13 seems fixed and works with current git master, it still fails with vc-intrinsics enabled.

@pszymich
Copy link
Contributor

pszymich commented May 31, 2022

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?

@ConiKost
Copy link
Contributor Author

ConiKost commented Jun 1, 2022

Yes, I can confirm, that using your exact specified versions still reproduced the problem here.

@pszymich
Copy link
Contributor

pszymich commented Jun 2, 2022

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

@ConiKost
Copy link
Contributor Author

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

@mnaczk
Copy link
Contributor

mnaczk commented Jun 15, 2022

I have tried to reproduce the error with the CMake command that you provided, but encountered a few unknowns.

  • How do you produce/provide prebuilds for
    -- LLVM
    -- LLD
    -- Clang
    -- OpenCL-clang
    -- KHRONOS_SPIRV_TRANSLATOR
    -- SPIRV_TOOLS
  • Are you sure that all provided prebuilds are based on the same LLVM version.
  • 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
  • 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

To sum up. Without a complete log of the Cmake configuration stage, it is almost impossible to help out with your problem.

@mnaczk
Copy link
Contributor

mnaczk commented Jun 30, 2022

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.

@mnaczk mnaczk closed this as not planned Won't fix, can't repro, duplicate, stale Jun 30, 2022
@eero-t
Copy link

eero-t commented Jul 18, 2022

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.

@mnaczk
Copy link
Contributor

mnaczk commented Jul 18, 2022

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.

@ConiKost
Copy link
Contributor Author

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

@pszymich pszymich reopened this Jul 21, 2022
@mnaczk
Copy link
Contributor

mnaczk commented Jul 25, 2022

@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.

@ConiKost
Copy link
Contributor Author

ConiKost commented Jul 25, 2022

Here we go.

  • LLVM (sys-devel/llvm-14.0.6-r1) click me
  • LLD (sys-devel/lld-14.0.6) click me
  • Clang (sys-devel/clang-14.0.6) click me
  • OpenCL-clang (dev-libs/opencl-clang-14.0.0) click me
  • KHRONOS_SPIRV_TRANSLATOR (dev-util/spirv-llvm-translator-14.0.0-r1) click me
  • SPIRV_TOOLS (dev-util/spirv-tools-1.3.216) click me
  • VC (dev-libs/intel-vc-intrinsics-0.5.0-r1) click me

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.

@ConiKost
Copy link
Contributor Author

ConiKost commented Jul 25, 2022

And compiling of IGC itself (which fails with enabled -DIGC_BUILD__VC_ENABLED="ON" and -DIGC_OPTION__VC_INTRINSICS_MODE="Prebuilds")

  • IGC (dev-util/intel-graphics-compiler-1.0.11485-r1) click me

@ConiKost
Copy link
Contributor Author

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)

@mnaczk
Copy link
Contributor

mnaczk commented Aug 30, 2022

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

  • sys-devel/clang-common-14.0.6::gentoo
  • sys-devel/llvmgold-14::gentoo
  • sys-devel/llvm-common-14.0.6::gentoo
  • sys-libs/libomp-14.0.6-r1::gentoo

Are installed only in LLVM 14 version

@ConiKost
Copy link
Contributor Author

ConiKost commented Aug 30, 2022

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?

@mnaczk
Copy link
Contributor

mnaczk commented Aug 30, 2022

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]

@ConiKost
Copy link
Contributor Author

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?

@mnaczk
Copy link
Contributor

mnaczk commented Aug 31, 2022

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?

@ConiKost
Copy link
Contributor Author

ConiKost commented Aug 31, 2022

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)

@mnaczk
Copy link
Contributor

mnaczk commented Sep 5, 2022

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.

@ConiKost
Copy link
Contributor Author

ConiKost commented Sep 7, 2022

Allright, please give me an update, when available :-) Thank you so far!

@mnaczk
Copy link
Contributor

mnaczk commented Sep 16, 2022

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.

@mnaczk
Copy link
Contributor

mnaczk commented Oct 13, 2022

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.

@ConiKost
Copy link
Contributor Author

I don't think, that this is a regression. I am not aware, that this was ever working on Gentoo.

@eero-t
Copy link

eero-t commented Oct 14, 2022

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: #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.)

@eero-t
Copy link

eero-t commented Oct 14, 2022

#260 mentions vISA, so it could be related too.

@ConiKost
Copy link
Contributor Author

Support for building using prebuilt vc-intrinsics came fairly late: #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.

#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?

@mnaczk
Copy link
Contributor

mnaczk commented Oct 17, 2022

I was able to reproduce the crash of building the Vector Compiler on Gentoo.

As mentioned by @ConiKost in this comment #236 (comment)
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.

@ConiKost
Copy link
Contributor Author

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.

@mnaczk
Copy link
Contributor

mnaczk commented Oct 17, 2022

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

@ConiKost
Copy link
Contributor Author

I am sorry, I don't see myself able to put that into something working. If I do put SPIRV-LLVM-Translator into /llvm-project/llvm/projects/llvm-spirv, the build system complains, it does not find it. But it seems to find it on /SPIRV-LLVM-Translator. But then it fails not having SPIRV-Headers, but they are put as specified in your list. Also unable to get it working for Clang, LLD and LLVM. Sorry, seems beyond my understand of level here.

My last work:

$ cat intel-graphics-compiler-1.0.12260.1-r2.ebuild
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

CMAKE_BUILD_TYPE="Release"
LLVM_MAX_SLOT="14"
MY_PN="igc"
MY_P="${MY_PN}-${PV}"
PYTHON_COMPAT=( python3_{8..11} )

inherit cmake flag-o-matic llvm python-any-r1

DESCRIPTION="LLVM-based OpenCL compiler for OpenCL targetting Intel Gen graphics hardware"
HOMEPAGE="https://github.com/intel/intel-graphics-compiler"
SRC_URI="
        https://github.com/intel/${PN}/archive/${MY_P}.tar.gz -> ${P}.tar.gz
        https://github.com/KhronosGroup/SPIRV-Tools/archive/refs/tags/sdk-1.3.224.1.tar.gz -> spriv-tools-1.3.224.1.tar.gz
        https://github.com/KhronosGroup/SPIRV-Headers/archive/refs/tags/sdk-1.3.224.1.tar.gz -> spriv-headers-1.3.224.1.tar.gz
        https://github.com/intel/vc-intrinsics/archive/refs/tags/v0.8.1.tar.gz -> vc-intrinsics-0.8.1.tar.gz
        https://github.com/KhronosGroup/SPIRV-LLVM-Translator/archive/refs/tags/v14.0.0.tar.gz -> spirv-llvm-translator-14.0.0.tar.gz
        https://github.com/intel/opencl-clang/archive/refs/tags/v14.0.0.tar.gz -> opencl-clang-14.0.0.tar.gz
        https://github.com/llvm/llvm-project/releases/download/llvmorg-14.0.6/clang-14.0.6.src.tar.xz
        https://github.com/llvm/llvm-project/releases/download/llvmorg-14.0.6/lld-14.0.6.src.tar.xz
        https://github.com/llvm/llvm-project/releases/download/llvmorg-14.0.6/llvm-14.0.6.src.tar.xz
"
S="${WORKDIR}/${PN}-${MY_P}"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="debug"

BDEPEND="
        ${PYTHON_DEPS}
"

PATCHES=(
        "${FILESDIR}/${PN}-1.0.9-no_Werror.patch"
        "${FILESDIR}/${PN}-1.0.8173-opencl-clang_version.patch"
        "${FILESDIR}/${PN}-1.0.8365-disable-git.patch"
        "${FILESDIR}/${PN}-1.0.11485-include-opencl-c.patch"
)

pkg_setup() {
        llvm_pkg_setup
        python-any-r1_pkg_setup
}

src_unpack() {
        default

        mv "${WORKDIR}/SPIRV-Tools-sdk-1.3.224.1" "${WORKDIR}/SPIRV-Tools" || die
        mv "${WORKDIR}/SPIRV-Headers-sdk-1.3.224.1" "${WORKDIR}/SPIRV-Headers" || die
        mv "${WORKDIR}/vc-intrinsics-0.8.1" "${WORKDIR}/vc-intrinsics" || die
        mv "${WORKDIR}/SPIRV-LLVM-Translator-14.0.0" "${WORKDIR}/SPIRV-LLVM-Translator" || die
        mv "${WORKDIR}/opencl-clang-14.0.0" "${WORKDIR}/opencl-clang" || die

}

src_configure() {
        # Get LLVM version
        local llvm_version="$(best_version -d sys-devel/llvm:${LLVM_MAX_SLOT})"
        local llvm_version="${llvm_version%%-r*}"

        # See https://github.com/intel/intel-graphics-compiler/issues/212
        append-ldflags -Wl,-z,undefs

        # See https://bugs.gentoo.org/718824
        ! use debug && append-cppflags -DNDEBUG

        local mycmakeargs=(
                #-DCCLANG_INCLUDE_PREBUILDS_DIR="/usr/lib/clang/${llvm_version##*-}/include"
                #-DCCLANG_SONAME_VERSION="${LLVM_MAX_SLOT}"
                #-DCMAKE_LIBRARY_PATH="$(get_llvm_prefix ${LLVM_MAX_SLOT})/$(get_libdir)"
                -DIGC_OPTION__ARCHITECTURE_TARGET="Linux64"
                -DIGC_OPTION__CLANG_MODE="Source"
                -DIGC_OPTION__LINK_KHRONOS_SPIRV_TRANSLATOR="ON"
                -DIGC_OPTION__LLD_MODE="Source"
                -DIGC_OPTION__LLDELF_H_DIR="${EPREFIX}/usr/include/lld/Common"
                -DIGC_OPTION__LLVM_MODE="Source"
                -DIGC_OPTION__LLVM_PREFERRED_VERSION="${llvm_version##*-}"
                -DIGC_OPTION__SPIRV_TOOLS_MODE="Source"
                -DIGC_OPTION__SPIRV_TRANSLATOR_MODE="Source"
                #-DIGC_OPTION__USE_PREINSTALLED_SPRIV_HEADERS="ON"
                -DINSTALL_GENX_IR="ON"
                #-DSPIRVLLVMTranslator_INCLUDE_DIR="${EPREFIX}/usr/lib/llvm/${LLVM_MAX_SLOT}/include/LLVMSPIRVLib"
                -Wno-dev

                # Compilation with VectorCompiler causes currently a segfault.
                # See https://github.com/intel/intel-graphics-compiler/issues/236
                -DIGC_BUILD__VC_ENABLED="ON"
                -DIGC_OPTION__VC_INTRINSICS_MODE="Source"

                -DIGC_OPTION__lld_SOURCES_DIR="${WORKDIR}/lld-14.0.6.src"
        )

        cmake_src_configure
}

@mnaczk
Copy link
Contributor

mnaczk commented Nov 7, 2022

I manage to create ebuild file that starts to build IGC with IGC from the source

# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

CMAKE_BUILD_TYPE="Release"
LLVM_MAX_SLOT="14"
MY_PN="igc"
MY_P="${MY_PN}-${PV}"
PYTHON_COMPAT=( python3_{8..11} )

inherit cmake flag-o-matic python-any-r1 git-r3

DESCRIPTION="LLVM-based OpenCL compiler for OpenCL targetting Intel Gen graphics hardware"
HOMEPAGE="https://github.com/intel/intel-graphics-compiler"
SRC_URI="
        https://github.com/intel/${PN}/archive/${MY_P}.tar.gz -> ${P}.tar.gz
        https://github.com/KhronosGroup/SPIRV-Tools/archive/refs/tags/sdk-1.3.224.1.tar.gz -> spriv-tools-1.3.224.1.tar.gz
        https://github.com/KhronosGroup/SPIRV-Headers/archive/refs/tags/sdk-1.3.224.1.tar.gz -> spriv-headers-1.3.224.1.tar.gz
        https://github.com/intel/vc-intrinsics/archive/refs/tags/v0.8.1.tar.gz -> vc-intrinsics-0.8.1.tar.gz
        https://github.com/KhronosGroup/SPIRV-LLVM-Translator/archive/refs/tags/v14.0.0.tar.gz -> spirv-llvm-translator-14.0.0.tar.gz
        https://github.com/intel/opencl-clang/archive/refs/tags/v14.0.0.tar.gz -> opencl-clang-14.0.0.tar.gz
        https://github.com/llvm/llvm-project/releases/download/llvmorg-14.0.5/llvm-project-14.0.5.src.tar.xz
"
S="${WORKDIR}/${PN}-${MY_P}"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="debug"

BDEPEND="
        ${PYTHON_DEPS}
"

PATCHES=()

pkg_setup() {
        llvm_pkg_setup
        python-any-r1_pkg_setup
}

src_unpack() {
        default

        mv "${WORKDIR}/SPIRV-Tools-sdk-1.3.224.1" "${WORKDIR}/SPIRV-Tools" || die
        mv "${WORKDIR}/vc-intrinsics-0.8.1" "${WORKDIR}/vc-intrinsics" || die
        mv "${WORKDIR}/llvm-project-14.0.5.src" "${WORKDIR}/llvm-project" || die
        mv "${WORKDIR}/SPIRV-LLVM-Translator-14.0.0" "${WORKDIR}/llvm-project/llvm/projects/llvm-spirv" || die
        mv "${WORKDIR}/opencl-clang-14.0.0" "${WORKDIR}/llvm-project/llvm/projects/opencl-clang" || die
        mv "${WORKDIR}/SPIRV-Headers-sdk-1.3.224.1" "${WORKDIR}/SPIRV-Headers" || die
        /usr/bin/git config --global user.name "FirstName LastName" || die
        /usr/bin/git config --global user.email "your@email.com" || die
        rm -r "${WORKDIR}/llvm-project/llvm/projects/opencl-clang/patches/clang" || die
}

src_configure() {
        # Get LLVM version
        #local llvm_version="$(best_version -d sys-devel/llvm:${LLVM_MAX_SLOT})"
        #local llvm_version="${llvm_version%%-r*}"

        # See https://github.com/intel/intel-graphics-compiler/issues/212
        append-ldflags -Wl,-z,undefs

        # See https://bugs.gentoo.org/718824
        ! use debug && append-cppflags -DNDEBUG

        local mycmakeargs=(
                -DIGC_OPTION__ARCHITECTURE_TARGET="Linux64"
                -DIGC_OPTION__LLVM_PREFERRED_VERSION=14.0.5
                -Wno-dev
                #-DLLVM_EXTERNAL_PROJECTS="SPIRV-Headers"
                #-DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR="${WORKDIR}/llvm-project/llvm/projects/SPIRV-Headers"
                )

        cmake_src_configure
}

I still got error
/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.12260.1-r2/work/intel-graphics-compiler-igc-1.0.12260.1_build/IGC/Release/CMCLTranslatorTool: error while loading shared libraries: unexpected PLT reloc type 0x00

I think that this can be related to the fact that I need to change the line
'KEYWORDS="~amd64" to KEYWORDS="amd64" if I want to start building

Do you know what 'KEYWORDS="~amd64" option is responsible for?
And also could you try to build IGC by the ebuild file that I attached?

@mnaczk
Copy link
Contributor

mnaczk commented Nov 7, 2022

Additionally, for reproduction, I run Gentoo on docker. Do you think that this could be the cause of why I got the error?
/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.12260.1-r2/work/intel-graphics-compiler-igc-1.0.12260.1_build/IGC/Release/CMCLTranslatorTool: error while loading shared libraries: unexpected PLT reloc type 0x00
Do you ever hear before that running Gentoo on docker has some issue with PLT?

@ConiKost
Copy link
Contributor Author

ConiKost commented Nov 7, 2022

I think that this can be related to the fact that I need to change the line 'KEYWORDS="~amd64" to KEYWORDS="amd64" if I want to start building

No, that should have nothing to do with that. That's only keywords, if you have a stable or testing system. Since per default most packages are stable, it's okay, if you changed to amd64 from ~amd64.

Additionally, for reproduction, I run Gentoo on docker. Do you think that this could be the cause of why I got the error?

To be honest, I have not a slightly idea, why you are getting this error. I am not able to reproduce that on my local system. I have spoken with our infra. Could it be an option, to provide you a Gentoo VM with root access? The only point, it would be IPv6 only reachable, as we currently don't have enough public IPv4 address available.

@vmustya
Copy link
Contributor

vmustya commented Dec 29, 2022

@ConiKost, @pszymich, @mnaczk, I was able to reproduce the failure on my home gentoo desktop, and I see, that portage tries to build both vc-intrinsics and all the IGC internal libraries as shared objects. However, IGC expects all this stuff to be compiled as static libraries. I'll try to make all this stuff explicitly static for newer IGC releases. However, we can pass -DBUILD_SHARED_LIBS=OFF cmake knob as a workaround. I was able to build IGC with VC enabled successfully using the following ebuild files:

  1. dev-libs/intel-vc-intrinsics/intel-vc-intrinsics-0.7.1-r1.ebuild
...
src_configure() {
	local mycmakeargs=(
		-DLLVM_DIR="$(get_llvm_prefix ${LLVM_MAX_SLOT})"
                -DBUILD_SHARED_LIBS=OFF
	)

	cmake_src_configure
}
  1. dev-util/intel-graphics-compiler/intel-graphics-compiler-1.0.12504.6.ebuild
...
DEPEND="
	dev-libs/opencl-clang:${LLVM_MAX_SLOT}=
	dev-util/spirv-tools
	sys-devel/lld:${LLVM_MAX_SLOT}=
	sys-devel/llvm:${LLVM_MAX_SLOT}=
        =dev-libs/intel-vc-intrinsics-0.7.1-r1
"
...
src_configure() {
	# Get LLVM version
	local llvm_version="$(best_version -d sys-devel/llvm:${LLVM_MAX_SLOT})"
	local llvm_version="${llvm_version%%-r*}"

	# See https://github.com/intel/intel-graphics-compiler/issues/212
	append-ldflags -Wl,-z,undefs

	# See https://bugs.gentoo.org/718824
	! use debug && append-cppflags -DNDEBUG

	local mycmakeargs=(
		-DCCLANG_INCLUDE_PREBUILDS_DIR="/usr/lib/clang/${llvm_version##*-}/include"
		-DCCLANG_SONAME_VERSION="${LLVM_MAX_SLOT}"
		-DCMAKE_LIBRARY_PATH="$(get_llvm_prefix ${LLVM_MAX_SLOT})/$(get_libdir)"
		-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="${EPREFIX}/usr/include/lld/Common"
		-DIGC_OPTION__LLVM_MODE="Prebuilds"
		-DIGC_OPTION__LLVM_PREFERRED_VERSION="${llvm_version##*-}"
		-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="${EPREFIX}/usr/lib/llvm/${LLVM_MAX_SLOT}/include/LLVMSPIRVLib"
		-Wno-dev

		# Compilation with VectorCompiler causes currently a segfault.
		# See https://github.com/intel/intel-graphics-compiler/issues/236
		# -DIGC_BUILD__VC_ENABLED="OFF"
		-DIGC_OPTION__VC_INTRINSICS_MODE="Prebuilds"
                -DBUILD_SHARED_LIBS=OFF
	)

	cmake_src_configure
}

@ConiKost
Copy link
Contributor Author

However, we can pass -DBUILD_SHARED_LIBS=OFF cmake knob as a workaround. I was able to build IGC with VC enabled successfully using the following ebuild files: [..]

While is may be a short term workaround, I am afraid, that we cannot commit this change, since static libs are not allowed by policy and should be only used in special cases in Gentoo.

And a second question is open, by for example, in Arch Linux, it seems to work fine with shared libs. They didn't disabled them.

@vmustya
Copy link
Contributor

vmustya commented Dec 29, 2022

@ConiKost, actually, the -DBUILD_SHARED_LIBS=OFF knob passed to IGC build will not affect installable libraries. We will still install only shared ones like libigc.so. However it will affect libraries which are required during IGC build and should be linked into libigc.so. So I believe it may be a valid workaround.

We also need to double-check vc-intrinsics usage as a shared library. Actually, we have never tried, but it probably will work.

@vmustya
Copy link
Contributor

vmustya commented Dec 29, 2022

This change should fix the issue for the top-of-trunk IGC: 753a6a4

@ConiKost
Copy link
Contributor Author

@ConiKost, actually, the -DBUILD_SHARED_LIBS=OFF knob passed to IGC build will not affect installable libraries. We will still install only shared ones like libigc.so. However it will affect libraries which are required during IGC build and should be linked into libigc.so. So I believe it may be a valid workaround.

Thanks for clarifying, that would be indeed okay to enable static.

This change should fix the issue for the top-of-trunk IGC: 753a6a4

Great, I will test locally and report back.

@ConiKost
Copy link
Contributor Author

This change should fix the issue for the top-of-trunk IGC: 753a6a4

Looks good. If I do apply this patch and enable VC, IGC just compiles fine. I will push that into Gentoo.

@mnaczk
Copy link
Contributor

mnaczk commented Jan 4, 2023

Great, Thanks @vmustya for the help.

@mnaczk mnaczk closed this as completed Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants