Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 760645

Summary: sys-devel/clang-12.0.0{,.9999} sandbox failure - ACCESS DENIED: open_wr: /dev/nvidiactl
Product: Gentoo Linux Reporter: Alexey <alexey+gentoo>
Component: Current packagesAssignee: LLVM support project <llvm>
Status: RESOLVED FIXED    
Severity: normal CC: alexandref75, fordfrog, mgorny
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=789693
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
build.log

Description Alexey 2020-12-18 14:46:21 UTC
Created attachment 678739 [details]
emerge --info

F: open_wr                                                                                                                                                                                                                                                                        
S: deny                                                                                                                                                                                                                                                                           
P: /dev/nvidiactl                                                                                                                                                                                                                                                                 
A: /dev/nvidiactl                                                                                                                                                                                                                                                                 
R: /dev/nvidiactl                                                                                                                                                                                                                                                                 
C: /mnt/ssdhome/portage-tmp/portage/sys-devel/clang-12.0.0.9999/work/x/y/clang-abi_x86_64.amd64/CMakeFiles/CMakeTmp/cmTC_121f9                                                                                                                                                    

`addpredict /dev/nvidiactl` fixes it
Comment 1 Miroslav Šulc gentoo-dev 2021-04-16 07:52:03 UTC
Created attachment 700077 [details]
build.log
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-04-16 08:32:06 UTC
Hmm, 'automatic GPU detection' doesn't sound good at all.
Comment 3 Larry the Git Cow gentoo-dev 2021-04-16 08:58:34 UTC
The bug has been closed via the following commit(s):

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

commit 8720263cf7e75d8fc264ba028a76f7236b09f067
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2021-04-16 08:57:59 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2021-04-16 08:58:10 +0000

    sys-devel/clang: Disable CUDA target autodetection
    
    CUDA target autodetection causes sandbox failures, and even if it did
    not, it would cause the package to be set for build host's video card.
    Force the CUDA package detection to fail, in order to disable that.
    
    Closes: https://bugs.gentoo.org/760645
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 sys-devel/clang/clang-12.0.0.9999.ebuild | 3 +++
 sys-devel/clang/clang-12.0.0.ebuild      | 3 +++
 sys-devel/clang/clang-13.0.0.9999.ebuild | 3 +++
 3 files changed, 9 insertions(+)
Comment 4 Ionen Wolkens gentoo-dev 2021-04-16 17:46:59 UTC
*** Bug 783168 has been marked as a duplicate of this bug. ***