-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Core build is broken when using build-std with custom cross-compile target #81516
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
Comments
Can you post a copy of your target spec? Are there any other details about the custom target that are needed to reproduce? |
My target spec is: {
"llvm-target": "x86_64-unknown-none",
"data-layout": "e-m:e-i64:64-f80:128-n8:16:32:64-S128",
"arch": "x86_64",
"target-endian": "little",
"target-pointer-width": "64",
"target-c-int-width": "32",
"os": "none",
"executables": true,
"linker-flavor": "ld.lld",
"linker": "rust-lld",
"panic-strategy": "abort",
"disable-redzone": true,
"features": "-mmx,-sse,+soft-float"
} If I enable SSE and MMX, the build fails again |
Sorry, I'm a bit confused. Are you saying you see an error with I'm only able to reproduce with |
I get this error with just |
Triage: I'm trying to reproduce this but I'm getting different errors now. I'm compiling hello world with your target JSON:
Did you find a workaround for the problem? Can we close this issue as obsolete? |
@Enselic Over time the {
"llvm-target": "x86_64-unknown-none",
"data-layout": "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128",
"arch": "x86_64",
"target-endian": "little",
"target-pointer-width": "64",
"target-c-int-width": "32",
"os": "none",
"executables": true,
"linker-flavor": "ld.lld",
"linker": "rust-lld",
"panic-strategy": "abort",
"disable-redzone": true,
"features": "+sse,+soft-float"
} And I would guess that SSE is incompatible with soft-float. And neither rustc or llvm are really validating that the given options are compatible with one another.
|
I see, thanks. If SSE is incompatible with soft-float I suggest we close this as won't fix. |
Hello. I'm using the nightly feature
build-std
to cross-compile core to a custom target. It always works as expected, however, today it suddenly stopped working and throws an error:I tried the same on Windows, and another error occurs:
Meta
rustc --version --verbose
:Backtrace
config.toml:
Thank you for your great work!
The text was updated successfully, but these errors were encountered: