Skip to content

bindgen_test_layout_max_align_t fails #605

Closed
@saurvs

Description

@saurvs

Input C Header

// contents can be found at github.com/lxc/lxc/blob/master/src/lxc/lxccontainer.h
#include <lxc/lxccontainer.h>

Bindgen Invokation

let bindings = bindgen::Builder::default()
        .no_unstable_rust()
        .header("wrapper.h")
        .generate()
        .expect("Unable to generate lxc bindings");

Actual Results

Output from cargo test

failures:

---- bindgen_test_layout_max_align_t stdout ----
	thread 'bindgen_test_layout_max_align_t' panicked at 'assertion failed: `(left == right)` (left: `24`, right: `32`): Size of: max_align_t', /home/saurav/lxc-rs/target/debug/build/lxc-5edc7f91e15740c0/out/bindings.rs:270
note: Run with `RUST_BACKTRACE=1` for a backtrace.

failures:
    bindgen_test_layout_max_align_t

test result: FAILED. 45 passed; 1 failed; 0 ignored; 0 measured

Expected Results

All tests passing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions