-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
I am currently packaging renderdoc-sys 1.1.0 for Debian. On 64-bit architectures, the build and test suite succeed. However, on all 32-bit architectures, the build fails due to failing bindgen layout tests. (see more: https://buildd.debian.org/status/package.php?p=rust-renderdoc-sys)
Here is an excerpt from the test log on armel:
thread 'bindgen_test_layout_RENDERDOC_API_1_6_0__bindgen_ty_1' panicked at src/./bindings.rs:226:5:
assertion `left == right` failed: Size of: RENDERDOC_API_1_6_0__bindgen_ty_1
left: 4
right: 8
This suggests that the generated bindings (or the assumptions hard-coded into the tests) are not valid for 32-bit architectures, where pointer size and alignment differ from amd64.
Should tests be adjusted to account for 32-bit layouts, or if the crate itself is intended to support only 64-bit platforms, and the tests should be skipped on 32-bit?
Thanks!
Metadata
Metadata
Assignees
Labels
No labels