How do I solve "rust-lld: error: relocation R_X86_64_32 out of range"?

⚓ Rust    📅 2026-05-28    👤 surdeus    👁️ 1      

surdeus

I am getting a bunch of linker errors when compiling this workspace (commit 5ffcc38af569e33597949bea787dbb6b6409c5bc).

This is on linux. Note that compiling this takes quite a bit of RAM, 16GiB is not enough.
Simply running cargo build in the workspace results in the following:

Error reported by cargo (click for more details)

I would like to keep using debug info, so changing the debug profile to exclude debug info is not an option.

What is the effect of using -fdebug-types-section? And how do I set this variable in my workspace's Cargo.toml?

2 posts - 2 participants

Read full topic

🏷️ Rust_feed