Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 817146 - dev-libs/intel-compute-runtime-21.39.21127 fails to compile
Summary: dev-libs/intel-compute-runtime-21.39.21127 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jan Henke
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-09 09:00 UTC by Agostino Sarubbo
Modified: 2022-03-27 22:23 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,256.72 KB, text/plain)
2021-10-09 09:00 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2021-10-09 09:00:42 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-libs/intel-compute-runtime-21.39.21127 fails to compile.
Discovered on: amd64 (internal ref: ci)

NOTE:
This machine uses GCC-11: https://gcc.gnu.org/gcc-11/porting_to.html
If you think this is a GCC-11 related issue, please block bug 732706.
Comment 1 Agostino Sarubbo gentoo-dev 2021-10-09 09:00:45 UTC
Created attachment 744006 [details]
build.log

build log and emerge --info
Comment 2 Conrad Kostecki gentoo-dev 2021-10-09 11:23:26 UTC
Hm, here we go again :/ I still not able to reproduce that.

Seems, that 'ocloc' is the one, which fails. But there is zero error output.
@Marecki: Any idea, how to debug this more?

[353/1269] cd /var/tmp/portage/dev-libs/intel-compute-runtime-21.39.21127/work/compute-runtime-21.39.21127/shared/source/built_ins/kernels && LD_LIBRARY_PATH=/var/tmp/portage/dev-libs/intel-compute-runtime-21.39.21127/work/compute-runtime-21.39.21127_build/bin /var/tmp/portage/dev-libs/intel-compute-runtime-21.39.21127/work/compute-runtime-21.39.21127_build/bin/ocloc -q -file aux_translation.builtin_kernel -spv_only -device tgllp -64 -output bindful_aux_translation -out_dir /var/tmp/portage/dev-libs/intel-compute-runtime-21.39.21127/work/compute-runtime-21.39.21127_build/bin/built_ins/x64/gen12lp -options -cl-kernel-arg-info
FAILED: bin/built_ins/x64/gen12lp/bindful_aux_translation_Gen12LPlp.spv /var/tmp/portage/dev-libs/intel-compute-runtime-21.39.21127/work/compute-runtime-21.39.21127_build/bin/built_ins/x64/gen12lp/bindful_aux_translation_Gen12LPlp.spv 
cd /var/tmp/portage/dev-libs/intel-compute-runtime-21.39.21127/work/compute-runtime-21.39.21127/shared/source/built_ins/kernels && LD_LIBRARY_PATH=/var/tmp/portage/dev-libs/intel-compute-runtime-21.39.21127/work/compute-runtime-21.39.21127_build/bin /var/tmp/portage/dev-libs/intel-compute-runtime-21.39.21127/work/compute-runtime-21.39.21127_build/bin/ocloc -q -file aux_translation.builtin_kernel -spv_only -device tgllp -64 -output bindful_aux_translation -out_dir /var/tmp/portage/dev-libs/intel-compute-runtime-21.39.21127/work/compute-runtime-21.39.21127_build/bin/built_ins/x64/gen12lp -options -cl-kernel-arg-info
Command was: /var/tmp/portage/dev-libs/intel-compute-runtime-21.39.21127/work/compute-runtime-21.39.21127_build/bin/ocloc -q -file aux_translation.builtin_kernel -spv_only -device tgllp -64 -output bindful_aux_translation -out_dir /var/tmp/portage/dev-libs/intel-compute-runtime-21.39.21127/work/compute-runtime-21.39.21127_build/bin/built_ins/x64/gen12lp -options -cl-kernel-arg-info

and

