Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 830012 - app-text/paperwork-2.1.0 fails on AMD Graphics because of Access Violation; needs to have addpredict /dev/kfd added to ebuild
Summary: app-text/paperwork-2.1.0 fails on AMD Graphics because of Access Violation; n...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-26 16:46 UTC by speedprogde
Modified: 2021-12-30 10:03 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge--info.txt,9.82 KB, text/plain)
2021-12-27 20:36 UTC, speedprogde
Details
emerge --info app-text/paperwork (emerge-paperwork--info.txt,10.23 KB, text/plain)
2021-12-27 20:36 UTC, speedprogde
Details
build log of failed emerge (build.log,175.07 KB, text/plain)
2021-12-27 20:41 UTC, speedprogde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description speedprogde 2021-12-26 16:46:10 UTC
* --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
 * LOG FILE: "/var/tmp/portage/app-text/paperwork-2.1.0/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: open_wr
S: deny
P: /dev/kfd
A: /dev/kfd
R: /dev/kfd
C: tesseract --list-langs
 * --------------------------------------------------------------------------------

needs to have addpredict /dev/kfd added to ebuild to allow listing tesseract languages on amd graphics systems. Like it already has for nvidia addpredict /dev/nvidiactl
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-27 02:06:49 UTC
Please do attach the sandbox log, build.log, and emerge --info in future, even if the issue seems obvious, to allow people w/o access to e.g. the hardware to debug and e.g. satisfy themselves that there's no other solution.

(It may be possible to stop it doing such detection at all.)
Comment 2 speedprogde 2021-12-27 20:36:11 UTC
Created attachment 760593 [details]
emerge --info
Comment 3 speedprogde 2021-12-27 20:36:42 UTC
Created attachment 760594 [details]
emerge --info app-text/paperwork
Comment 4 speedprogde 2021-12-27 20:41:21 UTC
Created attachment 760595 [details]
build log of failed emerge
Comment 5 speedprogde 2021-12-27 20:43:34 UTC
Yes, sorry. Gonna do better next time.
Attached the logs now.
Can't add the sandbox.log because it seems to deleted automatically after which I assume is it's content is dumped into the terminal by emerge? (the part I copied into the comment of the initial bug report)
Comment 6 Bernard Cafarelli gentoo-dev 2021-12-30 10:00:03 UTC
Thanks for the report, this looks indeed similar to #793446 (and USE=opencl). Let me add that other addpredict
Comment 7 Larry the Git Cow gentoo-dev 2021-12-30 10:03:59 UTC
The bug has been closed via the following commit(s):

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

commit eea9c0d3ac54b36a0054114aae370aa91cd07687
Author:     Bernard Cafarelli <voyageur@gentoo.org>
AuthorDate: 2021-12-30 10:03:37 +0000
Commit:     Bernard Cafarelli <voyageur@gentoo.org>
CommitDate: 2021-12-30 10:03:57 +0000

    app-text/paperwork: fix install with opencl and amd cards
    
    Closes: https://bugs.gentoo.org/830012
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>

 app-text/paperwork/paperwork-2.1.0.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)