cargo-xbuild icon indicating copy to clipboard operation
cargo-xbuild copied to clipboard

relocation R_X86_64_32S out of range

Open polyproline opened this issue 5 years ago • 1 comments

When I build a Kernel Os with some crates ,it happend. Then I tried to give RUSTFLAGS and rebuilded those crates, also failed. But when I used .cargo/config.toml ,set build-std and env RUSTFLAGS then it did well Is cargo-xbuild question or have another resolution I don`t find?

polyproline avatar Nov 24 '20 11:11 polyproline

We don't pass RUSTFLAGS when building core and the other sysroot crates because we need to set our own RUSTFLAGS. If your project works with cargo's build-std feature, I recommend using that instead of cargo-xbuild.

phil-opp avatar Dec 06 '20 13:12 phil-opp