Skip to content

[TF] Use @rpath as install_name directory for standard library dylibs. #31301

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

Conversation

dan-zheng
Copy link
Contributor

This sets @rpath as the directory in LC_DYLIB_ID for standard library dylibs.
This is important for toolchains that provide custom standard library modules or
that make changes to libswiftCore.dylib.

This patch should not be upstreamed to master, where Swift-in-the-OS is king and
it seems intended for Swift system libraries to be used.


This patch was designed to fix TensorFlow module usages on macOS (TF-1260):

import TensorFlow
print(Tensor(1))
$ swiftc tf.swift
$ ./tf
dyld: Symbol not found: _$s11AllKeyPathss0B12PathIterablePTl
  Referenced from: /Library/Developer/Toolchains/swift-tensorflow-DEVELOPMENT-2020-04-23-a.xctoolchain/usr/lib/swift/macosx/libswiftTensorFlow.dylib
  Expected in: /usr/lib/swift/libswiftCore.dylib
 in /Library/Developer/Toolchains/swift-tensorflow-DEVELOPMENT-2020-04-23-a.xctoolchain/usr/lib/swift/macosx/libswiftTensorFlow.dylib
[1]    67267 abort      ./tf

Fix verification is pending.

The -DSWIFT_DARWIN_STDLIB_INSTALL_NAME_DIR:STRING="@rpath" configuration comes from compnerd/swift-build.

This sets "@rpath" as the directory in LC_DYLIB_ID for standard library dylibs.
This is important for toolchains that provide custom standard library modules or
that make changes to libswiftCore.dylib.

This patch should not be upstreamed to master, where Swift-in-the-OS is king and
it seems intended for Swift system libraries to be used.
@dan-zheng dan-zheng requested a review from compnerd April 24, 2020 23:17
@dan-zheng
Copy link
Contributor Author

With this patch, macOS toolchain builds (utils/build-toolchain-tensorflow --pkg) fails.

The failure happens while building SwiftPM, on one macOS machine:

2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x110678b60). One of the two will be used. Which one i
2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x110678b60). One of the two will be used. Which one i
s undefined.
    objc[5940]: Class _TtCs28__ContiguousArrayStorageBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7f
ffa53c5ab8) and /Users/swiftninjas/s4tf/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-DEVELO
PMENT-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x110678be8). One of the two will be used. Which
 one is undefined.
    objc[5940]: Class _TtCs15__VaListBuilder is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fffa53d39c0) a
nd /Users/swiftninjas/s4tf/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-DEVELOPMENT-2020-04
-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x1106880e8). One of the two will be used. Which one is undef
ined.
    objc[5940]: Class _TtCs18__stdlib_AtomicInt is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fffa53d30c8
) and /Users/swiftninjas/s4tf/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-DEVELOPMENT-2020
-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x110688198). One of the two will be used. Which one is un
defined.
    objc[5940]: Class __SwiftNativeNSError is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fffa53c5b50) and
 /Users/swiftninjas/s4tf/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-DEVELOPMENT-2020-04-2
4-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x110678cc8). One of the two will be used. Which one is undefin
ed.
    objc[5940]: Class _TtCs12_SwiftObject is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fffa53c5ba0) and
/Users/swiftninjas/s4tf/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-DEVELOPMENT-2020-04-24
-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x110678d18). One of the two will be used. Which one is undefine
d.
    objc[5940]: Class __SwiftValue is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fffa53c5c18) and /Users/
swiftninjas/s4tf/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-DEVELOPMENT-2020-04-24-a.xcto
olchain/usr/lib/swift/macosx/libswiftCore.dylib (0x110678d90). One of the two will be used. Which one is undefined.
    objc[5940]: Class __SwiftNull is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fffa53c5c68) and /Users/s
wiftninjas/s4tf/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-DEVELOPMENT-2020-04-24-a.xctoo
lchain/usr/lib/swift/macosx/libswiftCore.dylib (0x110678de0). One of the two will be used. Which one is undefined.
    objc[5940]: Class __SwiftNativeNSArrayBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fffa53c5cb8)
 and /Users/swiftninjas/s4tf/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-DEVELOPMENT-2020-
04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x110678e08). One of the two will be used. Which one is und
efined.
    objc[5940]: Class __SwiftNativeNSDictionaryBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fffa53c
5d08) and /Users/swiftninjas/s4tf/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-DEVELOPMENT-
2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x110678ea8). One of the two will be used. Which one i
s undefined.
    objc[5940]: Class __SwiftNativeNSSetBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fffa53c5d58) a
nd /Users/swiftninjas/s4tf/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-DEVELOPMENT-2020-04
-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x110678ef8). One of the two will be used. Which one is undef
ined.
    objc[5940]: Class __SwiftNativeNSStringBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fffa53c5da8
) and /Users/swiftninjas/s4tf/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-DEVELOPMENT-2020
-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x110678f48). One of the two will be used. Which one is un
defined.
    objc[5940]: Class __SwiftNativeNSEnumeratorBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fffa53c
5df8) and /Users/swiftninjas/s4tf/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-DEVELOPMENT-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x110678f98). One of the two will be used. Which one is undefined.
    objc[5940]: Class _TtC8Dispatch17_DispatchWorkItem is implemented in both /usr/lib/swift/libswiftDispatch.dylib (0x7fffa540b088) and /Users/swiftninjas/s4tf/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-DEVELOPMENT-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftDispatch.dylib (0x110ddf678). One of the two will be used. Which one is undefined.
    2020-04-24 13:07:05.193 swiftpm-xctest-helper[5940:22142860] -[Swift.__StringStorage isAbsolutePath]: unrecognized selector sent to instance 0x7f9355c11570
    2020-04-24 13:07:05.195 swiftpm-xctest-helper[5940:22142860] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[Swift.__StringStorage isAbsolutePath]: unrecognized selector sent to instance 0x7f9355c11570'
    *** First throw call stack:
    (
        0   CoreFoundation                      0x00007fff42e9ee39 __exceptionPreprocess + 256
        1   libobjc.A.dylib                     0x00007fff6d6093c6 objc_exception_throw + 48
        2   CoreFoundation                      0x00007fff42f1953b -[NSObject(NSObject) __retain_OA] + 0
        3   CoreFoundation                      0x00007fff42e40938 ___forwarding___ + 1478
        4   CoreFoundation                      0x00007fff42e402e8 _CF_forwarding_prep_0 + 120
        5   swiftpm-xctest-helper               0x000000010ff87f5c $sSS21swiftpm_xctest_helperE14normalizedPathSSyF + 60
        6   swiftpm-xctest-helper               0x000000010ff867e2 $s21swiftpm_xctest_helper3runyyKF + 98
        7   swiftpm-xctest-helper               0x000000010ff86579 main + 25
        8   libdyld.dylib                       0x00007fff6edce3d5 start + 1
        9   ???                                 0x0000000000000003 0x0 + 3
    )
    libc++abi.dylib: terminating with uncaught exception of type NSException

And while building SwiftSyntax, on another macOS machine:

