Build the source code of mysql 8 fatal error: 'asm/hwcap.h' file not found

Hi all:
os : mac 13.4(M2)
source code :percona mysql 8
ide: CLion 2023.3
cmake :3.26.4
-DDOWNLOAD_BOOST=1
-DWITH_BOOST=/Users/hzp/mysql-server/boost
-DCMAKE_BUILD_TYPE=Debug
-DCMAKE_INSTALL_PREFIX=/Users/hzp/mysql-server/build_out
-DMYSQL_DATADIR=/Users/hzp/mysql-server/build_out/data
-DSYSCONFDIR=/Users/hzp/mysql-server/build_out
-DMYSQL_UNIX_ADDR=/Users/hzp/mysql-server/build_out/data/mysql.sock
-DMYSQL_MAINTAINER_MODE=false
-DOPENSSL_ROOT_DIR=/opt/homebrew/Cellar/openssl@3/3.1.2
-DOPENSSL_LIBRARIES=/opt/homebrew/Cellar/openssl@3/3.1.2/lib
-DCMAKE_SYSTEM_PROCESSOR=APPLE_ARM 1
-DCMAKE_OSX_ARCHITECTURES=arm64

where I try build the source code mysql8 exceptions as :
[ 81%] Building CXX object storage/innobase/CMakeFiles/innobase.dir/btr/btr0sea.cc.o
In file included from /Users/hzp/mysql-server/storage/innobase/arch/arch0recv.cc:34:
In file included from /Users/hzp/mysql-server/storage/innobase/include/arch0recv.h:36:
In file included from /Users/hzp/mysql-server/storage/innobase/include/arch0arch.h:36:
In file included from /Users/hzp/mysql-server/storage/innobase/include/buf0buf.h:36:
In file included from /Users/hzp/mysql-server/storage/innobase/include/buf0types.h:37:
In file included from /Users/hzp/mysql-server/storage/innobase/include/sync0rw.h:49:
In file included from /Users/hzp/mysql-server/storage/innobase/include/ut0mutex.h:63:
In file included from /Users/hzp/mysql-server/storage/innobase/include/ib0mutex.h:38:
In file included from /Users/hzp/mysql-server/storage/innobase/include/sync0policy.h:42:
In file included from /Users/hzp/mysql-server/storage/innobase/include/ut0rnd.h:44:
/Users/hzp/mysql-server/storage/innobase/include/ut0crc32.h:135:10: fatal error: In file included from ‘asm/hwcap.h’ file not found/Users/hzp/mysql-server/storage/innobase/arch/arch0log.cc:
32:
In file included from /Users/hzp/mysql-server/storage/innobase/include/arch0log.h#include <asm/hwcap.h>:
35:
^~~~~~~~~~~~~
How can I get asm.h and hwcap.h?
Thank you!
crc32.hut0crc32.h
#if defined(GNUC) && defined(x86_64) || defined(_WIN32)
#define CRC32_x86_64
#ifdef _WIN32
#define CRC32_x86_64_WIN
#else /* _WIN32 /
#define CRC32_x86_64_DEFAULT
#endif /
_WIN32 /
#elif defined(aarch64) && defined(GNUC)
#define CRC32_ARM64
#ifdef APPLE_ARM
#define CRC32_ARM64_APPLE
#else /
APPLE_ARM /
#define CRC32_ARM64_DEFAULT
#endif /
APPLE_ARM /
#else
#define CRC32_DEFAULT
#endif /
defined(aarch64) && defined(GNUC) */