rust-bindgen icon indicating copy to clipboard operation
rust-bindgen copied to clipboard

FreeBSD i386: mismatch value on libxml binding

Open rosorio opened this issue 1 month ago • 2 comments

Hi,

I'm not really familiar with rust, but since a couple of months I have this bindgen error when compiling the rust-libxml crate:

error[E0080]: evaluation of constant value failed
   --> /home/jc/rust-libxml/target/debug/build/libxml-0db722a43088e767/out/bindings.rs:407:29
    |
407 |   ["Size of __max_align_t"][::std::mem::size_of::<__max_align_t>() - 20usize];
    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to compute `16_usize - 20_usize`, which would overflow

I reporte this issue to the hurl project and the rust-libxml without success.

Environment: FreeBSD 14.3 i385 rust 1.91.1 bindgen v0.71.1

rosorio avatar Nov 13 '25 23:11 rosorio

I also faced this similar situation for redisearch ffi and unable to find solution yet.

rahogata avatar Nov 22 '25 20:11 rahogata

also failing for hdfs-native and opendal

chitralverma avatar Nov 25 '25 16:11 chitralverma