-
Notifications
You must be signed in to change notification settings - Fork 0
Build fails on Ubuntu 22.02 #14
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
Comments
I was able to confirm that using the conda env and setting one flag is enough
|
@Unaimend thank you for trying it out, and sorry you had to dig so deep to track this down. It’s great that you distilled the fix to the bare minimum. I’m new to setting up C++ tool-chains with Conda, so I didn’t realise bindgen would end up reading a different set of headers. Pointing it at the right ones by forcing the target triple to I can’t reproduce the issue on my macOS machine, but once I get access to an Ubuntu machine, I’ll experiment with implementing the workaround directly into build.rs. If you already have a concrete idea, feel free to open a PR, and we can wire the CI to cover this case. |
Just setting |
I dug out the responsible snippet from the bindgen source
Seems to compare some pointer sizes. I am not sure why the Create.io links to this repo https://github.com/adetaylor/rust-bindgen |
Uh oh!
There was an error while loading. Please reload this page.
The build fails on my machine. The error message can be found below.
I assumed it was some mismatch due to my compiler. sadly I tried multiple steps at the same time so I am not sure which exactly fixed it.
If this problem is of interest to you I can try to make a more detailed analysis and figure out what exactly fixed the problem.
Steps to fix
System information
Error
The text was updated successfully, but these errors were encountered: