Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
build faild of sci-libs/torchvision
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
kurdy
n00b
n00b


Joined: 29 Dec 2023
Posts: 10
Location: Switzerland

PostPosted: Wed Feb 19, 2025 8:20 am    Post subject: build faild of sci-libs/torchvision Reply with quote

Hello,

I am trying to install
Code:
emerge --ask sci-libs/torchvision
and the build ends with an error:

Quote:
UnboundLocalError: cannot access local variable 'nvcc_flags' where it is not associated with a value


Looking at the build, I see errors but I am not sure what to do, cuda seems to be installed correctly.

I tried to force the use of gcc 13 instead of 14, pytorch works without cuda.

Additional information:

emerge info content

Build log

Torchvision environnment

Code:
nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2024 NVIDIA Corporation
Built on Wed_Aug_14_10:10:22_PDT_2024
Cuda compilation tools, release 12.6, V12.6.68
Build cuda_12.6.r12.6/compiler.34714021_0


Code:
nvidia-smi
Wed Feb 19 09:09:58 2025       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.144.03             Driver Version: 550.144.03     CUDA Version: 12.4     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 2070        Off |   00000000:01:00.0  On |                  N/A |
| N/A   53C    P8              6W /  115W |      79MiB /   8192MiB |      2%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      4164      G   /usr/bin/X                                      4MiB |
|    0   N/A  N/A      4871      G   /usr/bin/kwin_wayland                           1MiB |
+-----------------------------------------------------------------------------------------+


Your suggestions are welcome.

Thanks
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 2028

PostPosted: Wed Feb 19, 2025 1:25 pm    Post subject: Reply with quote

See also Bug 949903 which was opened recently (without solution as of writing)
Back to top
View user's profile Send private message
kurdy
n00b
n00b


Joined: 29 Dec 2023
Posts: 10
Location: Switzerland

PostPosted: Wed Feb 19, 2025 2:27 pm    Post subject: Reply with quote

grknight wrote:
See also Bug 949903 which was opened recently (without solution as of writing)


Thank you, I added a comment to the bug, as it indeed seems similar to me.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum