Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 738592 - sci-libs/pytorch-1.6.0::science: error when emerging pytorch with cuda USE flag
Summary: sci-libs/pytorch-1.6.0::science: error when emerging pytorch with cuda USE flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-08-22 14:21 UTC by Hendrik Klug
Modified: 2020-09-14 09:12 UTC (History)
3 users (show)

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


Attachments
build.log of emerge pytorch (build.log,5.64 KB, application/octet-stream)
2020-08-22 14:21 UTC, Hendrik Klug
Details
patch fixing patch name (file_738592.txt,577 bytes, text/plain)
2020-08-23 08:20 UTC, Horea Christian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hendrik Klug 2020-08-22 14:21:46 UTC
Created attachment 656178 [details]
build.log of emerge pytorch

I am trying to emerge pytorch with cuda enabled, but I get an error with the global-dlopen.patch (see attachment for full log): 
```
 * ERROR: sci-libs/pytorch-1.6.0::science failed (prepare phase):                                                                      
 *   patch -p1  failed with /var/tmp/portage/sci-libs/pytorch-1.6.0/files/pytorch-pytorch-1.6.0-global-dlopen.patch  
```

Am I doing something wrong?
The patch was working fine without cuda enabled.
Comment 1 Horea Christian 2020-08-23 08:20:05 UTC
Created attachment 656322 [details]
patch fixing patch name
Comment 2 Horea Christian 2020-08-23 08:21:11 UTC
Ok so the issue was that while the patch file is named correctly, it is listed with twice the package name in the PATCHES list, please see my fix attached ^
Comment 3 Larry the Git Cow gentoo-dev 2020-09-14 09:12:00 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/sci.git/commit/?id=0a5eeeba7dbe8914197d82015f5d9b8ecfa5a6cc

commit 0a5eeeba7dbe8914197d82015f5d9b8ecfa5a6cc
Author:     Benda Xu <heroxbd@gentoo.org>
AuthorDate: 2020-09-14 09:11:41 +0000
Commit:     Benda Xu <heroxbd@gentoo.org>
CommitDate: 2020-09-14 09:11:55 +0000

    sci-libs/pytorch: Fix patch filename.
    
    Add a necessary build dependency.
    
    Reported-By: Hendrik Klug
    Suggested-By: Horea Christian
    Closes: https://bugs.gentoo.org/738592
    Package-Manager: Portage-3.0.5, Repoman-3.0.1
    Signed-off-by: Benda Xu <heroxbd@gentoo.org>

 sci-libs/pytorch/pytorch-1.6.0.ebuild | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)