-
Notifications
You must be signed in to change notification settings - Fork 50
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
Failure to cross-compile for Windows on macOS with cargo-zigbuild
#512
Comments
I've started looking into this. I can reproduce the same failure locally compiling directly from my
|
I can reproduce (roughly) the same error building AWS-LC directly using the following CMake toolchain file:
|
This seems to be related: ziglang/zig#10989 |
Ok, I've got a patch here that when applied to
I might be able to get a change like this made upstream, but it'll need some more careful thought/testing. |
Another issue I found relating AWS-LC supporting the Zig compiler is this one: ziglang/zig#10411 I'm currently running into this error condition on my Mac. |
AWS-LC's CMake configuration depends on |
@justsmth Thanks a lot for your investigation so far!
Is this why we need to disable ASM in the build so far? If so, that wouldn't be that much of a problem, since we're just using |
That issue is part of the problem, but I think there's more to it. I even get this error when building AWS-LC with the If it helps, I've got a Cmake toolchain file that seems to work for me on my ARM64 Mac. (It builds with the assembly enabled.) I've pushed the toolchain file and some other "Work In Progress" changes onto this branch. |
@justsmth Thanks for the work! A gentle ping though: maybe we have a typo here? |
Problem:
When working on Windows aspects of rustup, I like to use
cargo-zigbuild
to check the Windows build locally. However, since switching rustup to aws-lc-rs (currently at 1.8.1) I am unable to build rustup withcargo-zigbuild
, even withNO_ASM=1
.Sorry, this is probably a bit outlandish, but hoping there might be a solution somehow!
Relevant details
AWS-LC for Rust versions or commit: 1.8.1
System information: for linux, below info can be collected by running
uname -srvmp
Build log:
The text was updated successfully, but these errors were encountered: