-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
rust 1.64 now uses fd-lock->rustix->flock() for bootstraping where flock() is not available on Solaris #103630
Comments
@psumbera adding a |
But this way I still need to have buildable rustix for Solaris, right? |
Ah, I see. You can use those cfgs in Cargo.toml too I think. I'm surprised you get that error at compile time, is it trying to use something in libc that doesn't exist? |
Oh, I see that @gco has already fixed rustix Solaris build problems via bytecodealliance/rustix@d96706a . |
@psumbera does that mean we just have to update |
It's not just about updating rustix. It would still miss support for flock(). But we could try to emulate it via fcntl() then... |
Sure, seems reasonable :) I think you would need to modify |
You can also just disable locking for that target, we use it to prevent running in parallel by accident, but you can just be careful to only run one process of bootstrap at a time. |
@jyn514 Any help still needed here? |
@zephaniahong sure, but it will be hard to test your changes unless you have access to a Solaris machine ... |
I see! In that case, I'll leave it for someone else😅 |
This should resolve problem with Rust build: rust-lang/rust#103630
This should resolve problem with Rust build: rust-lang/rust#103630
It is on my to-do list, the only thing I see left to do is create an issue to track which platforms have locking and which haven't. |
…p, r=albertlarsan68 Don't use fd-lock on Solaris in bootstrap ...as Solaris is missing flock() fixes rust-lang#103630
…p, r=albertlarsan68 Don't use fd-lock on Solaris in bootstrap ...as Solaris is missing flock() fixes rust-lang#103630
Seems that Rust now relies on fd-lock for bootstraping instead of using python code:
5a30316
Solaris doesn't support flock(). Insetad more modern fcntl() interface is used.
So even when I was able to make rustix compile on Solaris (without flock() support) it doesn't help since fd-lock requires flock().
Therefore I'm not able to compile Rust 1.64.0 on Solaris now.
The text was updated successfully, but these errors were encountered: