-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Failed to build wheel on FreeBSD #885
Comments
Thanks! Sorry for the trouble. Can you check what version of Rust you have? (It should be Separately, do you know what's required to build wheels for FreeBSD? I'm really not familiar but I'm happy to support it! |
I appreciate your fast response! I actually don't have As for FreeBSD wheels, I haven't done that before. I don't see any mention of FreeBSD with cross compiling for Maturin, nor issues on the topic. It may be possible though to use Cirrus CI as it can launch macOS and FreeBSD VMs. I know with go, cross-compilation is really simple, but I imagine with rust that may not be the case. If I find out more on this, I'll let you know! I don't think FreeBSD wheels are terribly common, unfortunately. Even cryptography doesn't have FreeBSD wheels: https://pypi.org/project/cryptography/#files |
I'm starting to think that I need 1.65. 1.65 is incoming for FreeBSD (already in ports), but will probably take a couple more days to build. https://blog.rust-lang.org/2022/11/03/Rust-1.65.0.html#let-else-statements This is good to know, although surprising to me that such a newly released language feature would be used already, a couple weeks later. In the Python world there's usually a fairly lengthy EOL lifetime (maybe too long!). |
Ah ok! Yeah, it looks like RustPython is now using some 1.65 language features. (1.65 recently reached the "stable" channel so it's fair game.) |
You could try |
pypi doesn't allow uploading wheels besides Linux, macOS and Windows at the moment. |
@charliermarsh Consider set https://doc.rust-lang.org/cargo/reference/manifest.html#the-rust-version-field |
Thank you! I'm actually going to give rust 165.0 a try via |
BTW, Cirrus CI is good choice for testing FreeBSD, and it even supports arm64 macOS and Linux, we use it in maturin: https://github.com/PyO3/maturin/blob/main/.cirrus.yml |
Every time @messense chimes in I learn a bunch of good stuff, thank you. |
|
@hhartzer Would you mind sharing the steps you used to build it? I don't see |
I think because the rust version was too old, I fetched rustup in this manner: https://forge.rust-lang.org/infra/other-installation-methods.html#rustup But the rust version in ports may be current enough now to install just via |
This looks awesome and I am really excited to try it out. However, I'm using FreeBSD so I have to build my own wheels.
I got this error when building the wheel with
pip install
:Seems like it could be a bug in rustpython-parser. It mentions rust-lang/rust#87335
Is there anything I should try with this? Should I open an upstream bug? Not well versed in Rust, unfortunately.
The text was updated successfully, but these errors were encountered: