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
On some of my machines (1 ubuntu 22.04, 1 Fedora 39 machine) mozangle fails to build, due to bindgen failing to generate bindings.
The binding issue, seems to be because libclang-sys includes some avx512 intrinsics headers, which use some builtin functions which libclang-sys apparently doesn't recognize.
--- stderr
/usr/lib/llvm-14/lib/clang/14.0.0/include/emmintrin.h:2228:19: error: use of undeclared identifier '__builtin_ia32_paddsb128'
/usr/lib/llvm-14/lib/clang/14.0.0/include/emmintrin.h:2250:19: error: use of undeclared identifier '__builtin_ia32_paddsw128'
/usr/lib/llvm-14/lib/clang/14.0.0/include/emmintrin.h:2271:19: error: use of undeclared identifier '__builtin_ia32_paddusb128'
/usr/lib/llvm-14/lib/clang/14.0.0/include/emmintrin.h:2292:19: error: use of undeclared identifier '__builtin_ia32_paddusw128'
/usr/lib/llvm-14/lib/clang/14.0.0/include/emmintrin.h:2670:19: error: use of undeclared identifier '__builtin_ia32_psubsb128'
/usr/lib/llvm-14/lib/clang/14.0.0/include/emmintrin.h:2691:19: error: use of undeclared identifier '__builtin_ia32_psubsw128'
/usr/lib/llvm-14/lib/clang/14.0.0/include/emmintrin.h:2711:19: error: use of undeclared identifier '__builtin_ia32_psubusb128'
/usr/lib/llvm-14/lib/clang/14.0.0/include/emmintrin.h:2731:19: error: use of undeclared identifier '__builtin_ia32_psubusw128'
/usr/lib/llvm-14/lib/clang/14.0.0/include/avx2intrin.h:95:19: error: use of undeclared identifier '__builtin_ia32_paddsb256'
/usr/lib/llvm-14/lib/clang/14.0.0/include/avx2intrin.h:101:19: error: use of undeclared identifier '__builtin_ia32_paddsw256'
/usr/lib/llvm-14/lib/clang/14.0.0/include/avx2intrin.h:107:19: error: use of undeclared identifier '__builtin_ia32_paddusb256'
/usr/lib/llvm-14/lib/clang/14.0.0/include/avx2intrin.h:113:19: error: use of undeclared identifier '__builtin_ia32_paddusw256'
/usr/lib/llvm-14/lib/clang/14.0.0/include/avx2intrin.h:631:19: error: use of undeclared identifier '__builtin_ia32_psubsb256'
/usr/lib/llvm-14/lib/clang/14.0.0/include/avx2intrin.h:637:19: error: use of undeclared identifier '__builtin_ia32_psubsw256'
/usr/lib/llvm-14/lib/clang/14.0.0/include/avx2intrin.h:643:19: error: use of undeclared identifier '__builtin_ia32_psubusb256'
/usr/lib/llvm-14/lib/clang/14.0.0/include/avx2intrin.h:649:19: error: use of undeclared identifier '__builtin_ia32_psubusw256'
/usr/lib/llvm-14/lib/clang/14.0.0/include/avx512fintrin.h:9319:10: error: use of undeclared identifier '__builtin_ia32_reduce_add_q512'
/usr/lib/llvm-14/lib/clang/14.0.0/include/avx512fintrin.h:9323:10: error: use of undeclared identifier '__builtin_ia32_reduce_mul_q512'
/usr/lib/llvm-14/lib/clang/14.0.0/include/avx512fintrin.h:9337:10: error: use of undeclared identifier '__builtin_ia32_reduce_add_q512'
fatal error: too many errors emitted, stopping now [-ferror-limit=]
thread 'main' panicked at build.rs:358:10:
Should generate shader bindings: ClangDiagnostic("/usr/lib/llvm-14/lib/clang/14.0.0/include/emmintrin.h:2228:19: error: use of undeclared identifier '__builtin_ia32_paddsb128'\n/usr/lib/llvm-14/lib/clang/14.0.0/include/emmintrin.h:2250:19: error: use of undeclared identifier '__builtin_ia32_paddsw128'\n/usr/lib/llvm-14/lib/clang/14.0.0/include/emmintrin.h:2271:19: error: use of undeclared identifier '__builtin_ia32_paddusb128'\n/usr/lib/llvm-14/lib/clang/14.0.0/include/emmintrin.h:2292:19: error: use of undeclared identifier '__builtin_ia32_paddusw128'\n/usr/lib/llvm-14/lib/clang/14.0.0/include/emmintrin.h:2670:19: error: use of undeclared identifier '__builtin_ia32_psubsb128'\n/usr/lib/llvm-14/lib/clang/14.0.0/include/emmintrin.h:2691:19: error: use of undeclared identifier '__builtin_ia32_psubsw128'\n/usr/lib/llvm-14/lib/clang/14.0.0/include/emmintrin.h:2711:19: error: use of undeclared identifier '__builtin_ia32_psubusb128'\n/usr/lib/llvm-14/lib/clang/14.0.0/include/emmintrin.h:2731:19: error: use of undeclared identifier '__builtin_ia32_psubusw128'\n/usr/lib/llvm-14/lib/clang/14.0.0/include/avx2intrin.h:95:19: error: use of undeclared identifier '__builtin_ia32_paddsb256'\n/usr/lib/llvm-14/lib/clang/14.0.0/include/avx2intrin.h:101:19: error: use of undeclared identifier '__builtin_ia32_paddsw256'\n/usr/lib/llvm-14/lib/clang/14.0.0/include/avx2intrin.h:107:19: error: use of undeclared identifier '__builtin_ia32_paddusb256'\n/usr/lib/llvm-14/lib/clang/14.0.0/include/avx2intrin.h:113:19: error: use of undeclared identifier '__builtin_ia32_paddusw256'\n/usr/lib/llvm-14/lib/clang/14.0.0/include/avx2intrin.h:631:19: error: use of undeclared identifier '__builtin_ia32_psubsb256'\n/usr/lib/llvm-14/lib/clang/14.0.0/include/avx2intrin.h:637:19: error: use of undeclared identifier '__builtin_ia32_psubsw256'\n/usr/lib/llvm-14/lib/clang/14.0.0/include/avx2intrin.h:643:19: error: use of undeclared identifier '__builtin_ia32_psubusb256'\n/usr/lib/llvm-14/lib/clang/14.0.0/include/avx2intrin.h:649:19: error: use of undeclared identifier '__builtin_ia32_psubusw256'\n/usr/lib/llvm-14/lib/clang/14.0.0/include/avx512fintrin.h:9319:10: error: use of undeclared identifier '__builtin_ia32_reduce_add_q512'\n/usr/lib/llvm-14/lib/clang/14.0.0/include/avx512fintrin.h:9323:10: error: use of undeclared identifier '__builtin_ia32_reduce_mul_q512'\n/usr/lib/llvm-14/lib/clang/14.0.0/include/avx512fintrin.h:9337:10: error: use of undeclared identifier '__builtin_ia32_reduce_add_q512'\nfatal error: too many errors emitted, stopping now [-ferror-limit=]\n")
On the ubuntu machine I have clang-14 and clang-15 installed. clang maps to clang-14.
If I export CLANG_PATH=/usr/bin/clang-15 the build succeeds. libclang-sys is documented to always use the newest version of libclang that it finds, so the question is how do the clang-14 headers end up being included.
Enabling the logging feature for bindgen gave me the following output:
I'll close this issue, since it is a bindgen issue (rust-lang/rust-bindgen#2682).
We probably should still keep this in mind, since people will run into this occasionally.
On some of my machines (1 ubuntu 22.04, 1 Fedora 39 machine) mozangle fails to build, due to bindgen failing to generate bindings.
The binding issue, seems to be because
libclang-sys
includes some avx512 intrinsics headers, which use some builtin functions whichlibclang-sys
apparently doesn't recognize.Stdout
Stderr
On the ubuntu machine I have
clang-14
andclang-15
installed.clang
maps toclang-14
.If I
export CLANG_PATH=/usr/bin/clang-15
the build succeeds.libclang-sys
is documented to always use the newest version oflibclang
that it finds, so the question is how do theclang-14
headers end up being included.Enabling the logging feature for bindgen gave me the following output:
So this does seem to be more a bindgen issue
The text was updated successfully, but these errors were encountered: