-
Notifications
You must be signed in to change notification settings - Fork 747
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 be compiled on Windows #4919
Comments
We don't officially support Windows. I know that some people are using the Linux subsystem to run Substrate based chains. |
"We don't officially support Windows." Not supporting it doesn't mean it shouldn't compile. |
I guess it was an invitation to contribute corresponding fix 🙂 Substrate (at least up to 1.13) does successfully compile and run on Windows (we also run CI on Windows), but we (at Subspace) do not use Polkadot-specific crates, so you might want to contribute corresponding changes if you need to run it on Windows natively for whatever reason. |
Exactly ;) I don't have a Windows machine to compile and fix these issues. So, if you have one, I will happily approve any pr. |
The issue is with the libc crate used. I'm closing this and have started investigating and contributing fixes to libc as a result. |
I don't think that the issue is in |
"don't have a Windows machine to compile and fix these issues. " You don't need a Windows machine to compile for the Windows target. rustc is a cross-compiler. |
If you actually try it in practice you'll notice it is not as simple as having a compiler capable of cross-compilation. I wish it was though. |
@bkchr I found libc::kill doesn't exist on Windows, so I've created a PR for it. |
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Description of bug
Polkadot SDK cannot be compiled on Windows
Steps to reproduce
git clone https://github.com/paritytech/polkadot-sdk.git
cd polkadot-sdk
cargo build --release
The text was updated successfully, but these errors were encountered: