Skip to content
This repository has been archived by the owner on Jul 1, 2023. It is now read-only.

swift build fails #787

Open
vballoli opened this issue Mar 28, 2020 · 4 comments
Open

swift build fails #787

vballoli opened this issue Mar 28, 2020 · 4 comments
Assignees
Labels
question Further information is requested

Comments

@vballoli
Copy link
Contributor

Upon executing swift build, I'm receiving the following message:

Any workarounds ?

error: found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/balli/Coding/swift/swift-apis/Sources/Tensor/CMakeLists.txt
 
error: found 5 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/balli/Coding/swift/swift-apis/Sources/TensorFlow/Bindings/generate_wrappers.py
    /Users/balli/Coding/swift/swift-apis/Sources/TensorFlow/Bindings/README.md
    /Users/balli/Coding/swift/swift-apis/Sources/TensorFlow/Layers/Sequential.swift.gyb
    /Users/balli/Coding/swift/swift-apis/Sources/TensorFlow/CMakeLists.txt
    /Users/balli/Coding/swift/swift-apis/Sources/TensorFlow/Bindings/EagerExecution.swift.gyb
 
error: found 2 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/balli/Coding/swift/swift-apis/Sources/third_party/Experimental/LICENSE
    /Users/balli/Coding/swift/swift-apis/Sources/third_party/Experimental/CMakeLists.txt
 
error: found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/balli/Coding/swift/swift-apis/Tests/ExperimentalTests/CMakeLists.txt
 
error: found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/balli/Coding/swift/swift-apis/Tests/TensorTests/CMakeLists.txt
 
error: found 3 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/balli/Coding/swift/swift-apis/Tests/TensorFlowTests/CMakeLists.txt
    /Users/balli/Coding/swift/swift-apis/Tests/TensorFlowTests/SequencedTests.swift.gyb
    /Users/balli/Coding/swift/swift-apis/Tests/TensorFlowTests/SequentialTests.swift.gyb
@compnerd
Copy link
Contributor

compnerd commented Apr 2, 2020

The workaround would be to remove the CMakeLists.txt temporarily. However, this is interesting.

https://github.com/tensorflow/swift-apis/blob/master/Dockerfile#L45 and https://github.com/tensorflow/swift-apis/blob/master/Dockerfile#L48 is where we actually build and test using s-p-m in CI, and that succeeds. What version of s-p-m are you using?

@compnerd compnerd added the question Further information is requested label Apr 2, 2020
@saeta
Copy link
Contributor

saeta commented Apr 8, 2020

@compnerd I have seen this on some mac toolchains as well, and I've had to temporarily remove those files. If we use the latest toolchains on mac, does this issue continue to appear?

@compnerd
Copy link
Contributor

compnerd commented Apr 8, 2020

@saeta The Linux CI builds build with the latest s-p-m just fine (I've definitely run that before myself as well). What version of s-p-m were you using on macOS?

@saeta
Copy link
Contributor

saeta commented Apr 8, 2020

I think I was using swift-tensorflow-DEVELOPMENT-2020-02-19-a.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants