Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 951868 - dev-util/ruff-0.11.1: fails to build: error: linking with `x86_64-pc-linux-gnu-cc` failed: exit status: 1
Summary: dev-util/ruff-0.11.1: fails to build: error: linking with `x86_64-pc-linux-gn...
Status: RESOLVED DUPLICATE of bug 951740
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-23 04:57 UTC by Blacktea Hamburger
Modified: 2025-03-23 04:59 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,107.01 KB, text/x-log)
2025-03-23 04:57 UTC, Blacktea Hamburger
Details
emerge --info (emerge.info,19.71 KB, text/plain)
2025-03-23 04:57 UTC, Blacktea Hamburger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Blacktea Hamburger 2025-03-23 04:57:05 UTC
Created attachment 921921 [details]
build.log

It is basically certain that https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f65ef3fddd9ef9cc3d2d172f6da9a39231b1e2d1 is the cause. The failure only occurs when rust is built with RUSTFLAGS="-Zdylib-lto" and CARGO_PROFILE_RELEASE_LTO="thin"/CARGO_PROFILE_RELEASE_LTO="fat" and with the commit.

dev-lang/rust-1.85.1::gentoo was built with the following:
USE="lto (-big-endian) -clippy -debug -dist -doc (-llvm-libunwind) -rust-analyzer -rust-src -rustfmt -system-llvm -test -verify-sig -wasm" CPU_FLAGS_X86="sse2" LLVM_SLOT="(19)" LLVM_TARGETS="(X86) -AArch64 -AMDGPU -ARC -ARM -AVR -BPF -CSKY -DirectX -Hexagon -Lanai -LoongArch -M68k -MSP430 -Mips -NVPTX -PowerPC -RISCV -SPIRV -Sparc -SystemZ -VE -WebAssembly -XCore -Xtensa"
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="-march=native -O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
Comment 1 Blacktea Hamburger 2025-03-23 04:57:58 UTC
Created attachment 921922 [details]
emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-23 04:59:13 UTC
I think it's a dupe of bug 951740.

*** This bug has been marked as a duplicate of bug 951740 ***