-
Notifications
You must be signed in to change notification settings - Fork 66
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
cross compiling using bindgen under x86_64, but requires 32 bit #75
Comments
I have used Is this a bug or intention ? |
Can you share a minimal example that demonstrates this please? |
I was busy doing project. I'll try to make a small example project recently |
Same issue here 🙋 In my case, I have a program, that depends on socketcan-alt, which uses bindgen, to produce bindings for the Here's the error message for me (which is somewhat similar to @sprhawk's)
I'm building for an arm device, so like sprhawk not for the same platform. Maybe that's the issue? A question, which you might be able to answer: What target is bindgen aiming at? The host or target platform, when he's looking for the |
It seems to me, that he uses my systems |
this appears to be a common issue with bindgen, may be related to the "Pre-built bindgen outputs often do not match target architecture sizes" section here. |
use following defines in layer to fixed it:
|
Hey @sprhawk |
@hellow554 I'm not sure that it belongs directly in this layer, but I am more than happy to accept a PR to add something to the README since I suspect that there is a lot of crossover between people using Yocto and needing to interface Rust with C. If this were to be included in the layer I'd rather see it as a |
I'm building btrfsutil-rs,
it complains following errors:
I guess is compiler when running build.rs is looking for 32bit lib, but why?
I can build ffi for libimobiledevice without problem
The text was updated successfully, but these errors were encountered: