I compiled swift Toolchains on the MacBook pro Intel Core i7.
Here are some other stats that may be useful to know:
XCode13.1
macOS 12.0.1
cmake 3.22.1
Python 3.7.4
ninja 1.10.2
sccache 0.2.15
Here are the commands I executed:
git clone git@github.com:apple/swift.git swift
cd swift
utils/update-checkout --clone-with-ssh
utils/update-checkout --tag swift-5.5.1-RELEASE
./utils/build-toolchain com.demo
Compiled for about five or six hours, prompting xcode to crash, Below is ITerm's log
error: The Xcode build system has crashed. Build again to continue.
--- bootstrap: error: Command '['env', 'SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk', 'SWIFTCI_USE_LOCAL_DEPS=1', 'SWIFTPM_MACOS_DEPLOYMENT_TARGET=10.15', u'DYLD_LIBRARY_PATH=/Volumes/T7/swift-project/build/buildbot_osx/swiftpm-macosx-x86_64/apple/Products/bootstrap/lib:/Volumes/T7/swift-project/build/buildbot_osx/swiftpm-macosx-x86_64/apple/Products/tsc/lib:/Volumes/T7/swift-project/build/buildbot_osx/llbuild-macosx-x86_64/lib:/Volumes/T7/swift-project/build/buildbot_osx/swiftpm-macosx-x86_64/apple/Products/yams/lib:/Volumes/T7/swift-project/build/buildbot_osx/swiftpm-macosx-x86_64/apple/Products/swift-argument-parser/lib:/Volumes/T7/swift-project/build/buildbot_osx/swiftpm-macosx-x86_64/apple/Products/swift-driver/lib:/Volumes/T7/swift-project/build/buildbot_osx/swiftpm-macosx-x86_64/apple/Products/swift-crypto/lib:/Volumes/T7/swift-project/build/buildbot_osx/intermediate-install/macosx-x86_64/Library/Developer/Toolchains/swift-LOCAL-2021-12-10-a.xctoolchain/usr/lib/swift/macosx:/usr/lib/swift', 'SWIFT_EXEC=/Volumes/T7/swift-project/build/buildbot_osx/intermediate-install/macosx-x86_64/Library/Developer/Toolchains/swift-LOCAL-2021-12-10-a.xctoolchain/usr/bin/swiftc', 'SWIFT_DRIVER_SWIFT_EXEC=/Volumes/T7/swift-project/build/buildbot_osx/intermediate-install/macosx-x86_64/Library/Developer/Toolchains/swift-LOCAL-2021-12-10-a.xctoolchain/usr/bin/swiftc', 'SWIFTPM_CUSTOM_LIBS_DIR=/Volumes/T7/swift-project/build/buildbot_osx/swiftpm-macosx-x86_64/apple/Products/bootstrap/pm', '/Volumes/T7/swift-project/build/buildbot_osx/swiftpm-macosx-x86_64/apple/Products/bootstrap/bin/swift-build', '--disable-sandbox', '--force-resolved-versions', '--build-path', '/Volumes/T7/swift-project/build/buildbot_osx/swiftpm-macosx-x86_64', '--configuration', 'release', '-Xlinker', '-rpath', '-Xlinker', u'@executable_path/../lib/swift/macosx', '--arch', 'x86_64', '--arch', 'arm64', '-Xswiftc', '-module-cache-path', '-Xswiftc', '/Volumes/T7/swift-project/build/buildbot_osx/swiftpm-macosx-x86_64/module-cache', '-Xmanifest', '-module-cache-path', '-Xmanifest', '/Volumes/T7/swift-project/build/buildbot_osx/swiftpm-macosx-x86_64/module-cache']' returned non-zero exit status 1
ERROR: command terminated with a non-zero exit status 1, aborting
This is the XCode crash log
Termination Reason: Namespace DYLD, Code 4 Symbol missing
Symbol not found: _$s8TSCBasic10DiagnosticVMn
Referenced from: /Applications/Xcode.app/Contents/SharedFrameworks/XCBuild.framework/Versions/A/PlugIns/XCBBuildService.bundle/Contents/Frameworks/XCBCore.framework/Versions/A/XCBCore
Expected in: /Volumes/VOLUME/*/libSwiftDriver.dylib
(terminated at launch; ignore backtrace)
Application Specific Information:
Symbol not found: _$s8TSCBasic10DiagnosticVMn
Referenced from: /Applications/Xcode.app/Contents/SharedFrameworks/XCBuild.framework/Versions/A/PlugIns/XCBBuildService.bundle/Contents/Frameworks/XCBCore.framework/Versions/A/XCBCore
Expected in: /Volumes/T7/swift-project/build/buildbot_osx/swiftpm-macosx-x86_64/apple/Products/swift-driver/lib/libSwiftDriver.dylib