-
Notifications
You must be signed in to change notification settings - Fork 271
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
secp256k1-sys cannot be cross compiled using rust cross. #734
Comments
We should add a patch which drops that stdio.h code. It's totally dead, so I guess the compilers we test on filter it out early enough that it doesn't cause problems, but it shouldn't be there. I'll PR to delete that code, and backport to 0.10.0 which should hopefully fix your issue. Having said that, the problem is in your copy of stdio.h so I feel I should say "not our fault" :). |
I agree. Most of our build issues are either bug in That being said, if we can easily delete dead code and it's likely to improve reliability on multiple targets then I don't object to it. |
@Kixunil in this case we are already trying to eliminate all calls into the C standard library because they don't need them and they break wasm (at runtime). So deleting this code is totally within the normal goals of this crate ... it's just that fixing this particular bug is not something we'd be willing to take too many pains to fix. (But fortunately it turns out to be zero marginal pain because we want to delete the code anyway.) |
b66bae7 secp256k1-sys: update util.h patch to delete more stdio code (Andrew Poelstra) Pull request description: Fixes #734 ACKs for top commit: Kixunil: ACK b66bae7 Tree-SHA512: 8d1266a1decbd06055922a19d687ec1e616dcf8a21764386c73cc8e20d390c9bc5a6ca416a3dc2602cc8ad7a5641f1af8607d3f64291325b2b2fff343677bc82
I am trying to cross compile a rust application from Ubuntu to a Windows machine. With podman installed, I run the following:
cross build --release --target x86_64-pc-windows-msvc
Everything is fine, up until the compiler reaches the secp256k1-sys crate.
Am I missing something obivous?
The text was updated successfully, but these errors were encountered: