Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 867706 - sci-libs/caffe2[cuda] build fails with sandbox access violation on /dev/nvidiactl
Summary: sci-libs/caffe2[cuda] build fails with sandbox access violation on /dev/nvidi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Tupone Alfredo
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-08-31 10:11 UTC by Simon Detheridge
Modified: 2022-09-14 20:52 UTC (History)
1 user (show)

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


Attachments
build log (caffe2-build.log.gz,6.63 KB, application/gzip)
2022-08-31 10:13 UTC, Simon Detheridge
Details
emerge --info (emerge-info.txt.gz,3.82 KB, application/gzip)
2022-08-31 10:15 UTC, Simon Detheridge
Details
ebuild patch to add addpredict (caffe2-1.12.0.ebuild.patch,361 bytes, patch)
2022-08-31 10:32 UTC, Simon Detheridge
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Detheridge 2022-08-31 10:11:36 UTC
tl;dr I think this is the same bug as #742617, which is for pytorch on the ::science overlay, which bundles all of the deps into one package.

merging sci-libs/caffe2 fails if +cuda is set due to a sandbox access violation on /dev/nvidiactl

This happens on both 1.12.0 and 1.11.0-r2

Reproducible: Always
Comment 1 Simon Detheridge 2022-08-31 10:13:58 UTC
Created attachment 802219 [details]
build log
Comment 2 Simon Detheridge 2022-08-31 10:15:05 UTC
Created attachment 802222 [details]
emerge --info
Comment 3 Simon Detheridge 2022-08-31 10:32:19 UTC
The workaround in bug #742617 for adding 'addpredict "/dev/nvidiactl"' to the ebuild also works here, but note that if TORCH_CUDA_ARCH_LIST is not set correctly the build will fail because it can't use this to figure out your architecture.
Comment 4 Simon Detheridge 2022-08-31 10:32:43 UTC
Created attachment 802225 [details, diff]
ebuild patch to add addpredict
Comment 5 Larry the Git Cow gentoo-dev 2022-09-14 20:52:21 UTC
The bug has been closed via the following commit(s):

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

commit dfb44a20d723cace8c89d65437c4456bfba39f91
Author:     James Beddek <telans@posteo.de>
AuthorDate: 2022-09-14 12:19:47 +0000
Commit:     Alfredo Tupone <tupone@gentoo.org>
CommitDate: 2022-09-14 20:51:17 +0000

    sci-libs/caffe2: use addpredict /dev/nvidiactl for CUDA version check
    
    Closes: https://bugs.gentoo.org/867706
    Signed-off-by: James Beddek <telans@posteo.de>
    Closes: https://github.com/gentoo/gentoo/pull/27253
    Signed-off-by: Alfredo Tupone <tupone@gentoo.org>

 sci-libs/caffe2/caffe2-1.12.0.ebuild | 2 ++
 1 file changed, 2 insertions(+)