Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 760645 - sys-devel/clang-12.0.0{,.9999} sandbox failure - ACCESS DENIED: open_wr: /dev/nvidiactl
Summary: sys-devel/clang-12.0.0{,.9999} sandbox failure - ACCESS DENIED: open_wr: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
: 783168 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-12-18 14:46 UTC by Alexey
Modified: 2021-05-12 14:23 UTC (History)
3 users (show)

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


Attachments
emerge --info (file_760645.txt,22.42 KB, text/plain)
2020-12-18 14:46 UTC, Alexey
Details
build.log (build.log,96.11 KB, text/x-log)
2021-04-16 07:52 UTC, Miroslav Šulc
Details

Note You need to log in before you can comment on or make changes to this bug.
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. ***