-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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-platform conflict while linking #68599
Comments
Rust does not support Cygwin. |
Why does mingw come with the compiler? Indeed, in theory, the system should have its own mingw compiler, if in some situations headers are used |
The |
Ok, it's possible define i686-pc-cygwin-gnu? |
@aristarh2704 do you want to crate binaries for Cygwin or native Windows? |
Any hypothetical new target would follow the target tier policy for how to add it, and you are welcome to do so if you also want to do the work of maintaining it. Judging by how often the existing pc-windows-gnu target gets flakey, it would be a LOT of work if you ever wanted it above tier 3. Not for the fainthearted. But if sufficient maintenance comes for it, I suppose we might. Otherwise, I do not think the windows-gnu target includes cygwin, so closing this. |
Now I try use nightly rustc on cygwin. While compiling libbacktrase-sys, mingw-gcc uses cygwin headers, for example, it take errno value as "__errno()", and after compiling, symbol dumping shows that library has undefined reference to "___errno" (with 3 underscores). While libmsvcrt adds this function named __errno (with 2 underscores). This makes it impossible to compile on the cygwin platform. I think the mingw compiler shipped with rustc must have its own headers.
I can use the hack with editing errno.h, but it's not good solution.
The text was updated successfully, but these errors were encountered: