Swift master branch CTest build failing on macOS

After following Apple's Swift getting started guide to build the Swift language, I have run into some issues.

I used this terminal command:

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 --test \
  --xcode

to build with Xcode. I assume it builds Swift's different components individually because I first see build succeeded, and then it begins to build another thing and it fails. Full error below.

--- RUN_TESTS ---
+ /usr/local/bin/cmake --build /Users/jevonmao/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64 --config RelWithDebInfo -- -target RUN_TESTS
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project cmark.xcodeproj build -target ALL_BUILD -parallelizeTargets -configuration RelWithDebInfo -hideShellScriptEnvironment -target RUN_TESTS

User defaults from command line:
    HideShellScriptEnvironment = YES
    IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line:
    TOOLCHAINS = default

note: Using new build system
note: Building targets in parallel
note: Planning build
note: Analyzing workspace
note: Constructing build description
note: Build preparation complete
PhaseScriptExecution Generate\ CMakeFiles/ZERO_CHECK /Users/jevonmao/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/cmark.build/RelWithDebInfo/ZERO_CHECK.build/Script-67FD3652A514195C5D121E27.sh (in target 'ZERO_CHECK' from project 'cmark')
    cd /Users/jevonmao/Documents/GitHub/swift-project/cmark
    /bin/sh -c /Users/jevonmao/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/cmark.build/RelWithDebInfo/ZERO_CHECK.build/Script-67FD3652A514195C5D121E27.sh
make: `/Users/jevonmao/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/CMakeFiles/cmake.check_cache' is up to date.

WriteAuxiliaryFile /Users/jevonmao/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/cmark.build/RelWithDebInfo/RUN_TESTS.build/Script-003C8D08B0008F35F218E126.sh (in target 'RUN_TESTS' from project 'cmark')
    cd /Users/jevonmao/Documents/GitHub/swift-project/cmark
    write-file /Users/jevonmao/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/cmark.build/RelWithDebInfo/RUN_TESTS.build/Script-003C8D08B0008F35F218E126.sh

PhaseScriptExecution CMake\ PostBuild\ Rules /Users/jevonmao/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/cmark.build/RelWithDebInfo/RUN_TESTS.build/Script-003C8D08B0008F35F218E126.sh (in target 'RUN_TESTS' from project 'cmark')
    cd /Users/jevonmao/Documents/GitHub/swift-project/cmark
    /bin/sh -c /Users/jevonmao/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/cmark.build/RelWithDebInfo/RUN_TESTS.build/Script-003C8D08B0008F35F218E126.sh
Test project /Users/jevonmao/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64
    Start 1: api_test
1/9 Test #1: api_test .........................   Passed    0.01 sec
    Start 2: html_normalization
2/9 Test #2: html_normalization ...............   Passed    0.14 sec
    Start 3: spectest_library
3/9 Test #3: spectest_library .................***Failed    0.07 sec
    Start 4: pathological_tests_library
4/9 Test #4: pathological_tests_library .......***Failed    0.07 sec
    Start 5: roundtriptest_library
5/9 Test #5: roundtriptest_library ............***Failed    0.07 sec
    Start 6: entity_library
6/9 Test #6: entity_library ...................***Failed    0.05 sec
    Start 7: spectest_executable
7/9 Test #7: spectest_executable ..............***Failed    0.08 sec
    Start 8: smartpuncttest_executable
8/9 Test #8: smartpuncttest_executable ........***Failed    0.06 sec
    Start 9: regressiontest_executable
9/9 Test #9: regressiontest_executable ........***Failed    0.06 sec

22% tests passed, 7 tests failed out of 9

Total Test time (real) =   0.62 sec

The following tests FAILED:
	  3 - spectest_library (Failed)
	  4 - pathological_tests_library (Failed)
	  5 - roundtriptest_library (Failed)
	  6 - entity_library (Failed)
	  7 - spectest_executable (Failed)
	  8 - smartpuncttest_executable (Failed)
	  9 - regressiontest_executable (Failed)
Errors while running CTest
Output from these tests are in: /Users/jevonmao/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
Command PhaseScriptExecution failed with a nonzero exit code

PhaseScriptExecution CMake\ PostBuild\ Rules /Users/jevonmao/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/src/cmark.build/RelWithDebInfo/libcmark.build/Script-C4BD2AB16D2C468B040AB499.sh (in target 'libcmark' from project 'cmark')
    cd /Users/jevonmao/Documents/GitHub/swift-project/cmark
    /bin/sh -c /Users/jevonmao/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/src/cmark.build/RelWithDebInfo/libcmark.build/Script-C4BD2AB16D2C468B040AB499.sh

PhaseScriptExecution Generate\ CMakeFiles/ALL_BUILD /Users/jevonmao/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/cmark.build/RelWithDebInfo/ALL_BUILD.build/Script-77C2DA85A6659AA12598DB33.sh (in target 'ALL_BUILD' from project 'cmark')
    cd /Users/jevonmao/Documents/GitHub/swift-project/cmark
    /bin/sh -c /Users/jevonmao/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/cmark.build/RelWithDebInfo/ALL_BUILD.build/Script-77C2DA85A6659AA12598DB33.sh
Build all projects

** BUILD FAILED **


The following build commands failed:
	PhaseScriptExecution CMake\ PostBuild\ Rules /Users/jevonmao/Documents/GitHub/swift-project/build/Xcode-RelWithDebInfoAssert/cmark-macosx-x86_64/cmark.build/RelWithDebInfo/RUN_TESTS.build/Script-003C8D08B0008F35F218E126.sh
(1 failure)
ERROR: command terminated with a non-zero exit status 65, aborting
Terms of Service

Privacy Policy

Cookie Policy