-
Notifications
You must be signed in to change notification settings - Fork 10.6k
add install-tensorflow back to build-presets #23945
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
add install-tensorflow back to build-presets #23945
Conversation
|
worked on my workstation! |
|
Didn't this get fixed by #23895 ? Or at least, before I made those changes so that the versioned files are copied and it seemed to work. |
Both are needed. This PR takes care of copying the files when creating an installable package. |
|
Oh right. There is also a couple test failures I currently get when trying to build the toolchain, for which I don't know the cause. I get two failures that both say something like this: Do you know what may be causing this? |
|
@eaplatanios, I've never seen that before, but I don't build on macos very often. I'll kick off a build on my mac machine to see if it happens for me. It'll be a few hours before I get results... You're not on an OS X older than 10.11, are you? |
|
No I’m running the latest version of Mojave. Thanks Marc! |
|
I had to fix something (#24007), but after that, a full toolchain build with tests worked for me on my mac ( |
|
@marcrasi Thanks for checking and fixing the issue with the dynamic libraries! It turns out I only get the errors if I use the following command: |
I don't know if this will actually work. I ran
SWIFT_PACKAGE=tensorflow_linux,no_test swift/utils/build-toolchain local.swifton my workstation to check, and I'll report back tomorrow morning when I wake up if that succeeded.I think that
install-tensorflowaccidentally got removed a long time ago.install-tensorflowis responsible for copying the tensorflow libs into the toolchain:https://github.com/apple/swift/blob/02351479c5423a78f46c5f65bfb3abac57123831/utils/build-script-impl#L3831.
I have an unverified guess about why this didn't cause problems earlier: Some other step is copying all ".so" files into the toolchain, and the tensorflow libs used to be "libtensorflow.so" and "libtensorflow_framework.so". But recent tensorflow changes added some ".so.VERSION" files that don't get copied by the other step. So we need to bring "install-tensorflow" back.