Skip to content

Invoking SwiftPM from open source toolchain crashes because symbols are defined both in system stdlib and toolchain stdlib #5467

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ahoppen opened this issue May 5, 2022 · 18 comments
Assignees

Comments

@ahoppen
Copy link
Member

ahoppen commented May 5, 2022

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

@tomerd
Copy link
Contributor

tomerd commented May 5, 2022

@ahoppen could this be a problem specific to your setup? we have tests that validate the nightly toolchains including that SwiftPM is functional, and I would be surprised if we did not hear about this before.

cc @shahmishal @abertelrud in case they have insight

@ahoppen
Copy link
Member Author

ahoppen commented May 5, 2022

I don’t think this is specific to my setup. It was brought to my attention by @kimdv and he’s seeing the same issue.

@dylansturg
Copy link

I'm seeing a very similar issue when trying to build swift-format using SwiftPM with an open source toolchain. I've tried the following open source toolchains, and gotten the same results in both:

  • swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain
  • swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain
$ export TOOLCHAINS='org.swift.57202205041a'
$ swift package build swift-format
objc[2629]: Class _TtCs27_KeyedEncodingContainerBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2fa518) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x108970d38). One of the two will be used. Which one is undefined.
objc[2629]: Class _TtCs27_KeyedDecodingContainerBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2fa6d0) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x108970ef0). One of the two will be used. Which one is undefined.
objc[2629]: Class _TtCs19__EmptyArrayStorage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9170) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x1089608d8). One of the two will be used. Which one is undefined.
objc[2629]: Class _TtCVVs17__CocoaDictionary5Index7Storage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84cf58da0) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x108971100). One of the two will be used. Which one is undefined.
objc[2629]: Class _TtCVs17__CocoaDictionary8Iterator is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84cf58e58) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x1089711b8). One of the two will be used. Which one is undefined.
objc[2629]: Class _TtCs22__RawDictionaryStorage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9378) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x108960b68). One of the two will be used. Which one is undefined.
objc[2629]: Class _TtCs26__EmptyDictionarySingleton is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9438) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x108960c48). One of the two will be used. Which one is undefined.
objc[2629]: Class _TtCs24__SwiftEmptyNSEnumerator is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84cf4a188) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x108960ec0). One of the two will be used. Which one is undefined.
objc[2629]: Class _TtCs11_AnyKeyPath is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2faa00) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x1089713e0). One of the two will be used. Which one is undefined.
objc[2629]: Class _TtCs20__SwiftNativeNSArray is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f95b0) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x108960f30). One of the two will be used. Which one is undefined.
objc[2629]: Class _TtCs26_SwiftNativeNSMutableArray is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9618) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x108960f98). One of the two will be used. Which one is undefined.
objc[2629]: Class _TtCs25__SwiftNativeNSDictionary is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9680) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x108961020). One of the two will be used. Which one is undefined.
objc[2629]: Class _TtCs18__SwiftNativeNSSet is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f96f0) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x1089610b0). One of the two will be used. Which one is undefined.
objc[2629]: Class _TtCs25__SwiftNativeNSEnumerator is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84cf4a1f8) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x108961140). One of the two will be used. Which one is undefined.
objc[2629]: Class _TtCs32__stdlib_ReturnAutoreleasedDummy is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84cf4a268) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x1089611e8). One of the two will be used. Which one is undefined.
objc[2629]: Class _TtCVVs10__CocoaSet5Index7Storage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84cf58f88) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x108971530). One of the two will be used. Which one is undefined.
objc[2629]: Class _TtCVs10__CocoaSet8Iterator is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2fab28) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x1089715e8). One of the two will be used. Which one is undefined.
objc[2629]: Class _TtCs15__RawSetStorage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9810) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x108961388). One of the two will be used. Which one is undefined.
objc[2629]: Class _TtCs19__EmptySetSingleton is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f98c8) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x108961460). One of the two will be used. Which one is undefined.
objc[2629]: Class _TtCs18_StringBreadcrumbs is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2fac30) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x1089716f0). One of the two will be used. Which one is undefined.
objc[2629]: Class _TtCs21__SwiftNativeNSString is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9a20) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x108961658). One of the two will be used. Which one is undefined.
objc[2629]: Class _TtCs15__StringStorage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9a88) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x1089616e0). One of the two will be used. Which one is undefined.
objc[2629]: Class _TtCs21__SharedStringStorage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9b08) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x108961780). One of the two will be used. Which one is undefined.
objc[2629]: Class _TtCs41__SwiftNativeNSArrayWithContiguousStorage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9b98) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x108961a60). One of the two will be used. Which one is undefined.
objc[2629]: Class _TtCs20_SwiftNSMutableArray is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9c08) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x108961d38). One of the two will be used. Which one is undefined.
objc[2629]: Class _TtCs22__SwiftDeferredNSArray is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9c80) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x108961dd0). One of the two will be used. Which one is undefined.
objc[2629]: Class _TtCs28__ContiguousArrayStorageBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9d08) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x108961e90). One of the two will be used. Which one is undefined.
objc[2629]: Class _TtCs15__VaListBuilder is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2fadc0) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x108971880). One of the two will be used. Which one is undefined.
objc[2629]: Class _TtCs18__stdlib_AtomicInt is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84cf59040) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x108971930). One of the two will be used. Which one is undefined.
objc[2629]: Class __SwiftNSErrorLayoutStandin is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9dc0) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x1089632f0). One of the two will be used. Which one is undefined.
objc[2629]: Class __SwiftNativeNSError is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9de8) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x108963318). One of the two will be used. Which one is undefined.
objc[2629]: Class _TtCs12_SwiftObject is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9e38) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x108963368). One of the two will be used. Which one is undefined.
objc[2629]: Class __SwiftValue is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9eb0) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x1089633e0). One of the two will be used. Which one is undefined.
objc[2629]: Class __SwiftNull is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84cf4ba50) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x108963430). One of the two will be used. Which one is undefined.
objc[2629]: Class SwiftNativeNSObject is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84cf4ba78) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x108963458). One of the two will be used. Which one is undefined.
objc[2629]: Class __SwiftNativeNSArrayBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9ed8) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x1089634a8). One of the two will be used. Which one is undefined.
objc[2629]: Class __SwiftNativeNSMutableArrayBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9f28) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x1089634f8). One of the two will be used. Which one is undefined.
objc[2629]: Class __SwiftNativeNSDictionaryBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9f78) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x108963548). One of the two will be used. Which one is undefined.
objc[2629]: Class __SwiftNativeNSSetBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9fc8) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x108963598). One of the two will be used. Which one is undefined.
objc[2629]: Class __SwiftNativeNSStringBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2fa018) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x1089635e8). One of the two will be used. Which one is undefined.
objc[2629]: Class __SwiftNativeNSEnumeratorBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2fa068) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x108963638). One of the two will be used. Which one is undefined.
objc[2629]: Class _TtCs25CheckedContinuationCanary is implemented in both /usr/lib/swift/libswift_Concurrency.dylib (0x7ffb4d8a1d88) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswift_Concurrency.dylib (0x106d811a0). One of the two will be used. Which one is undefined.
objc[2629]: Class _TtCs17DispatchQueueShim is implemented in both /usr/lib/swift/libswift_Concurrency.dylib (0x7ffb4d8a1e18) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswift_Concurrency.dylib (0x106d81230). One of the two will be used. Which one is undefined.
objc[2629]: Class _TtCs9MainActor is implemented in both /usr/lib/swift/libswift_Concurrency.dylib (0x7ffb4d8a1eb0) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswift_Concurrency.dylib (0x106d812c8). One of the two will be used. Which one is undefined.
Segmentation fault: 11

@tomerd
Copy link
Contributor

tomerd commented May 5, 2022

interesting. this works fine for me?

/tmp/swift-format ± main
❯  export TOOLCHAINS='org.swift.57202205041a'
/tmp/swift-format ± main
❯ swift --version
Apple Swift version 5.7-dev (LLVM 291b5c5e07e215b, Swift 5aa05b27dd8e6ff)
Target: x86_64-apple-macosx12.0
/tmp/swift-format ± main
❯ swift package describe
Name: swift-format
Manifest display name: swift-format
Path: /private/tmp/swift-format
Tools version: 5.6
Dependencies:
...

@dylansturg
Copy link

I tried cloning a new copy of the repo, to see if I had broken something locally:

$ mkdir testesttest
$ cd testesttest/
$ git clone [email protected]:apple/swift-format.git
$ echo $TOOLCHAINS
org.swift.57202205041a
$ swift --version
Apple Swift version 5.7-dev (LLVM cd62c186b914a47, Swift c58d4dba34ef37a)
Target: x86_64-apple-macosx12.0
$ cd swift-format/
$ swift package describe
objc[12974]: Class _TtCs27_KeyedEncodingContainerBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2fa518) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10609bd38). One of the two will be used. Which one is undefined.
objc[12974]: Class _TtCs27_KeyedDecodingContainerBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2fa6d0) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10609bef0). One of the two will be used. Which one is undefined.
objc[12974]: Class _TtCs19__EmptyArrayStorage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9170) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10608b8d8). One of the two will be used. Which one is undefined.
objc[12974]: Class _TtCVVs17__CocoaDictionary5Index7Storage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84cf58da0) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10609c100). One of the two will be used. Which one is undefined.
objc[12974]: Class _TtCVs17__CocoaDictionary8Iterator is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84cf58e58) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10609c1b8). One of the two will be used. Which one is undefined.
objc[12974]: Class _TtCs22__RawDictionaryStorage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9378) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10608bb68). One of the two will be used. Which one is undefined.
objc[12974]: Class _TtCs26__EmptyDictionarySingleton is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9438) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10608bc48). One of the two will be used. Which one is undefined.
objc[12974]: Class _TtCs24__SwiftEmptyNSEnumerator is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84cf4a188) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10608bec0). One of the two will be used. Which one is undefined.
objc[12974]: Class _TtCs11_AnyKeyPath is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2faa00) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10609c3e0). One of the two will be used. Which one is undefined.
objc[12974]: Class _TtCs20__SwiftNativeNSArray is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f95b0) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10608bf30). One of the two will be used. Which one is undefined.
objc[12974]: Class _TtCs26_SwiftNativeNSMutableArray is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9618) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10608bf98). One of the two will be used. Which one is undefined.
objc[12974]: Class _TtCs25__SwiftNativeNSDictionary is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9680) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10608c020). One of the two will be used. Which one is undefined.
objc[12974]: Class _TtCs18__SwiftNativeNSSet is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f96f0) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10608c0b0). One of the two will be used. Which one is undefined.
objc[12974]: Class _TtCs25__SwiftNativeNSEnumerator is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84cf4a1f8) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10608c140). One of the two will be used. Which one is undefined.
objc[12974]: Class _TtCs32__stdlib_ReturnAutoreleasedDummy is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84cf4a268) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10608c1e8). One of the two will be used. Which one is undefined.
objc[12974]: Class _TtCVVs10__CocoaSet5Index7Storage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84cf58f88) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10609c530). One of the two will be used. Which one is undefined.
objc[12974]: Class _TtCVs10__CocoaSet8Iterator is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2fab28) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10609c5e8). One of the two will be used. Which one is undefined.
objc[12974]: Class _TtCs15__RawSetStorage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9810) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10608c388). One of the two will be used. Which one is undefined.
objc[12974]: Class _TtCs19__EmptySetSingleton is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f98c8) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10608c460). One of the two will be used. Which one is undefined.
objc[12974]: Class _TtCs18_StringBreadcrumbs is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2fac30) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10609c6f0). One of the two will be used. Which one is undefined.
objc[12974]: Class _TtCs21__SwiftNativeNSString is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9a20) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10608c658). One of the two will be used. Which one is undefined.
objc[12974]: Class _TtCs15__StringStorage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9a88) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10608c6e0). One of the two will be used. Which one is undefined.
objc[12974]: Class _TtCs21__SharedStringStorage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9b08) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10608c780). One of the two will be used. Which one is undefined.
objc[12974]: Class _TtCs41__SwiftNativeNSArrayWithContiguousStorage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9b98) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10608ca60). One of the two will be used. Which one is undefined.
objc[12974]: Class _TtCs20_SwiftNSMutableArray is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9c08) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10608cd38). One of the two will be used. Which one is undefined.
objc[12974]: Class _TtCs22__SwiftDeferredNSArray is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9c80) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10608cdd0). One of the two will be used. Which one is undefined.
objc[12974]: Class _TtCs28__ContiguousArrayStorageBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9d08) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10608ce90). One of the two will be used. Which one is undefined.
objc[12974]: Class _TtCs15__VaListBuilder is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2fadc0) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10609c880). One of the two will be used. Which one is undefined.
objc[12974]: Class _TtCs18__stdlib_AtomicInt is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84cf59040) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10609c930). One of the two will be used. Which one is undefined.
objc[12974]: Class __SwiftNSErrorLayoutStandin is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9dc0) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10608e2f0). One of the two will be used. Which one is undefined.
objc[12974]: Class __SwiftNativeNSError is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9de8) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10608e318). One of the two will be used. Which one is undefined.
objc[12974]: Class _TtCs12_SwiftObject is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9e38) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10608e368). One of the two will be used. Which one is undefined.
objc[12974]: Class __SwiftValue is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9eb0) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10608e3e0). One of the two will be used. Which one is undefined.
objc[12974]: Class __SwiftNull is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84cf4ba50) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10608e430). One of the two will be used. Which one is undefined.
objc[12974]: Class SwiftNativeNSObject is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84cf4ba78) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10608e458). One of the two will be used. Which one is undefined.
objc[12974]: Class __SwiftNativeNSArrayBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9ed8) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10608e4a8). One of the two will be used. Which one is undefined.
objc[12974]: Class __SwiftNativeNSMutableArrayBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9f28) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10608e4f8). One of the two will be used. Which one is undefined.
objc[12974]: Class __SwiftNativeNSDictionaryBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9f78) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10608e548). One of the two will be used. Which one is undefined.
objc[12974]: Class __SwiftNativeNSSetBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2f9fc8) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10608e598). One of the two will be used. Which one is undefined.
objc[12974]: Class __SwiftNativeNSStringBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2fa018) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10608e5e8). One of the two will be used. Which one is undefined.
objc[12974]: Class __SwiftNativeNSEnumeratorBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff84c2fa068) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10608e638). One of the two will be used. Which one is undefined.
objc[12974]: Class _TtCs25CheckedContinuationCanary is implemented in both /usr/lib/swift/libswift_Concurrency.dylib (0x7ffb4d8a1d88) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswift_Concurrency.dylib (0x104c021a0). One of the two will be used. Which one is undefined.
objc[12974]: Class _TtCs17DispatchQueueShim is implemented in both /usr/lib/swift/libswift_Concurrency.dylib (0x7ffb4d8a1e18) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswift_Concurrency.dylib (0x104c02230). One of the two will be used. Which one is undefined.
objc[12974]: Class _TtCs9MainActor is implemented in both /usr/lib/swift/libswift_Concurrency.dylib (0x7ffb4d8a1eb0) and /Users/dylansturg/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-05-04-a.xctoolchain/usr/lib/swift/macosx/libswift_Concurrency.dylib (0x104c022c8). One of the two will be used. Which one is undefined.
Segmentation fault: 11

@tomerd
Copy link
Contributor

tomerd commented May 5, 2022

yea odd, it must be some search path that exists on your machines but no on mine

@tomerd
Copy link
Contributor

tomerd commented May 5, 2022

interesting to see what @shahmishal sees on the CI & smoke tests that should catch this

@adam-fowler
Copy link

I reported the same here swiftlang/swift#58658

@WowbaggersLiquidLunch
Copy link
Contributor

I see the same error messages when trying to use the open-source toolchain in CLion on macOS.

@milch
Copy link

milch commented May 9, 2022

I'm running into the same issue, building main branches from scratch. Some more info:

  • I'm using Xcode 13 beta 4 as recommended
  • macOS version 12.3.1
  • I tried compiling with both --use-os-runtime and without
  • Removing the copy of the libraries in the .xctoolchain path (expectedly) fixes the issue

Other than that the build machine is very vanilla. There are a small number of homebrew packages installed, several versions of Xcode (13.3, 13.3.1), and that is basically it.

@tomerd
Copy link
Contributor

tomerd commented May 12, 2022

this was worked around in 5.7 via #4323 which should be in the recent version of 5.7 (but not main). the plan is to fix properly in main

cc @neonichu

@neonichu
Copy link
Contributor

Yep, swift-5.7-DEVELOPMENT-SNAPSHOT-2022-05-10-a seems to work for me.

@ahoppen
Copy link
Member Author

ahoppen commented May 13, 2022

Also verified that swift-5.7-DEVELOPMENT-SNAPSHOT-2022-05-10-a works for me.

@kimdv
Copy link

kimdv commented May 13, 2022

swift-5.7-DEVELOPMENT-SNAPSHOT-2022-05-10-a works also for me.

@dylansturg
Copy link

Any updates on this? Any ETA on the proper fix in main? We can't build swift-format at head right now because of this issue (using the 5.7 snapshot doesn't work because of version incompatibilities).

ahoppen added a commit to ahoppen/sourcekit-lsp that referenced this issue Aug 9, 2022
Without it, sourcekit-lsp crashes on launch with the same errors as in swiftlang/swift-package-manager#5467.
ahoppen added a commit to ahoppen/sourcekit-lsp that referenced this issue Aug 9, 2022
Without it, sourcekit-lsp crashes on launch with the same errors as in swiftlang/swift-package-manager#5467.
ahoppen added a commit to ahoppen/sourcekit-lsp that referenced this issue Aug 11, 2022
Without it, sourcekit-lsp crashes on launch with the same errors as in swiftlang/swift-package-manager#5467.
ahoppen added a commit to ahoppen/sourcekit-lsp that referenced this issue Aug 16, 2022
Without it, sourcekit-lsp crashes on launch with the same errors as in swiftlang/swift-package-manager#5467.
@MaxDesiatov
Copy link
Contributor

As #5703 was merged, does that mean this issue is resolved and can be closed?

@tomerd
Copy link
Contributor

tomerd commented Oct 24, 2022

probably, @neonichu ?

@neonichu
Copy link
Contributor

I believe so, yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants