swiftlang / swift

The Swift Programming Language
https://swift.org
Apache License 2.0
67.62k stars 10.37k forks source link

[Windows] MSVC v143 toolset compatibility #60674

Closed stevapple closed 1 year ago

stevapple commented 2 years ago

Describe the bug The Swift compiler compiled with MSVC 14.32 and newer version isn't capable of compiling the standard library. It will emit the following error:

C:\Users\stevapple>T:\\1\\bin\\swiftc.exe -frontend -emit-module -filelist T:\\tmp\\sources-424fd8 -supplementary-output-file-map T:\\tmp\\supplementaryOutputs-7ea92d -disable-objc-attr-requires-foundation-module -target x86_64-unknown-windows-msvc -warn-on-potentially-unavailable-enum-case -disable-objc-interop -I T:/1/./lib/swift/windows -warn-swift3-objc-inference-complete -warn-implicit-overrides -enable-library-evolution -module-cache-path T:/1/./module-cache -module-link-name swiftCore -nostdimport -parse-stdlib -resource-dir T:/1/./lib/swift -swift-version 5 -tools-directory T:/1/bin -O -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_ENABLE_VECTOR_TYPES -D SWIFT_STDLIB_HAS_COMMANDLINE -D SWIFT_STDLIB_HAS_STDIN -D SWIFT_STDLIB_HAS_ENVIRON -D SWIFT_THREADING_WIN32 -D SWIFT_ENABLE_REFLECTION -D _WINDLL -D swiftCore_EXPORTS -library-level api -enforce-exclusivity=unchecked -group-info-path C:/Users/stevapple/Developer/swift/stdlib/public/core/GroupInfo.json -disable-autolinking-runtime-compatibility-concurrency -disable-objc-interop -verify-syntax-tree -enable-experimental-concise-pound-file -enable-ossa-modules -enable-lexical-lifetimes=false -disable-implicit-concurrency-module-import -disable-implicit-string-processing-module-import -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 12.3, iOS 15.4, watchOS 8.5, tvOS 15.4" -define-availability "SwiftStdlib 5.7:macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0" -define-availability "SwiftStdlib 5.8:macOS 9999, iOS 9999, watchOS 9999, tvOS 9999" -target-min-inlining-version min -Xllvm -sil-inline-generics -Xllvm -sil-partial-specialization -Xcc -DSWIFT_STDLIB_HAS_ENVIRON -Xcc -DswiftCore_EXPORTS -Xcc -isystem -Xcc "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.33.31629\\/include" -Xcc -isystem -Xcc "C:\\Program Files (x86)\\Windows Kits\\10\\/Include/10.0.22621.0/ucrt" -Xcc -isystem -Xcc "C:\\Program Files (x86)\\Windows Kits\\10\\/Include/10.0.22621.0/shared" -Xcc -isystem -Xcc "C:\\Program Files (x86)\\Windows Kits\\10\\/Include/10.0.22621.0/um" -autolink-library oldnames -autolink-library msvcrt -Xcc -D_MT -Xcc -D_DLL -parse-as-library -module-name Swift -o T:/1/./lib/swift/windows/Swift.swiftmodule/x86_64-unknown-windows-msvc.swiftmodule -runtime-compatibility-version none -disable-autolinking-runtime-compatibility-dynamic-replacements
C:/Users/stevapple/Developer/swift/stdlib/public/core/SIMDVector.swift:63:17: warning: protocol 'SIMDScalar' should be declared to refine 'Decodable' due to a same-type constraint on 'Self'
public protocol SIMDScalar {
                ^
C:/Users/stevapple/Developer/swift/stdlib/public/core/SIMDVector.swift:63:17: warning: protocol 'SIMDScalar' should be declared to refine 'Encodable' due to a same-type constraint on 'Self'
public protocol SIMDScalar {
                ^
C:/Users/stevapple/Developer/swift/stdlib/public/core/SIMDVector.swift:63:17: warning: protocol 'SIMDScalar' should be declared to refine 'Hashable' due to a same-type constraint on 'Self'
public protocol SIMDScalar {
                ^
Assertion failed: Val && "isa<> used on a null pointer", file C:\Users\stevapple\Developer\llvm-project\llvm\include\llvm/Support/Casting.h, line 90
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 -emit-module -filelist T:\\\\tmp\\\\sources-424fd8 -supplementary-output-file-map T:\\\\tmp\\\\supplementaryOutputs-7ea92d -disable-objc-attr-requires-foundation-module -target x86_64-unknown-windows-msvc -warn-on-potentially-unavailable-enum-case -disable-objc-interop -I T:/1/./lib/swift/windows -warn-swift3-objc-inference-complete -warn-implicit-overrides -enable-library-evolution -module-cache-path T:/1/./module-cache -module-link-name swiftCore -nostdimport -parse-stdlib -resource-dir T:/1/./lib/swift -swift-version 5 -tools-directory T:/1/bin -O -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_ENABLE_VECTOR_TYPES -D SWIFT_STDLIB_HAS_COMMANDLINE -D SWIFT_STDLIB_HAS_STDIN -D SWIFT_STDLIB_HAS_ENVIRON -D SWIFT_THREADING_WIN32 -D SWIFT_ENABLE_REFLECTION -D _WINDLL -D swiftCore_EXPORTS -library-level api -enforce-exclusivity=unchecked -group-info-path C:/Users/stevapple/Developer/swift/stdlib/public/core/GroupInfo.json -disable-autolinking-runtime-compatibility-concurrency -disable-objc-interop -verify-syntax-tree -enable-experimental-concise-pound-file -enable-ossa-modules -enable-lexical-lifetimes=false -disable-implicit-concurrency-module-import -disable-implicit-string-processing-module-import -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 12.3, iOS 15.4, watchOS 8.5, tvOS 15.4" -define-availability "SwiftStdlib 5.7:macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0" -define-availability "SwiftStdlib 5.8:macOS 9999, iOS 9999, watchOS 9999, tvOS 9999" -target-min-inlining-version min -Xllvm -sil-inline-generics -Xllvm -sil-partial-specialization -Xcc -DSWIFT_STDLIB_HAS_ENVIRON -Xcc -DswiftCore_EXPORTS -Xcc -isystem -Xcc "C:\\\\Program Files\\\\Microsoft Visual Studio\\\\2022\\\\Community\\\\VC\\\\Tools\\\\MSVC\\\\14.33.31629\\\\/include" -Xcc -isystem -Xcc "C:\\\\Program Files (x86)\\\\Windows Kits\\\\10\\\\/Include/10.0.22621.0/ucrt" -Xcc -isystem -Xcc "C:\\\\Program Files (x86)\\\\Windows Kits\\\\10\\\\/Include/10.0.22621.0/shared" -Xcc -isystem -Xcc "C:\\\\Program Files (x86)\\\\Windows Kits\\\\10\\\\/Include/10.0.22621.0/um" -autolink-library oldnames -autolink-library msvcrt -Xcc -D_MT -Xcc -D_DLL -parse-as-library -module-name Swift -o T:/1/./lib/swift/windows/Swift.swiftmodule/x86_64-unknown-windows-msvc.swiftmodule -runtime-compatibility-version none -disable-autolinking-runtime-compatibility-dynamic-replacements
1.      swift.org Swift version 5.8-dev (LLVM bd4507754260475, Swift e8a719ed014deca)
2.      Compiling with the current language version
3.      Contents of T:\\tmp\\sources-424fd8:
---
C:/Users/stevapple/Developer/swift/stdlib/public/core/Algorithm.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/ArrayBody.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/ArrayBuffer.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/ArrayBufferProtocol.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/ArrayCast.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Array.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/ArrayShared.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/ArraySlice.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/ArrayType.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/ASCII.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Assert.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/AssertCommon.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/BidirectionalCollection.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Bitset.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Bool.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/BridgeObjectiveC.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/BridgeStorage.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/BridgingBuffer.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Builtin.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/BuiltinMath.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Character.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/CocoaArray.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Codable.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Collection.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/CollectionAlgorithms.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Comparable.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/CompilerProtocols.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Sendable.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/ContiguousArray.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/ContiguouslyStored.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/ClosedRange.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/ContiguousArrayBuffer.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/CString.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/CTypes.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/DebuggerSupport.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Dictionary.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/DictionaryBridging.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/DictionaryBuilder.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/DictionaryCasting.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/DictionaryStorage.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/DictionaryVariant.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/DropWhile.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Dump.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/EmptyCollection.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Equatable.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/ErrorType.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/ExistentialCollection.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Filter.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/FixedArray.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/FlatMap.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Flatten.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/FloatingPoint.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Hashable.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/AnyHashable.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Hasher.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Hashing.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/HashTable.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Identifiable.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Indices.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/InputStream.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/IntegerParsing.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Integers.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Join.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/KeyPath.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/KeyValuePairs.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/LazyCollection.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/LazySequence.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/LegacyABI.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/LifetimeManager.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/ManagedBuffer.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Map.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/MemoryLayout.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/UnicodeScalar.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Mirrors.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Misc.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/MutableCollection.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/NativeDictionary.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/NativeSet.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/NewtypeWrapper.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/NFC.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/NFD.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/ObjectIdentifier.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Optional.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/OptionSet.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/OutputStream.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Pointer.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Policy.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/PrefixWhile.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Prespecialize.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Print.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/PtrAuth.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Random.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/RandomAccessCollection.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Range.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/RangeReplaceableCollection.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/ReflectionMirror.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Repeat.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/REPL.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Result.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Reverse.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Runtime.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/RuntimeFunctionCounters.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/SipHash.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Sequence.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/SequenceAlgorithms.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Set.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/SetAlgebra.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/SetAnyHashableExtensions.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/SetBridging.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/SetBuilder.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/SetCasting.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/SetStorage.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/SetVariant.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/ShadowProtocols.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Shims.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Slice.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/SmallString.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Sort.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/StaticString.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/StaticPrint.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Stride.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/StringHashable.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/String.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/StringBreadcrumbs.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/StringBridge.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/StringCharacterView.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/StringComparable.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/StringComparison.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/StringCreate.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/StringGuts.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/StringGutsSlice.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/StringGutsRangeReplaceable.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/StringObject.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/StringProtocol.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/StringIndex.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/StringIndexConversions.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/StringIndexValidation.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/StringInterpolation.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/StringLegacy.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/StringNormalization.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/StringRangeReplaceableCollection.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/StringStorage.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/StringStorageBridge.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/StringSwitch.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/StringTesting.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/StringUnicodeScalarView.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/StringUTF16View.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/StringUTF8View.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/StringUTF8Validation.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/StringWordBreaking.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Substring.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/SwiftNativeNSArray.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/TemporaryAllocation.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/ThreadLocalStorage.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/UIntBuffer.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/UnavailableStringAPIs.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/UnicodeData.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/UnicodeEncoding.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/UnicodeBreakProperty.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/UnicodeHelpers.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/UnicodeParser.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/UnicodeScalarProperties.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/CharacterProperties.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/UnicodeSPI.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Unmanaged.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/UnmanagedOpaqueString.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/UnmanagedString.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/UnsafePointer.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/UnsafeRawPointer.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/UTFEncoding.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/UTF8.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/UTF16.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/UTF32.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Unicode.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/StringGraphemeBreaking.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/ValidUTF8Buffer.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/WriteBackMutableSlice.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/MigrationSupport.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Availability.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/CollectionDifference.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/CollectionOfOne.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Diffing.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Duration.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/DurationProtocol.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/FloatingPointRandom.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Instant.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Mirror.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/PlaygroundDisplay.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/CommandLine.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/SliceBuffer.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/UnfoldSequence.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/VarArgs.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/Zip.swift
C:/Users/stevapple/Developer/swift/stdlib/public/core/SIMDVector.swift
T:/1/tools/swift/stdlib/public/core/8/AtomicInt.swift
T:/1/tools/swift/stdlib/public/core/8/FloatingPointParsing.swift
T:/1/tools/swift/stdlib/public/core/8/FloatingPointTypes.swift
T:/1/tools/swift/stdlib/public/core/8/IntegerTypes.swift
T:/1/tools/swift/stdlib/public/core/8/UnsafeBufferPointer.swift
T:/1/tools/swift/stdlib/public/core/8/UnsafeRawBufferPointer.swift
T:/1/tools/swift/stdlib/public/core/8/Int128.swift
T:/1/tools/swift/stdlib/public/core/8/Tuple.swift
T:/1/tools/swift/stdlib/public/core/8/SIMDConcreteOperations.swift
T:/1/tools/swift/stdlib/public/core/8/SIMDVectorTypes.swift
---
4.      While evaluating request ExecuteSILPipelineRequest(Run pipelines { Mandatory Diagnostic Passes + Enabling Optimization Passes } on SIL for Swift)
 #0 0x00007ff66454e4e5 (T:\1\bin\swiftc.exe+0x516e4e5)
 #1 0x00007ffe07ed1881 (C:\windows\System32\ucrtbase.dll+0x71881)
 #2 0x00007ffe07ed2851 (C:\windows\System32\ucrtbase.dll+0x72851)
 #3 0x00007ffe07ed426e (C:\windows\System32\ucrtbase.dll+0x7426e)
 #4 0x00007ffe07ed4165 (C:\windows\System32\ucrtbase.dll+0x74165)
 #5 0x00007ffe07ed44f1 (C:\windows\System32\ucrtbase.dll+0x744f1)
 #6 0x00007ff65f5b52dd (T:\1\bin\swiftc.exe+0x1d52dd)
 #7 0x00007ff65f5ba20a (T:\1\bin\swiftc.exe+0x1da20a)
 #8 0x00007ff66001101d (T:\1\bin\swiftc.exe+0xc3101d)
 #9 0x00007ff66001232b (T:\1\bin\swiftc.exe+0xc3232b)
#10 0x00007ff660012df4 (T:\1\bin\swiftc.exe+0xc32df4)
#11 0x00007ff65fcc3247 (T:\1\bin\swiftc.exe+0x8e3247)
#12 0x00007ff65fcc4504 (T:\1\bin\swiftc.exe+0x8e4504)
#13 0x00007ff65fcc2be7 (T:\1\bin\swiftc.exe+0x8e2be7)
#14 0x00007ff65fcc2ea4 (T:\1\bin\swiftc.exe+0x8e2ea4)
#15 0x00007ff65fcc28d7 (T:\1\bin\swiftc.exe+0x8e28d7)
#16 0x00007ff65fc87a6d (T:\1\bin\swiftc.exe+0x8a7a6d)
#17 0x00007ff65fcbf2eb (T:\1\bin\swiftc.exe+0x8df2eb)
#18 0x00007ff65fcc2f44 (T:\1\bin\swiftc.exe+0x8e2f44)
#19 0x00007ff65fc87728 (T:\1\bin\swiftc.exe+0x8a7728)
#20 0x00007ff65f51f2d4 (T:\1\bin\swiftc.exe+0x13f2d4)
#21 0x00007ff65f4dabcd (T:\1\bin\swiftc.exe+0xfabcd)
#22 0x00007ff65f4db6c9 (T:\1\bin\swiftc.exe+0xfb6c9)
#23 0x00007ff65f4da4f0 (T:\1\bin\swiftc.exe+0xfa4f0)
#24 0x00007ff65f4dcd22 (T:\1\bin\swiftc.exe+0xfcd22)
#25 0x00007ff65f470e83 (T:\1\bin\swiftc.exe+0x90e83)
#26 0x00007ff65f4709a0 (T:\1\bin\swiftc.exe+0x909a0)
#27 0x00007ff6645bb60c (T:\1\bin\swiftc.exe+0x51db60c)
#28 0x00007ffe08867034 (C:\windows\System32\KERNEL32.DLL+0x17034)
#29 0x00007ffe0a1e2651 (C:\windows\SYSTEM32\ntdll.dll+0x52651)

Steps To Reproduce Steps to reproduce the behavior:

  1. Install and pick up MSVC v143 (14.32 or latest) toolset in Command Prompt.
  2. Run utils\build-windows-toolchain.bat.

Expected behavior Since 14.32 is a minor update within the v143 toolset, it shouldn't have breaking changes. The compiler should function the same.

Environment

Additional Context To work around the problem, fix MSVC version to 14.31, or use Visual Studio 2019 (v142) instead.

stevapple commented 2 years ago

This thread is also used to track the compatibility with future v143 toolsets.

See also compnerd/swift-build#430

stevapple commented 2 years ago

Looks like it is getting fixed in 14.33.31629, but we shall wait for CI confirmation.

stevapple commented 2 years ago

Looks like there’s something wrong in Swift’s compiler code base, still need investigating.