Open swift-ci opened 7 years ago
hah fun, this might be an issue in llbuild, need to investigate
if there is a directory named = swift creates a dependency file:
/private/tmp/Hello/=/.build/debug/_.build/main.swift.o : /private/tmp/Hello/=/Sources/main.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule
/private/tmp/Hello/=/.build/debug/_.build/main~partial.swiftmodule : /private/tmp/Hello/=/Sources/main.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule
/private/tmp/Hello/=/.build/debug/_.build/main~partial.swiftdoc : /private/tmp/Hello/=/Sources/main.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule
But the llbuild makedeps parser considers = invalid word char:
https://github.com/apple/swift-llbuild/blob/master/lib/Core/MakefileDepsParser.cpp#L34
@ddunbar suggestions?
This may not be solvable without changing the compiler, I don't know if the makefile can actually represent this (IIRC, there are some "unrepresentable" characters).
The right thing to do here is move to a "real" format for communicating dependencies between the compiler and the build system.
Environment
macOS 10.11.6 terminal shell: /bin/zsh Apple Swift version 3.0.2 (swiftlang-800.0.61 clang-800.0.42.1) Target: x86_64-apple-macosx10.9 Apple Swift Package Manager - Swift 3.0.2 (swiftpm-11750)Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | llbuild | |Labels | Bug | |Assignee | None | |Priority | Medium | md5: 182b030cfd483551acc4eff9abb03d93Issue Description:
swift build
fails due to path name. Discovered when following the Swift Getting Started Using the Package Manager.Example parent folder name which causes
swift build
fail:4`2/`6=Test Case
TEST CASE
Uses
/bin/zsh shell
RESULTING ERROR