-
Notifications
You must be signed in to change notification settings - Fork 566
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
Can't build druid-shell on Mac with error: *const Class
cannot be sent between threads safely
#2211
Comments
I tried to add |
I see you mention using GitHub Actions, but we use GitHub actions as well, and it builds. |
I'm using Github Actions with machine I tried to build a minimal druid program with only druid as the dependencies and it also builds fine. So maybe there's something strange in my project that made rustc avoid parsing the As I said above, it will goes well if I added I just pretty confused because I never modify or patch dependencies but it really happened when I first try to build it on Mac and I don't know what is wrong. |
Maybe I found the reason, after I checked dependencies tree by
It uses crate It may not a bug from |
Excellent investigation! I can now reproduce the error by manually enabling the This is definitely an issue with the
I reported it to them in lazy-static.rs#204. Hopefully the maintainers care and have time. However we don't have to wait for them to react. We should definitely fight against this surprise error from our side too. So it seems that there are three types that are lacking If you submit a PR here that adds |
We can switch from |
Thank you! I'll prepare a PR for fixing this temporary problem! |
That is a very interesting option. I quickly skimmed over their docs and |
This issue was fixed in #2214 so I closed this. Open a new issue to discuss about using |
I was using stable rust compiler
stable-x86_64-apple-darwin - rustc 1.61.0 (fe5b13d68 2022-05-18) (from rustc 1.61.0 (fe5b13d68 2022-05-18))
and try to build my program with druid (Commit 7d08672), but some errors occured.I've already checked #176 which had the same problem, but upgrading rustc doesn't work for me as I'm using Github Action.
Error output:
I've never used MacOS before, so please remind me if there's something I don't know. Thanks!
The text was updated successfully, but these errors were encountered: