The Source code failed to build with ninja

I pulled the main branch following the documentations
using the following command to build the project fails with error:

utils/build-script --skip-build-benchmarks \
  --skip-ios --skip-watchos --skip-tvos --swift-darwin-supported-archs "$(uname -m)" \
  --sccache --release-debuginfo --swift-disable-dead-stripping

Error:

copying compiler-rt embedded builtins from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/14.0.0/lib/darwin into the local clang build directory ...../build/Ninja-RelWithDebInfoAssert/llvm-macosx-arm64/bin/../lib/clang/13.0.0/lib/darwin.

+ /usr/local/bin/cmake --build .../build/Ninja-RelWithDebInfoAssert/swift-macosx-arm64 -- -j8 all swift-test-stdlib-macosx-arm64

ninja: error: 'stdlib/swift-test-stdlib-macosx-x86_64', needed by 'stdlib/CMakeFiles/swift-test-stdlib', missing and no known rule to make it

I am running on M1 processor macOS Monterey 12.6

from the build logs I can see it uses arm64 arch

-- Building with -fPIC
-- Xcode 14.0.1, Build version 14A400
--
-- OS X SDK:
--   Object File Format: MACHO
--   Swift Standard Library Path: macosx
--   Threading Package: darwin
--   Version: 12.3
--   Build number: 21E226
--   Deployment version: 10.9
--   Triple name: macosx
--   Simulator: FALSE
--   Architectures: arm64
--   arm64 triple: arm64-apple-macosx
--   Module triple: arm64-apple-macos
--   arm64 Path: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk
--
-- Building host Swift tools for OSX arm64
--   Build type:     RelWithDebInfo
--   Assertions:     TRUE
--   LTO:
--   Bootstrapping:  BOOTSTRAPPING-WITH-HOSTLIBS
--   Swift parser:   TRUE
--
-- Building Swift standard library and overlays for SDKs: OSX
--   Build type:       RelWithDebInfo
--   Assertions:       TRUE
--
-- Building Swift runtime with:
--   Leak Detection Checker Entrypoints: FALSE
--
-- Differentiable Programming Support: TRUE
-- Concurrency Support:                TRUE
-- Distributed Support:                TRUE
-- String Processing Support:          TRUE
-- Unicode Support:                    TRUE
--

any idea why I am getting this error?