Failed to compile openwrt on macOS Sonoma

When compiling openwrt master (75aeb7ed627ba5ea6f10f365b232bed21e40b502) on macOS Sonoma with m2 chip, it failed to compile, and the log stopped at:

/Users/hgl/openwrt/staging_dir/host/bin/fakeroot /Users/hgl/openwrt/staging_dir/host/bin/bash /Users/hgl/openwrt/scripts/ipkg-build -m "" /Users/hgl/openwrt/build_dir/target-x86_64_musl/toolchain/ipkg-x86_64/libgcc /Users/hgl/openwrt/bin/targets/x86/64/packages
dyld[26722]: tried: '/Users/hgl/openwrt/staging_dir/host/lib/libfakeroot.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need '')), '/System/Volumes/Preboot/Cryptexes/OS/Users/hgl/openwrt/staging_dir/host/lib/libfakeroot.dylib' (no such file), '/Users/hgl/openwrt/staging_dir/host/lib/libfakeroot.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need '')), '/Users/hgl/openwrt/staging_dir/host/lib/libfakeroot-0.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need '')), '/System/Volumes/Preboot/Cryptexes/OS/Users/hgl/openwrt/staging_dir/host/lib/libfakeroot-0.dylib' (no such file), '/Users/hgl/openwrt/staging_dir/host/lib/libfakeroot-0.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need ''))
/Users/hgl/openwrt/scripts/ipkg-build: line 182: 26721 Broken pipe: 13         $TAR -X "$tmp_dir"/tarX --format=gnu --numeric-owner --sort=name -cpf - --mtime="$TIMESTAMP" .
     26722 Abort trap: 6           | gzip -n - > "$tmp_dir"/data.tar.gz
make[4]: *** [Makefile:751: /Users/hgl/openwrt/bin/targets/x86/64/packages/libgcc1_12.3.0-4_x86_64.ipk] Error 134
make[4]: Leaving directory '/Users/hgl/openwrt/package/libs/toolchain'
time: package/libs/toolchain/compile#0.17#0.15#0.38
    ERROR: package/libs/toolchain failed to build

I wonder if it's because fakeroot doesn't support Sonoma or it's something else?