[354/1269] cd /var/tmp/portage/dev-libs/intel-compute-runtime-21.39.21127/work/compute-runtime-21.39.21127/shared/source/built_ins/kernels && LD_LIBRARY_PATH=/var/tmp/portage/dev-libs/intel-compute-runtime-21.39.21127/work/compute-runtime-21.39.21127_build/bin /var/tmp/portage/dev-libs/intel-compute-runtime-21.39.21127/work/compute-runtime-21.39.21127_build/bin/ocloc -q -file copy_buffer_rect.builtin_kernel -spv_only -device tgllp -64 -output bindful_copy_buffer_rect -out_dir /var/tmp/portage/dev-libs/intel-compute-runtime-21.39.21127/work/compute-runtime-21.39.21127_build/bin/built_ins/x64/gen12lp -options -cl-kernel-arg-info
FAILED: bin/built_ins/x64/gen12lp/bindful_copy_buffer_rect_Gen12LPlp.spv /var/tmp/portage/dev-libs/intel-compute-runtime-21.39.21127/work/compute-runtime-21.39.21127_build/bin/built_ins/x64/gen12lp/bindful_copy_buffer_rect_Gen12LPlp.spv 
cd /var/tmp/portage/dev-libs/intel-compute-runtime-21.39.21127/work/compute-runtime-21.39.21127/shared/source/built_ins/kernels && LD_LIBRARY_PATH=/var/tmp/portage/dev-libs/intel-compute-runtime-21.39.21127/work/compute-runtime-21.39.21127_build/bin /var/tmp/portage/dev-libs/intel-compute-runtime-21.39.21127/work/compute-runtime-21.39.21127_build/bin/ocloc -q -file copy_buffer_rect.builtin_kernel -spv_only -device tgllp -64 -output bindful_copy_buffer_rect -out_dir /var/tmp/portage/dev-libs/intel-compute-runtime-21.39.21127/work/compute-runtime-21.39.21127_build/bin/built_ins/x64/gen12lp -options -cl-kernel-arg-info
Command was: /var/tmp/portage/dev-libs/intel-compute-runtime-21.39.21127/work/compute-runtime-21.39.21127_build/bin/ocloc -q -file copy_buffer_rect.builtin_kernel -spv_only -device tgllp -64 -output bindful_copy_buffer_rect -out_dir /var/tmp/portage/dev-libs/intel-compute-runtime-21.39.21127/work/compute-runtime-21.39.21127_build/bin/built_ins/x64/gen12lp -options -cl-kernel-arg-info
Comment 3 Marek Szuba archtester gentoo-dev 2021-10-09 19:46:43 UTC
(In reply to Conrad Kostecki from comment #2)

> @Marecki: Any idea, how to debug this more?

I assume manually running ocloc has already been tried? If so, only one - see if the same happens with a different target device (IIRC there is a cmake option for specifying the default target).
Comment 4 Ionen Wolkens gentoo-dev 2021-10-10 08:33:17 UTC
(In reply to Marek Szuba from comment #3)
> I assume manually running ocloc has already been tried? [...]
I still can't reproduce but did try to run the command directly to see how it behaves. It never gives any output even on errors and instead will return varied exit codes. Knowing the return value may be at least something to go by.

It notably fail the same way if a file is missing, so can't rule out race conditions as well.
Comment 5 Nicholas Santos 2021-11-04 14:39:24 UTC
I ran into this same issue but with zero error output on the actual failure, it was hard to figure out what was causing it. I was thinking this had something to do with LLVM as that package was also updated recently on my system. I found this bug report which recommended recompiling opencl-clang and spirv-llvm-translator.

https://github.com/intel/intel-graphics-compiler/issues/202

I recompiled both and still encountered the same error. JacekDanecki stated in the issue, "You don't have to recompile IGC after opencl-clang/llvm-spirv-translator build." Further down he says "Compute runtime doesn't use llvm directly, it loads IGC libraries."

I then rebuilt all 3 (opencl-clang spirv-llvm-translator intel-graphics-compiler) and was finally able to successfully build dev-libs/intel-compute-runtime-21.43.21438.
Comment 6 Larry the Git Cow gentoo-dev 2022-03-27 22:23:12 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80d011f408fa50ac5733fc2f629dc55c2abb19ee

commit 80d011f408fa50ac5733fc2f629dc55c2abb19ee
Author:     Conrad Kostecki <conikost@gentoo.org>
AuthorDate: 2022-03-27 01:22:08 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2022-03-27 22:21:06 +0000

    dev-libs/intel-compute-runtime: add 22.11.22682
    
    Closes: https://bugs.gentoo.org/817146
    Closes: https://github.com/gentoo/gentoo/pull/23595
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 dev-libs/intel-compute-runtime/Manifest            |  1 +
 .../intel-compute-runtime-22.11.22682.ebuild       | 71 ++++++++++++++++++++++
 2 files changed, 72 insertions(+)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb7a87df42143a54309e6c16ec23dccaa430cfc9

commit eb7a87df42143a54309e6c16ec23dccaa430cfc9
Author:     Conrad Kostecki <conikost@gentoo.org>
AuthorDate: 2022-03-27 01:17:54 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2022-03-27 22:21:04 +0000

    dev-util/intel-graphics-compiler: add 1.0.10713
    
    Bug: https://bugs.gentoo.org/817146
    Closes: https://bugs.gentoo.org/822438
    Closes: https://github.com/gentoo/gentoo/pull/24731
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 dev-util/intel-graphics-compiler/Manifest          |  1 +
 ...713-allow-external-spirv-tools-fix-static.patch | 23 ++++++
 ...10713-allow-external-spirv-tools-last-fix.patch | 40 ++++++++++
 .../intel-graphics-compiler-1.0.10713.ebuild       | 87 ++++++++++++++++++++++
 4 files changed, 151 insertions(+)