Skip to content
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

Running swift-build from downloaded toolchain outside of Xcode crashes #58658

Closed
adam-fowler opened this issue May 4, 2022 · 1 comment
Closed
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. duplicate Resolution: Duplicates another issue

Comments

@adam-fowler
Copy link

Describe the bug
If you download either the 5.7 or trunk macOS development snapshots, and then run the swift build using the full path to the swift exe from this snapshot in the terminal (ie /Library/Developer/Toolchains/<swift-toolchain>/usr/bin/swift). It returns the following error and seg faults

objc[73776]: Class _TtCs27_KeyedEncodingContainerBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8546f8150) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10709aa68). One of the two will be used. Which one is undefined.
objc[73776]: Class _TtCs27_KeyedDecodingContainerBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8546f8308) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10709ac20). One of the two will be used. Which one is undefined.
objc[73776]: Class _TtCs19__EmptyArrayStorage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8546f6db0) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10708a5b8). One of the two will be used. Which one is undefined.
objc[73776]: Class _TtCVVs17__CocoaDictionary5Index7Storage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8553534f8) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10709ae30). One of the two will be used. Which one is undefined.
objc[73776]: Class _TtCVs17__CocoaDictionary8Iterator is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8553535b0) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10709aee8). One of the two will be used. Which one is undefined.
objc[73776]: Class _TtCs22__RawDictionaryStorage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8546f6fb8) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10708a848). One of the two will be used. Which one is undefined.
objc[73776]: Class _TtCs26__EmptyDictionarySingleton is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8546f7078) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10708a928). One of the two will be used. Which one is undefined.
objc[73776]: Class _TtCs24__SwiftEmptyNSEnumerator is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff855344418) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10708aba0). One of the two will be used. Which one is undefined.
objc[73776]: Class _TtCs11_AnyKeyPath is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8546f8638) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10709b110). One of the two will be used. Which one is undefined.
objc[73776]: Class _TtCs20__SwiftNativeNSArray is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8546f71f0) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10708ac10). One of the two will be used. Which one is undefined.
objc[73776]: Class _TtCs26_SwiftNativeNSMutableArray is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8546f7258) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10708ac78). One of the two will be used. Which one is undefined.
objc[73776]: Class _TtCs25__SwiftNativeNSDictionary is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8546f72c0) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10708ad00). One of the two will be used. Which one is undefined.
objc[73776]: Class _TtCs18__SwiftNativeNSSet is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8546f7330) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10708ad90). One of the two will be used. Which one is undefined.
objc[73776]: Class _TtCs25__SwiftNativeNSEnumerator is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8553444e8) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10708ae20). One of the two will be used. Which one is undefined.
objc[73776]: Class _TtCs32__stdlib_ReturnAutoreleasedDummy is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff855344590) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10708aec8). One of the two will be used. Which one is undefined.
objc[73776]: Class _TtCVVs10__CocoaSet5Index7Storage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8553536e0) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10709b260). One of the two will be used. Which one is undefined.
objc[73776]: Class _TtCVs10__CocoaSet8Iterator is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8546f8760) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10709b318). One of the two will be used. Which one is undefined.
objc[73776]: Class _TtCs15__RawSetStorage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8546f7450) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10708b068). One of the two will be used. Which one is undefined.
objc[73776]: Class _TtCs19__EmptySetSingleton is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8546f7508) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10708b140). One of the two will be used. Which one is undefined.
objc[73776]: Class _TtCs18_StringBreadcrumbs is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8546f8868) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10709b420). One of the two will be used. Which one is undefined.
objc[73776]: Class _TtCs21__SwiftNativeNSString is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8546f7660) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10708b338). One of the two will be used. Which one is undefined.
objc[73776]: Class _TtCs15__StringStorage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8546f76c8) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10708b3c0). One of the two will be used. Which one is undefined.
objc[73776]: Class _TtCs21__SharedStringStorage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8546f7748) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10708b460). One of the two will be used. Which one is undefined.
objc[73776]: Class _TtCs41__SwiftNativeNSArrayWithContiguousStorage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8546f77d8) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10708b740). One of the two will be used. Which one is undefined.
objc[73776]: Class _TtCs20_SwiftNSMutableArray is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8546f7848) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10708ba18). One of the two will be used. Which one is undefined.
objc[73776]: Class _TtCs22__SwiftDeferredNSArray is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8546f78c0) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10708bab0). One of the two will be used. Which one is undefined.
objc[73776]: Class _TtCs28__ContiguousArrayStorageBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8546f7948) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10708bb70). One of the two will be used. Which one is undefined.
objc[73776]: Class _TtCs15__VaListBuilder is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8546f89f8) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10709b5b0). One of the two will be used. Which one is undefined.
objc[73776]: Class _TtCs18__stdlib_AtomicInt is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff855353798) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10709b660). One of the two will be used. Which one is undefined.
objc[73776]: Class __SwiftNSErrorLayoutStandin is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8546f7a00) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10708cfd0). One of the two will be used. Which one is undefined.
objc[73776]: Class __SwiftNativeNSError is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8546f7a28) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10708cff8). One of the two will be used. Which one is undefined.
objc[73776]: Class _TtCs12_SwiftObject is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8546f7a78) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10708d048). One of the two will be used. Which one is undefined.
objc[73776]: Class __SwiftValue is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8546f7af0) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10708d0c0). One of the two will be used. Which one is undefined.
objc[73776]: Class __SwiftNull is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff855346228) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10708d110). One of the two will be used. Which one is undefined.
objc[73776]: Class SwiftNativeNSObject is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff855346250) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10708d138). One of the two will be used. Which one is undefined.
objc[73776]: Class __SwiftNativeNSArrayBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8546f7b18) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10708d188). One of the two will be used. Which one is undefined.
objc[73776]: Class __SwiftNativeNSMutableArrayBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8546f7b68) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10708d1d8). One of the two will be used. Which one is undefined.
objc[73776]: Class __SwiftNativeNSDictionaryBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8546f7bb8) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10708d228). One of the two will be used. Which one is undefined.
objc[73776]: Class __SwiftNativeNSSetBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8546f7c08) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10708d278). One of the two will be used. Which one is undefined.
objc[73776]: Class __SwiftNativeNSStringBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8546f7c58) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10708d2c8). One of the two will be used. Which one is undefined.
objc[73776]: Class __SwiftNativeNSEnumeratorBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7ff8546f7ca8) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10708d318). One of the two will be used. Which one is undefined.
objc[73776]: Class _TtCs25CheckedContinuationCanary is implemented in both /usr/lib/swift/libswift_Concurrency.dylib (0x7ffb5599b358) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswift_Concurrency.dylib (0x105c84160). One of the two will be used. Which one is undefined.
objc[73776]: Class _TtCs17DispatchQueueShim is implemented in both /usr/lib/swift/libswift_Concurrency.dylib (0x7ffb5599b3e8) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswift_Concurrency.dylib (0x105c841f0). One of the two will be used. Which one is undefined.
objc[73776]: Class _TtCs9MainActor is implemented in both /usr/lib/swift/libswift_Concurrency.dylib (0x7ffb5599b478) and /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2022-04-04-a.xctoolchain/usr/lib/swift/macosx/libswift_Concurrency.dylib (0x105c84288). One of the two will be used. Which one is undefined.
zsh: segmentation fault   build

Snapshots from previous Swift versions do not have this issue.

Environment (please complete the following information):

  • OS: macOS 12.2.1
  • Swift Toolchains: swift-DEVELOPMENT-SNAPSHOT-2022-04-24-a and swift-5.7-DEVELOPMENT-SNAPSHOT-2022-04-25-a
@tomerd
Copy link
Member

tomerd commented May 12, 2022

tracked in apple/swift-package-manager#5467, closing this one as dup

@tomerd tomerd closed this as completed May 12, 2022
@tomerd tomerd added the duplicate Resolution: Duplicates another issue label May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. duplicate Resolution: Duplicates another issue
Projects
None yet
Development

No branches or pull requests

2 participants