Build problem using preset `buildbot iphoneos arm64 crosscompiler`

Hi everyone!

I got a problem when build swift using preset buildbot_iphoneos_arm64_crosscompiler.

build_script crash when try to test stdlib for macosx.


-- Build files have been written to: /Users/vladislavprusakov/Dev/LC-Dev/swift-source/build/LLVMClangSwift_iphoneos/swift-macosx-x86_64
+ popd
~/Dev/LC-Dev/swift-source
+ /usr/local/bin/cmake --build /Users/vladislavprusakov/Dev/LC-Dev/swift-source/build/LLVMClangSwift_iphoneos/swift-macosx-x86_64 -- -j4 all swift-test-stdlib-macosx-x86_64
ninja: error: unknown target 'swift-test-stdlib-macosx-x86_64'
swift/utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting
swift/utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting

I build swift on macOS Catalina and using last version of swift from master branch.
Maybe somebody knows how I can resolve it?

Build log
swift/utils/build-script: note: using preset "buildbot_iphoneos_arm64_crosscompiler", which expands to 

swift/utils/build-script --build-subdir=LLVMClangSwift_iphoneos --release --cross-compile-hosts=iphoneos-arm64 --compiler-vendor=apple --swift-primary-variant-sdk=IOS --swift-primary-variant-arch=arm64 --extra-cmake-options=-DLLVM_ENABLE_BACKTRACES:BOOL=OFF --build-toolchain-only=1 --build-swift-static-stdlib=0 --build-swift-dynamic-stdlib=0 --build-swift-static-sdk-overlay=0 --build-swift-dynamic-sdk-overlay=0 --build-runtime-with-host-compiler=0 --skip-build-benchmarks --llvm-include-tests=0 --llvm-enable-modules=0 --build-swift-examples=0 --swift-include-tests=0 --darwin-deployment-version-ios=10.0 --darwin-crash-reporter-client=1

swift/utils/build-script: note: Using toolchain default
+ mkdir -p /Users/vladislavprusakov/Dev/LC-Dev/swift-source/build/LLVMClangSwift_iphoneos
Building the standard library for: swift-test-stdlib-macosx-x86_64
+ ln -sf ../../clang /Users/vladislavprusakov/Dev/LC-Dev/swift-source/llvm/tools/clang
+ ln -sf ../../compiler-rt /Users/vladislavprusakov/Dev/LC-Dev/swift-source/llvm/projects/compiler-rt
+ mkdir -p /Users/vladislavprusakov/Dev/LC-Dev/swift-source/build/LLVMClangSwift_iphoneos/cmark-macosx-x86_64
+ mkdir -p /Users/vladislavprusakov/Dev/LC-Dev/swift-source/build/LLVMClangSwift_iphoneos/cmark-macosx-x86_64/.cmake/api/v1/query
+ touch /Users/vladislavprusakov/Dev/LC-Dev/swift-source/build/LLVMClangSwift_iphoneos/cmark-macosx-x86_64/.cmake/api/v1/query/codemodel-v2 /Users/vladislavprusakov/Dev/LC-Dev/swift-source/build/LLVMClangSwift_iphoneos/cmark-macosx-x86_64/.cmake/api/v1/query/cache-v2
+ pushd /Users/vladislavprusakov/Dev/LC-Dev/swift-source/build/LLVMClangSwift_iphoneos/cmark-macosx-x86_64
~/Dev/LC-Dev/swift-source/build/LLVMClangSwift_iphoneos/cmark-macosx-x86_64 ~/Dev/LC-Dev/swift-source
+ env /usr/local/bin/cmake -G Ninja -DCMAKE_C_COMPILER:PATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -DCMAKE_CXX_COMPILER:PATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -DCMAKE_LIBTOOL:PATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -DLLVM_VERSION_MAJOR:STRING=7 -DLLVM_VERSION_MINOR:STRING=0 -DLLVM_VERSION_PATCH:STRING=0 -DCLANG_VERSION_MAJOR:STRING=7 -DCLANG_VERSION_MINOR:STRING=0 -DCLANG_VERSION_PATCH:STRING=0 -DCMAKE_MAKE_PROGRAM=/usr/local/bin/ninja -DCMAKE_BUILD_TYPE:STRING=Release '-DCMAKE_C_FLAGS=  -Wno-unknown-warning-option -Werror=unguarded-availability-new -fno-stack-protector' '-DCMAKE_CXX_FLAGS=  -Wno-unknown-warning-option -Werror=unguarded-availability-new -fno-stack-protector' -DCMAKE_OSX_SYSROOT:PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 -DLLVM_ENABLE_BACKTRACES:BOOL=OFF /Users/vladislavprusakov/Dev/LC-Dev/swift-source/cmark
-- The C compiler identification is AppleClang 10.0.1.10010046
-- The CXX compiler identification is AppleClang 10.0.1.10010046
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test HAVE_FLAG_ADDRESS_SANITIZER
-- Performing Test HAVE_FLAG_ADDRESS_SANITIZER - Failed
-- Performing Test HAVE_FLAG_SANITIZE_ADDRESS
-- Performing Test HAVE_FLAG_SANITIZE_ADDRESS - Success
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Looking for stdbool.h
-- Looking for stdbool.h - found
-- Performing Test HAVE___BUILTIN_EXPECT
-- Performing Test HAVE___BUILTIN_EXPECT - Success
-- Performing Test HAVE___ATTRIBUTE__
-- Performing Test HAVE___ATTRIBUTE__ - Success
-- Could NOT find PythonInterp: Found unsuitable version "1.4", but required is at least "3" (found /usr/bin/python3)

... some tests ...

CMake Warning:
  Manually-specified variables were not used by the project:

    CLANG_VERSION_PATCH
    COMPILER_RT_ENABLE_IOS
    COMPILER_RT_ENABLE_TVOS
    COMPILER_RT_ENABLE_WATCHOS
    COMPILER_RT_INTERCEPT_LIBDISPATCH
    LLVM_TOOL_SWIFT_BUILD
    SANITIZER_MIN_OSX_VERSION


-- Build files have been written to: /Users/vladislavprusakov/Dev/LC-Dev/swift-source/build/LLVMClangSwift_iphoneos/llvm-macosx-x86_64
+ popd
~/Dev/LC-Dev/swift-source
symlinking the system headers (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../usr/include/c++) into the local clang build directory (/Users/vladislavprusakov/Dev/LC-Dev/swift-source/build/LLVMClangSwift_iphoneos/llvm-macosx-x86_64/include).
+ ln -s -f /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../../usr/include/c++ /Users/vladislavprusakov/Dev/LC-Dev/swift-source/build/LLVMClangSwift_iphoneos/llvm-macosx-x86_64/include
+ /usr/local/bin/cmake --build /Users/vladislavprusakov/Dev/LC-Dev/swift-source/build/LLVMClangSwift_iphoneos/llvm-macosx-x86_64 -- -j4 all
[2744/3108][ 88%][5794.243s] Building ...les/clangDaemon.dir/CodeComplete.cpp.o
/Users/vladislavprusakov/Dev/LC-Dev/swift-source/clang-tools-extra/clangd/CodeComplete.cpp:69:11: warning: enumeration value 'CommentTag' not handled in switch [-Wswitch]
  switch (Kind) {
          ^
/Users/vladislavprusakov/Dev/LC-Dev/swift-source/clang-tools-extra/clangd/CodeComplete.cpp:69:11: note: add missing switch cases
  switch (Kind) {
          ^
1 warning generated.
[2752/3108][ 88%][5803.563s] Building ...iles/clangDaemon.dir/FindSymbols.cpp.o
/Users/vladislavprusakov/Dev/LC-Dev/swift-source/clang-tools-extra/clangd/FindSymbols.cpp:38:11: warning: enumeration value 'CommentTag' not handled in switch [-Wswitch]
  switch (Kind) {
          ^
/Users/vladislavprusakov/Dev/LC-Dev/swift-source/clang-tools-extra/clangd/FindSymbols.cpp:38:11: note: add missing switch cases
  switch (Kind) {
          ^
1 warning generated.
[2759/3108][ 88%][5813.577s] Building ...akeFiles/clangDaemon.dir/Quality.cpp.o
/Users/vladislavprusakov/Dev/LC-Dev/swift-source/clang-tools-extra/clangd/Quality.cpp:121:11: warning: enumeration value 'CommentTag' not handled in switch [-Wswitch]
  switch (D.Kind) {
          ^
/Users/vladislavprusakov/Dev/LC-Dev/swift-source/clang-tools-extra/clangd/Quality.cpp:121:11: note: add missing switch cases
  switch (D.Kind) {
          ^
1 warning generated.
[3108/3108][100%][6650.038s] Generating ../../bin/llvm-readelf
+ mkdir -p /Users/vladislavprusakov/Dev/LC-Dev/swift-source/build/LLVMClangSwift_iphoneos/swift-macosx-x86_64
+ mkdir -p /Users/vladislavprusakov/Dev/LC-Dev/swift-source/build/LLVMClangSwift_iphoneos/swift-macosx-x86_64/.cmake/api/v1/query
+ touch /Users/vladislavprusakov/Dev/LC-Dev/swift-source/build/LLVMClangSwift_iphoneos/swift-macosx-x86_64/.cmake/api/v1/query/codemodel-v2 /Users/vladislavprusakov/Dev/LC-Dev/swift-source/build/LLVMClangSwift_iphoneos/swift-macosx-x86_64/.cmake/api/v1/query/cache-v2
+ pushd /Users/vladislavprusakov/Dev/LC-Dev/swift-source/build/LLVMClangSwift_iphoneos/swift-macosx-x86_64
~/Dev/LC-Dev/swift-source/build/LLVMClangSwift_iphoneos/swift-macosx-x86_64 ~/Dev/LC-Dev/swift-source
+ env /usr/local/bin/cmake -G Ninja -DCMAKE_C_COMPILER:PATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -DCMAKE_CXX_COMPILER:PATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -DCMAKE_LIBTOOL:PATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -DLLVM_VERSION_MAJOR:STRING=7 -DLLVM_VERSION_MINOR:STRING=0 -DLLVM_VERSION_PATCH:STRING=0 -DCLANG_VERSION_MAJOR:STRING=7 -DCLANG_VERSION_MINOR:STRING=0 -DCLANG_VERSION_PATCH:STRING=0 -DCMAKE_MAKE_PROGRAM=/usr/local/bin/ninja -DSWIFT_VENDOR=Apple -DSWIFT_VENDOR_UTI=com.apple.compilers.llvm.swift -DSWIFT_VERSION=5.1 -DSWIFT_COMPILER_VERSION= -DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE -DSWIFT_FORCE_OPTIMIZED_TYPECHECKER:BOOL=FALSE -DSWIFT_STDLIB_ENABLE_STDLIBCORE_EXCLUSIVITY_CHECKING:BOOL=FALSE -DSWIFT_LIPO:PATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo '-DCMAKE_C_FLAGS= -Wno-unknown-warning-option -Werror=unguarded-availability-new -fno-stack-protector' '-DCMAKE_CXX_FLAGS= -Wno-unknown-warning-option -Werror=unguarded-availability-new -fno-stack-protector' '-DCMAKE_C_FLAGS_RELWITHDEBINFO=-O2 -DNDEBUG' '-DCMAKE_CXX_FLAGS_RELWITHDEBINFO=-O2 -DNDEBUG' -DCMAKE_BUILD_TYPE:STRING=Release -DLLVM_ENABLE_ASSERTIONS:BOOL=TRUE -DSWIFT_ANALYZE_CODE_COVERAGE:STRING=FALSE -DSWIFT_STDLIB_BUILD_TYPE:STRING=Release -DSWIFT_STDLIB_ASSERTIONS:BOOL=TRUE -DSWIFT_STDLIB_USE_NONATOMIC_RC:BOOL=FALSE -DSWIFT_ENABLE_RUNTIME_FUNCTION_COUNTERS:BOOL=TRUE -DSWIFT_NATIVE_LLVM_TOOLS_PATH:STRING= -DSWIFT_NATIVE_CLANG_TOOLS_PATH:STRING= -DSWIFT_NATIVE_SWIFT_TOOLS_PATH:STRING= -DSWIFT_INCLUDE_TOOLS:BOOL=TRUE -DSWIFT_BUILD_REMOTE_MIRROR:BOOL=TRUE -DSWIFT_STDLIB_SIL_DEBUGGING:BOOL=FALSE -DSWIFT_CHECK_INCREMENTAL_COMPILATION:BOOL=FALSE -DSWIFT_REPORT_STATISTICS:BOOL=FALSE -DSWIFT_BUILD_DYNAMIC_STDLIB:BOOL=FALSE -DSWIFT_BUILD_STATIC_STDLIB:BOOL=FALSE -DSWIFT_BUILD_DYNAMIC_SDK_OVERLAY:BOOL=FALSE -DSWIFT_BUILD_STATIC_SDK_OVERLAY:BOOL=FALSE -DSWIFT_BUILD_PERF_TESTSUITE:BOOL=FALSE -DSWIFT_BUILD_EXTERNAL_PERF_TESTSUITE:BOOL=FALSE -DSWIFT_BUILD_EXAMPLES:BOOL=FALSE -DSWIFT_INCLUDE_TESTS:BOOL=FALSE -DSWIFT_EMBED_BITCODE_SECTION:BOOL=FALSE -DSWIFT_TOOLS_ENABLE_LTO:STRING= -DSWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER:BOOL=FALSE -DLIBDISPATCH_CMAKE_BUILD_TYPE:STRING=Release -DSWIFTLIB_DEPLOYMENT_VERSION_XCTEST_IOS=8.0 -DSWIFT_DARWIN_DEPLOYMENT_VERSION_OSX=10.9 -DSWIFT_DARWIN_DEPLOYMENT_VERSION_IOS=10.0 -DSWIFT_DARWIN_DEPLOYMENT_VERSION_TVOS=9.0 -DSWIFT_DARWIN_DEPLOYMENT_VERSION_WATCHOS=2.0 -DSWIFT_HOST_TRIPLE:STRING=x86_64-apple-macosx10.9 -DSWIFT_HOST_VARIANT=macosx -DSWIFT_HOST_VARIANT_SDK=OSX -DSWIFT_HOST_VARIANT_ARCH=x86_64 -DLLVM_LIT_ARGS=-sv -DCOVERAGE_DB= -DSWIFT_RUNTIME_CRASH_REPORTER_CLIENT:BOOL=TRUE -DSWIFT_DARWIN_XCRUN_TOOLCHAIN:STRING=default -DSWIFT_AST_VERIFIER:BOOL=TRUE -DSWIFT_SIL_VERIFY_ALL:BOOL=FALSE -DSWIFT_RUNTIME_ENABLE_LEAK_CHECKER:BOOL=FALSE -DSWIFT_TOOL_SIL_OPT_BUILD=FALSE -DSWIFT_TOOL_SWIFT_IDE_TEST_BUILD=FALSE -DSWIFT_TOOL_SWIFT_REMOTEAST_TEST_BUILD=FALSE -DSWIFT_TOOL_LLDB_MODULEIMPORT_TEST_BUILD=FALSE -DSWIFT_TOOL_SIL_EXTRACT_BUILD=FALSE -DSWIFT_TOOL_SWIFT_LLVM_OPT_BUILD=FALSE -DSWIFT_TOOL_SWIFT_SDK_ANALYZER_BUILD=FALSE -DSWIFT_TOOL_SWIFT_SDK_DIGESTER_BUILD=FALSE -DSWIFT_TOOL_SOURCEKITD_TEST_BUILD=FALSE -DSWIFT_TOOL_SOURCEKITD_REPL_BUILD=FALSE -DSWIFT_TOOL_COMPLETE_TEST_BUILD=FALSE -DSWIFT_TOOL_SWIFT_REFLECTION_DUMP_BUILD=FALSE -DCMAKE_INSTALL_PREFIX:PATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/ -DClang_DIR:PATH=/Users/vladislavprusakov/Dev/LC-Dev/swift-source/build/LLVMClangSwift_iphoneos/llvm-macosx-x86_64/lib/cmake/clang -DLLVM_DIR:PATH=/Users/vladislavprusakov/Dev/LC-Dev/swift-source/build/LLVMClangSwift_iphoneos/llvm-macosx-x86_64/lib/cmake/llvm -DSWIFT_PATH_TO_CMARK_SOURCE:PATH=/Users/vladislavprusakov/Dev/LC-Dev/swift-source/cmark -DSWIFT_PATH_TO_CMARK_BUILD:PATH=/Users/vladislavprusakov/Dev/LC-Dev/swift-source/build/LLVMClangSwift_iphoneos/cmark-macosx-x86_64 -DSWIFT_PATH_TO_LIBDISPATCH_SOURCE:PATH=/Users/vladislavprusakov/Dev/LC-Dev/swift-source/swift-corelibs-libdispatch -DSWIFT_PATH_TO_LIBDISPATCH_BUILD:PATH=/Users/vladislavprusakov/Dev/LC-Dev/swift-source/build/LLVMClangSwift_iphoneos/libdispatch-macosx-x86_64 -DSWIFT_CMARK_LIBRARY_DIR:PATH=/Users/vladislavprusakov/Dev/LC-Dev/swift-source/build/LLVMClangSwift_iphoneos/cmark-macosx-x86_64/src '-DSWIFT_SDKS:STRING=IOS;IOS_SIMULATOR;OSX;TVOS;TVOS_SIMULATOR;WATCHOS;WATCHOS_SIMULATOR' -DSWIFT_PRIMARY_VARIANT_SDK:STRING=IOS -DSWIFT_PRIMARY_VARIANT_ARCH:STRING=arm64 -DLLVM_ENABLE_BACKTRACES:BOOL=OFF /Users/vladislavprusakov/Dev/LC-Dev/swift-source/swift
-- The C compiler identification is AppleClang 10.0.1.10010046
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- The CXX compiler identification is AppleClang 10.0.1.10010046
-- The ASM compiler identification is AppleClang
-- Found assembler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Finding installed version for: /usr/local/Cellar/cmake/3.9.4_1/bin/cmake
-- Found version: cmake version 3.9.4  CMake suite maintained and supported by Kitware (kitware.com/cmake).
-- 
-- Finding version for: /usr/local/Cellar/cmake/3.9.4_1/bin/cmake
-- Found version: 3.9.4
-- 
-- Finding installed version for: ninja
-- Found version: 1.8.2
-- 
-- Finding version for: /usr/local/bin/ninja
-- Found version: 1.8.2
-- 
-- Finding version for: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- Found version: 10.0.1.10010046
-- 
-- Finding version for: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
-- Found version: 10.0.1.10010046
-- 
-- Linker detection: ld64
-- Performing Test C_SUPPORTS_FPIC
-- Performing Test C_SUPPORTS_FPIC - Success
-- Performing Test CXX_SUPPORTS_FPIC
-- Performing Test CXX_SUPPORTS_FPIC - Success
-- Building with -fPIC

... some tests ...

-- Performing Test CXX_WONT_WARN_ON_FINAL_NONVIRTUALDTOR
-- Performing Test CXX_WONT_WARN_ON_FINAL_NONVIRTUALDTOR - Success
-- Performing Test C_SUPPORTS_DELETE_NON_VIRTUAL_DTOR_FLAG
-- Performing Test C_SUPPORTS_DELETE_NON_VIRTUAL_DTOR_FLAG - Success
-- Performing Test CXX_SUPPORTS_DELETE_NON_VIRTUAL_DTOR_FLAG
-- Performing Test CXX_SUPPORTS_DELETE_NON_VIRTUAL_DTOR_FLAG - Success
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP - Success
-- Performing Test C_SUPPORTS_STRING_CONVERSION_FLAG
-- Performing Test C_SUPPORTS_STRING_CONVERSION_FLAG - Success
-- Performing Test CXX_SUPPORTS_STRING_CONVERSION_FLAG
-- Performing Test CXX_SUPPORTS_STRING_CONVERSION_FLAG - Success
-- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS
-- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS - Failed
-- Performing Test CXX_SUPPORTS_WERROR_SWITCH_FLAG
-- Performing Test CXX_SUPPORTS_WERROR_SWITCH_FLAG - Success
-- Performing Test CXX_SUPPORTS_WE4062
-- Performing Test CXX_SUPPORTS_WE4062 - Failed
-- Performing Test CXX_SUPPORTS_DOCUMENTATION_FLAG
-- Performing Test CXX_SUPPORTS_DOCUMENTATION_FLAG - Success
-- Performing Test CXX_SUPPORTS_UNREACHABLE_CODE_FLAG
-- Performing Test CXX_SUPPORTS_UNREACHABLE_CODE_FLAG - Success
-- Performing Test CXX_SUPPORTS_OVERLOADED_VIRTUAL
-- Performing Test CXX_SUPPORTS_OVERLOADED_VIRTUAL - Success
-- Performing Test CXX_SUPPORTS_FAPPLICATION_EXTENSION
-- Performing Test CXX_SUPPORTS_FAPPLICATION_EXTENSION - Success
-- Xcode 10.2.1, Build version 10E1001
-- 
2019-06-15 16:26:13.973 xcodebuild[21515:546694] [MT] PluginLoading: Required plug-in compatibility UUID 72F7D751-F810-43B8-A53F-1F1DFD74FC54 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XcodeColors.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2019-06-15 16:26:13.974 xcodebuild[21515:546694] [MT] PluginLoading: Required plug-in compatibility UUID 72F7D751-F810-43B8-A53F-1F1DFD74FC54 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/SYXcodeIconVersion.xcplugin' not present in DVTPlugInCompatibilityUUIDs
-- OS X SDK:
--   x86_64 Path: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
--   Version: 10.14
--   Build number: 18E219
--   Deployment version: 10.9
--   Library subdir: macosx
--   Version min name: macosx
--   Triple name: macosx
--   Architectures: x86_64
--   Object Format: MACHO
--   Triple for x86_64 is x86_64-apple-macosx
-- 
2019-06-15 16:26:14.775 xcodebuild[21517:546808] [MT] PluginLoading: Required plug-in compatibility UUID 72F7D751-F810-43B8-A53F-1F1DFD74FC54 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XcodeColors.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2019-06-15 16:26:14.776 xcodebuild[21517:546808] [MT] PluginLoading: Required plug-in compatibility UUID 72F7D751-F810-43B8-A53F-1F1DFD74FC54 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/SYXcodeIconVersion.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2019-06-15 16:26:15.678 xcodebuild[21519:546913] [MT] PluginLoading: Required plug-in compatibility UUID 72F7D751-F810-43B8-A53F-1F1DFD74FC54 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XcodeColors.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2019-06-15 16:26:15.678 xcodebuild[21519:546913] [MT] PluginLoading: Required plug-in compatibility UUID 72F7D751-F810-43B8-A53F-1F1DFD74FC54 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/SYXcodeIconVersion.xcplugin' not present in DVTPlugInCompatibilityUUIDs
-- iOS SDK:
--   armv7 Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk
--   armv7s Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk
--   arm64 Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk
--   Version: 12.2
--   Build number: 16E226
--   Deployment version: 10.0
--   Library subdir: iphoneos
--   Version min name: ios
--   Triple name: ios
--   Architectures: armv7;armv7s;arm64
--   Object Format: MACHO
--   Triple for armv7 is armv7-apple-ios
--   Triple for armv7s is armv7s-apple-ios
--   Triple for arm64 is arm64-apple-ios
-- 
2019-06-15 16:26:16.428 xcodebuild[21521:547019] [MT] PluginLoading: Required plug-in compatibility UUID 72F7D751-F810-43B8-A53F-1F1DFD74FC54 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XcodeColors.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2019-06-15 16:26:16.428 xcodebuild[21521:547019] [MT] PluginLoading: Required plug-in compatibility UUID 72F7D751-F810-43B8-A53F-1F1DFD74FC54 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/SYXcodeIconVersion.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2019-06-15 16:26:17.258 xcodebuild[21523:547126] [MT] PluginLoading: Required plug-in compatibility UUID 72F7D751-F810-43B8-A53F-1F1DFD74FC54 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XcodeColors.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2019-06-15 16:26:17.259 xcodebuild[21523:547126] [MT] PluginLoading: Required plug-in compatibility UUID 72F7D751-F810-43B8-A53F-1F1DFD74FC54 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/SYXcodeIconVersion.xcplugin' not present in DVTPlugInCompatibilityUUIDs
-- iOS Simulator SDK:
--   i386 Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk
--   x86_64 Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk
--   Version: 12.2
--   Build number: 16E226
--   Deployment version: 10.0
--   Library subdir: iphonesimulator
--   Version min name: ios-simulator
--   Triple name: ios
--   Architectures: i386;x86_64
--   Object Format: MACHO
--   Triple for i386 is i386-apple-ios
--   Triple for x86_64 is x86_64-apple-ios
-- 
2019-06-15 16:26:17.973 xcodebuild[21525:547222] [MT] PluginLoading: Required plug-in compatibility UUID 72F7D751-F810-43B8-A53F-1F1DFD74FC54 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XcodeColors.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2019-06-15 16:26:17.974 xcodebuild[21525:547222] [MT] PluginLoading: Required plug-in compatibility UUID 72F7D751-F810-43B8-A53F-1F1DFD74FC54 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/SYXcodeIconVersion.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2019-06-15 16:26:18.817 xcodebuild[21527:547328] [MT] PluginLoading: Required plug-in compatibility UUID 72F7D751-F810-43B8-A53F-1F1DFD74FC54 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XcodeColors.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2019-06-15 16:26:18.817 xcodebuild[21527:547328] [MT] PluginLoading: Required plug-in compatibility UUID 72F7D751-F810-43B8-A53F-1F1DFD74FC54 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/SYXcodeIconVersion.xcplugin' not present in DVTPlugInCompatibilityUUIDs
-- tvOS SDK:
--   arm64 Path: /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.2.sdk
--   Version: 12.2
--   Build number: 16L225
--   Deployment version: 9.0
--   Library subdir: appletvos
--   Version min name: tvos
--   Triple name: tvos
--   Architectures: arm64
--   Object Format: MACHO
--   Triple for arm64 is arm64-apple-tvos
-- 
2019-06-15 16:26:19.532 xcodebuild[21529:547425] [MT] PluginLoading: Required plug-in compatibility UUID 72F7D751-F810-43B8-A53F-1F1DFD74FC54 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XcodeColors.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2019-06-15 16:26:19.533 xcodebuild[21529:547425] [MT] PluginLoading: Required plug-in compatibility UUID 72F7D751-F810-43B8-A53F-1F1DFD74FC54 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/SYXcodeIconVersion.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2019-06-15 16:26:20.376 xcodebuild[21531:547528] [MT] PluginLoading: Required plug-in compatibility UUID 72F7D751-F810-43B8-A53F-1F1DFD74FC54 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XcodeColors.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2019-06-15 16:26:20.377 xcodebuild[21531:547528] [MT] PluginLoading: Required plug-in compatibility UUID 72F7D751-F810-43B8-A53F-1F1DFD74FC54 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/SYXcodeIconVersion.xcplugin' not present in DVTPlugInCompatibilityUUIDs
-- tvOS Simulator SDK:
--   x86_64 Path: /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator12.2.sdk
--   Version: 12.2
--   Build number: 16L225
--   Deployment version: 9.0
--   Library subdir: appletvsimulator
--   Version min name: tvos-simulator
--   Triple name: tvos
--   Architectures: x86_64
--   Object Format: MACHO
--   Triple for x86_64 is x86_64-apple-tvos
-- 
2019-06-15 16:26:21.118 xcodebuild[21533:547626] [MT] PluginLoading: Required plug-in compatibility UUID 72F7D751-F810-43B8-A53F-1F1DFD74FC54 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XcodeColors.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2019-06-15 16:26:21.119 xcodebuild[21533:547626] [MT] PluginLoading: Required plug-in compatibility UUID 72F7D751-F810-43B8-A53F-1F1DFD74FC54 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/SYXcodeIconVersion.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2019-06-15 16:26:21.974 xcodebuild[21535:547732] [MT] PluginLoading: Required plug-in compatibility UUID 72F7D751-F810-43B8-A53F-1F1DFD74FC54 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XcodeColors.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2019-06-15 16:26:21.975 xcodebuild[21535:547732] [MT] PluginLoading: Required plug-in compatibility UUID 72F7D751-F810-43B8-A53F-1F1DFD74FC54 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/SYXcodeIconVersion.xcplugin' not present in DVTPlugInCompatibilityUUIDs
-- watchOS SDK:
--   armv7k Path: /Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS5.2.sdk
--   Version: 5.2
--   Build number: 16T224
--   Deployment version: 2.0
--   Library subdir: watchos
--   Version min name: watchos
--   Triple name: watchos
--   Architectures: armv7k
--   Object Format: MACHO
--   Triple for armv7k is armv7k-apple-watchos
-- 
2019-06-15 16:26:22.716 xcodebuild[21537:547854] [MT] PluginLoading: Required plug-in compatibility UUID 72F7D751-F810-43B8-A53F-1F1DFD74FC54 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XcodeColors.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2019-06-15 16:26:22.716 xcodebuild[21537:547854] [MT] PluginLoading: Required plug-in compatibility UUID 72F7D751-F810-43B8-A53F-1F1DFD74FC54 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/SYXcodeIconVersion.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2019-06-15 16:26:23.584 xcodebuild[21539:547957] [MT] PluginLoading: Required plug-in compatibility UUID 72F7D751-F810-43B8-A53F-1F1DFD74FC54 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XcodeColors.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2019-06-15 16:26:23.585 xcodebuild[21539:547957] [MT] PluginLoading: Required plug-in compatibility UUID 72F7D751-F810-43B8-A53F-1F1DFD74FC54 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/SYXcodeIconVersion.xcplugin' not present in DVTPlugInCompatibilityUUIDs
-- watchOS Simulator SDK:
--   i386 Path: /Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator5.2.sdk
--   Version: 5.2
--   Build number: 16T224
--   Deployment version: 2.0
--   Library subdir: watchsimulator
--   Version min name: watchos-simulator
--   Triple name: watchos
--   Architectures: i386
--   Object Format: MACHO
--   Triple for i386 is i386-apple-watchos
-- 
-- Building host Swift tools for OSX x86_64
--   Build type:     Release
--   Assertions:     TRUE
--   LTO:            
-- 
-- Not building Swift standard library, SDK overlays, and runtime
-- 
-- Found PythonInterp: /usr/bin/python (found version "2.7.10") 
-- Found LibXml2: /usr/lib/libxml2.dylib (found version "2.9.4") 
-- Looking for el_wgets
-- Looking for el_wgets - found
-- Looking for wait4
-- Looking for wait4 - found
-- Looking for proc_pid_rusage
-- Looking for proc_pid_rusage - found
-- Swift version: 5.1
-- Swift vendor: Apple
-- Swift compiler version: 
-- Embedded clang compiler version: 
-- Looking for include file xpc/xpc.h
-- Looking for include file xpc/xpc.h - found
-- Looking for dispatch_block_create
-- Looking for dispatch_block_create - found
CMake Warning at docs/CMakeLists.txt:24 (message):
  Unable to find sphinx-build program.  Not building docs


-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CLANG_VERSION_MAJOR
    CLANG_VERSION_MINOR
    CLANG_VERSION_PATCH
    CMAKE_LIBTOOL
    COVERAGE_DB
    LIBDISPATCH_CMAKE_BUILD_TYPE
    LLVM_ENABLE_BACKTRACES
    SWIFTLIB_DEPLOYMENT_VERSION_XCTEST_IOS
    SWIFT_BUILD_EXAMPLES
    SWIFT_CHECK_INCREMENTAL_COMPILATION
    SWIFT_DARWIN_XCRUN_TOOLCHAIN
    SWIFT_HOST_TRIPLE
    SWIFT_PATH_TO_LIBDISPATCH_BUILD
    SWIFT_REPORT_STATISTICS
    SWIFT_RUNTIME_CRASH_REPORTER_CLIENT
    SWIFT_RUNTIME_ENABLE_LEAK_CHECKER
    SWIFT_SIL_VERIFY_ALL
    SWIFT_STDLIB_ENABLE_STDLIBCORE_EXCLUSIVITY_CHECKING
    SWIFT_STDLIB_SIL_DEBUGGING
    SWIFT_STDLIB_USE_NONATOMIC_RC
    SWIFT_TOOL_SIL_EXTRACT_BUILD
    SWIFT_TOOL_SWIFT_SDK_ANALYZER_BUILD
    SWIFT_TOOL_SWIFT_SDK_DIGESTER_BUILD
    SWIFT_VENDOR_UTI


-- Build files have been written to: /Users/vladislavprusakov/Dev/LC-Dev/swift-source/build/LLVMClangSwift_iphoneos/swift-macosx-x86_64
+ popd
~/Dev/LC-Dev/swift-source
+ /usr/local/bin/cmake --build /Users/vladislavprusakov/Dev/LC-Dev/swift-source/build/LLVMClangSwift_iphoneos/swift-macosx-x86_64 -- -j4 all swift-test-stdlib-macosx-x86_64
ninja: error: unknown target 'swift-test-stdlib-macosx-x86_64'
swift/utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting
swift/utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting

That's weird; it shouldn't be trying to build anything for the host. Maybe a refactoring of build-script broke this preset?

Thanks for the answer! I'll try to build swift from the old branch swift-5.0-branch. I hope it'll works.

Okay, I did a rollback to swift-5.0-branch, but I got a new problem:

Build log
+ mkdir -p /Users/v.a.prusakov/Dev/swift-sources/build/LLVMClangSwift_iphoneos/swift-macosx-x86_64
+ pushd /Users/v.a.prusakov/Dev/swift-sources/build/LLVMClangSwift_iphoneos/swift-macosx-x86_64
~/Dev/swift-sources/build/LLVMClangSwift_iphoneos/swift-macosx-x86_64 ~/Dev/swift-sources
+ env /usr/local/bin/cmake -G Ninja -DCMAKE_C_COMPILER:PATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -DCMAKE_CXX_COMPILER:PATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -DCMAKE_LIBTOOL:PATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -DLLVM_VERSION_MAJOR:STRING=7 -DLLVM_VERSION_MINOR:STRING=0 -DLLVM_VERSION_PATCH:STRING=0 -DCLANG_VERSION_MAJOR:STRING=7 -DCLANG_VERSION_MINOR:STRING=0 -DCLANG_VERSION_PATCH:STRING=0 -DCMAKE_MAKE_PROGRAM=/usr/local/bin/ninja -DSWIFT_VENDOR=Apple -DSWIFT_VENDOR_UTI=com.apple.compilers.llvm.swift -DSWIFT_VERSION=5.0.1 -DSWIFT_COMPILER_VERSION= -DSWIFT_STDLIB_ENABLE_SIL_OWNERSHIP=FALSE -DSWIFT_ENABLE_GUARANTEED_NORMAL_ARGUMENTS=TRUE -DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE -DSWIFT_FORCE_OPTIMIZED_TYPECHECKER=FALSE -DSWIFT_STDLIB_ENABLE_STDLIBCORE_EXCLUSIVITY_CHECKING=FALSE -DSWIFT_LIPO:PATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo '-DCMAKE_C_FLAGS= -Wno-unknown-warning-option -Werror=unguarded-availability-new -fno-stack-protector' '-DCMAKE_CXX_FLAGS= -Wno-unknown-warning-option -Werror=unguarded-availability-new -fno-stack-protector' '-DCMAKE_C_FLAGS_RELWITHDEBINFO=-O2 -DNDEBUG' '-DCMAKE_CXX_FLAGS_RELWITHDEBINFO=-O2 -DNDEBUG' -DCMAKE_BUILD_TYPE:STRING=Release -DLLVM_ENABLE_ASSERTIONS:BOOL=TRUE -DSWIFT_ANALYZE_CODE_COVERAGE:STRING=FALSE -DSWIFT_STDLIB_BUILD_TYPE:STRING=Release -DSWIFT_STDLIB_ASSERTIONS:BOOL=TRUE -DSWIFT_STDLIB_USE_NONATOMIC_RC:BOOL=FALSE -DSWIFT_ENABLE_RUNTIME_FUNCTION_COUNTERS:BOOL=TRUE -DSWIFT_NATIVE_LLVM_TOOLS_PATH:STRING= -DSWIFT_NATIVE_CLANG_TOOLS_PATH:STRING= -DSWIFT_NATIVE_SWIFT_TOOLS_PATH:STRING= -DSWIFT_INCLUDE_TOOLS:BOOL=TRUE -DSWIFT_BUILD_REMOTE_MIRROR:BOOL=TRUE -DSWIFT_STDLIB_SIL_DEBUGGING:BOOL=FALSE -DSWIFT_CHECK_INCREMENTAL_COMPILATION:BOOL=FALSE -DSWIFT_REPORT_STATISTICS:BOOL=FALSE -DSWIFT_BUILD_DYNAMIC_STDLIB:BOOL=FALSE -DSWIFT_BUILD_STATIC_STDLIB:BOOL=FALSE -DSWIFT_BUILD_DYNAMIC_SDK_OVERLAY:BOOL=FALSE -DSWIFT_BUILD_STATIC_SDK_OVERLAY:BOOL=FALSE -DSWIFT_BUILD_PERF_TESTSUITE:BOOL=FALSE -DSWIFT_BUILD_EXTERNAL_PERF_TESTSUITE:BOOL=FALSE -DSWIFT_BUILD_EXAMPLES:BOOL=FALSE -DSWIFT_INCLUDE_TESTS:BOOL=FALSE -DSWIFT_INSTALL_COMPONENTS:STRING= -DSWIFT_EMBED_BITCODE_SECTION:BOOL=FALSE -DSWIFT_TOOLS_ENABLE_LTO:STRING= -DSWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER:BOOL=FALSE -DLIBDISPATCH_CMAKE_BUILD_TYPE:STRING=Release -DSWIFTLIB_DEPLOYMENT_VERSION_XCTEST_IOS=8.0 -DSWIFT_DARWIN_DEPLOYMENT_VERSION_OSX=10.9 -DSWIFT_DARWIN_DEPLOYMENT_VERSION_IOS=10.0 -DSWIFT_DARWIN_DEPLOYMENT_VERSION_TVOS=9.0 -DSWIFT_DARWIN_DEPLOYMENT_VERSION_WATCHOS=2.0 -DSWIFT_HOST_TRIPLE:STRING=x86_64-apple-macosx10.9 -DSWIFT_HOST_VARIANT=macosx -DSWIFT_HOST_VARIANT_SDK=OSX -DSWIFT_HOST_VARIANT_ARCH=x86_64 -DLLVM_LIT_ARGS=-sv -DCOVERAGE_DB= -DSWIFT_RUNTIME_CRASH_REPORTER_CLIENT:BOOL=TRUE -DSWIFT_DARWIN_XCRUN_TOOLCHAIN:STRING=default -DSWIFT_AST_VERIFIER:BOOL=TRUE -DSWIFT_SIL_VERIFY_ALL:BOOL=FALSE -DSWIFT_RUNTIME_ENABLE_LEAK_CHECKER:BOOL=FALSE -DSWIFT_TOOL_SIL_OPT_BUILD=FALSE -DSWIFT_TOOL_SWIFT_IDE_TEST_BUILD=FALSE -DSWIFT_TOOL_SWIFT_REMOTEAST_TEST_BUILD=FALSE -DSWIFT_TOOL_LLDB_MODULEIMPORT_TEST_BUILD=FALSE -DSWIFT_TOOL_SIL_EXTRACT_BUILD=FALSE -DSWIFT_TOOL_SWIFT_LLVM_OPT_BUILD=FALSE -DSWIFT_TOOL_SWIFT_SDK_ANALYZER_BUILD=FALSE -DSWIFT_TOOL_SWIFT_SDK_DIGESTER_BUILD=FALSE -DSWIFT_TOOL_SOURCEKITD_TEST_BUILD=FALSE -DSWIFT_TOOL_SOURCEKITD_REPL_BUILD=FALSE -DSWIFT_TOOL_COMPLETE_TEST_BUILD=FALSE -DSWIFT_TOOL_SWIFT_REFLECTION_DUMP_BUILD=FALSE -DCMAKE_INSTALL_PREFIX:PATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/ -DSWIFT_PATH_TO_CLANG_SOURCE:PATH=/Users/v.a.prusakov/Dev/swift-sources/llvm/tools/clang -DSWIFT_PATH_TO_CLANG_BUILD:PATH=/Users/v.a.prusakov/Dev/swift-sources/build/LLVMClangSwift_iphoneos/llvm-macosx-x86_64 -DSWIFT_PATH_TO_LLVM_SOURCE:PATH=/Users/v.a.prusakov/Dev/swift-sources/llvm -DSWIFT_PATH_TO_LLVM_BUILD:PATH=/Users/v.a.prusakov/Dev/swift-sources/build/LLVMClangSwift_iphoneos/llvm-macosx-x86_64 -DSWIFT_PATH_TO_CMARK_SOURCE:PATH=/Users/v.a.prusakov/Dev/swift-sources/cmark -DSWIFT_PATH_TO_CMARK_BUILD:PATH=/Users/v.a.prusakov/Dev/swift-sources/build/LLVMClangSwift_iphoneos/cmark-macosx-x86_64 -DSWIFT_PATH_TO_LIBDISPATCH_SOURCE:PATH=/Users/v.a.prusakov/Dev/swift-sources/swift-corelibs-libdispatch -DSWIFT_PATH_TO_LIBDISPATCH_BUILD:PATH=/Users/v.a.prusakov/Dev/swift-sources/build/LLVMClangSwift_iphoneos/libdispatch-macosx-x86_64 -DSWIFT_CMARK_LIBRARY_DIR:PATH=/Users/v.a.prusakov/Dev/swift-sources/build/LLVMClangSwift_iphoneos/cmark-macosx-x86_64/src '-DSWIFT_SDKS:STRING=IOS;IOS_SIMULATOR;OSX;TVOS;TVOS_SIMULATOR;WATCHOS;WATCHOS_SIMULATOR' -DSWIFT_PRIMARY_VARIANT_SDK:STRING=IOS -DSWIFT_PRIMARY_VARIANT_ARCH:STRING=arm64 -DLLVM_ENABLE_BACKTRACES:BOOL=OFF /Users/v.a.prusakov/Dev/swift-sources/swift
-- Finding installed version for: /usr/local/Cellar/cmake/3.13.2/bin/cmake
-- Found version: cmake version 3.13.2  CMake suite maintained and supported by Kitware (kitware.com/cmake).
-- 
-- Finding version for: /usr/local/Cellar/cmake/3.13.2/bin/cmake
-- Found version: 3.13.2
-- 
-- Finding installed version for: ninja
-- Found version: 1.8.2
-- 
-- Finding version for: /usr/local/bin/ninja
-- Found version: 1.8.2
-- 
-- Finding version for: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- Found version: 10.0.1.10010046
-- 
-- Finding version for: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
-- Found version: 10.0.1.10010046
-- 
-- Linker detection: ld64
-- Building with -fPIC
-- Xcode 10.2.1, Build version 10E1001
-- 
-- OS X SDK:
--   x86_64 Path: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
--   Version: 10.14
--   Build number: 18E219
--   Deployment version: 10.9
--   Library subdir: macosx
--   Version min name: macosx
--   Triple name: macosx
--   Architectures: x86_64
--   Object Format: MACHO
--   Triple for x86_64 is x86_64-apple-macosx
-- 
-- iOS SDK:
--   armv7 Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk
--   armv7s Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk
--   arm64 Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk
--   Version: 12.2
--   Build number: 16E226
--   Deployment version: 10.0
--   Library subdir: iphoneos
--   Version min name: ios
--   Triple name: ios
--   Architectures: armv7;armv7s;arm64
--   Object Format: MACHO
--   Triple for armv7 is armv7-apple-ios
--   Triple for armv7s is armv7s-apple-ios
--   Triple for arm64 is arm64-apple-ios
-- 
-- iOS Simulator SDK:
--   i386 Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk
--   x86_64 Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk
--   Version: 12.2
--   Build number: 16E226
--   Deployment version: 10.0
--   Library subdir: iphonesimulator
--   Version min name: ios-simulator
--   Triple name: ios
--   Architectures: i386;x86_64
--   Object Format: MACHO
--   Triple for i386 is i386-apple-ios
--   Triple for x86_64 is x86_64-apple-ios
-- 
-- tvOS SDK:
--   arm64 Path: /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.2.sdk
--   Version: 12.2
--   Build number: 16L225
--   Deployment version: 9.0
--   Library subdir: appletvos
--   Version min name: tvos
--   Triple name: tvos
--   Architectures: arm64
--   Object Format: MACHO
--   Triple for arm64 is arm64-apple-tvos
-- 
-- tvOS Simulator SDK:
--   x86_64 Path: /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator12.2.sdk
--   Version: 12.2
--   Build number: 16L225
--   Deployment version: 9.0
--   Library subdir: appletvsimulator
--   Version min name: tvos-simulator
--   Triple name: tvos
--   Architectures: x86_64
--   Object Format: MACHO
--   Triple for x86_64 is x86_64-apple-tvos
-- 
-- watchOS SDK:
--   armv7k Path: /Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS5.2.sdk
--   Version: 5.2
--   Build number: 16T224
--   Deployment version: 2.0
--   Library subdir: watchos
--   Version min name: watchos
--   Triple name: watchos
--   Architectures: armv7k
--   Object Format: MACHO
--   Triple for armv7k is armv7k-apple-watchos
-- 
-- watchOS Simulator SDK:
--   i386 Path: /Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator5.2.sdk
--   Version: 5.2
--   Build number: 16T224
--   Deployment version: 2.0
--   Library subdir: watchsimulator
--   Version min name: watchos-simulator
--   Triple name: watchos
--   Architectures: i386
--   Object Format: MACHO
--   Triple for i386 is i386-apple-watchos
-- 
-- Building host Swift tools for OSX x86_64
--   Build type:     Release
--   Assertions:     TRUE
--   LTO:            
--   +0 Normal Args: TRUE
-- 
-- Not building Swift standard library, SDK overlays, and runtime
-- 
-- Swift version: 5.0.1
-- Swift vendor: Apple
-- Swift compiler version: 
-- Embedded clang compiler version: 
CMake Warning at docs/CMakeLists.txt:130 (message):
  LitRe not found; code examples won't be tested.


-- Configuring done
CMake Error at cmake/modules/AddSwift.cmake:1924 (add_dependencies):
  The dependency target "swiftReflection-watchsimulator" of target
  "swiftRemoteMirror-watchsimulator-i386" does not exist.
Call Stack (most recent call first):
  stdlib/public/SwiftRemoteMirror/CMakeLists.txt:4 (add_swift_target_library)


CMake Error at cmake/modules/AddSwift.cmake:1924 (add_dependencies):
  The dependency target "swiftReflection-appletvsimulator" of target
  "swiftRemoteMirror-appletvsimulator-x86_64" does not exist.
Call Stack (most recent call first):
  stdlib/public/SwiftRemoteMirror/CMakeLists.txt:4 (add_swift_target_library)


CMake Error at cmake/modules/AddSwift.cmake:1924 (add_dependencies):
  The dependency target "swiftReflection-iphonesimulator" of target
  "swiftRemoteMirror-iphonesimulator-i386" does not exist.
Call Stack (most recent call first):
  stdlib/public/SwiftRemoteMirror/CMakeLists.txt:4 (add_swift_target_library)


CMake Error at cmake/modules/AddSwift.cmake:1924 (add_dependencies):
  The dependency target "swiftReflection-appletvos" of target
  "swiftRemoteMirror-appletvos-arm64" does not exist.
Call Stack (most recent call first):
  stdlib/public/SwiftRemoteMirror/CMakeLists.txt:4 (add_swift_target_library)


CMake Error at cmake/modules/AddSwift.cmake:1924 (add_dependencies):
  The dependency target "swiftReflection-iphonesimulator" of target
  "swiftRemoteMirror-iphonesimulator-x86_64" does not exist.
Call Stack (most recent call first):
  stdlib/public/SwiftRemoteMirror/CMakeLists.txt:4 (add_swift_target_library)


CMake Error at cmake/modules/AddSwift.cmake:1924 (add_dependencies):
  The dependency target "swiftReflection-watchos" of target
  "swiftRemoteMirror-watchos-armv7k" does not exist.
Call Stack (most recent call first):
  stdlib/public/SwiftRemoteMirror/CMakeLists.txt:4 (add_swift_target_library)


CMake Error at cmake/modules/AddSwift.cmake:1924 (add_dependencies):
  The dependency target "swiftReflection-iphoneos" of target
  "swiftRemoteMirror-iphoneos-arm64" does not exist.
Call Stack (most recent call first):
  stdlib/public/SwiftRemoteMirror/CMakeLists.txt:4 (add_swift_target_library)


CMake Error at cmake/modules/AddSwift.cmake:1924 (add_dependencies):
  The dependency target "swiftReflection-iphoneos" of target
  "swiftRemoteMirror-iphoneos-armv7s" does not exist.
Call Stack (most recent call first):
  stdlib/public/SwiftRemoteMirror/CMakeLists.txt:4 (add_swift_target_library)


CMake Error at cmake/modules/AddSwift.cmake:1924 (add_dependencies):
  The dependency target "swiftReflection-iphoneos" of target
  "swiftRemoteMirror-iphoneos-armv7" does not exist.
Call Stack (most recent call first):
  stdlib/public/SwiftRemoteMirror/CMakeLists.txt:4 (add_swift_target_library)


-- Generating done
-- Build files have been written to: /Users/v.a.prusakov/Dev/swift-sources/build/LLVMClangSwift_iphoneos/swift-macosx-x86_64
swift/utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting
swift/utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting

The SwiftRemoteMirror and SwiftReflection libraries are "target libraries" (i.e. they go on the platform that runs the built app rather than "host libraries" for the platform that runs the compiler). It looks like "don't build the stdlib" currently implies "don't build Reflection" but not "don't build RemoteMirror".

We build the RemoteMirror twice. Once for the toolchain host and once for the standard library host. I imagine that the we are building the RemoteMirror for the toolchain host there.

It's ok if I got these mistakes?

CMake Warning:
  Manually-specified variables were not used by the project:

    CLANG_VERSION_MAJOR
    CLANG_VERSION_MINOR
    CLANG_VERSION_PATCH
    CMAKE_LIBTOOL
    COVERAGE_DB
    LIBDISPATCH_CMAKE_BUILD_TYPE
    LLVM_ENABLE_BACKTRACES
    SWIFTLIB_DEPLOYMENT_VERSION_XCTEST_IOS
    SWIFT_BUILD_EXAMPLES
    SWIFT_CHECK_INCREMENTAL_COMPILATION
    SWIFT_DARWIN_XCRUN_TOOLCHAIN
    SWIFT_HOST_TRIPLE
    SWIFT_PATH_TO_LIBDISPATCH_BUILD
    SWIFT_REPORT_STATISTICS
    SWIFT_RUNTIME_CRASH_REPORTER_CLIENT
    SWIFT_RUNTIME_ENABLE_LEAK_CHECKER
    SWIFT_SIL_VERIFY_ALL
    SWIFT_STDLIB_ENABLE_STDLIBCORE_EXCLUSIVITY_CHECKING
    SWIFT_STDLIB_SIL_DEBUGGING
    SWIFT_STDLIB_USE_NONATOMIC_RC
    SWIFT_TOOL_SIL_EXTRACT_BUILD
    SWIFT_TOOL_SWIFT_SDK_ANALYZER_BUILD
    SWIFT_TOOL_SWIFT_SDK_DIGESTER_BUILD
    SWIFT_VENDOR_UTI
Terms of Service

Privacy Policy

Cookie Policy