Build system information
error: Multiple commands produce '/Users/myuser/workspace/swift-source/build/Xcode- RelWithDebInfoAssert/swift-macosx-x86_64/RelWithDebInfo/lib/libBlocksRuntime.dylib':
1) Target 'BlocksRuntimeStub-macosx-arm64' has link command with output '/Users/myuser/workspace/swift-source/build/Xcode-RelWithDebInfoAssert/swift-macosx-x86_64/RelWithDebInfo/lib/libBlocksRuntime.dylib'
2) Target 'BlocksRuntimeStub-macosx-arm64e' has link command with output '/Users/myuser/workspace/swift-source/build/Xcode-RelWithDebInfoAssert/swift-macosx-x86_64/RelWithDebInfo/lib/libBlocksRuntime.dylib'
3) Target 'BlocksRuntimeStub-macosx-x86_64' has link command with output '/Users/myuser/workspace/swift-source/build/Xcode-RelWithDebInfoAssert/swift-macosx-x86_64/RelWithDebInfo/lib/libBlocksRuntime.dylib'
That seems like a bug. Can you try adding --swift-darwin-supported-archs="$(uname -m)" and see if that fixes the issue? (Also, you may want to see the Getting Started guide in case you haven't already.)
/Users/myuser/workspace/swift-source/swift/lib/LLVMPasses/LLVMMergeFunctions.cpp:686:54: error: no member named 'AArch64SubArch_E' in 'llvm::Triple'; did you mean
'AArch64SubArch_arm64e'?
ptrAuthEnabled = (triple.getSubArch() == Triple::AArch64SubArch_E);
~~~~~~~~^~~~~~~~~~~~~~~~
AArch64SubArch_arm64e
In file included from /Users/myuser/workspace/swift-source/swift/lib/LLVMPasses/LLVMMergeFunctions.cpp:42:
/Users/myuser/workspace/swift-source/llvm-project/llvm/include/llvm/ADT/Triple.h:134:5: note: 'AArch64SubArch_arm64e' declared here
AArch64SubArch_arm64e,
^
1 error generated.
The following build commands failed:
CompileC /Users/eduardodias/workspace/swift-source/build/Xcode-RelWithDebInfoAssert/swift-macosx-x86_64/lib/LLVMPasses/Swift.build/RelWithDebInfo/swiftLLVMPasses.build/Objects-normal/x86_64/LLVMMergeFunctions.o /Users/eduardodias/workspace/swift-source/swift/lib/LLVMPasses/LLVMMergeFunctions.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
ERROR: command terminated with a non-zero exit status 65, aborting