Verify Installation Step in Installation instructions fail on Windows #421
Comments
Hi,
Thanks for reporting this in the nightly snapshot. We’ll look into it ASAP.
Ewa
…On Wed, Apr 15, 2020 at 11:35 PM Maxim Volgin ***@***.***> wrote:
swift test.swift test.swift:1:8: error: missing required module
'CTensorFlow' import TensorFlow ^
with S4TF from 15 April 2020 on Windows 10 Version 1803 (OS Build
17134.1304)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#421>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADUMI3QUQHSC6TSTMT64KUTRM2RMNANCNFSM4MJIFUEQ>
.
|
@maxvol could you please provide a full compiler invocation that you are using? |
@compnerd ah, you mean that i missed an installation step? do i need to build TF first? i followed all the installation steps listed, but it seems that toolchain is only part of the problem and TF lib has to be built separately? if so, please add this to the installation manual. |
I followed the instructions day before yesterday and am having the same error. All prereqs are installed. |
No, Effectively, your invocation should be something along the lines of: set SDKROOT=%SystemDrive%/Library/Developer/Platforms/Windows.platform/Developer/SDKs/Windows.sdk
swiftc -sdk %SDKROOT% -I %SDKROOT%/usr/lib/swift -L %SDKROOT%/usr/lib/swift/windows -emit-executable -o reduced.exe reduced.swift This is better captured in the docs for swift-models. I just want to ensure that the flags are being passed :) |
@compnerd thanks, that worked! still, i am unable to run the installation test (
|
Glad to hear that was it. Interesting, I've not tried it recently, but that has worked for me in the past. As to your questions ...
Im happy to see someone else take on the last two items, but in the mean time, I would recommend that you use CMake+Ninja :) |
Hmm, I thought that the installation test was generating an executable. That’s something that we should clarify for the windows side. Thanks for the heads up on that. A patch to the documentation would be wonderful if you would like to get more involved in the project :) |
@compnerd sure, please let me know how to contribute. |
@maxvol I think that the first thing to do would be to update the documentation to make the difference clear. I would suggest that expanding the differences in the verification step in https://github.com/tensorflow/swift/blob/master/Installation.md would be a great first step. Once the instructions are updated, we can start looking at what it would take to enable the interpreter mode on Windows :). But we should do that as a separate issue. |
swift test.swift test.swift:1:8: error: missing required module 'CTensorFlow' import TensorFlow ^
with S4TF from 15 April 2020 on Windows 10 Version 1803 (OS Build 17134.1304)
Toolchain is installed in
C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain
The text was updated successfully, but these errors were encountered: