-
Notifications
You must be signed in to change notification settings - Fork 459
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
Cross-compilation of zstd-sys
for x86_64-pc-windows-msvc
target fails starting at 1.0.77
#754
Comments
cc @gyscos |
Huh weird. We landed some changes around this in 1.0.76 and 1.0.75, but nothing in 1.0.77, so that's very surprising. |
1.0.77 changes meaning of |
Very nice catch, thank you. I probably won't be able to fix this this week (although who knows, I have slightly more time than anticipated), but it does seem quite bad :( |
Oh, looking more closely, the way this changes I didn't think about that at the time, but I think we should keep that behavior... |
Is there an appropriate env var to specify that capitalized |
No, but reasonable suggestions are welcome. |
Probably should be incorporated within the env vars already existing: https://github.com/EFForg/apkeep/blob/5bffbf77cba71751884a46234dab66d83d5b0dbe/build-remote.sh#L91-L93 |
Those impacting how we handle a specific file extension are pretty surprising though... Aside from it failing in this specific project, do you have an argument for why |
I'm out of my element here so I don't have good arguments to make, I just have this compilation error to deal with. |
If my understanding of the issue is correct, it is being treated differently currently: it's calling out to |
As mentioned in gyscos/zstd-rs#176, it appears we should not have included that file for compilation. Using |
Thank you, looks like you fixed it in the downstream dependency! |
Thank you, glad to see this resolved easily. |
Just in case for reference. clang-cl can compile assembly files, and accepts both .s/.S and .asm extensions, but the assembler syntax is incompatible with one accepted by ml64.exe. The syntax is shared with MinGW instead. In other words you can pass MinGW [assembly] files to clang-cl. |
As for issue being closed. The problem still needs to be fixed. |
Not sure, I think if we want to have a new issue for what you describe (previously these files would have been passed to |
The old behavior implicitly (and seemingly unintentionally) assumed that .S vs .asm are for different assembly syntaxes (with |
@gyscos so for completeness, because of the mismatch looking at host OS, we were previously happily cross-compiling |
Yeah, you should be able to use those files. |
I'll try and cut a release with #755 (and anything else that lands before then) this weekend (although it may be a bit later due to the holiday). |
I am cross-compiling
zstd-sys
tox86_64-pc-windows-msvc
in https://github.com/EFForg/apkeep/blob/5bffbf77cba71751884a46234dab66d83d5b0dbe/build-remote.sh#L75-L101. Whencc
is updated from1.0.76
to1.0.77
, the build starts failing with the following:In
1.0.76
it succeeds.The text was updated successfully, but these errors were encountered: