Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

relocation R_X86_64_32S out of range #99

Open
polyproline opened this issue Nov 24, 2020 · 1 comment
Open

relocation R_X86_64_32S out of range #99

polyproline opened this issue Nov 24, 2020 · 1 comment

Comments

@polyproline
Copy link

polyproline commented Nov 24, 2020

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?

@phil-opp
Copy link
Member

phil-opp commented Dec 6, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants