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

Bug 904886

Summary: sci-libs/pytorch-2.0.0 fails with "no input file" (cuda USE flag related / Python version related ?)
Product: Gentoo Linux Reporter: Adrien Dessemond <admnd>
Component: Current packagesAssignee: Tupone Alfredo <tupone>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log.xz
eclass-debug.log
environment.xz
emerge --info

Description Adrien Dessemond 2023-04-23 14:48:01 UTC
Just after copying a bunch of Python stuff, the build fails with the following message:

2023-04-23 10:42:07,023 root INFO x86_64-pc-linux-gnu-gcc -shared -flto=auto -O3 -pipe -march=native -fomit-frame-pointer -fopt-info-vec -fcf-protection=return -flto=auto -ffat-lto-objects build/temp.linux-x86_64-cpython-310/torch/csrc/stub_with_flatbuffer.o -Llib -L/usr/lib64 -L/usr/lib64 -ltorch_python -o build/lib.linux-x86_64-cpython-310/torch/_C_flatbuffer.cpython-310-x86_64-linux-gnu.so -g -Wl,-rpath,$ORIGIN/lib
2023-04-23 10:42:07,074 root INFO building 'nvfuser._C' extension
2023-04-23 10:42:07,074 root INFO x86_64-pc-linux-gnu-gcc -shared -flto=auto -O3 -pipe -march=native -fomit-frame-pointer -fopt-info-vec -fcf-protection=return -flto=auto -ffat-lto-objects -L/usr/lib64 -o build/lib.linux-x86_64-cpython-310/nvfuser/_C.cpython-310-x86_64-linux-gnu.so
x86_64-pc-linux-gnu-gcc: fatal error: no input files
compilation terminated.
error: command '/usr/bin/x86_64-pc-linux-gnu-gcc' failed with exit code 1

Full log attached. Seems related to having USE="cuda" as on a machine with an AMD GPU (no "cuda" USE flag set) I do not see that failure.
Comment 1 Adrien Dessemond 2023-04-23 14:52:41 UTC
Created attachment 860662 [details]
build.log.xz
Comment 2 Adrien Dessemond 2023-04-23 14:54:01 UTC
Created attachment 860663 [details]
eclass-debug.log
Comment 3 Adrien Dessemond 2023-04-23 14:54:34 UTC
Created attachment 860664 [details]
environment.xz
Comment 4 Adrien Dessemond 2023-04-23 14:55:18 UTC
Created attachment 860665 [details]
emerge --info
Comment 5 Tupone Alfredo gentoo-dev 2023-04-23 17:12:48 UTC
The configuration of caffe2 is taken from /var/lib/caffe2/ and for bug report to pytorch is good to have.

I guess that in this case the NVFUSER build was enabled by default, just by selecting cuda

I'm going to disable explicity nvfuser, until some poor guy take care of the cuda part of pytorch.
Comment 6 Larry the Git Cow gentoo-dev 2023-04-23 17:25:30 UTC
The bug has been closed via the following commit(s):

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

commit 2e4e05aca4cca79904e30cdbc9019043a5261262
Author:     Alfredo Tupone <tupone@gentoo.org>
AuthorDate: 2023-04-23 17:24:37 +0000
Commit:     Alfredo Tupone <tupone@gentoo.org>
CommitDate: 2023-04-23 17:25:05 +0000

    sci-libs/caffe2: disable nvfuser
    
    Closes: https://bugs.gentoo.org/904886
    Signed-off-by: Alfredo Tupone <tupone@gentoo.org>

 sci-libs/caffe2/{caffe2-2.0.0-r1.ebuild => caffe2-2.0.0-r2.ebuild} | 1 +
 1 file changed, 1 insertion(+)