I hope this is an appropriate place to ask for help with this. If not, please let me know if there is a better place! I was looking to dive into some Swift compiler development and I've immediately hit a brick wall with the latest build.
I've pulled down
master (I'm currently on commit
6f94f6c0ef4), followed the directions from the
homebrewto install dependencies:
- Downloaded/installed Xcode 10 beta and made sure it is selected with
xcode-select. Output of
Xcode 10.0 Build version 10L176w
- Created a
swift-sourcedirectory to place the code in
- Cloned Swift and ran the script to pull down other projects
git clone email@example.com:apple/swift.git&
utils/build-script --debug --xcodeto make a debug build I can run with Xcode.
Whenever running step 4 above, I end up getting:
The following build commands failed: CompileC /Users/mcmcguir/github/swift-source/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/Swift.build/Debug/swiftStdlibStubs-macosx-x86_64.build/Objects-normal/x86_64/SwiftNativeNSXXXBase.o /Users/mcmcguir/github/swift-source/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/8/SwiftNativeNSXXXBase.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (1 failure) utils/build-script: fatal error: command terminated with a non-zero exit status 65, aborting
This is the error I'm seeing:
error: Build input file cannot be found: '/Users/mcmcguir/github/swift-source/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/8/SwiftNativeNSXXXBase.mm'
If I copy the entire command and run it, it seems to execute just fine. I see the file present in that location. If I just run
utils/build-script --debug it seems to finish ok.