-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
Running any SwiftPM command from an open source toolchain crashes because there are symbols defined both in the system stdlib and the stdlib shipped as part of the toolchain.
This affects both main and 5.7 snapshot toolchains. Things must have broken sometime between 2/22 and 4/4. swift-DEVELOPMENT-SNAPSHOT-2022-02-22-a.xctoolchain
still works while swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain
doesn’t (I don’t have any intermediate toolchains installed to check)
Steps to reproduce
mkdir mypackage
$ cd mypackage
$ swift package init
$ /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/bin/swift package describe
objc[46731]: Class _TtCs27_KeyedEncodingContainerBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85d119558) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c7acd38). One of the two will be used. Which one is undefined.
objc[46731]: Class _TtCs27_KeyedDecodingContainerBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85d119710) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c7acef0). One of the two will be used. Which one is undefined.
objc[46731]: Class _TtCs19__EmptyArrayStorage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85d1181b0) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c79c8d8). One of the two will be used. Which one is undefined.
objc[46731]: Class _TtCVVs17__CocoaDictionary5Index7Storage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85dd76a10) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c7ad100). One of the two will be used. Which one is undefined.
objc[46731]: Class _TtCVs17__CocoaDictionary8Iterator is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85dd76ac8) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c7ad1b8). One of the two will be used. Which one is undefined.
objc[46731]: Class _TtCs22__RawDictionaryStorage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85d1183b8) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c79cb68). One of the two will be used. Which one is undefined.
objc[46731]: Class _TtCs26__EmptyDictionarySingleton is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85d118478) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c79cc48). One of the two will be used. Which one is undefined.
objc[46731]: Class _TtCs24__SwiftEmptyNSEnumerator is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85dd67df8) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c79cec0). One of the two will be used. Which one is undefined.
objc[46731]: Class _TtCs11_AnyKeyPath is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85d119a40) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c7ad3e0). One of the two will be used. Which one is undefined.
objc[46731]: Class _TtCs20__SwiftNativeNSArray is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85d1185f0) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c79cf30). One of the two will be used. Which one is undefined.
objc[46731]: Class _TtCs26_SwiftNativeNSMutableArray is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85d118658) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c79cf98). One of the two will be used. Which one is undefined.
objc[46731]: Class _TtCs25__SwiftNativeNSDictionary is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85d1186c0) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c79d020). One of the two will be used. Which one is undefined.
objc[46731]: Class _TtCs18__SwiftNativeNSSet is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85d118730) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c79d0b0). One of the two will be used. Which one is undefined.
objc[46731]: Class _TtCs25__SwiftNativeNSEnumerator is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85dd67e68) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c79d140). One of the two will be used. Which one is undefined.
objc[46731]: Class _TtCs32__stdlib_ReturnAutoreleasedDummy is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85dd67ed8) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c79d1e8). One of the two will be used. Which one is undefined.
objc[46731]: Class _TtCVVs10__CocoaSet5Index7Storage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85dd76bf8) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c7ad530). One of the two will be used. Which one is undefined.
objc[46731]: Class _TtCVs10__CocoaSet8Iterator is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85d119b68) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c7ad5e8). One of the two will be used. Which one is undefined.
objc[46731]: Class _TtCs15__RawSetStorage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85d118850) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c79d388). One of the two will be used. Which one is undefined.
objc[46731]: Class _TtCs19__EmptySetSingleton is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85d118908) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c79d460). One of the two will be used. Which one is undefined.
objc[46731]: Class _TtCs18_StringBreadcrumbs is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85d119c70) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c7ad6f0). One of the two will be used. Which one is undefined.
objc[46731]: Class _TtCs21__SwiftNativeNSString is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85d118a60) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c79d658). One of the two will be used. Which one is undefined.
objc[46731]: Class _TtCs15__StringStorage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85d118ac8) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c79d6e0). One of the two will be used. Which one is undefined.
objc[46731]: Class _TtCs21__SharedStringStorage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85d118b48) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c79d780). One of the two will be used. Which one is undefined.
objc[46731]: Class _TtCs41__SwiftNativeNSArrayWithContiguousStorage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85d118bd8) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c79da60). One of the two will be used. Which one is undefined.
objc[46731]: Class _TtCs20_SwiftNSMutableArray is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85d118c48) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c79dd38). One of the two will be used. Which one is undefined.
objc[46731]: Class _TtCs22__SwiftDeferredNSArray is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85d118cc0) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c79ddd0). One of the two will be used. Which one is undefined.
objc[46731]: Class _TtCs28__ContiguousArrayStorageBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85d118d48) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c79de90). One of the two will be used. Which one is undefined.
objc[46731]: Class _TtCs15__VaListBuilder is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85d119e00) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c7ad880). One of the two will be used. Which one is undefined.
objc[46731]: Class _TtCs18__stdlib_AtomicInt is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85dd76cb0) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c7ad930). One of the two will be used. Which one is undefined.
objc[46731]: Class __SwiftNSErrorLayoutStandin is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85d118e00) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c79f2f0). One of the two will be used. Which one is undefined.
objc[46731]: Class __SwiftNativeNSError is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85d118e28) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c79f318). One of the two will be used. Which one is undefined.
objc[46731]: Class _TtCs12_SwiftObject is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85d118e78) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c79f368). One of the two will be used. Which one is undefined.
objc[46731]: Class __SwiftValue is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85d118ef0) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c79f3e0). One of the two will be used. Which one is undefined.
objc[46731]: Class __SwiftNull is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85dd696c0) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c79f430). One of the two will be used. Which one is undefined.
objc[46731]: Class SwiftNativeNSObject is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85dd696e8) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c79f458). One of the two will be used. Which one is undefined.
objc[46731]: Class __SwiftNativeNSArrayBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85d118f18) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c79f4a8). One of the two will be used. Which one is undefined.
objc[46731]: Class __SwiftNativeNSMutableArrayBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85d118f68) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c79f4f8). One of the two will be used. Which one is undefined.
objc[46731]: Class __SwiftNativeNSDictionaryBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85d118fb8) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c79f548). One of the two will be used. Which one is undefined.
objc[46731]: Class __SwiftNativeNSSetBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85d119008) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c79f598). One of the two will be used. Which one is undefined.
objc[46731]: Class __SwiftNativeNSStringBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85d119058) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c79f5e8). One of the two will be used. Which one is undefined.
objc[46731]: Class __SwiftNativeNSEnumeratorBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff85d1190a8) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c79f638). One of the two will be used. Which one is undefined.
objc[46731]: Class _TtCs25CheckedContinuationCanary is implemented in both /usr/lib/swift/libswift_Concurrency.dylib (0x7ffb5e6d1858) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswift_Concurrency.dylib (0x10b3131a0). One of the two will be used. Which one is undefined.
objc[46731]: Class _TtCs17DispatchQueueShim is implemented in both /usr/lib/swift/libswift_Concurrency.dylib (0x7ffb5e6d18e8) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswift_Concurrency.dylib (0x10b313230). One of the two will be used. Which one is undefined.
objc[46731]: Class _TtCs9MainActor is implemented in both /usr/lib/swift/libswift_Concurrency.dylib (0x7ffb5e6d1980) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswift_Concurrency.dylib (0x10b3132c8). One of the two will be used. Which one is undefined.
fish: Job 1, '/Library/Developer/Toolchains/s…' terminated by signal SIGSEGV (Address boundary error)
rdar://92784432
Metadata
Metadata
Assignees
Labels
No labels