Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 842495 - dev-libs/intel-compute-runtime: not compiling
Summary: dev-libs/intel-compute-runtime: not compiling
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Jan Henke
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-03 21:30 UTC by Randall
Modified: 2022-12-30 23:25 UTC (History)
9 users (show)

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


Attachments
build.log [dev-libs/intel-compute-runtime-22.13.22789-r2] (with ccache) (file_842495.txt,344.60 KB, text/plain)
2022-05-03 21:31 UTC, Randall
Details
build.log [dev-libs/intel-compute-runtime-22.13.22789-r2] (without ccache) (file_842495.txt,337.70 KB, text/plain)
2022-05-03 21:33 UTC, Randall
Details
build.log [dev-libs/intel-compute-runtime-22.17.23034] (without ccache) (file_842495.txt,334.25 KB, text/plain)
2022-05-03 21:33 UTC, Randall
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Randall 2022-05-03 21:30:38 UTC
None of the available ebuilds of dev-libs/intel-compute-runtime are compiling for me.

Reproducible: Always
Comment 1 Randall 2022-05-03 21:31:42 UTC
Created attachment 776582 [details]
build.log [dev-libs/intel-compute-runtime-22.13.22789-r2] (with ccache)
Comment 2 Randall 2022-05-03 21:33:07 UTC
Created attachment 776585 [details]
build.log [dev-libs/intel-compute-runtime-22.13.22789-r2] (without ccache)
Comment 3 Randall 2022-05-03 21:33:47 UTC
Created attachment 776588 [details]
build.log [dev-libs/intel-compute-runtime-22.17.23034] (without ccache)
Comment 4 Randall 2022-05-03 21:36:06 UTC
FWIW I don't have ccache enabled, and 22.13.22789-r2 magically opted to use it.

I think `DCCACHE_ALLOWED="OFF` needs to be added to 22.13.22789-r2, to avoid this behavior.
Comment 5 Conrad Kostecki gentoo-dev 2022-05-04 17:21:33 UTC
(In reply to Randall from comment #4)
> I think `DCCACHE_ALLOWED="OFF` needs to be added to 22.13.22789-r2, to avoid
> this behavior.

Does this help making it compiled for you?
Comment 6 Randall 2022-05-04 17:25:10 UTC
It does not. However, I still think it should be disabled so that ccache doesn't trigger by its self.
Comment 7 François Bissey 2022-05-05 00:54:32 UTC
I am observing the same issue with 22.13.22789-r2 (and I don't currently use ccache). I did a serial build to have clear idea of the failure.

[563/2203] cd /home/portage/dev-libs/intel-compute-runtime-22.13.22789-r2/work/compute-runtime-22.13.22789/shared/source/built_ins/kernels && LD_LIBRARY_PATH=/home/portage/dev-libs/intel-compute-runtime-22.13.22789-r2/work/compute-runtime-22.13.22789_build/bin /home/portage/dev-libs/intel-compute-runtime-22.13.22789-r2/work/compute-runtime-22.13.22789_build/bin/ocloc -q -file /home/portage/dev-libs/intel-compute-runtime-22.13.22789-r2/work/compute-runtime-22.13.22789_build/bin/built_ins/x64/gen8/bindful_copy_buffer_rect_Gen8core.spv -spirv_input -device bdw -force_stos_opt -64 -output bindful_copy_buffer_rect_0 -out_dir /home/portage/dev-libs/intel-compute-runtime-22.13.22789-r2/work/compute-runtime-22.13.22789_build/bin/built_ins/x64/gen8 -revision_id 0 -options -cl-kernel-arg-info
FAILED: bin/built_ins/x64/gen8/bindful_copy_buffer_rect_0_Gen8core.gen bin/built_ins/x64/gen8/bindful_copy_buffer_rect_0_Gen8core.bin /home/portage/dev-libs/intel-compute-runtime-22.13.22789-r2/work/compute-runtime-22.13.22789_build/bin/built_ins/x64/gen8/bindful_copy_buffer_rect_0_Gen8core.gen /home/portage/dev-libs/intel-compute-runtime-22.13.22789-r2/work/compute-runtime-22.13.22789_build/bin/built_ins/x64/gen8/bindful_copy_buffer_rect_0_Gen8core.bin
cd /home/portage/dev-libs/intel-compute-runtime-22.13.22789-r2/work/compute-runtime-22.13.22789/shared/source/built_ins/kernels && LD_LIBRARY_PATH=/home/portage/dev-libs/intel-compute-runtime-22.13.22789-r2/work/compute-runtime-22.13.22789_build/bin /home/portage/dev-libs/intel-compute-runtime-22.13.22789-r2/work/compute-runtime-22.13.22789_build/bin/ocloc -q -file /home/portage/dev-libs/intel-compute-runtime-22.13.22789-r2/work/compute-runtime-22.13.22789_build/bin/built_ins/x64/gen8/bindful_copy_buffer_rect_Gen8core.spv -spirv_input -device bdw -force_stos_opt -64 -output bindful_copy_buffer_rect_0 -out_dir /home/portage/dev-libs/intel-compute-runtime-22.13.22789-r2/work/compute-runtime-22.13.22789_build/bin/built_ins/x64/gen8 -revision_id 0 -options -cl-kernel-arg-info
ninja: build stopped: subcommand failed.


Not that it helps in the end. I'll note that I couldn't update to the latest stable version of intel-graphics-compiler because of dependency issues (which emerge doesn't detail curiously enough but I think may be a requirement on lld-12.x when I have 13.x and it is not slotted). Since the compiler component is in DEPEND, I am wondering if intel-graphics-compile-1.0.10778-r2 is needed.
Comment 8 Randall 2022-05-07 23:23:17 UTC
Actually, I got it working by downgrading lld back down to 12*
Comment 9 Conrad Kostecki gentoo-dev 2022-05-08 21:36:16 UTC
(In reply to Randall from comment #8)
> Actually, I got it working by downgrading lld back down to 12*

That should had happend automatically, as ebuild is forcing ldd-12.
Comment 10 François Bissey 2022-05-08 22:21:29 UTC
(In reply to Conrad Kostecki from comment #9)
> (In reply to Randall from comment #8)
> > Actually, I got it working by downgrading lld back down to 12*
> 
> That should had happend automatically, as ebuild is forcing ldd-12.

Well it is not happening I have this kind of message from emerge

!!! The following update(s) have been skipped due to unsatisfied dependencies
!!! triggered by backtracking:

dev-util/intel-graphics-compiler:0

And the only dependency that is problematic appears to be lld.
Comment 11 François Bissey 2022-05-08 22:30:34 UTC
Actually when I tried to downgrade lld to 12.0.1, emerge complained that intel-graphics-compiler-1.0.10778-r1 required lld-13. So one block was from this already being compiled against lld-13.

Removing intel-graphic-compiler in an effort to remove that block lead to a change of message from emerge when I try to emerge world

!!! The following update(s) have been skipped due to unsatisfied dependencies
!!! triggered by backtracking:

dev-libs/intel-compute-runtime:0

But now I can downgrade to lld-12 so we'll see what happens once that is done.
Comment 12 François Bissey 2022-05-08 22:54:16 UTC
In the end I add to remove both intel-compute-runtime and intel-graphics-compiler.  With lld at version 12.0.1 "emerge -v intel-compute-runtime" emerged both packages properly.
Comment 13 Fabio Rossi 2022-05-18 09:46:31 UTC
(In reply to Conrad Kostecki from comment #5)
> (In reply to Randall from comment #4)
> > I think `DCCACHE_ALLOWED="OFF` needs to be added to 22.13.22789-r2, to avoid
> > this behavior.
> 
> Does this help making it compiled for you?

This is not the solution but it's strongly suggested to fix the ebuild to avoid ccache support when FEATURES=-ccache but ccache is installed.

Moreover I can confirm the issue and it's solved by using lld-12. 

The real problem is that lld is not slotted so a simple "emerge -uD world" cannot work because there might be other packages (e.g. thunderbird on my system) trying to give precedence to lld-13 for instance (or even lld-14 but here llvm:14 is not installed yet). So the upgrade of intel-compute-runtime-22.13.22789-r3 doesn't force at the same time the upgrade to dev-util/intel-graphics-compiler-1.0.10778-r2 (which requires lld-12)
Comment 14 Fabio Rossi 2022-05-18 09:48:08 UTC
(In reply to Conrad Kostecki from comment #9)
> (In reply to Randall from comment #8)
> > Actually, I got it working by downgrading lld back down to 12*
> 
> That should had happend automatically, as ebuild is forcing ldd-12.

As said above other packages might require ldd-13 at the same time
Comment 15 Conrad Kostecki gentoo-dev 2022-12-30 23:25:26 UTC
Closing, this is long fixed.