Source: mesa Version: 23.0.0-1 Severity: normal Hi,
when clang-14 but not clang-15 is installed while building mesa 23.0.0
on Sid (debuild -us -uc -i -b), the build fails about 60% in related to
bindgen and rusticl. (See further down for logged errors.)
If clang-15 is installed, the build succeeds regardless of clang-14 being
present or not. If no clang is installed at all, the build succeeds too.
In Sid clang-14 is currently the default for "clang", in experimental
it is already clang-15.
Given it also works with no clang (like when building the official
package) adding a dependency on clang-15 is probably not desirable
and I’m not sure what to do about it.
If nothing else, I hope this report can at least help
others figure out why they can't backport mesa.
Cheers
Oneric
-- System Information:
Debian Release: 12.0
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable'), (100,
'experimental'), (1, 'experimental-debug')
Architecture: amd64 (x86_64)
Kernel: Linux 5.10.0-21-amd64 (SMP w/16 CPU threads)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL
set to C.UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
LSM: AppArmor: enabled
-- Here’s the output of running `ninja -C build -j 1` after debuild failed:
ninja: Entering directory `build'
[2/257] Generating
src/gallium/frontends/rusticl/rustmod-bindgen-rusticl_opencl_bindings.h with a
custom command
FAILED: src/gallium/frontends/rusticl/rusticl_opencl_bindings.rs
/usr/bin/bindgen ../src/gallium/frontends/rusticl/rusticl_opencl_bindings.h
--output
/home/oneric/Debian/mesa/mesa-23.0.0/build/src/gallium/frontends/rusticl/rusticl_opencl_bindings.rs
--no-convert-floats --use-array-pointers-in-arguments --size_t-is-usize
--default-enum-style rust --with-derive-partialeq --with-derive-eq
--with-derive-partialord --with-derive-ord --with-derive-hash
--with-derive-default --anon-fields-prefix anon_ --disable-header-comment
--ignore-functions --raw-line 'unsafe impl std::marker::Sync for
_cl_icd_dispatch {}' --allowlist-type 'cl_.*' --allowlist-var 'CL_.*'
--new-type-alias-deref 'cl_(mem|image|pipe)_info' --new-type-alias-deref
'cl_kernel_(arg|work_group)_info' --new-type-alias-deref
'cl_(event|profiling)_info' -- -fno-builtin-malloc
-DCL_USE_DEPRECATED_OPENCL_1_0_APIS -DCL_USE_DEPRECATED_OPENCL_1_1_APIS
-DCL_USE_DEPRECATED_OPENCL_1_2_APIS -DCL_USE_DEPRECATED_OPENCL_2_0_APIS
-DCL_USE_DEPRECATED_OPENCL_2_1_APIS -DCL_USE_DEPRECATED_OPENCL_2_2_APIS
-DCL_TARGET_OPENCL_VERSION=300 -I/home/oneric/Debian/mesa/mesa-23.0.0/include/.
-I/home/oneric/Debian/mesa/mesa-23.0.0/build/include/. -MD -MQ
../src/gallium/frontends/rusticl/rusticl_opencl_bindings.h -MF
src/gallium/frontends/rusticl/rusticl_opencl_bindings.h.d
/usr/lib/llvm-14/lib/clang/14.0.6/include/emmintrin.h:2228:10: error: invalid
conversion between vector type '__m128i' (vector of 2 'long long' values) and
integer type 'int' of different size
/usr/lib/llvm-14/lib/clang/14.0.6/include/emmintrin.h:2250:10: error: invalid
conversion between vector type '__m128i' (vector of 2 'long long' values) and
integer type 'int' of different size
/usr/lib/llvm-14/lib/clang/14.0.6/include/emmintrin.h:2271:10: error: invalid
conversion between vector type '__m128i' (vector of 2 'long long' values) and
integer type 'int' of different size
/usr/lib/llvm-14/lib/clang/14.0.6/include/emmintrin.h:2292:10: error: invalid
conversion between vector type '__m128i' (vector of 2 'long long' values) and
integer type 'int' of different size
/usr/lib/llvm-14/lib/clang/14.0.6/include/emmintrin.h:2670:10: error: invalid
conversion between vector type '__m128i' (vector of 2 'long long' values) and
integer type 'int' of different size
/usr/lib/llvm-14/lib/clang/14.0.6/include/emmintrin.h:2691:10: error: invalid
conversion between vector type '__m128i' (vector of 2 'long long' values) and
integer type 'int' of different size
/usr/lib/llvm-14/lib/clang/14.0.6/include/emmintrin.h:2711:10: error: invalid
conversion between vector type '__m128i' (vector of 2 'long long' values) and
integer type 'int' of different size
/usr/lib/llvm-14/lib/clang/14.0.6/include/emmintrin.h:2731:10: error: invalid
conversion between vector type '__m128i' (vector of 2 'long long' values) and
integer type 'int' of different size
thread 'main' panicked at 'Unable to generate bindings:
ClangDiagnostic("/usr/lib/llvm-14/lib/clang/14.0.6/include/emmintrin.h:2228:10:
error: invalid conversion between vector type '__m128i' (vector of 2 'long
long' values) and integer type 'int' of different
size\n/usr/lib/llvm-14/lib/clang/14.0.6/include/emmintrin.h:2250:10: error:
invalid conversion between vector type '__m128i' (vector of 2 'long long'
values) and integer type 'int' of different
size\n/usr/lib/llvm-14/lib/clang/14.0.6/include/emmintrin.h:2271:10: error:
invalid conversion between vector type '__m128i' (vector of 2 'long long'
values) and integer type 'int' of different
size\n/usr/lib/llvm-14/lib/clang/14.0.6/include/emmintrin.h:2292:10: error:
invalid conversion between vector type '__m128i' (vector of 2 'long long'
values) and integer type 'int' of different
size\n/usr/lib/llvm-14/lib/clang/14.0.6/include/emmintrin.h:2670:10: error:
invalid conversion between vector type '__m128i' (vector of 2 'long long'
values) and integer type 'int' of different
size\n/usr/lib/llvm-14/lib/clang/14.0.6/include/emmintrin.h:2691:10: error:
invalid conversion between vector type '__m128i' (vector of 2 'long long'
values) and integer type 'int' of different
size\n/usr/lib/llvm-14/lib/clang/14.0.6/include/emmintrin.h:2711:10: error:
invalid conversion between vector type '__m128i' (vector of 2 'long long'
values) and integer type 'int' of different
size\n/usr/lib/llvm-14/lib/clang/14.0.6/include/emmintrin.h:2731:10: error:
invalid conversion between vector type '__m128i' (vector of 2 'long long'
values) and integer type 'int' of different size\n")', src/main.rs:48:36
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
ninja: build stopped: subcommand failed.
signature.asc
Description: PGP signature

