Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 939176 - LTO in rustflags causes build failures in gnome-base/librsvg, dev-lang/rust and x11-libs/extest
Summary: LTO in rustflags causes build failures in gnome-base/librsvg, dev-lang/rust a...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-06 12:22 UTC by Lampis
Modified: 2024-09-07 14:41 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lampis 2024-09-06 12:22:26 UTC
emerge --info: https://bpa.st/J326G
Using RUSTFLAGS=" -Clinker-plugin-lto" causes build failures on some rust packages. 
Using rust-bin.

Build logs:
(steam-overlay) x11-libs/extest-1.0.2: https://bpa.st/RL3C4
gnome-base/librsvg: https://bpa.st/OXRGA
dev-lang/rust: https://bpa.st/YAUS6
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-06 12:29:11 UTC
Please always attach logs (no pastebins as they expire/may not be accessible behind firewalls).

Anyway, in your case, I suspect you need to use clang+lld.