Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 953427 - sci-ml/torchvision-0.20.0-r2 Wheel build failed
Summary: sci-ml/torchvision-0.20.0-r2 Wheel build failed
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Tupone Alfredo
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2025-04-08 14:42 UTC by palapapa
Modified: 2025-04-15 19:55 UTC (History)
2 users (show)

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


Attachments
The ebuild log (torchvision-0.20.0-r2:20250408-123742.log,215.92 KB, text/x-log)
2025-04-08 14:43 UTC, palapapa
Details
emerge --info output (emerge-info.txt,29.19 KB, text/plain)
2025-04-08 14:44 UTC, palapapa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description palapapa 2025-04-08 14:42:46 UTC
Torchvision build failed with the message "Wheel build failed". I have enabled the CUDA USE flag for it.

emerge -pqv '=sci-ml/torchvision-0.20.0-r2::gentoo'
[ebuild  N    ] sci-ml/torchvision-0.20.0-r2  USE="cuda -debug -test" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11 -python3_13"

Reproducible: Always

Steps to Reproduce:
1. sudo emerge torchvision

Actual Results:  
The build fails.

Expected Results:  
The build succeeds.
Comment 1 palapapa 2025-04-08 14:43:49 UTC
Created attachment 924094 [details]
The ebuild log
Comment 2 palapapa 2025-04-08 14:44:15 UTC
Created attachment 924095 [details]
emerge --info output
Comment 3 Mike Gilbert gentoo-dev 2025-04-08 17:02:22 UTC
{standard input}: Assembler messages:
{standard input}:14665: Error: symbol `fatbinData' is already defined
{standard input}:15737: Error: symbol `fatbinData' is already defined
{standard input}:18748: Error: symbol `fatbinData' is already defined
{standard input}:20918: Error: symbol `fatbinData' is already defined
{standard input}:24067: Error: symbol `fatbinData' is already defined
make: *** [/var/tmp/portage/sci-ml/torchvision-0.20.0-r2/temp/cc08qJpY.mk:2: /var/tmp/portage/sci-ml/torchvision-0.20.0-r2/temp/ccTJWUOA.ltrans0.ltrans.o] Error 1
make: *** Waiting for unfinished jobs....
[01m[Klto-wrapper:[m[K [01;31m[Kfatal error: [m[Kmake returned 2 exit status
compilation terminated.
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
Comment 4 Tupone Alfredo gentoo-dev 2025-04-09 06:36:44 UTC
It seems that you enabled lto. Can you cleanup your FLAGS and see if it builds
Comment 5 palapapa 2025-04-10 15:44:02 UTC
Disabling LTO works.