Skip to content

Bindgen layout tests fail on 32-bit architecture #158

@nadzyah

Description

@nadzyah

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions