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
portable_pty doesn't compile on windows #1389
Comments
Are you cross compiling for windows? The What version of rust are you building with? |
Yeah these logs come from a cross compilation, on linux with
|
Has for the rust version: |
Can you check out the wezterm github repo and try compiling the pty crate directly with that version of Rust? I cannot reproduce this on my Windows system, or in our Windows CI, so I'm wondering if there is something about the project you are building that is influencing this! |
I couldn't build from wezterm directly, there was errors related to winsock2.h, but I am on a linux, maybe that's why, I can't test this on the CI server. Instead I created a very small reproduction: a rust project with just portable_pty as dep. |
For some reason, winapi's HANDLE type isn't compatible with the core rust ffi HANDLE type when cross compiling. This commit adds some casts. ``` cd pty cargo build --release --target x86_64-pc-windows-msvc ``` refs: #1389
I was able to reproduce this on linux; I've published version |
It builds now. Thanks for taking action so quickly. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Build Environment:
Tried those targets: x86_64-pc-windows-msvc, i686-pc-windows-msvc and aarch64-pc-windows-msvc.
I have a very small rust project using
portable_pty
but when building for one of the above targets, it fails. I'm unsure if this is a legit bug or if there's something I did wrong - I'm quite new to Rust.The build output
The text was updated successfully, but these errors were encountered: