lib/jxl: fails to build on IA-32 with -march=native (BMI2)
From error log:
$ CXXFLAGS="$CXXFLAGS -march=haswell" cmake
$ cmake --build .
[...]
In file included from lib/jxl/filters.cc:15:
In file included from lib/jxl/filters.h:23:
In file included from lib/jxl/loop_filter.h:26:
lib/jxl/dec_bit_reader.h:128:12: error: use of undeclared identifier '_bzhi_u64'; did you mean '_bzhi_u32'?
return _bzhi_u64(buf_, nbits);
^~~~~~~~~
_bzhi_u32
/usr/lib/clang/11.0.0/include/bmi2intrin.h:21:1: note: '_bzhi_u32' declared here
_bzhi_u32(unsigned int __X, unsigned int __Y)
^
1 error generated.