Summary: | gnome-base/librsvg-2.58.2: emerge failed (clang lld returns error 1) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Kevin <kxliu169> |
Component: | Current packages | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | lolbri34423, njd.dev, vadorovsky |
Priority: | High | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://github.com/gentoo/gentoo/pull/40797 https://github.com/gentoo/gentoo/pull/40938 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | emerge log file |
Description
Kevin
2024-10-03 17:30:31 UTC
I'm also facing this bug, is there any known solution? It might be the musl brokenness again (Rust having terrible defaults for musl). It probably wants static libraries for each of those mentioned (gtk, glib, etc). Does USE=static-libs on those help? Okay, I'm stupid I guess... But after installing rust (not rust-bin) it works haha *** Bug 948344 has been marked as a duplicate of this bug. *** Building gnome-base/librsvg with dev-lang/rust should be fixed by https://github.com/gentoo/gentoo/pull/40752 (https://bugs.gentoo.org/950275). However, that won't solve the issues with dev-lang/rust-bin, which is still going to statically link everything on musl environments. That could be solved by enforcing `RUSTFLAGS="-C target-feature=-crt-static"` either in the Rust eclass or in individual packages (like gnome-base/librsvg). *** This bug has been marked as a duplicate of bug 950275 *** The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b573d2233ad0b6548c10435b6547eba40d0b9fb commit 3b573d2233ad0b6548c10435b6547eba40d0b9fb Author: Michal Rostecki <vadorovsky@protonmail.com> AuthorDate: 2025-02-27 16:09:53 +0000 Commit: Arthur Zamarin <arthurzam@gentoo.org> CommitDate: 2025-03-08 14:02:29 +0000 cargo.eclass: Enable dynamic linking by default Rust defaults to static linking (`-C target-feature=+crt-static`) on musl targets. We already patch dev-lang/rust to always prefer dynamic linking, but to ensure that behavior with dev-lang/rust-bin, set the opposite option (`-C target-feature=-crt-static`) in RUSTFLAGS. Bug: https://bugs.gentoo.org/940722 Signed-off-by: Michal Rostecki <vadorovsky@protonmail.com> Closes: https://github.com/gentoo/gentoo/pull/40797 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org> eclass/cargo.eclass | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) |