-
Notifications
You must be signed in to change notification settings - Fork 60
Update libffi to 4.0.0 #209
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
Conversation
LIbffi is broken in MacOS 15+. The clang compiler that comes with Xcode that comes with MacOS 15 is incompatible with libffi 3.2.0. There has been a fix, and it is updated in libffi 4.0.0. See libffi-rs/libffi-rs#109
jedbrown
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I started the pipeline. Is it worth changing CI (.github/workflows/test.yaml) so that this would be tested?
|
I fixed CI issues. Can you please rebase on main? |
|
Done! |
|
This bumps MSRV to 1.78. You can update the |
Cargo.toml
Outdated
| [dependencies] | ||
| conv = "0.3.3" | ||
| libffi = { version = "3.2.0", optional = true } | ||
| libffi = { version = "4.0.0", optional = true } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| libffi = { version = "4.0.0", optional = true } | |
| libffi = { version = "4.1.0", optional = true } |
I see a new version is out. And please update the rust-version field; then we should be able to merge this.
The updated libffi is needed to fix an issue with MacOS 15, and the fix has a side-effect of increasing MSRV to 1.78. See #209
The updated libffi is needed to fix an issue with MacOS 15, and the fix has a side-effect of increasing MSRV to 1.78. See #209 We will stick with bindgen-1.70.1 because bindgen-1.71.1 does not correctlly identify when to avoid using unsafe extern "C" { ... }, which was first added in rust-1.82. rust-lang/rust-bindgen#3015 https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-extern.html
The updated libffi is needed to fix an issue with MacOS 15, and the fix has a side-effect of increasing MSRV to 1.78. See #209 We will stick with bindgen-1.70.1 because bindgen-1.71.1 does not correctlly identify when to avoid using unsafe extern "C" { ... }, which was first added in rust-1.82. rust-lang/rust-bindgen#3015 https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-extern.html
The updated libffi is needed to fix an issue with MacOS 15, and the fix has a side-effect of increasing MSRV to 1.78. See #209 We will stick with bindgen-1.70.1 because bindgen-1.71.1 does not correctlly identify when to avoid using unsafe extern "C" { ... }, which was first added in rust-1.82. rust-lang/rust-bindgen#3015 https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-extern.html
Changed libffi version to 4.1.0 in Cargo.toml
Incremented libffi version
|
Closing in favor of #214 |
LIbffi is broken in MacOS 15+. The clang compiler that comes with Xcode that comes with MacOS 15 is incompatible with libffi 3.2.0.
There has been a fix, and it is updated in libffi 4.0.0. See libffi-rs/libffi-rs#109