--- bootstrap: note: Installing /Users/danielzheng/swift-dev/build/buildbot_osx/swiftpm-macosx-x86_64/x86_64-apple-macosx/bootstrap/pm/4_2/PackageDescription.swiftinterface to /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/pm/4_2/PackageDescription.swiftinterface
+ /Users/danielzheng/swift-dev/swift-syntax/build-script.py --build-dir /Users/danielzheng/swift-dev/build/buildbot_osx/unified-swiftpm-build-macosx-x86_64 --multiroot-data-file /Users/danielzheng/swift-dev/swift/utils/build_swift/resources/SwiftPM-Unified-Build.xcworkspace --toolchain /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain --filecheck-exec /Users/danielzheng/swift-dev/build/buildbot_osx/llvm-macosx-x86_64/bin/FileCheck --release --verbose
objc[50257]: Class _TtCs19__EmptyArrayStorage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980ae5a8) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c42e260). One of the two will be used. Which one is undefined.
objc[50257]: Class _TtCVVs17__CocoaDictionary5Index7Storage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980bcae8) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c43d960). One of the two will be used. Which one is undefined.
objc[50257]: Class _TtCVs17__CocoaDictionary8Iterator is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980bcba0) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c43da18). One of the two will be used. Which one is undefined.
objc[50257]: Class _TtCs22__RawDictionaryStorage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980ae650) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c42e308). One of the two will be used. Which one is undefined.
objc[50257]: Class _TtCs26__EmptyDictionarySingleton is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980ae710) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c42e3c8). One of the two will be used. Which one is undefined.
objc[50257]: Class _TtCs24__SwiftEmptyNSEnumerator is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980ae7d8) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c42e490). One of the two will be used. Which one is undefined.
objc[50257]: Class _TtCs11_AnyKeyPath is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980bcdc8) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c43dc40). One of the two will be used. Which one is undefined.
objc[50257]: Class _TtCs20__SwiftNativeNSArray is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980aed48) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c42e500). One of the two will be used. Which one is undefined.
objc[50257]: Class _TtCs26_SwiftNativeNSMutableArray is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980aedb0) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c42e568). One of the two will be used. Which one is undefined.
objc[50257]: Class _TtCs25__SwiftNativeNSDictionary is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980aee18) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c42e5d0). One of the two will be used. Which one is undefined.
objc[50257]: Class _TtCs18__SwiftNativeNSSet is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980aee88) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c42e640). One of the two will be used. Which one is undefined.
objc[50257]: Class _TtCs25__SwiftNativeNSEnumerator is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980aeef8) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c42e6b0). One of the two will be used. Which one is undefined.
objc[50257]: Class _TtCs32__stdlib_ReturnAutoreleasedDummy is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980aef68) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c42e720). One of the two will be used. Which one is undefined.
objc[50257]: Class _TtCVVs10__CocoaSet5Index7Storage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980bce80) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c43dd98). One of the two will be used. Which one is undefined.
objc[50257]: Class _TtCVs10__CocoaSet8Iterator is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980bcf38) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c43de50). One of the two will be used. Which one is undefined.
objc[50257]: Class _TtCs15__RawSetStorage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980ae848) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c42e788). One of the two will be used. Which one is undefined.
objc[50257]: Class _TtCs19__EmptySetSingleton is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980ae900) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c42e840). One of the two will be used. Which one is undefined.
objc[50257]: Class _TtCs18_StringBreadcrumbs is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980bd068) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c43df58). One of the two will be used. Which one is undefined.
objc[50257]: Class _TtCs21__SwiftNativeNSString is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980ae9c0) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c42e900). One of the two will be used. Which one is undefined.
objc[50257]: Class _TtCs15__StringStorage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980aea28) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c42e968). One of the two will be used. Which one is undefined.
objc[50257]: Class _TtCs21__SharedStringStorage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980aeaa8) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c42e9e8). One of the two will be used. Which one is undefined.
objc[50257]: Class _TtCs41__SwiftNativeNSArrayWithContiguousStorage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980aeb38) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c42ea78). One of the two will be used. Which one is undefined.
objc[50257]: Class _TtCs20_SwiftNSMutableArray is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980aeba8) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c42eae8). One of the two will be used. Which one is undefined.
objc[50257]: Class _TtCs22__SwiftDeferredNSArray is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980aec20) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c42eb60). One of the two will be used. Which one is undefined.
objc[50257]: Class _TtCs28__ContiguousArrayStorageBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980aeca8) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c42ebe8). One of the two will be used. Which one is undefined.
objc[50257]: Class _TtCs15__VaListBuilder is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980bd250) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c43e0e8). One of the two will be used. Which one is undefined.
objc[50257]: Class _TtCs18__stdlib_AtomicInt is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980bd300) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c43e198). One of the two will be used. Which one is undefined.
objc[50257]: Class __SwiftNSErrorLayoutStandin is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980aefe8) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c42eca0). One of the two will be used. Which one is undefined.
objc[50257]: Class __SwiftNativeNSError is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980af010) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c42ecc8). One of the two will be used. Which one is undefined.
objc[50257]: Class _TtCs12_SwiftObject is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980af060) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c42ed18). One of the two will be used. Which one is undefined.
objc[50257]: Class __SwiftValue is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980af0d8) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c42ed90). One of the two will be used. Which one is undefined.
objc[50257]: Class __SwiftNull is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980af128) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c42ede0). One of the two will be used. Which one is undefined.
objc[50257]: Class __SwiftNativeNSArrayBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980af150) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c42ee08). One of the two will be used. Which one is undefined.
objc[50257]: Class __SwiftNativeNSMutableArrayBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980af1a0) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c42ee58). One of the two will be used. Which one is undefined.
objc[50257]: Class __SwiftNativeNSDictionaryBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980af1f0) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c42eea8). One of the two will be used. Which one is undefined.
objc[50257]: Class __SwiftNativeNSSetBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980af240) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c42eef8). One of the two will be used. Which one is undefined.
objc[50257]: Class __SwiftNativeNSStringBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980af290) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c42ef48). One of the two will be used. Which one is undefined.
objc[50257]: Class __SwiftNativeNSEnumeratorBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff980af2e0) and /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib (0x10c42ef98). One of the two will be used. Which one is undefined.
FAIL: Building SwiftSyntax failed
Executing: /Users/danielzheng/swift-dev/swift/swift-nightly-install/Library/Developer/Toolchains/swift-tensorflow-LOCAL-2020-04-24-a.xctoolchain/usr/bin/swift build --package-path /Users/danielzheng/swift-dev/swift-syntax --configuration release --build-path /Users/danielzheng/swift-dev/build/buildbot_osx/unified-swiftpm-build-macosx-x86_64 --multiroot-data-file /Users/danielzheng/swift-dev/swift/utils/build_swift/resources/SwiftPM-Unified-Build.xcworkspace --verbose --product SwiftSyntax

@dan-zheng dan-zheng added the tensorflow This is for "tensorflow" branch PRs. label Apr 25, 2020
@dan-zheng
Copy link
Contributor Author

Closing this failed attempt. If we revisit this, we'll need to fix the resultant SwiftPM build issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tensorflow This is for "tensorflow" branch PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant