Windows 10 (1909) Swift 5.2 build error

I am trying to build Swift (swift-5.2-branch) on Windows(1909 10.0.18363.476) with VS2019. I am getting the following error when running ninja -j 11 -C C:\Users\prafs\swift-base\b\toolchain added -j to avoid OOME error while building

[5583/5634] Linking CXX shared library bin\sourcekitdInProc.dll
   Creating library lib\sourcekitdInProc.lib and object lib\sourcekitdInProc.exp
[5586/5634] Compiling C:/Users/prafs/swift-base/b/toolchain/tools/swift/stdlib/public/core/WINDOWS/x86_64/Swift.obj
FAILED: tools/swift/stdlib/public/core/WINDOWS/x86_64/Swift.obj
cmd.exe /C "cd /D C:\Users\prafs\swift-base\b\toolchain\tools\swift\stdlib\public\core && C:\Python27\python.exe C:/Users/prafs/swift-base/toolchain/swift/utils/line-directive @C:/Users/prafs/swift-base/b/toolchain/tools/swift/stdlib/public/core/pdmok.txt -- C:/Users/prafs/swift-base/b/toolchain/./bin/swiftc -c -target x86_64-unknown-windows-msvc -resource-dir C:/Users/prafs/swift-base/b/toolchain/./lib/swift -Onone -g -D INTERNAL_CHECKS_ENABLED -I C:/Users/prafs/swift-base/b/toolchain/./lib/swift/windows/x86_64 -module-cache-path C:/Users/prafs/swift-base/b/toolchain/./module-cache -no-link-objc-runtime -enable-library-evolution -Xfrontend -enable-ownership-stripping-after-serialization -Xfrontend -enforce-exclusivity=unchecked -nostdimport -parse-stdlib -module-name Swift -Xfrontend -group-info-path -Xfrontend C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/GroupInfo.json -swift-version 5 -runtime-compatibility-version none -disable-autolinking-runtime-compatibility-dynamic-replacements -warn-swift3-objc-inference-complete -Xfrontend -verify-syntax-tree -Xllvm -sil-inline-generics -Xllvm -sil-partial-specialization -Xcc -DswiftCore_EXPORTS -warn-implicit-overrides -D_WINDLL -DswiftCore_EXPORTS -Xcc -isystem -Xcc "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\/include" -Xcc -isystem -Xcc "C:\Program Files (x86)\Windows Kits\10\/Include/10.0.18362.0/ucrt" -Xcc -isystem -Xcc "C:\Program Files (x86)\Windows Kits\10\/Include/10.0.18362.0/shared" -Xcc -isystem -Xcc "C:\Program Files (x86)\Windows Kits\10\/Include/10.0.18362.0/um" -libc MultiThreadedDebugDLL -module-link-name swiftCore -force-single-frontend-invocation -parse-as-library -o C:/Users/prafs/swift-base/b/toolchain/tools/swift/stdlib/public/core/WINDOWS/x86_64/Swift.obj @C:/Users/prafs/swift-base/b/toolchain/tools/swift/stdlib/public/core/pdmok.txt"
Assertion failed: LastArgWritten == 0, file C:\Users\prafs\swift-base\toolchain\swift\lib\IRGen\GenCall.cpp, line 1868

Stack dump:

0.      Program arguments: C:\Users\prafs\swift-base\b\toolchain\bin\swiftc.exe -frontend -c -filelist C:\Users\prafs\AppData\Local\Temp\sources-770123 -supplementary-output-file-map C:\Users\prafs\AppData\Local\Temp\supplementaryOutputs-e6a84c -disable-objc-attr-requires-foundation-module -target x86_64-unknown-windows-msvc -disable-objc-interop -I C:/Users/prafs/swift-base/b/toolchain/./lib/swift/windows/x86_64 -warn-swift3-objc-inference-complete -warn-implicit-overrides -enable-library-evolution -g -module-cache-path C:/Users/prafs/swift-base/b/toolchain/./module-cache -module-link-name swiftCore -nostdimport -parse-stdlib -resource-dir C:/Users/prafs/swift-base/b/toolchain/./lib/swift -swift-version 5 -Onone -D INTERNAL_CHECKS_ENABLED -D _WINDLL -D swiftCore_EXPORTS -enable-ownership-stripping-after-serialization -enforce-exclusivity=unchecked -group-info-path C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/GroupInfo.json -verify-syntax-tree -enable-anonymous-context-mangled-names -Xllvm -sil-inline-generics -Xllvm -sil-partial-specialization -Xcc -DswiftCore_EXPORTS -Xcc -isystem -Xcc C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\/include -Xcc -isystem -Xcc C:\Program Files (x86)\Windows Kits\10\/Include/10.0.18362.0/ucrt -Xcc -isystem -Xcc C:\Program Files (x86)\Windows Kits\10\/Include/10.0.18362.0/shared -Xcc -isystem -Xcc C:\Program Files (x86)\Windows Kits\10\/Include/10.0.18362.0/um -autolink-library oldnames -autolink-library msvcrtd -Xcc -D_MT -Xcc -D_DLL -parse-as-library -module-name Swift -o C:/Users/prafs/swift-base/b/toolchain/tools/swift/stdlib/public/core/WINDOWS/x86_64/Swift.obj -runtime-compatibility-version none -disable-autolinking-runtime-compatibility-dynamic-replacements

1.      compnerd.org Swift version 5.2-dev (Swift 6379d99042)

2.      Contents of C:\Users\prafs\AppData\Local\Temp\sources-770123:

---

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Algorithm.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/ArrayBody.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/ArrayBuffer.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/ArrayBufferProtocol.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/ArrayCast.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Array.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/ArrayShared.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/ArraySlice.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/ArrayType.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/ASCII.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Assert.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/AssertCommon.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/BidirectionalCollection.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Bitset.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Bool.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/BridgeObjectiveC.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/BridgeStorage.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/BridgingBuffer.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Builtin.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Character.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/CocoaArray.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Collection.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/CollectionAlgorithms.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Comparable.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/CompilerProtocols.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/ContiguousArray.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/ContiguouslyStored.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/ClosedRange.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/ContiguousArrayBuffer.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/CString.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/CTypes.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/DebuggerSupport.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Dictionary.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/DictionaryBridging.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/DictionaryBuilder.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/DictionaryCasting.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/DictionaryStorage.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/DictionaryVariant.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/DropWhile.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Dump.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/EmptyCollection.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Equatable.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/ErrorType.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Filter.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/FixedArray.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/FlatMap.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Flatten.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/FloatingPoint.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Hashable.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/AnyHashable.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Hasher.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Hashing.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/HashTable.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/ICU.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Identifiable.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Indices.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/InputStream.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/IntegerParsing.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Integers.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Join.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/KeyPath.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/KeyValuePairs.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/LazyCollection.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/LazySequence.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/LegacyABI.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/LifetimeManager.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/ManagedBuffer.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Map.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/MemoryLayout.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/UnicodeScalar.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Misc.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/MutableCollection.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/NativeDictionary.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/NativeSet.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/NewtypeWrapper.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/ObjectIdentifier.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Optional.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/OptionSet.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/OutputStream.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Pointer.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Policy.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/PrefixWhile.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Print.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Random.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/RandomAccessCollection.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Range.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/RangeReplaceableCollection.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/ReflectionMirror.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Repeat.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/REPL.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Result.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Reverse.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/RuntimeFunctionCounters.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/SipHash.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Sequence.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/SequenceAlgorithms.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Set.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/SetAlgebra.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/SetAnyHashableExtensions.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/SetBridging.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/SetBuilder.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/SetCasting.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/SetStorage.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/SetVariant.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/ShadowProtocols.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Shims.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Slice.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/SmallString.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Sort.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/StaticString.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Stride.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/StringHashable.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/String.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/StringBreadcrumbs.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/StringBridge.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/StringCharacterView.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/StringComparable.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/StringComparison.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/StringCreate.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/StringGuts.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/StringGutsSlice.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/StringGutsRangeReplaceable.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/StringObject.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/StringProtocol.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/StringIndex.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/StringIndexConversions.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/StringInterpolation.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/StringLegacy.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/StringNormalization.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/StringRangeReplaceableCollection.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/StringStorage.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/StringStorageBridge.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/StringSwitch.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/StringTesting.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/StringUnicodeScalarView.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/StringUTF16View.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/StringUTF8View.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/StringUTF8Validation.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Substring.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/SwiftNativeNSArray.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/ThreadLocalStorage.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/UIntBuffer.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/UnicodeEncoding.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/UnicodeHelpers.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/UnicodeParser.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/UnicodeScalarProperties.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/CharacterProperties.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Unmanaged.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/UnmanagedOpaqueString.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/UnmanagedString.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/UnsafePointer.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/UnsafeRawPointer.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/UTFEncoding.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/UTF8.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/UTF16.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/UTF32.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Unicode.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/StringGraphemeBreaking.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/ValidUTF8Buffer.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/WriteBackMutableSlice.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/MigrationSupport.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Availability.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/CollectionDifference.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/CollectionOfOne.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Diffing.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Mirror.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/PlaygroundDisplay.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/CommandLine.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/SliceBuffer.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/SIMDVector.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/UnfoldSequence.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/VarArgs.swift

C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Zip.swift

C:/Users/prafs/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/AtomicInt.swift

C:/Users/prafs/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/BuiltinMath.swift

C:/Users/prafs/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/Codable.swift

C:/Users/prafs/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/FloatingPointParsing.swift

C:/Users/prafs/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/FloatingPointTypes.swift

C:/Users/prafs/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/IntegerTypes.swift

C:/Users/prafs/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/Mirrors.swift

C:/Users/prafs/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/Runtime.swift

C:/Users/prafs/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/UnavailableStringAPIs.swift

C:/Users/prafs/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/UnsafeBufferPointer.swift

C:/Users/prafs/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/UnsafeRawBufferPointer.swift

C:/Users/prafs/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/ExistentialCollection.swift

C:/Users/prafs/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/SIMDVectorTypes.swift

C:/Users/prafs/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/Tuple.swift

---

3.      While emitting IR SIL function "@$ss3minyxx_xtSLRzlF".

 for 'min(_:_:)' (at C:/Users/prafs/swift-base/toolchain/swift/stdlib/public/core/Algorithm.swift:20:8)

 #0 0x00007ff70039e6bc HandleAbort C:\Users\prafs\swift-base\toolchain\llvm\lib\Support\Windows\Signals.inc:408:0

 #1 0x00007ffd8dfcc3e1 (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0x6c3e1)

 #2 0x00007ffd8dfce039 (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0x6e039)

 #3 0x00007ffd8dfd386f (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0x7386f)

 #4 0x00007ffd8dfd1841 (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0x71841)

 #5 0x00007ffd8dfd41cf (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0x741cf)

 #6 0x00007ff6f885ae96 swift::irgen::CallEmission::~CallEmission(void) C:\Users\prafs\swift-base\toolchain\swift\lib\IRGen\GenCall.cpp:1868:0

 #7 0x00007ff6f8a4cdcc getCallEmissionForLoweredValue C:\Users\prafs\swift-base\toolchain\swift\lib\IRGen\IRGenSIL.cpp:2301:0

 #8 0x00007ff6f8a67e47 `anonymous namespace'::IRGenSILFunction::visitFullApplySite C:\Users\prafs\swift-base\toolchain\swift\lib\IRGen\IRGenSIL.cpp:2365:0

 #9 0x00007ff6f8a61fe9 `anonymous namespace'::IRGenSILFunction::visitApplyInst C:\Users\prafs\swift-base\toolchain\swift\lib\IRGen\IRGenSIL.cpp:2327:0

#10 0x00007ff6f8a5fe8a swift::SILInstructionVisitor<`anonymous namespace'::IRGenSILFunction,void>::visit C:\Users\prafs\swift-base\toolchain\swift\include\swift\SIL\SILNodes.def:610:0

#11 0x00007ff6f8a6f5a5 `anonymous namespace'::IRGenSILFunction::visitSILBasicBlock C:\Users\prafs\swift-base\toolchain\swift\lib\IRGen\IRGenSIL.cpp:1908:0

#12 0x00007ff6f8a47609 `anonymous namespace'::IRGenSILFunction::emitSILFunction C:\Users\prafs\swift-base\toolchain\swift\lib\IRGen\IRGenSIL.cpp:1780:0

#13 0x00007ff6f8a46fbf swift::irgen::IRGenModule::emitSILFunction(class swift::SILFunction *) C:\Users\prafs\swift-base\toolchain\swift\lib\IRGen\IRGenSIL.cpp:1686:0

#14 0x00007ff6f873ea64 swift::irgen::IRGenerator::emitGlobalTopLevel(void) C:\Users\prafs\swift-base\toolchain\swift\lib\IRGen\GenDecl.cpp:1040:0

#15 0x00007ff6f8705b0d performIRGeneration C:\Users\prafs\swift-base\toolchain\swift\lib\IRGen\IRGen.cpp:885:0

#16 0x00007ff6f8706451 swift::performIRGeneration(class swift::IRGenOptions &,class swift::ModuleDecl *,class std::unique_ptr<class swift::SILModule,struct std::default_delete<class swift::SILModule> >,class llvm::StringRef,class swift::PrimarySpecificPaths const &,class llvm::LLVMContext &,class llvm::ArrayRef<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class llvm::GlobalVariable * *) C:\Users\prafs\swift-base\toolchain\swift\lib\IRGen\IRGen.cpp:1275:0

#17 0x00007ff6f85ec2db generateIR C:\Users\prafs\swift-base\toolchain\swift\lib\FrontendTool\FrontendTool.cpp:1354:0

#18 0x00007ff6f85f2a09 performCompileStepsPostSILGen C:\Users\prafs\swift-base\toolchain\swift\lib\FrontendTool\FrontendTool.cpp:1599:0

#19 0x00007ff6f85f2fef performCompileStepsPostSema C:\Users\prafs\swift-base\toolchain\swift\lib\FrontendTool\FrontendTool.cpp:1088:0

#20 0x00007ff6f85f1f0b performCompile C:\Users\prafs\swift-base\toolchain\swift\lib\FrontendTool\FrontendTool.cpp:1311:0

#21 0x00007ff6f85f414c swift::performFrontend(class llvm::ArrayRef<char const *>,char const *,void *,class swift::FrontendObserver *) C:\Users\prafs\swift-base\toolchain\swift\lib\FrontendTool\FrontendTool.cpp:2133:0

#22 0x00007ff6f84a6b93 run_driver C:\Users\prafs\swift-base\toolchain\swift\tools\driver\driver.cpp:126:0

#23 0x00007ff6f84a884b main C:\Users\prafs\swift-base\toolchain\swift\tools\driver\driver.cpp:273:0

#24 0x00007ff700470c19 invoke_main d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:79:0

#25 0x00007ff700470b3e __scrt_common_main_seh d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288:0

#26 0x00007ff7004709fe __scrt_common_main d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:331:0

#27 0x00007ff700470c89 mainCRTStartup d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_main.cpp:17:0

#28 0x00007ffdc6e37bd4 (C:\WINDOWS\System32\KERNEL32.DLL+0x17bd4)

#29 0x00007ffdc850ced1 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x6ced1)

<unknown>:0: error: compile command failed due to signal -2147483645 (use -v to see invocation)
[5587/5634] Generating C:/Users/prafs/swift-base/b/toolchain/./lib/swift/windows/x86_64/Swift.swiftmodule
ninja: build stopped: subcommand failed.

Hmm, did you checkout the sources in the correct mode? It could be that you checked out the sources with CRLF line endings rather than LF. I remember that there was something similar to this that I was hitting due to a bug in the location tracking work that IIRC @David_Ungar2 was working on.

I would recommend that you build off of master for the time being.

@compnerd Thanks for the response. I followed instructions from the build guide here. I see only 2 repos are being cloned with -c core.autocrlf=input should I checkout other repos as well ?.

I am getting the same error on the master branch as well. I tried to compare my logs with the CI build and your azure pipeline logs but was not able to see any major different expect the failures on my end.

What am I missing?

Cant really tell from just the snippet. I would try to reproduce the build at the exact revision + version of VS2019. You could try building the compiler without assertions (though, I do generally build with assertions, so Im not sure why you are hitting an assertion when the other builds do not).

@compnerd Hopefully, this is useful for you to replicate my env. Please let me know if you need more information.

However, I have noticed a difference between my logs and CI logs. I see a few things that are disabled in CI are enabled in my build as you can see below in the output. I don't know how it got enabled if you can tell me how to disable them, I can try to build. Or it doesn't affect the build.

Command:-

`cmake -B "C:\Users\PKS\swift-base\b\toolchain" -G Ninja -S C:\Users\PKS\swift-base\toolchain\llvm -C C:\Users\PKS\swift-base\windows-swift\cmake\caches\Windows-x86_64.cmake -C C:\Users\PKS\swift-base\windows-swift\cmake\caches\org.compnerd.dt.cmake -DLLVM_ENABLE_ASSERTIONS=YES -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;cmark;swift;lldb;lld" -DLLVM_EXTERNAL_PROJECTS="cmark;swift" -DSWIFT_PATH_TO_LIBDISPATCH_SOURCE=C:\Users\PKS\swift-base\toolchain\swift-corelibs-libdispatch -DLLVM_ENABLE_PDB=YES -DLLDB_DISABLE_PYTHON=YES -DSWIFT_WINDOWS_x86_64_ICU_UC_INCLUDE="C:/Users/PKS/swift-base/Library/icu-64/usr/include" -DSWIFT_WINDOWS_x86_64_ICU_UC="C:/Users/PKS/swift-base/Library/icu-64/usr/lib/icuuc64.lib" -DSWIFT_WINDOWS_x86_64_ICU_I18N_INCLUDE="C:/Users/PKS/swift-base/Library/icu-64/usr/include" -DSWIFT_WINDOWS_x86_64_ICU_I18N="C:/Users/PKS/swift-base/Library/icu-64/usr/lib/icuin64.lib" -DCMAKE_INSTALL_PREFIX="C:\Users\PKS\swift-base\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr" -DPYTHON_EXECUTABLE=C:\Python27\python.exe -DSWIFT_BUILD_DYNAMIC_STDLIB=YES -DSWIFT_BUILD_DYNAMIC_SDK_OVERLAY=YES ` 

Output:-

C:\Users\PKS\swift-base>cmake -B "C:\Users\PKS\swift-base\b\toolchain" -G Ninja -S C:\Users\PKS\swift-base\toolchain\llvm -C C:\Users\PKS\swift-base\windows-swift\cmake\caches\Windows-x86_64.cmake -C C:\Users\PKS\swift-base\windows-swift\cmake\caches\org.compnerd.dt.cmake -DLLVM_ENABLE_ASSERTIONS=YES -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;cmark;swift;lldb;lld" -DLLVM_EXTERNAL_PROJECTS="cmark;swift" -DSWIFT_PATH_TO_LIBDISPATCH_SOURCE=C:\Users\PKS\swift-base\toolchain\swift-corelibs-libdispatch -DLLVM_ENABLE_PDB=YES -DLLDB_DISABLE_PYTHON=YES -DSWIFT_WINDOWS_x86_64_ICU_UC_INCLUDE="C:/Users/PKS/swift-base/Library/icu-64/usr/include" -DSWIFT_WINDOWS_x86_64_ICU_UC="C:/Users/PKS/swift-base/Library/icu-64/usr/lib/icuuc64.lib" -DSWIFT_WINDOWS_x86_64_ICU_I18N_INCLUDE="C:/Users/PKS/swift-base/Library/icu-64/usr/include" -DSWIFT_WINDOWS_x86_64_ICU_I18N="C:/Users/PKS/swift-base/Library/icu-64/usr/lib/icuin64.lib" -DCMAKE_INSTALL_PREFIX="C:\Users\PKS\swift-base\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr" -DPYTHON_EXECUTABLE=C:\Python27\python.exe -DSWIFT_BUILD_DYNAMIC_STDLIB=YES -DSWIFT_BUILD_DYNAMIC_SDK_OVERLAY=YES
loading initial cache file C:\Users\PKS\swift-base\windows-swift\cmake\caches\Windows-x86_64.cmake
loading initial cache file C:\Users\PKS\swift-base\windows-swift\cmake\caches\org.compnerd.dt.cmake
-- The C compiler identification is MSVC 19.24.28314.0
-- The CXX compiler identification is MSVC 19.24.28314.0
-- The ASM compiler identification is MSVC
-- Found assembler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe -- 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: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- clang project is enabled
-- clang-tools-extra project is enabled
-- compiler-rt project is disabled
-- debuginfo-tests project is disabled
-- libclc project is disabled
-- libcxx project is disabled
-- libcxxabi project is disabled
-- libunwind project is disabled
-- lld project is enabled
-- lldb project is enabled
-- llgo project is disabled
-- openmp project is disabled
-- parallel-libs project is disabled
-- polly project is disabled
-- pstl project is disabled
-- cmark project is enabled
-- swift project is enabled
-- Could NOT find Z3: Found unsuitable version "0.0.0", but required is at least "4.7.1" (found Z3_LIBRARIES-NOTFOUND)
-- Looking for dlfcn.h
-- Looking for dlfcn.h - not found
-- Looking for errno.h
-- Looking for errno.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for link.h
-- Looking for link.h - not found
-- Looking for malloc/malloc.h
-- Looking for malloc/malloc.h - not found
-- Looking for signal.h
-- Looking for signal.h - found
-- Looking for sys/ioctl.h
-- Looking for sys/ioctl.h - not found
-- Looking for sys/mman.h
-- Looking for sys/mman.h - not found
-- Looking for sys/param.h
-- Looking for sys/param.h - not found
-- Looking for sys/resource.h
-- Looking for sys/resource.h - not found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - not found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for termios.h
-- Looking for termios.h - not found
-- Looking for unistd.h
-- Looking for unistd.h - not found
-- Looking for valgrind/valgrind.h
-- Looking for valgrind/valgrind.h - not found
-- Looking for zlib.h
-- Looking for zlib.h - not found
-- Looking for fenv.h
-- Looking for fenv.h - found
-- Looking for FE_ALL_EXCEPT
-- Looking for FE_ALL_EXCEPT - found
-- Looking for FE_INEXACT
-- Looking for FE_INEXACT - found
-- Looking for mach/mach.h
-- Looking for mach/mach.h - not found
-- Looking for histedit.h
-- Looking for histedit.h - not found
-- Looking for CrashReporterClient.h
-- Looking for CrashReporterClient.h - not found
-- Looking for pfm_initialize in pfm
-- Looking for pfm_initialize in pfm - not found
-- Looking for xar_open in xar
-- Looking for xar_open in xar - not found
-- Looking for arc4random
-- Looking for arc4random - not found
-- Looking for backtrace
-- Looking for backtrace - not found
-- Could NOT find Backtrace (missing: Backtrace_LIBRARY Backtrace_INCLUDE_DIR)
-- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW
-- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Failed
-- Looking for _Unwind_Backtrace
-- Looking for _Unwind_Backtrace - not found
-- Looking for getpagesize
-- Looking for getpagesize - not found
-- Looking for sysconf
-- Looking for sysconf - not found
-- Looking for getrusage
-- Looking for getrusage - not found
-- Looking for setrlimit
-- Looking for setrlimit - not found
-- Looking for isatty
-- Looking for isatty - not found
-- Looking for futimens
-- Looking for futimens - not found
-- Looking for futimes
-- Looking for futimes - not found
-- Looking for posix_fallocate
-- Looking for posix_fallocate - not found
-- Looking for sigaltstack
-- Looking for sigaltstack - not found
-- Looking for lseek64
-- Looking for lseek64 - not found
-- Looking for mallctl
-- Looking for mallctl - not found
-- Looking for mallinfo
-- Looking for mallinfo - not found
-- Looking for malloc_zone_statistics
-- Looking for malloc_zone_statistics - not found
-- Looking for getrlimit
-- Looking for getrlimit - not found
-- Looking for posix_spawn
-- Looking for posix_spawn - not found
-- Looking for pread
-- Looking for pread - not found
-- Looking for sbrk
-- Looking for sbrk - not found
-- Looking for strerror
-- Looking for strerror - found
-- Looking for strerror_r
-- Looking for strerror_r - not found
-- Looking for strerror_s
-- Looking for strerror_s - found
-- Looking for setenv
-- Looking for setenv - not found
-- Looking for _chsize_s
-- Looking for _chsize_s - found
-- Looking for _alloca
-- Looking for _alloca - not found
-- Looking for __alloca
-- Looking for __alloca - not found
-- Looking for __chkstk
-- Looking for __chkstk - found
-- Looking for __chkstk_ms
-- Looking for __chkstk_ms - not found
-- Looking for ___chkstk
-- Looking for ___chkstk - not found
-- Looking for ___chkstk_ms
-- Looking for ___chkstk_ms - not found
-- Looking for __ashldi3
-- Looking for __ashldi3 - not found
-- Looking for __ashrdi3
-- Looking for __ashrdi3 - not found
-- Looking for __divdi3
-- Looking for __divdi3 - not found
-- Looking for __fixdfdi
-- Looking for __fixdfdi - not found
-- Looking for __fixsfdi
-- Looking for __fixsfdi - not found
-- Looking for __floatdidf
-- Looking for __floatdidf - not found
-- Looking for __lshrdi3
-- Looking for __lshrdi3 - not found
-- Looking for __moddi3
-- Looking for __moddi3 - not found
-- Looking for __udivdi3
-- Looking for __udivdi3 - not found
-- Looking for __umoddi3
-- Looking for __umoddi3 - not found
-- Looking for __main
-- Looking for __main - not found
-- Looking for __cmpdi2
-- Looking for __cmpdi2 - not found
-- Performing Test HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC
-- Performing Test HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC - Failed
-- Performing Test HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC
-- Performing Test HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC - Failed
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - not found
-- Looking for sched_getaffinity
-- Looking for sched_getaffinity - not found
-- Looking for CPU_COUNT
-- Looking for CPU_COUNT - not found
-- Performing Test HAVE_STD_IS_TRIVIALLY_COPYABLE
-- Performing Test HAVE_STD_IS_TRIVIALLY_COPYABLE - Success
-- Performing Test LLVM_HAS_ATOMICS
-- Performing Test LLVM_HAS_ATOMICS - Success
-- Performing Test SUPPORTS_VARIADIC_MACROS_FLAG
-- Performing Test SUPPORTS_VARIADIC_MACROS_FLAG - Failed
-- Performing Test SUPPORTS_GNU_ZERO_VARIADIC_MACRO_ARGUMENTS_FLAG
-- Performing Test SUPPORTS_GNU_ZERO_VARIADIC_MACRO_ARGUMENTS_FLAG - Failed
-- Native target architecture is X86
-- Threads enabled.
-- Doxygen disabled.
-- Go bindings disabled.
-- Ninja version: 1.8.2
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- OCaml bindings disabled.
-- Could NOT find Python module pygments
-- Could NOT find Python module pygments.lexers.c_cpp
-- Could NOT find Python module yaml
-- LLVM host triple: x86_64-pc-windows-msvc
-- LLVM default target triple: x86_64-pc-windows-msvc
-- Using Debug VC++ CRT: MDd
-- Performing Test C_SUPPORTS_INDEX_STORE
-- Performing Test C_SUPPORTS_INDEX_STORE - Failed
-- Performing Test CXX_SUPPORTS_INDEX_STORE
-- Performing Test CXX_SUPPORTS_INDEX_STORE - Failed
-- Looking for os_signpost_interval_begin
-- Looking for os_signpost_interval_begin - not found
-- Found PythonInterp: C:/Python27/python.exe (found version "2.7.17")
-- Constructing LLVMBuild project information
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.24.0.windows.2")
-- LLVMHello ignored -- Loadable modules not supported on this platform.
-- Targeting AArch64
-- Targeting ARM
-- Targeting WebAssembly
-- Targeting X86
-- Looking for sys/resource.h
-- Looking for sys/resource.h - not found
-- Clang version: 9.0.0
-- PrintFunctionNames ignored -- Loadable modules not supported on this platform.
-- AnnotateFunctions ignored -- Loadable modules not supported on this platform.
-- LLD version: 9.0.0
-- Performing Test CXX_SUPPORTS_NO_DEPRECATED_DECLARATIONS
-- Performing Test CXX_SUPPORTS_NO_DEPRECATED_DECLARATIONS - Failed
-- Performing Test CXX_SUPPORTS_NO_UNKNOWN_PRAGMAS
-- Performing Test CXX_SUPPORTS_NO_UNKNOWN_PRAGMAS - Failed
-- Performing Test CXX_SUPPORTS_NO_STRICT_ALIASING
-- Performing Test CXX_SUPPORTS_NO_STRICT_ALIASING - Failed
-- Performing Test CXX_SUPPORTS_NO_DEPRECATED_REGISTER
-- Performing Test CXX_SUPPORTS_NO_DEPRECATED_REGISTER - Failed
-- Performing Test CXX_SUPPORTS_NO_VLA_EXTENSION
-- Performing Test CXX_SUPPORTS_NO_VLA_EXTENSION - Failed
-- Performing Test CXX_SUPPORTS_NO_GNU_ANONYMOUS_STRUCT
-- Performing Test CXX_SUPPORTS_NO_GNU_ANONYMOUS_STRUCT - Failed
-- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES
-- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES - Failed
-- LLDB version: 9.0.0
-- Found LibXml2: C:/Users/PKS/Anaconda3/Library/lib/libxml2.lib (found version "2.9.9")
-- Could NOT find Backtrace (missing: Backtrace_LIBRARY Backtrace_INCLUDE_DIR)
-- Looking for ppoll
-- Looking for ppoll - not found
-- Looking for sigaction
-- Looking for sigaction - not found
-- Looking for accept4
-- Looking for accept4 - not found
-- Looking for include files sys/types.h, sys/event.h
-- Looking for include files sys/types.h, sys/event.h - not found
-- Looking for process_vm_readv
-- Looking for process_vm_readv - not found
-- Looking for __NR_process_vm_readv
-- Looking for __NR_process_vm_readv - not found
-- Looking for compression_encode_buffer in compression
-- Looking for compression_encode_buffer in compression - not found
CMake Warning at C:/Users/PKS/swift-base/toolchain/lldb/cmake/modules/AddLLDB.cmake:100 (message):
  {name} is now a FRAMEWORK
Call Stack (most recent call first):
  C:/Users/PKS/swift-base/toolchain/lldb/source/API/CMakeLists.txt:24 (add_lldb_library)


-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Could NOT find epydoc
-- BugpointPasses ignored -- Loadable modules not supported on this platform.
-- 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 - Failed
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Failed
-- Performing Test COMPILER_HAS_DEPRECATED
-- Performing Test COMPILER_HAS_DEPRECATED - Success
-- Looking for stdbool.h
-- Looking for stdbool.h - found
-- Performing Test HAVE___BUILTIN_EXPECT
-- Performing Test HAVE___BUILTIN_EXPECT - Failed
-- Performing Test HAVE___ATTRIBUTE__
-- Performing Test HAVE___ATTRIBUTE__ - Failed
-- Could NOT find PythonInterp: Found unsuitable version "2.7.17", but required is at least "3" (found C:/Python27/python.exe)

*** A python 3 interpreter is required to run the spec tests.

-- Finding installed version for: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/cmake.exe
-- Found version: cmake version 3.15.19101501-MSVC_2  CMake suite maintained and supported by Kitware (kitware.com/cmake).
--
-- Finding version for: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/cmake.exe
-- Found version: 3.15.19101501-MSVC_2
--
-- Finding installed version for: ninja
-- Found version: 1.8.2
--
-- Finding version for: C:/PROGRA~2/MICROS~1/2019/COMMUN~1/Common7/IDE/COMMON~1/MICROS~1/CMake/Ninja/ninja.exe
-- Found version: 1.8.2
--
-- Finding version for: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe
-- Found version: 19.24.28314.0
--
-- Finding version for: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe
-- Found version: 19.24.28314.0
--
-- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG
-- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG - Failed
-- Performing Test SWIFT_HAVE_WORKING_STD_REGEX_TEST
-- Performing Test SWIFT_HAVE_WORKING_STD_REGEX_TEST - Success
-- Performing Test CXX_SUPPORTS_WERROR_SWITCH_FLAG
-- Performing Test CXX_SUPPORTS_WERROR_SWITCH_FLAG - Failed
-- Performing Test CXX_SUPPORTS_WE4062
-- Performing Test CXX_SUPPORTS_WE4062 - Success
-- Performing Test CXX_SUPPORTS_DOCUMENTATION_FLAG
-- Performing Test CXX_SUPPORTS_DOCUMENTATION_FLAG - Failed
-- Performing Test CXX_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG
-- Performing Test CXX_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG - Failed
-- Performing Test CXX_SUPPORTS_UNREACHABLE_CODE_FLAG
-- Performing Test CXX_SUPPORTS_UNREACHABLE_CODE_FLAG - Failed
-- Performing Test CXX_SUPPORTS_OVERLOADED_VIRTUAL
-- Performing Test CXX_SUPPORTS_OVERLOADED_VIRTUAL - Failed
-- Performing Test CXX_SUPPORTS_FAPPLICATION_EXTENSION
-- Performing Test CXX_SUPPORTS_FAPPLICATION_EXTENSION - Failed
-- Performing Test CXX_SUPPORTS_PERMISSIVE_FLAG
-- Performing Test CXX_SUPPORTS_PERMISSIVE_FLAG - Success
-- Windows SDK:
--   Object File Format: COFF
--   Swift Standard Library Path: windows
--   UCRT Version: 10.0.18362.0
--   UCRT SDK Path: C:\Program Files (x86)\Windows Kits\10\
--   VC Path: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\
--   Debug VC++ CRT: MD
--   Architectures: x86_64
--   x86_64 triple: x86_64-unknown-windows-msvc
--   x86_64 INCLUDE: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\/include;C:\Program Files (x86)\Windows Kits\10\/Include/10.0.18362.0/ucrt;C:\Program Files (x86)\Windows Kits\10\/Include/10.0.18362.0/shared;C:\Program Files (x86)\Windows Kits\10\/Include/10.0.18362.0/um
--   x86_64 LIB: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\/Lib/x64;C:\Program Files (x86)\Windows Kits\10\/Lib/10.0.18362.0/ucrt/x64;C:\Program Files (x86)\Windows Kits\10\/Lib/10.0.18362.0/um/x64
--   x86_64 libc header path:
--   x86_64 libc architecture specific header path:
--   x86_64 ICU i18n INCLUDE: C:/Users/PKS/swift-base/Library/icu-64/usr/include
--   x86_64 ICU i18n LIB: C:/Users/PKS/swift-base/Library/icu-64/usr/lib/icuin64.lib
--   x86_64 ICU unicode INCLUDE: C:/Users/PKS/swift-base/Library/icu-64/usr/include
--   x86_64 ICU unicode LIB: C:/Users/PKS/swift-base/Library/icu-64/usr/lib/icuuc64.lib
--
-- Building host Swift tools for WINDOWS x86_64
--   Build type:     Debug
--   Assertions:     YES
--   LTO:            OFF
--
-- Building Swift standard library and overlays for SDKs: WINDOWS
--   Build type:       Debug
--   Assertions:       ON
--
-- Building Swift runtime with:
--   Leak Detection Checker Entrypoints: OFF
--
-- Looking for el_wgets
-- Looking for el_wgets - not found
-- Looking for wait4
-- Looking for wait4 - not found
-- Looking for proc_pid_rusage
-- Looking for proc_pid_rusage - not found
-- Performing Test is_supported
-- Performing Test is_supported - Success
-- Performing Test CXX_SUPPORTS_GLOBAL_CONSTRUCTORS_WARNING
-- Performing Test CXX_SUPPORTS_GLOBAL_CONSTRUCTORS_WARNING - Failed
-- Performing Test CXX_SUPPORTS_EXIT_TIME_DESTRUCTORS_WARNING
-- Performing Test CXX_SUPPORTS_EXIT_TIME_DESTRUCTORS_WARNING - Failed
-- Performing Test CXX_SUPPORTS_DEFAULT_HIDDEN_VISIBILITY
-- Performing Test CXX_SUPPORTS_DEFAULT_HIDDEN_VISIBILITY - Failed
-- Swift version: 5.2
-- Swift vendor: compnerd.org
-- Swift compiler version:
-- Embedded clang compiler version:
-- Looking for include file xpc/xpc.h
-- Looking for include file xpc/xpc.h - not found
-- Looking for dispatch_block_create
-- Looking for dispatch_block_create - not found
CMake Warning at C:/Users/PKS/swift-base/toolchain/swift/unittests/runtime/CMakeLists.txt:11 (message):
  Building the swift runtime using the host compiler, and not the just-built
  clang.


-- TestPlugin ignored -- Loadable modules not supported on this platform.
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/PKS/swift-base/b/toolchain

@compnerd I ran build with -DLLVM_ENABLE_ASSERTIONS=NO still I face a similar error but at different point

[5584/5632] Compiling C:/Users/PKS/swift-base/b/toolchain/tools/swift/stdlib/public/core/WINDOWS/x86_64/Swift.obj
FAILED: tools/swift/stdlib/public/core/WINDOWS/x86_64/Swift.obj
cmd.exe /C "cd /D C:\Users\PKS\swift-base\b\toolchain\tools\swift\stdlib\public\core && C:\Python27\python.exe C:/Users/PKS/swift-base/toolchain/swift/utils/line-directive @C:/Users/PKS/swift-base/b/toolchain/tools/swift/stdlib/public/core/3psoo.txt -- C:/Users/PKS/swift-base/b/toolchain/./bin/swiftc -c -target x86_64-unknown-windows-msvc -resource-dir C:/Users/PKS/swift-base/b/toolchain/./lib/swift -Onone -g -D INTERNAL_CHECKS_ENABLED -I C:/Users/PKS/swift-base/b/toolchain/./lib/swift/windows/x86_64 -module-cache-path C:/Users/PKS/swift-base/b/toolchain/./module-cache -no-link-objc-runtime -enable-library-evolution -Xfrontend -enable-ownership-stripping-after-serialization -Xfrontend -enforce-exclusivity=unchecked -nostdimport -parse-stdlib -module-name Swift -Xfrontend -group-info-path -Xfrontend C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/GroupInfo.json -swift-version 5 -runtime-compatibility-version none -disable-autolinking-runtime-compatibility-dynamic-replacements -warn-swift3-objc-inference-complete -Xfrontend -verify-syntax-tree -Xllvm -sil-inline-generics -Xllvm -sil-partial-specialization -Xcc -DswiftCore_EXPORTS -warn-implicit-overrides -D_WINDLL -DswiftCore_EXPORTS -Xcc -isystem -Xcc "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\/include" -Xcc -isystem -Xcc "C:\Program Files (x86)\Windows Kits\10\/Include/10.0.18362.0/ucrt" -Xcc -isystem -Xcc "C:\Program Files (x86)\Windows Kits\10\/Include/10.0.18362.0/shared" -Xcc -isystem -Xcc "C:\Program Files (x86)\Windows Kits\10\/Include/10.0.18362.0/um" -libc MultiThreadedDebugDLL -module-link-name swiftCore -force-single-frontend-invocation -parse-as-library -o C:/Users/PKS/swift-base/b/toolchain/tools/swift/stdlib/public/core/WINDOWS/x86_64/Swift.obj @C:/Users/PKS/swift-base/b/toolchain/tools/swift/stdlib/public/core/3psoo.txt"
Assertion failed: Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!", file C:\Users\PKS\swift-base\toolchain\llvm\include\llvm/IR/DataLayout.h, line 602

Stack dump:

0.      Program arguments: C:\Users\PKS\swift-base\b\toolchain\bin\swiftc.exe -frontend -c -filelist C:\Users\PKS\AppData\Local\Temp\sources-36ed79 -supplementary-output-file-map C:\Users\PKS\AppData\Local\Temp\supplementaryOutputs-d01cf2 -disable-objc-attr-requires-foundation-module -target x86_64-unknown-windows-msvc -disable-objc-interop -I C:/Users/PKS/swift-base/b/toolchain/./lib/swift/windows/x86_64 -warn-swift3-objc-inference-complete -warn-implicit-overrides -enable-library-evolution -g -module-cache-path C:/Users/PKS/swift-base/b/toolchain/./module-cache -module-link-name swiftCore -nostdimport -parse-stdlib -resource-dir C:/Users/PKS/swift-base/b/toolchain/./lib/swift -swift-version 5 -Onone -D INTERNAL_CHECKS_ENABLED -D _WINDLL -D swiftCore_EXPORTS -enable-ownership-stripping-after-serialization -enforce-exclusivity=unchecked -group-info-path C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/GroupInfo.json -verify-syntax-tree -enable-anonymous-context-mangled-names -Xllvm -sil-inline-generics -Xllvm -sil-partial-specialization -Xcc -DswiftCore_EXPORTS -Xcc -isystem -Xcc C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\/include -Xcc -isystem -Xcc C:\Program Files (x86)\Windows Kits\10\/Include/10.0.18362.0/ucrt -Xcc -isystem -Xcc C:\Program Files (x86)\Windows Kits\10\/Include/10.0.18362.0/shared -Xcc -isystem -Xcc C:\Program Files (x86)\Windows Kits\10\/Include/10.0.18362.0/um -autolink-library oldnames -autolink-library msvcrtd -Xcc -D_MT -Xcc -D_DLL -parse-as-library -module-name Swift -o C:/Users/PKS/swift-base/b/toolchain/tools/swift/stdlib/public/core/WINDOWS/x86_64/Swift.obj -runtime-compatibility-version none -disable-autolinking-runtime-compatibility-dynamic-replacements

1.      compnerd.org Swift version 5.2-dev (Swift 6379d99042)

2.      Contents of C:\Users\PKS\AppData\Local\Temp\sources-36ed79:

---

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Algorithm.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ArrayBody.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ArrayBuffer.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ArrayBufferProtocol.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ArrayCast.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Array.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ArrayShared.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ArraySlice.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ArrayType.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ASCII.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Assert.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/AssertCommon.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/BidirectionalCollection.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Bitset.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Bool.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/BridgeObjectiveC.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/BridgeStorage.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/BridgingBuffer.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Builtin.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Character.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/CocoaArray.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Collection.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/CollectionAlgorithms.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Comparable.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/CompilerProtocols.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ContiguousArray.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ContiguouslyStored.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ClosedRange.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ContiguousArrayBuffer.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/CString.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/CTypes.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/DebuggerSupport.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Dictionary.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/DictionaryBridging.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/DictionaryBuilder.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/DictionaryCasting.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/DictionaryStorage.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/DictionaryVariant.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/DropWhile.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Dump.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/EmptyCollection.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Equatable.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ErrorType.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Filter.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/FixedArray.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/FlatMap.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Flatten.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/FloatingPoint.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Hashable.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/AnyHashable.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Hasher.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Hashing.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/HashTable.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ICU.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Identifiable.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Indices.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/InputStream.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/IntegerParsing.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Integers.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Join.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/KeyPath.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/KeyValuePairs.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/LazyCollection.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/LazySequence.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/LegacyABI.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/LifetimeManager.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ManagedBuffer.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Map.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/MemoryLayout.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/UnicodeScalar.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Misc.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/MutableCollection.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/NativeDictionary.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/NativeSet.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/NewtypeWrapper.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ObjectIdentifier.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Optional.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/OptionSet.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/OutputStream.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Pointer.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Policy.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/PrefixWhile.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Print.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Random.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/RandomAccessCollection.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Range.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/RangeReplaceableCollection.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ReflectionMirror.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Repeat.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/REPL.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Result.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Reverse.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/RuntimeFunctionCounters.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/SipHash.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Sequence.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/SequenceAlgorithms.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Set.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/SetAlgebra.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/SetAnyHashableExtensions.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/SetBridging.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/SetBuilder.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/SetCasting.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/SetStorage.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/SetVariant.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ShadowProtocols.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Shims.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Slice.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/SmallString.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Sort.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StaticString.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Stride.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringHashable.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/String.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringBreadcrumbs.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringBridge.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringCharacterView.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringComparable.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringComparison.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringCreate.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringGuts.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringGutsSlice.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringGutsRangeReplaceable.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringObject.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringProtocol.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringIndex.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringIndexConversions.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringInterpolation.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringLegacy.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringNormalization.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringRangeReplaceableCollection.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringStorage.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringStorageBridge.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringSwitch.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringTesting.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringUnicodeScalarView.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringUTF16View.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringUTF8View.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringUTF8Validation.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Substring.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/SwiftNativeNSArray.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ThreadLocalStorage.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/UIntBuffer.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/UnicodeEncoding.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/UnicodeHelpers.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/UnicodeParser.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/UnicodeScalarProperties.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/CharacterProperties.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Unmanaged.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/UnmanagedOpaqueString.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/UnmanagedString.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/UnsafePointer.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/UnsafeRawPointer.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/UTFEncoding.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/UTF8.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/UTF16.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/UTF32.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Unicode.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringGraphemeBreaking.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ValidUTF8Buffer.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/WriteBackMutableSlice.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/MigrationSupport.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Availability.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/CollectionDifference.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/CollectionOfOne.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Diffing.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Mirror.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/PlaygroundDisplay.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/CommandLine.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/SliceBuffer.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/SIMDVector.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/UnfoldSequence.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/VarArgs.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Zip.swift

C:/Users/PKS/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/AtomicInt.swift

C:/Users/PKS/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/BuiltinMath.swift

C:/Users/PKS/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/Codable.swift

C:/Users/PKS/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/FloatingPointParsing.swift

C:/Users/PKS/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/FloatingPointTypes.swift

C:/Users/PKS/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/IntegerTypes.swift

C:/Users/PKS/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/Mirrors.swift

C:/Users/PKS/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/Runtime.swift

C:/Users/PKS/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/UnavailableStringAPIs.swift

C:/Users/PKS/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/UnsafeBufferPointer.swift

C:/Users/PKS/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/UnsafeRawBufferPointer.swift

C:/Users/PKS/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/ExistentialCollection.swift

C:/Users/PKS/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/SIMDVectorTypes.swift

C:/Users/PKS/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/Tuple.swift

---

3.      While emitting IR SIL function "@$ss3minyxx_xtSLRzlF".

 for 'min(_:_:)' (at C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Algorithm.swift:20:8)

 #0 0x00007ff683a6a56c HandleAbort C:\Users\PKS\swift-base\toolchain\llvm\lib\Support\Windows\Signals.inc:408:0

 #1 0x00007ffd9116c3e1 (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0x6c3e1)

 #2 0x00007ffd9116e039 (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0x6e039)

 #3 0x00007ffd9117386f (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0x7386f)

 #4 0x00007ffd91171841 (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0x71841)

 #5 0x00007ffd911741cf (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0x741cf)

 #6 0x00007ff67c04b61c llvm::DataLayout::getTypeSizeInBits(class llvm::Type *)const  C:\Users\PKS\swift-base\toolchain\llvm\include\llvm\IR\DataLayout.h:602:0

 #7 0x00007ff67c236219 swift::irgen::allocateForCoercion(class swift::irgen::IRGenFunction &,class llvm::Type *,class llvm::Type *,class llvm::Twine const &) C:\Users\PKS\swift-base\toolchain\swift\lib\IRGen\GenCall.cpp:2945:0

 #8 0x00007ff67c23734d swift::irgen::IRGenFunction::coerceValue(class llvm::Value *,class llvm::Type *,class llvm::DataLayout const &) C:\Users\PKS\swift-base\toolchain\swift\lib\IRGen\GenCall.cpp:2985:0

 #9 0x00007ff67c239b61 swift::irgen::CallEmission::emitCallSite(void) C:\Users\PKS\swift-base\toolchain\swift\lib\IRGen\GenCall.cpp:1602:0

#10 0x00007ff67c23decc swift::irgen::CallEmission::emitYieldsToExplosion(class swift::irgen::Explosion &) C:\Users\PKS\swift-base\toolchain\swift\lib\IRGen\GenCall.cpp:1721:0

#11 0x00007ff67c23ca97 swift::irgen::CallEmission::emitToExplosion(class swift::irgen::Explosion &,bool) C:\Users\PKS\swift-base\toolchain\swift\lib\IRGen\GenCall.cpp:1802:0

#12 0x00007ff67c3f6a1a `anonymous namespace'::IRGenSILFunction::visitFullApplySite C:\Users\PKS\swift-base\toolchain\swift\lib\IRGen\IRGenSIL.cpp:2409:0

#13 0x00007ff67c3f0f89 `anonymous namespace'::IRGenSILFunction::visitApplyInst C:\Users\PKS\swift-base\toolchain\swift\lib\IRGen\IRGenSIL.cpp:2327:0

#14 0x00007ff67c3ef04a swift::SILInstructionVisitor<`anonymous namespace'::IRGenSILFunction,void>::visit C:\Users\PKS\swift-base\toolchain\swift\include\swift\SIL\SILNodes.def:610:0

#15 0x00007ff67c3fd7bb `anonymous namespace'::IRGenSILFunction::visitSILBasicBlock C:\Users\PKS\swift-base\toolchain\swift\lib\IRGen\IRGenSIL.cpp:1908:0

#16 0x00007ff67c3d8ada `anonymous namespace'::IRGenSILFunction::emitSILFunction C:\Users\PKS\swift-base\toolchain\swift\lib\IRGen\IRGenSIL.cpp:1796:0

#17 0x00007ff67c3d858f swift::irgen::IRGenModule::emitSILFunction(class swift::SILFunction *) C:\Users\PKS\swift-base\toolchain\swift\lib\IRGen\IRGenSIL.cpp:1686:0

#18 0x00007ff67c12d834 swift::irgen::IRGenerator::emitGlobalTopLevel(void) C:\Users\PKS\swift-base\toolchain\swift\lib\IRGen\GenDecl.cpp:1040:0

#19 0x00007ff67c0fb420 performIRGeneration C:\Users\PKS\swift-base\toolchain\swift\lib\IRGen\IRGen.cpp:885:0

#20 0x00007ff67c0fbd61 swift::performIRGeneration(class swift::IRGenOptions &,class swift::ModuleDecl *,class std::unique_ptr<class swift::SILModule,struct std::default_delete<class swift::SILModule> >,class llvm::StringRef,class swift::PrimarySpecificPaths const &,class llvm::LLVMContext &,class llvm::ArrayRef<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class llvm::GlobalVariable * *) C:\Users\PKS\swift-base\toolchain\swift\lib\IRGen\IRGen.cpp:1275:0

#21 0x00007ff67bfec2db generateIR C:\Users\PKS\swift-base\toolchain\swift\lib\FrontendTool\FrontendTool.cpp:1354:0

#22 0x00007ff67bff2363 performCompileStepsPostSILGen C:\Users\PKS\swift-base\toolchain\swift\lib\FrontendTool\FrontendTool.cpp:1599:0

#23 0x00007ff67bff293f performCompileStepsPostSema C:\Users\PKS\swift-base\toolchain\swift\lib\FrontendTool\FrontendTool.cpp:1088:0

#24 0x00007ff67bff18fa performCompile C:\Users\PKS\swift-base\toolchain\swift\lib\FrontendTool\FrontendTool.cpp:1311:0

#25 0x00007ff67bff3a9c swift::performFrontend(class llvm::ArrayRef<char const *>,char const *,void *,class swift::FrontendObserver *) C:\Users\PKS\swift-base\toolchain\swift\lib\FrontendTool\FrontendTool.cpp:2133:0

#26 0x00007ff67beb55f3 run_driver C:\Users\PKS\swift-base\toolchain\swift\tools\driver\driver.cpp:126:0

#27 0x00007ff67beb71db main C:\Users\PKS\swift-base\toolchain\swift\tools\driver\driver.cpp:273:0

#28 0x00007ff683b3e759 invoke_main d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:79:0

#29 0x00007ff683b3e67e __scrt_common_main_seh d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288:0

#30 0x00007ff683b3e53e __scrt_common_main d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:331:0

#31 0x00007ff683b3e7c9 mainCRTStartup d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_main.cpp:17:0

#32 0x00007ffdc6e37bd4 (C:\WINDOWS\System32\KERNEL32.DLL+0x17bd4)

#33 0x00007ffdc850ced1 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x6ced1)

<unknown>:0: error: compile command failed due to signal -2147483645 (use -v to see invocation)
[5585/5632] Generating C:/Users/PKS/swift-base/b/toolchain/./lib/swift/windows/x86_64/Swift.swiftmodule
ninja: build stopped: subcommand failed.

Hmm, the latter error is interesting. Are you sure that you are on the right branch for all the projects? It sounds like your llvm-project checkout might be at the wrong revision.

double checked all branches are correct swift-5.2, I let me do a build again on master.

@compnerd Sadly, I am still getting the same error on master as well.
for 'min(_:_:)' (at C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Algorithm.swift:20:8)
is where it's happening consistently.

Here are the steps I followed
#1 Checkout

git clone https://github.com/apple/llvm-project --branch swift/master toolchain
git clone -c core.autocrlf=input -c core.symlinks=true https://github.com/apple/swift toolchain/swift
git clone https://github.com/apple/swift-cmark toolchain/cmark
git clone https://github.com/apple/swift-corelibs-libdispatch toolchain/swift-corelibs-libdispatch
git clone https://github.com/apple/swift-corelibs-foundation toolchain/swift-corelibs-foundation
git clone https://github.com/apple/swift-corelibs-xctest toolchain/swift-corelibs-xctest
git clone https://github.com/apple/swift-llbuild toolchain/llbuild
git clone -c core.autocrlf=input https://github.com/apple/swift-package-manager toolchain/swift-package-manager
git clone https://github.com/compnerd/windows-swift windows-swift

#2 Created mklink using the command in docs

#3 Build Toolchain

3A

Command: -

`

cmake -B "C:\Users\PKS\swift-base\b\toolchain" -G Ninja -S C:\Users\PKS\swift-base\toolchain\llvm -C C:\Users\PKS\swift-base\windows-swift\cmake\caches\Windows-x86_64.cmake -C C:\Users\PKS\swift-base\windows-swift\cmake\caches\org.compnerd.dt.cmake -DLLVM_ENABLE_ASSERTIONS=NO -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;cmark;swift;lldb;lld" -DLLVM_EXTERNAL_PROJECTS="cmark;swift" -DSWIFT_PATH_TO_LIBDISPATCH_SOURCE=C:\Users\PKS\swift-base\toolchain\swift-corelibs-libdispatch -DLLVM_ENABLE_PDB=YES -DLLDB_DISABLE_PYTHON=YES -DSWIFT_WINDOWS_x86_64_ICU_UC_INCLUDE="C:/Users/PKS/swift-base/Library/icu-64/usr/include" -DSWIFT_WINDOWS_x86_64_ICU_UC="C:/Users/PKS/swift-base/Library/icu-64/usr/lib/icuuc64.lib" -DSWIFT_WINDOWS_x86_64_ICU_I18N_INCLUDE="C:/Users/PKS/swift-base/Library/icu-64/usr/include" -DSWIFT_WINDOWS_x86_64_ICU_I18N="C:/Users/PKS/swift-base/Library/icu-64/usr/lib/icuin64.lib" -DCMAKE_INSTALL_PREFIX="C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr" -DPYTHON_EXECUTABLE=C:\Python27\python.exe -DSWIFT_BUILD_DYNAMIC_STDLIB=YES -DSWIFT_BUILD_DYNAMIC_SDK_OVERLAY=YES
`

##3B

Command:-
ninja -j 10 -C C:\Users\PKS\swift-base\b\toolchain

and then failure.

[5578/5626] Compiling C:/Users/PKS/swift-base/b/toolchain/tools/swift/stdlib/public/core/WINDOWS/x86_64/Swift.obj
FAILED: tools/swift/stdlib/public/core/WINDOWS/x86_64/Swift.obj
cmd.exe /C "cd /D C:\Users\PKS\swift-base\b\toolchain\tools\swift\stdlib\public\core && C:\Python27\python.exe C:/Users/PKS/swift-base/toolchain/swift/utils/line-directive @C:/Users/PKS/swift-base/b/toolchain/tools/swift/stdlib/public/core/KmH6C.txt -- C:/Users/PKS/swift-base/b/toolchain/./bin/swiftc -c -target x86_64-unknown-windows-msvc -resource-dir C:/Users/PKS/swift-base/b/toolchain/./lib/swift -Onone -g -D INTERNAL_CHECKS_ENABLED -I C:/Users/PKS/swift-base/b/toolchain/./lib/swift/windows/x86_64 -module-cache-path C:/Users/PKS/swift-base/b/toolchain/./module-cache -no-link-objc-runtime -enable-library-evolution -Xfrontend -enable-ownership-stripping-after-serialization -Xfrontend -enforce-exclusivity=unchecked -nostdimport -parse-stdlib -module-name Swift -Xfrontend -group-info-path -Xfrontend C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/GroupInfo.json -swift-version 5 -runtime-compatibility-version none -disable-autolinking-runtime-compatibility-dynamic-replacements -warn-swift3-objc-inference-complete -Xfrontend -verify-syntax-tree -Xllvm -sil-inline-generics -Xllvm -sil-partial-specialization -Xcc -DswiftCore_EXPORTS -warn-implicit-overrides -D_WINDLL -DswiftCore_EXPORTS -Xcc -isystem -Xcc "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\/include" -Xcc -isystem -Xcc "C:\Program Files (x86)\Windows Kits\10\/Include/10.0.18362.0/ucrt" -Xcc -isystem -Xcc "C:\Program Files (x86)\Windows Kits\10\/Include/10.0.18362.0/shared" -Xcc -isystem -Xcc "C:\Program Files (x86)\Windows Kits\10\/Include/10.0.18362.0/um" -libc MultiThreadedDebugDLL -module-link-name swiftCore -force-single-frontend-invocation -parse-as-library -o C:/Users/PKS/swift-base/b/toolchain/tools/swift/stdlib/public/core/WINDOWS/x86_64/Swift.obj @C:/Users/PKS/swift-base/b/toolchain/tools/swift/stdlib/public/core/KmH6C.txt"
Assertion failed: Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!", file C:\Users\PKS\swift-base\toolchain\llvm\include\llvm/IR/DataLayout.h, line 602

Stack dump:

0.      Program arguments: C:\Users\PKS\swift-base\b\toolchain\bin\swiftc.exe -frontend -c -filelist C:\Users\PKS\AppData\Local\Temp\sources-2381ef -supplementary-output-file-map C:\Users\PKS\AppData\Local\Temp\supplementaryOutputs-42f4b9 -disable-objc-attr-requires-foundation-module -target x86_64-unknown-windows-msvc -disable-objc-interop -I C:/Users/PKS/swift-base/b/toolchain/./lib/swift/windows/x86_64 -warn-swift3-objc-inference-complete -warn-implicit-overrides -enable-library-evolution -g -module-cache-path C:/Users/PKS/swift-base/b/toolchain/./module-cache -module-link-name swiftCore -nostdimport -parse-stdlib -resource-dir C:/Users/PKS/swift-base/b/toolchain/./lib/swift -swift-version 5 -Onone -D INTERNAL_CHECKS_ENABLED -D _WINDLL -D swiftCore_EXPORTS -enable-ownership-stripping-after-serialization -enforce-exclusivity=unchecked -group-info-path C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/GroupInfo.json -verify-syntax-tree -enable-anonymous-context-mangled-names -Xllvm -sil-inline-generics -Xllvm -sil-partial-specialization -Xcc -DswiftCore_EXPORTS -Xcc -isystem -Xcc C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\/include -Xcc -isystem -Xcc C:\Program Files (x86)\Windows Kits\10\/Include/10.0.18362.0/ucrt -Xcc -isystem -Xcc C:\Program Files (x86)\Windows Kits\10\/Include/10.0.18362.0/shared -Xcc -isystem -Xcc C:\Program Files (x86)\Windows Kits\10\/Include/10.0.18362.0/um -autolink-library oldnames -autolink-library msvcrtd -Xcc -D_MT -Xcc -D_DLL -parse-as-library -module-name Swift -o C:/Users/PKS/swift-base/b/toolchain/tools/swift/stdlib/public/core/WINDOWS/x86_64/Swift.obj -runtime-compatibility-version none -disable-autolinking-runtime-compatibility-dynamic-replacements

1.      compnerd.org Swift version 5.2-dev (Swift 4f39d9c749)

2.      Contents of C:\Users\PKS\AppData\Local\Temp\sources-2381ef:

---

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Algorithm.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ArrayBody.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ArrayBuffer.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ArrayBufferProtocol.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ArrayCast.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Array.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ArrayShared.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ArraySlice.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ArrayType.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ASCII.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Assert.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/AssertCommon.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/BidirectionalCollection.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Bitset.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Bool.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/BridgeObjectiveC.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/BridgeStorage.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/BridgingBuffer.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Builtin.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/BuiltinMath.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Character.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/CocoaArray.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Codable.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Collection.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/CollectionAlgorithms.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Comparable.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/CompilerProtocols.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ContiguousArray.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ContiguouslyStored.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ClosedRange.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ContiguousArrayBuffer.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/CString.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/CTypes.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/DebuggerSupport.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Dictionary.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/DictionaryBridging.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/DictionaryBuilder.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/DictionaryCasting.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/DictionaryStorage.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/DictionaryVariant.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/DropWhile.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Dump.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/EmptyCollection.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Equatable.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ErrorType.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ExistentialCollection.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Filter.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/FixedArray.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/FlatMap.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Flatten.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/FloatingPoint.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Hashable.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/AnyHashable.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Hasher.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Hashing.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/HashTable.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ICU.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Identifiable.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Indices.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/InputStream.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/IntegerParsing.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Integers.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Join.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/KeyPath.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/KeyValuePairs.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/LazyCollection.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/LazySequence.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/LegacyABI.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/LifetimeManager.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ManagedBuffer.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Map.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/MemoryLayout.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/UnicodeScalar.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Mirrors.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Misc.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/MutableCollection.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/NativeDictionary.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/NativeSet.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/NewtypeWrapper.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ObjectIdentifier.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Optional.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/OptionSet.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/OutputStream.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Pointer.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Policy.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/PrefixWhile.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Print.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Random.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/RandomAccessCollection.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Range.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/RangeReplaceableCollection.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ReflectionMirror.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Repeat.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/REPL.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Result.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Reverse.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Runtime.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/RuntimeFunctionCounters.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/SipHash.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Sequence.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/SequenceAlgorithms.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Set.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/SetAlgebra.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/SetAnyHashableExtensions.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/SetBridging.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/SetBuilder.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/SetCasting.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/SetStorage.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/SetVariant.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ShadowProtocols.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Shims.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Slice.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/SmallString.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Sort.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StaticString.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Stride.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringHashable.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/String.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringBreadcrumbs.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringBridge.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringCharacterView.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringComparable.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringComparison.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringCreate.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringGuts.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringGutsSlice.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringGutsRangeReplaceable.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringObject.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringProtocol.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringIndex.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringIndexConversions.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringInterpolation.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringLegacy.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringNormalization.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringRangeReplaceableCollection.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringStorage.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringStorageBridge.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringSwitch.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringTesting.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringUnicodeScalarView.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringUTF16View.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringUTF8View.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringUTF8Validation.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Substring.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/SwiftNativeNSArray.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ThreadLocalStorage.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/UIntBuffer.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/UnavailableStringAPIs.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/UnicodeEncoding.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/UnicodeHelpers.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/UnicodeParser.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/UnicodeScalarProperties.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/CharacterProperties.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Unmanaged.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/UnmanagedOpaqueString.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/UnmanagedString.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/UnsafePointer.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/UnsafeRawPointer.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/UTFEncoding.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/UTF8.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/UTF16.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/UTF32.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Unicode.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/StringGraphemeBreaking.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/ValidUTF8Buffer.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/WriteBackMutableSlice.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/MigrationSupport.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Availability.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/CollectionDifference.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/CollectionOfOne.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Diffing.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Mirror.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/PlaygroundDisplay.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/CommandLine.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/SliceBuffer.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/SIMDVector.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/UnfoldSequence.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/VarArgs.swift

C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Zip.swift

C:/Users/PKS/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/AtomicInt.swift

C:/Users/PKS/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/FloatingPointParsing.swift

C:/Users/PKS/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/FloatingPointTypes.swift

C:/Users/PKS/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/IntegerTypes.swift

C:/Users/PKS/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/UnsafeBufferPointer.swift

C:/Users/PKS/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/UnsafeRawBufferPointer.swift

C:/Users/PKS/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/SIMDVectorTypes.swift

C:/Users/PKS/swift-base/b/toolchain/tools/swift/stdlib/public/core/8/Tuple.swift

---

3.      While emitting IR SIL function "@$ss3minyxx_xtSLRzlF".

 for 'min(_:_:)' (at C:/Users/PKS/swift-base/toolchain/swift/stdlib/public/core/Algorithm.swift:20:8)

 #0 0x00007ff680795d2c HandleAbort C:\Users\PKS\swift-base\toolchain\llvm\lib\Support\Windows\Signals.inc:408:0

 #1 0x00007ffd9712c3e1 (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0x6c3e1)
 
 #2 0x00007ffd9712e039 (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0x6e039)
 
 #3 0x00007ffd9713386f (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0x7386f)
 
 #4 0x00007ffd97131841 (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0x71841)
 
 #5 0x00007ffd971341cf (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0x741cf)
 
 #6 0x00007ff678d6b71c llvm::DataLayout::getTypeSizeInBits(class llvm::Type *)const  C:\Users\PKS\swift-base\toolchain\llvm\include\llvm\IR\DataLayout.h:602:0
 
 #7 0x00007ff678f562d9 swift::irgen::allocateForCoercion(class swift::irgen::IRGenFunction &,class llvm::Type *,class llvm::Type *,class llvm::Twine const &) C:\Users\PKS\swift-base\toolchain\swift\lib\IRGen\GenCall.cpp:2945:0
 
 #8 0x00007ff678f5740d swift::irgen::IRGenFunction::coerceValue(class llvm::Value *,class llvm::Type *,class llvm::DataLayout const &) C:\Users\PKS\swift-base\toolchain\swift\lib\IRGen\GenCall.cpp:2985:0
 
 #9 0x00007ff678f59c21 swift::irgen::CallEmission::emitCallSite(void) C:\Users\PKS\swift-base\toolchain\swift\lib\IRGen\GenCall.cpp:1602:0

#10 0x00007ff678f5df8c swift::irgen::CallEmission::emitYieldsToExplosion(class swift::irgen::Explosion &) C:\Users\PKS\swift-base\toolchain\swift\lib\IRGen\GenCall.cpp:1721:0

#11 0x00007ff678f5cb57 swift::irgen::CallEmission::emitToExplosion(class swift::irgen::Explosion &,bool) C:\Users\PKS\swift-base\toolchain\swift\lib\IRGen\GenCall.cpp:1802:0

#12 0x00007ff679116ada `anonymous namespace'::IRGenSILFunction::visitFullApplySite C:\Users\PKS\swift-base\toolchain\swift\lib\IRGen\IRGenSIL.cpp:2409:0

#13 0x00007ff679111049 `anonymous namespace'::IRGenSILFunction::visitApplyInst C:\Users\PKS\swift-base\toolchain\swift\lib\IRGen\IRGenSIL.cpp:2327:0

#14 0x00007ff67910f10a swift::SILInstructionVisitor<`anonymous namespace'::IRGenSILFunction,void>::visit C:\Users\PKS\swift-base\toolchain\swift\include\swift\SIL\SILNodes.def:610:0

#15 0x00007ff67911d87b `anonymous namespace'::IRGenSILFunction::visitSILBasicBlock C:\Users\PKS\swift-base\toolchain\swift\lib\IRGen\IRGenSIL.cpp:1908:0

#16 0x00007ff6790f8b9a `anonymous namespace'::IRGenSILFunction::emitSILFunction C:\Users\PKS\swift-base\toolchain\swift\lib\IRGen\IRGenSIL.cpp:1796:0

#17 0x00007ff6790f864f swift::irgen::IRGenModule::emitSILFunction(class swift::SILFunction *) C:\Users\PKS\swift-base\toolchain\swift\lib\IRGen\IRGenSIL.cpp:1686:0

#18 0x00007ff678e4d934 swift::irgen::IRGenerator::emitGlobalTopLevel(void) C:\Users\PKS\swift-base\toolchain\swift\lib\IRGen\GenDecl.cpp:1040:0

#19 0x00007ff678e1b520 performIRGeneration C:\Users\PKS\swift-base\toolchain\swift\lib\IRGen\IRGen.cpp:885:0

#20 0x00007ff678e1be61 swift::performIRGeneration(class swift::IRGenOptions &,class swift::ModuleDecl *,class std::unique_ptr<class swift::SILModule,struct std::default_delete<class swift::SILModule> >,class llvm::StringRef,class swift::PrimarySpecificPaths const &,class llvm::LLVMContext &,class llvm::ArrayRef<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class llvm::GlobalVariable * *) C:\Users\PKS\swift-base\toolchain\swift\lib\IRGen\IRGen.cpp:1275:0

#21 0x00007ff678d0c3bb generateIR C:\Users\PKS\swift-base\toolchain\swift\lib\FrontendTool\FrontendTool.cpp:1354:0

#22 0x00007ff678d12443 performCompileStepsPostSILGen C:\Users\PKS\swift-base\toolchain\swift\lib\FrontendTool\FrontendTool.cpp:1599:0

#23 0x00007ff678d12a1f performCompileStepsPostSema C:\Users\PKS\swift-base\toolchain\swift\lib\FrontendTool\FrontendTool.cpp:1088:0

#24 0x00007ff678d119da performCompile C:\Users\PKS\swift-base\toolchain\swift\lib\FrontendTool\FrontendTool.cpp:1311:0

#25 0x00007ff678d13b7c swift::performFrontend(class llvm::ArrayRef<char const *>,char const *,void *,class swift::FrontendObserver *) C:\Users\PKS\swift-base\toolchain\swift\lib\FrontendTool\FrontendTool.cpp:2133:0

#26 0x00007ff678bd55f3 run_driver C:\Users\PKS\swift-base\toolchain\swift\tools\driver\driver.cpp:126:0

#27 0x00007ff678bd71db main C:\Users\PKS\swift-base\toolchain\swift\tools\driver\driver.cpp:273:0

#28 0x00007ff680869f19 invoke_main d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:79:0

#29 0x00007ff680869e3e __scrt_common_main_seh d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288:0

#30 0x00007ff680869cfe __scrt_common_main d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:331:0

#31 0x00007ff680869f89 mainCRTStartup d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_main.cpp:17:0

#32 0x00007ffdd3027bd4 (C:\WINDOWS\System32\KERNEL32.DLL+0x17bd4)

#33 0x00007ffdd4e0ced1 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x6ced1)

<unknown>:0: error: compile command failed due to signal -2147483645 (use -v to see invocation)
[5579/5626] Generating C:/Users/PKS/swift-base/b/toolchain/./lib/swift/windows/x86_64/Swift.swiftmodule
ninja: build stopped: subcommand failed.

Let me know if you need the full console logs, I have saved it. Seems like I can't attache txt files here.

I don’t think that the console logs will help here. It would need to be the full build tree, so that the error can be diagnosed. I’m really curious as to what is the difference between the bullies. Can you get the version of the toolset? That might be a difference.

  • Visual Studio 2019 (16.4.1)
  • Windows 10 SDK (10.0.17763.0)
  • Windows 10 SDK (10.0.18362.0)
  • MSVC v142 - VS C ++ x64/x86 build tools (14.24)

Based on the docs these are the only relevant packages. Let me know if I have missed a package/tool I will get the version.

The MSVC Toolset version is going to be more than just 14.24 when you are building. But, that version of VS2019 is what I am using personally, so Im very confused as to what is different.

14.24.28314 I believe, Based on the path its installed C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe
or maybe 19.24.28314

Sorry about this getting dropped. I am wondering if you are still encountering this issue. We should ensure that the problem is resolved if it has not already been.

I faced exactly the same problem just today. (I'm newbie and followed swift/WindowsBuild.md at main · apple/swift · GitHub and swift/utils/build-windows-toolchain.bat) Could somebody explain what's wrong and how to fix?

My config:

  • Visual Studio 2019 (16.10.0)
  • Windows 10 SDK (10.0.19041.0)
  • MSVC v142 - VS C ++ x64/x86 build tools (14.29)
[150/252] Compiling T:/2/stdlib/public/core//WINDOWS/x86_64/Swift.obj
FAILED: stdlib/public/core/WINDOWS/x86_64/Swift.obj T:/2/stdlib/public/core/WINDOWS/x86_64/Swift.obj
cmd.exe /C "cd /D T:\2\stdlib\public\core && D:\WORK\Utilities\Python\python.exe D:/WORK/LLVM/swift-project/swift/utils/line-directive @T:/2/stdlib/public/core/1f3dd42088d216fba1eeeb715f8749d1b8a57dee.txt -- T:\1\bin/swiftc.exe -c -target x86_64-unknown-windows-msvc -resource-dir T:/2/./lib/swift -Onone -g -D INTERNAL_CHECKS_ENABLED -D SWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY -D SWIFT_ENABLE_EXPERIMENTAL_DISTRIBUTED -D SWIFT_ENABLE_EXPERIMENTAL_DIFFERENTIABLE_PROGRAMMING -D SWIFT_ENABLE_EXPERIMENTAL_STRING_PROCESSING -D SWIFT_RUNTIME_OS_VERSIONING -D SWIFT_STDLIB_ENABLE_UNICODE_DATA -D SWIFT_STDLIB_HAS_COMMANDLINE -D SWIFT_STDLIB_HAS_STDIN -D SWIFT_STDLIB_HAS_ENVIRON -Xcc -DSWIFT_STDLIB_HAS_ENVIRON -module-cache-path T:/2/./module-cache -no-link-objc-runtime -enable-library-evolution -Xfrontend -enforce-exclusivity=unchecked -D SWIFT_ENABLE_REFLECTION -nostdimport -parse-stdlib -module-name Swift -Xfrontend -group-info-path -Xfrontend D:/WORK/LLVM/swift-project/swift/stdlib/public/core/GroupInfo.json -swift-version 5 -runtime-compatibility-version none -disable-autolinking-runtime-compatibility-dynamic-replacements -Xfrontend -disable-autolinking-runtime-compatibility-concurrency -warn-swift3-objc-inference-complete -Xfrontend -disable-objc-interop -Xfrontend -verify-syntax-tree -Xllvm -sil-inline-generics -Xllvm -sil-partial-specialization -Xfrontend -enable-experimental-concise-pound-file -Xcc -DswiftCore_EXPORTS -Xfrontend -define-availability -Xfrontend "SwiftStdlib 9999:macOS 9999, iOS 9999, watchOS 9999, tvOS 9999" -Xfrontend -define-availability -Xfrontend "SwiftStdlib 5.0:macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2" -Xfrontend -define-availability -Xfrontend "SwiftStdlib 5.1:macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0" -Xfrontend -define-availability -Xfrontend "SwiftStdlib 5.2:macOS 10.15.4, iOS 13.4, watchOS 6.2, tvOS 13.4" -Xfrontend -define-availability -Xfrontend "SwiftStdlib 5.3:macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0" -Xfrontend -define-availability -Xfrontend "SwiftStdlib 5.4:macOS 11.3, iOS 14.5, watchOS 7.4, tvOS 14.5" -Xfrontend -define-availability -Xfrontend "SwiftStdlib 5.5:macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0" -Xfrontend -define-availability -Xfrontend "SwiftStdlib 5.6:macOS 9999, iOS 9999, watchOS 9999, tvOS 9999" -warn-implicit-overrides -Xfrontend -enable-ossa-modules -Xfrontend -disable-implicit-concurrency-module-import -Xfrontend -disable-implicit-distributed-module-import -D_WINDLL -DswiftCore_EXPORTS -Xcc -Xclang -Xcc -ivfsoverlay -Xcc -Xclang -Xcc T:/2/stdlib/public/core/windows-sdk-vfs-overlay.yaml -Xcc -isystem -Xcc "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\/include" -Xcc -isystem -Xcc "C:\Program Files (x86)\Windows Kits\10\/Include/10.0.19041.0/ucrt" -Xcc -isystem -Xcc "C:\Program Files (x86)\Windows Kits\10\/Include/10.0.19041.0/shared" -Xcc -isystem -Xcc "C:\Program Files (x86)\Windows Kits\10\/Include/10.0.19041.0/um" -libc MultiThreadedDebugDLL -module-link-name swiftCore -whole-module-optimization -parse-as-library -I T:/2/./lib/swift/windows -o T:/2/stdlib/public/core//WINDOWS/x86_64/Swift.obj @T:/2/stdlib/public/core/1f3dd42088d216fba1eeeb715f8749d1b8a57dee.txt"
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the project and the crash backtrace.
Stack dump:
0.      Program arguments: T:\\1\\bin\\swiftc.exe -frontend -c -filelist T:\\tmp\\sources-5dc521 -supplementary-output-file-map T:\\tmp\\supplementaryOutputs-5c8d33 -disable-objc-attr-requires-foundation-module -target x86_64-unknown-windows-msvc -disable-objc-interop -I T:/2/./lib/swift/windows -warn-swift3-objc-inference-complete -warn-implicit-overrides -enable-library-evolution -g -module-cache-path T:/2/./module-cache -module-link-name swiftCore -nostdimport -parse-stdlib -resource-dir T:/2/./lib/swift -swift-version 5 -Onone -D INTERNAL_CHECKS_ENABLED -D SWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY -D SWIFT_ENABLE_EXPERIMENTAL_DISTRIBUTED -D SWIFT_ENABLE_EXPERIMENTAL_DIFFERENTIABLE_PROGRAMMING -D SWIFT_ENABLE_EXPERIMENTAL_STRING_PROCESSING -D SWIFT_RUNTIME_OS_VERSIONING -D SWIFT_STDLIB_ENABLE_UNICODE_DATA -D SWIFT_STDLIB_HAS_COMMANDLINE -D SWIFT_STDLIB_HAS_STDIN -D SWIFT_STDLIB_HAS_ENVIRON -D SWIFT_ENABLE_REFLECTION -D _WINDLL -D swiftCore_EXPORTS -enforce-exclusivity=unchecked -group-info-path D:/WORK/LLVM/swift-project/swift/stdlib/public/core/GroupInfo.json -disable-autolinking-runtime-compatibility-concurrency -disable-objc-interop -verify-syntax-tree -enable-experimental-concise-pound-file -define-availability "SwiftStdlib 9999:macOS 9999, iOS 9999, watchOS 9999, tvOS 9999" -define-availability "SwiftStdlib 5.0:macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2" -define-availability "SwiftStdlib 5.1:macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0" -define-availability "SwiftStdlib 5.2:macOS 10.15.4, iOS 13.4, watchOS 6.2, tvOS 13.4" -define-availability "SwiftStdlib 5.3:macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0" -define-availability "SwiftStdlib 5.4:macOS 11.3, iOS 14.5, watchOS 7.4, tvOS 14.5" -define-availability "SwiftStdlib 5.5:macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0" -define-availability "SwiftStdlib 5.6:macOS 9999, iOS 9999, watchOS 9999, tvOS 9999" -enable-ossa-modules -disable-implicit-concurrency-module-import -disable-implicit-distributed-module-import -enable-anonymous-context-mangled-names -Xllvm -sil-inline-generics -Xllvm -sil-partial-specialization -Xcc -DSWIFT_STDLIB_HAS_ENVIRON -Xcc -DswiftCore_EXPORTS -Xcc -Xclang -Xcc -ivfsoverlay -Xcc -Xclang -Xcc T:/2/stdlib/public/core/windows-sdk-vfs-overlay.yaml -Xcc -isystem -Xcc "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30037\\/include" -Xcc -isystem -Xcc "C:\\Program Files (x86)\\Windows Kits\\10\\/Include/10.0.19041.0/ucrt" -Xcc -isystem -Xcc "C:\\Program Files (x86)\\Windows Kits\\10\\/Include/10.0.19041.0/shared" -Xcc -isystem -Xcc "C:\\Program Files (x86)\\Windows Kits\\10\\/Include/10.0.19041.0/um" -autolink-library oldnames -autolink-library msvcrtd -Xcc -D_MT -Xcc -D_DLL -parse-as-library -module-name Swift -o T:/2/stdlib/public/core//WINDOWS/x86_64/Swift.obj -runtime-compatibility-version none -disable-autolinking-runtime-compatibility-dynamic-replacements
1.      Swift version 5.6-dev (LLVM cb6e652059889c0, Swift f3dd7f729ea0319)
2.      Compiling with the current language version
3.      Contents of T:\tmp\sources-5dc521:
---
D:/WORK/LLVM/swift-project/swift/stdlib/public/core/Algorithm.swift
D:/WORK/LLVM/swift-project/swift/stdlib/public/core/ArrayBody.swift
D:/WORK/LLVM/swift-project/swift/stdlib/public/core/ArrayBuffer.swift

But the real issue is somewhere here IMO (the snippet below in the output):

4.      While evaluating request TypeCheckSourceFileRequest(source_file "D:/WORK/LLVM/swift-project/swift/stdlib/public/core/Algorithm.swift")
5.      While evaluating request TypeCheckFunctionBodyRequest(Swift.(file).min@D:/WORK/LLVM/swift-project/swift/stdlib/public/core/Algorithm.swift:20:13)
6.      While type-checking statement at [D:/WORK/LLVM/swift-project/swift/stdlib/public/core/Algorithm.swift:20:53 - line:26:1] RangeText="{
  // In case `x == y` we pick `x`.
  // This preserves any pre-existing order in case `T` has identity,
  // which is important for e.g. the stability of sorting algorithms.
  // `(min(x, y), max(x, y))` should return `(x, y)` in case `x == y`.
  return y < x ? y : x

"
7.      While type-checking statement at [D:/WORK/LLVM/swift-project/swift/stdlib/public/core/Algorithm.swift:25:3 - line:25:22] RangeText="return y < x ? y : "
8.      While type-checking expression at [D:/WORK/LLVM/swift-project/swift/stdlib/public/core/Algorithm.swift:25:10 - line:25:22] RangeText="y < x ? y : "
9.      While evaluating request GenericSignatureRequest(Swift.(file).Index extension.<@D:/WORK/LLVM/swift-project/swift/stdlib/public/core/ClosedRange.swift:164:22)
10.     While evaluating request GenericSignatureRequest(extension of ClosedRange.Index)
11.     While evaluating request GenericSignatureRequest(Swift.(file).ClosedRange extension.Index@D:/WORK/LLVM/swift-project/swift/stdlib/public/core/ClosedRange.swift:141:15)
12.     While evaluating request GenericSignatureRequest(extension of ClosedRange)
13.     While evaluating request InferredGenericSignatureRequest(Swift, NULL, <Bound>, extension of ClosedRange, {}, {(ClosedRange<Bound>, null)}, 1)
  #0 0x00007ff6a35474ee std::_Debug_lt_pred<<lambda_34fa137904f7cbe707185054ec3eccf6> &,swift::GenericSignatureBuilder::ExplicitRequirement &,swift::GenericSignatureBuilder::ExplicitRequirement &,0> C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include\xutility:1520:0
  #1 0x00007ff6a354d2e2 std::_Insertion_sort_unchecked<swift::GenericSignatureBuilder::ExplicitRequirement *,<lambda_34fa137904f7cbe707185054ec3eccf6> > C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include\algorithm:7245:0
  #2 0x00007ff6a35a5b83 std::stable_sort<swift::GenericSignatureBuilder::ExplicitRequirement *,<lambda_34fa137904f7cbe707185054ec3eccf6> > C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include\algorithm:7811:0
  #3 0x00007ff6a35daaf9 swift::GenericSignatureBuilder::computeRedundantRequirements(class swift::ProtocolDecl const *) D:\WORK\LLVM\swift-project\swift\lib\AST\GenericSignatureBuilder.cpp:5890:0
  #4 0x00007ff6a35da508 swift::GenericSignatureBuilder::computeGenericSignature(bool, class swift::ProtocolDecl const *) && D:\WORK\LLVM\swift-project\swift\lib\AST\GenericSignatureBuilder.cpp:8280:0
  #5 0x00007ff6a35c0b7f <lambda_a4ada92711081621e21a11a13dd5bf5c>::operator() D:\WORK\LLVM\swift-project\swift\lib\AST\GenericSignatureBuilder.cpp:8647:0

The build you are doing is a debug build, I suspect that there are more issues lurking that are unknown/unresolved, and so you will have to debug those and work from there. There have been many patches in the past to fix latent issues, and I suspect that you have found another.