You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
structbtf_dump_opts {
union {
size_t sz;
void *ctx; /* DEPRECATED: will be gone in v1.0 */
};
};
Bindgen Invocation
let bindings = bindgen::Builder::default().header("bindings.h").clang_arg("-Ilibbpf/src").clang_arg("-Ilibbpf/include/uapi").clang_arg("-Ilibbpf/include").allowlist_function("btf_dump__new").allowlist_function("vdprintf").generate().expect("Unable to generate bindings");
bindings
.write_to_file(out_path.join("libbpf_bindings.rs")).expect("Couldn't write bindings!");
Actual Results
thread 'main' panicked at '"btf_dump_opts_union_(anonymous_at_libbpf/src/btf_h_271_2)" is not a valid Ident', /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.63/src/fallback.rs:791:9
Expected Results
The text was updated successfully, but these errors were encountered:
bestgopher
changed the title
thread 'main' panicked at '"btf_dump_opts_union_(anonymous_at_libbpf/src/btf_h_271_2)" is not a valid Ident', /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.63/src/fallback.rs:791:9
build union failed
Jun 26, 2023
When I built the repo, I got an error.
build env
Input C/C++ Header
Bindgen Invocation
Actual Results
Expected Results
The text was updated successfully, but these errors were encountered: