-
Notifications
You must be signed in to change notification settings - Fork 137
Conversation
I think this is because of Xcode 10.2+. The Swift runtime linker search path got changed from the toolchain directory to |
That's weird because I'm not using Xcode at all for this. I'm. using swiftenv though and I'm not sure how that might affect this. I'll look into this tonight. In the meantime, could you try and run the CI tests and see if those pass? |
This happens even when Xcode is not being used directly. I haven't looked into the problem yet. A workaround is to |
It seems that at some point some process copies libraries over to |
Using |
I see. I'm not sure copying TensorFlow libraries is ideal because You could also try setting the linker path manually. swift test -Xlinker -ltensorflow -Xlinker -L<path to usr/lib in your S4TF toolchain> |
I tried that, but it also doesn't work. I think it's because the path
and I have verified that this directory contains the missing libraries. |
Hmm I'm not sure at this point. I'll trigger CI tests now since CI runs on Linux without the linking problem. |
Sounds good. Note that this error is not about |
@eaplatanios, I believe they are done at these places: build-script-impl:2580 and build-script-impl:3973. IIRC, you made some changes to that part of the code as well. |
This only copies Another solution would be to link to them differently. My impression is that all stdlib shared libraries get their rpath set to |
I don't really understand why this is failing. It seems to not be compiling at all some of the files under the |
@rxwei This does not depend on the latest changes to apple/swift so I tried testing locally with a previously built toolchain and all tests pass. I don't know what causes the failure on the CI although it seems to be completely ignoring some of the source files in the |
Testing it locally. |
I have the same problem locally. Looks like layers are not being compiled. |
It's weird that this only happens for Linux and not MacOS. |
It's happening on macOS when I test it locally. |
I'm using a toolchain built from swiftlang/swift#24452 (my last built toolchain), but this should not cause issues. Why do you think this happens? |
I figured why. This was because #102 checked in some files that end with |
Oh good catch! Thanks. |
@rxwei I'm extremely sorry. I thought I had rectified all those errors. |
No worries at all! |
No worries @Shashi456. @rxwei I can rename the files as part of this PR and rerun the tests if this helps. |
I'm checking in a commit in a minute to fix this. |
Done in be05f0b. |
Merged. Running tests now. :) |
Sigh, the APFS file system is still case-insensitive by default... |
That explains things. I also couldn't make a git commit for the name change actually and was wondering why that is. |
This passes tests so I'll move on to fixing #137. |
`install_name_dir` for the standard library has been changed from @rpath to /usr/lib/swift in swiftlang#24382. This patch may resolve "Library not loaded: /usr/lib/swift/libswiftTensorFlow.dylib" linker issues: tensorflow/swift-apis#136
…25328) `install_name_dir` for the standard library has been changed from @rpath to /usr/lib/swift in #24382. This patch resolves linker issues on macOS: "Library not loaded: /usr/lib/swift/libswiftTensorFlow.dylib" See tensorflow/swift-apis#136 for more information.
@rxwei This is part of the move to swift-apis discussed in #109.
swift build
works fine, butswift test
gives the following error on my machine:Adding
-Xlinker -ltensorflow
does not resolve this.