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
Created attachment 802219 [details] build log
Created attachment 802222 [details] emerge --info
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.
Created attachment 802225 [details, diff] ebuild patch to add addpredict
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(+)