-
Notifications
You must be signed in to change notification settings - Fork 760
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
error: invalid instruction cargo:rustc-cdylib-link-arg
from build script of pyo3 v0.14.1
#1719
Comments
To conclude on a more positive aspect: PyO3 is awesome, and you're all doing an amazing job! |
Ah, that's a shame. This is #1539, but I guess that rust-lang/cargo#9562 is saying that was an unintended change. This probably has implications for #1123, which is using similar cargo flags. I wonder if we can provide some hooks in the @Hywan do I understand correctly that this is a blocking error for your attempting to upgrade? If so, we should probably figure out an appropriate patch fix... |
Yeah it's an error that forbids me to update. I know it comes from the |
#1123 seems a good PR to fix the problem. Let me know, I can try anything to help you :-). |
Are you sure about this? Our experience in #1330 seemed to suggest otherwise... |
Prior to pyo3 0.14, I had a Don't ask me why though, because it's counter-intuitive. |
Could it be related to building two separate targets versus a universal binary? |
I've no idea. Maybe the user was running Python behind Rosetta? |
Any news on that front :-)? |
No progress yet, sorry. I'm kinda unsure what to do. I guess the reality is that we can't automatically apply the macOS build configuration, so we might want to add an API along the lines of |
I think it's better than an error, so yeah :-) |
Just to keep everyone in the loop, as reverting this will involve writing a fair bit of new documentation, I'm planning to do this as part of a big update to the README at the weekend. |
FYI PyO3 0.14.2 is planned to go live tomorrow. #1760 |
Thanks! |
I've updated to the latest Rust nighly ( Note: It doesn't mean it was a bug in |
🐛 Bug Reports
I try to compile
wasmer-python
with pyo3 0.14.1. It uses pyo3 to create a Python extension with Rust. Whe compiling, I'm facing this error:🌍 Environment
💥 Reproducing
When compiling
examples/word-count/
withcargo build --release
, we get a warning:In my project (
wasmer-python
), it's an error.The text was updated successfully, but these errors were encountered: