swift-apis
swift-apis copied to clipboard
swift build fails
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
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 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 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?
I think I was using swift-tensorflow-DEVELOPMENT-2020-02-19-a
.