Created attachment 889030 [details] build.log . Setup : profile 17.1 desktop plasma stable gcc + -O3 + lto + march=native but verbose + graphite + -ggdb3 . A notebook with intel's iGPU and Nvidia's GeForce RTX 4070 laptop . ... -- Found LIBOMPTARGET_DEP_LIBFFI: /usr/lib64/libffi.so * ACCESS DENIED: fopen_wr: /proc/self/task/2173/comm CUDA error: OS call failed or operation not supported on this OS ... ... * ----------------------- SANDBOX ACCESS VIOLATION SUMMARY ----------------------- * LOG FILE: "/var/tmp/portage/sys-libs/libomp-17.0.6/temp/sandbox.log" * VERSION 1.0 FORMAT: F - Function called FORMAT: S - Access Status FORMAT: P - Path as passed to function FORMAT: A - Absolute Path (not canonical) FORMAT: R - Canonical Path FORMAT: C - Command Line F: fopen_wr S: deny P: /proc/self/task/2173/comm A: /proc/self/task/2173/comm R: /proc/2172/task/2173/comm C: /usr/lib/llvm/17/bin/nvptx-arch * -------------------------------------------------------------------------------- ... Tried to build this without lto, though still the same
Maybe it has a relationship to next bug: https://bugs.gentoo.org/926612
Created attachment 891272 [details] libomp-17.0.6 ACCESS DENIED fopen_wr llvm/17 nvptx-arch I've got the same problem on my gentoo after switching to gcc-14
Created attachment 891274 [details, diff] Proposed patch Could you try if this patch fixes the issue for you?
(In reply to Michał Górny from comment #3) > Created attachment 891274 [details, diff] [details, diff] > Proposed patch > > Could you try if this patch fixes the issue for you? The patch works for me!
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2f7a9615fad47260a47d6fc398acdb896f6cd7a commit f2f7a9615fad47260a47d6fc398acdb896f6cd7a Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2024-04-22 03:20:57 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2024-04-22 03:40:17 +0000 sys-libs/libomp: Disable GPU autodetection in 17.0.6 too Closes: https://bugs.gentoo.org/928149 Signed-off-by: Michał Górny <mgorny@gentoo.org> sys-libs/libomp/libomp-17.0.6.ebuild | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)