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.
Created attachment 860662 [details] build.log.xz
Created attachment 860663 [details] eclass-debug.log
Created attachment 860664 [details] environment.xz
Created attachment 860665 [details] emerge --info
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.
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(+)