Skip to content

bindgen_test_layout_max_align_t fails #605

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

Closed
saurvs opened this issue Apr 1, 2017 · 1 comment
Closed

bindgen_test_layout_max_align_t fails #605

saurvs opened this issue Apr 1, 2017 · 1 comment

Comments

@saurvs
Copy link

saurvs commented Apr 1, 2017

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?

@emilio
Copy link
Contributor

emilio commented Apr 2, 2017

dupe of #550, thanks for reporting it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants