swift-apis icon indicating copy to clipboard operation
swift-apis copied to clipboard

swift build fails

Open vballoli opened this issue 4 years ago • 4 comments

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

vballoli avatar Mar 28 '20 04:03 vballoli

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 avatar Apr 02 '20 16:04 compnerd

@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?

saeta avatar Apr 08 '20 15:04 saeta

@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?

compnerd avatar Apr 08 '20 16:04 compnerd

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

saeta avatar Apr 08 '20 17:04 saeta