HomeFreeBSD

Fix zstd in OpenZFS module with CPUTYPE?=<something with BMI>

Description

Fix zstd in OpenZFS module with CPUTYPE?=<something with BMI>

The build breaks when something adds -march=<something with BMI> to the
compiler flags, for example CPUTYPE?=native. When the arch supports BMI,
BMI is defined and zstd.c tries to include immintrin.h, which is not
present when building the kernel.

Disable experimental BMI intrinsics in zstd in the OpenZFS kernel module
by explicitly undefining BMI for zstd.c.

A similar fix was needed for the original zstd import, done in r327738.

Reported by: Jakob Alvermark
Discussed with: mmacy
Sponsored by: iXsystems, Inc.

Details

Provenance
freqlabsAuthored on Aug 25 2020, 6:22 PM
Parents
rG5e6a7bc6c1e3: libbe: lift the WARNS post-OpenZFS merge
Branches
Unknown
Tags
Unknown

Event Timeline