Skip to content
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

rustsat-cadical compilation fails on macOS + workaround #73

Closed
suomela opened this issue Mar 28, 2024 · 5 comments
Closed

rustsat-cadical compilation fails on macOS + workaround #73

suomela opened this issue Mar 28, 2024 · 5 comments

Comments

@suomela
Copy link

suomela commented Mar 28, 2024

FYI, I noticed that rustsat-cadical fails to compile on macOS.

It turned out to be caused by this issue in cc:

It works fine after doing cargo add cc@=1.0.83.

So most likely rustsat-cadical will work fine once the bug in cc gets fixed, but I'm posting this here so that others who are struggling to get rustsat-cadical work will find a workaround somewhere…

@chrjabs
Copy link
Owner

chrjabs commented Mar 28, 2024

Thanks for pointing this out and providing a workaround 👍
Interesting that the macos github CI seems to not have problems. I guess this is exclusive to macos 14.

@suomela
Copy link
Author

suomela commented Mar 28, 2024

It fails also on my Intel iMac with macOS 12.7.4, so it doesn't seem to be exclusive to macOS 14.

@suomela
Copy link
Author

suomela commented Mar 28, 2024

(But my guess is that GitHub CI has got also Homebrew-Clang, while I've got just Apple-Clang and Homebrew-GCC, and this is enough to make a difference.)

@chrjabs
Copy link
Owner

chrjabs commented Mar 28, 2024

Ah, very possible. The CI is definitely macos 12 and cc version 1.0.90 works.
But good to know that there is a workaround. I'll keep an eye on the cc issues and will mark this closed and potentially bump the dependency once they fixed it.

@suomela
Copy link
Author

suomela commented Apr 13, 2024

Seems to work now, thanks to this: rust-lang/cc-rs#1007

@suomela suomela closed this as completed Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants