-
Notifications
You must be signed in to change notification settings - Fork 93
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
Cannot build compiler_builtins_shim for i686 targets #216
Comments
I ran into a similar issue for a project of mine that cross-compiles to ARM. The problem seems to be that the Fortunately |
Also, the reason why a C cross-compiler is suddenly required is because the Rust sysroot builds Previously, us users of EDIT: Rather, it might be |
The same happened to my project. With the latest 1.27.0 nightly and Xargo 0.3.12 it now fails to build. Until the update, it went seamlessly, I used only the required I fixed it by specifying I managed to fix it by also adding I tried to specify
Even if I managed to fix Could you please show me how to turn off the |
If your code depends on |
Unfortunately adding it to |
I created a simplified fork of |
@phil-opp Yes, |
I have a similar problem. I'm seeing a breakage when I updated to I'm also building a UEFI application and I'm using Expand to see```json { "arch": "x86_64", "cpu": "x86-64", "crt-static-allows-dylibs": true, "crt-static-respected": true, "data-layout": "e-m:w-i64:64-f80:128-n8:16:32:64-S128", "dll-prefix": "", "dll-suffix": ".efi", "dynamic-linking": true, "env": "msvc", "exe-suffix": ".efi", "executables": true, "has-elf-tls": true, "is-builtin": false, "is-like-msvc": true, "is-like-windows": true, "linker": "link.exe", "linker-flavor": "msvc", "llvm-target": "x86_64-pc-windows-msvc", "max-atomic-width": 64, "os": "windows", "pre-link-args": { "msvc": [ "/NOLOGO", "/SUBSYSTEM:EFI_APPLICATION" ] }, "staticlib-prefix": "", "staticlib-suffix": ".lib", "target-c-int-width": "32", "target-endian": "little", "target-family": "windows", "target-pointer-width": "64", "vendor": "unknown", "panic-strategy": "abort", "singlethread": true } ```My host machine is Windows 10 and I'm using VS 2017's build tools (this is one primary difference between mine and @peterbudai's case environment-wise). Earlier the build worked fine, but when I switched to
I'm running this inside Visual Studio developer prompt and Not sure sure if it's a |
While building
i686
targets, there is an internal error while buildingcompiler_builtins
due to a missing file:fatal error: sys/cdefs.h: No such file or directory
.Initially I thought it was an issue with the
compiler_builtins
crate, but it seems like there's some magic thatxargo
needs to do in order to compile the C shims incompiler_builtins
. Can I get some clarification on whatxargo
is expected to do? Did rust-lang/rust#49503 cause a regression inxargo
?From rust-lang/compiler-builtins#239 (comment)
Nightly Version
Reproduction Steps
Error Message
The text was updated successfully, but these errors were encountered: