[Pkg-rust-maintainers] Bug#1013123: librust-bindgen-dev: Fails to build bindings against libraries that include SSE intrinsics headers

Gard Spreemann gspr at nonempty.org
Fri Jun 17 13:06:51 BST 2022


Package: librust-bindgen-dev
X-Debbugs-Cc: gspr at nonempty.org
Version: 0.59.2-2+b1
Severity: normal

Dear Maintainer,

Bindgen fails to generate bindings for C code that includes SSE
intrinsics headers like emmintrin.h:

  /usr/lib/llvm-13/lib/clang/13.0.1/include/emmintrin.h:2374:10: error: invalid conversion between vector type '__m128i' (vector of 2 'long long' values) and integer type 'int' of different size
  /usr/lib/llvm-13/lib/clang/13.0.1/include/emmintrin.h:2394:10: error: invalid conversion between vector type '__m128i' (vector of 2 'long long' values) and integer type 'int' of different size
  /usr/lib/llvm-13/lib/clang/13.0.1/include/emmintrin.h:2414:10: error: invalid conversion between vector type '__m128i' (vector of 2 'long long' values) and integer type 'int' of different size
  /usr/lib/llvm-13/lib/clang/13.0.1/include/emmintrin.h:2434:10: error: invalid conversion between vector type '__m128i' (vector of 2 'long long' values) and integer type 'int' of different size
  /usr/lib/llvm-13/lib/clang/13.0.1/include/emmintrin.h:2374:10: error: invalid conversion between vector type '__m128i' (vector of 2 'long long' values) and integer type 'int' of different size, err: true
  /usr/lib/llvm-13/lib/clang/13.0.1/include/emmintrin.h:2394:10: error: invalid conversion between vector type '__m128i' (vector of 2 'long long' values) and integer type 'int' of different size, err: true
  /usr/lib/llvm-13/lib/clang/13.0.1/include/emmintrin.h:2414:10: error: invalid conversion between vector type '__m128i' (vector of 2 'long long' values) and integer type 'int' of different size, err: true
  /usr/lib/llvm-13/lib/clang/13.0.1/include/emmintrin.h:2434:10: error: invalid conversion between vector type '__m128i' (vector of 2 'long long' values) and integer type 'int' of different size, err: true
  thread 'main' panicked at 'Unable to generate bindings.: ()', build.rs:15:10
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

This bug report is meant as documentation, as it seems that 0.60.1
(already in sid) fixes the issue.

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.18.0-1-amd64 (SMP w/6 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages librust-bindgen-dev depends on:
ii  clang                                                            1:13.0-54
ii  librust-bitflags-dev [librust-bitflags-1+default-dev]            1.3.2-2
ii  librust-cexpr-dev [librust-cexpr-0.6+default-dev]                0.6.0-2
pn  librust-clang-sys-1+clang-6-0-dev                                <none>
ii  librust-clang-sys-dev [librust-clang-sys-1+default-dev]          1.3.0-1
ii  librust-lazy-static-dev [librust-lazy-static-1+default-dev]      1.4.0-1
ii  librust-lazycell-dev [librust-lazycell-1+default-dev]            1.3.0-3
ii  librust-peeking-take-while-dev [librust-peeking-take-while-0.1+  0.1.2-1+b1
ii  librust-proc-macro2-dev [librust-proc-macro2-1-dev]              1.0.28-1
ii  librust-quote-dev [librust-quote-1-dev]                          1.0.9-1
ii  librust-regex+unicode-dev [librust-regex-1+unicode-dev]          1.5.5-1
ii  librust-regex-dev [librust-regex-1+std-dev]                      1.5.5-1
ii  librust-rustc-hash-dev [librust-rustc-hash-1+default-dev]        1.1.0-1
ii  librust-shlex-dev [librust-shlex-0.1+default-dev]                0.1.1-1+b1

Versions of packages librust-bindgen-dev recommends:
ii  librust-bindgen+default-dev  0.59.2-2+b1

Versions of packages librust-bindgen-dev suggests:
ii  librust-bindgen+clap-dev        0.59.2-2+b1
ii  librust-bindgen+env-logger-dev  0.59.2-2+b1
ii  librust-bindgen+log-dev         0.59.2-2+b1
ii  librust-bindgen+logging-dev     0.59.2-2+b1
ii  librust-bindgen+runtime-dev     0.59.2-2+b1
pn  librust-bindgen+static-dev      <none>
ii  librust-bindgen+which-dev       0.59.2-2+b1

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 857 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-rust-maintainers/attachments/20220617/8c0dc03d/attachment.sig>


More information about the Pkg-rust-maintainers mailing list