Quantcast
Channel: Package Manager - Swift Forums
Viewing all articles
Browse latest Browse all 167

Cannot build SwiftPM using build-script

$
0
0

Hi all,
I feel like this must be a fairly basic mistake!
I've tried to build the compiler and spm using utils/build-script in the swift distribution and it's failing...

utils/build-script -R -p

... cmark, llvm, swift and the standard library build fine for about an hour then ...

--- Cleaning swiftpm ---
+ /Users/carl/Documents/Code/swift/swiftpm/Utilities/bootstrap clean --build-dir /Users/carl/Documents/Code/swift/build/Ninja-ReleaseAssert/swiftpm-macosx-arm64
--- bootstrap: note: Cleaning
--- Building swiftpm ---
+ /Users/carl/Documents/Code/swift/swiftpm/Utilities/bootstrap build --release --swiftc-path /Users/carl/Documents/Code/swift/build/Ninja-ReleaseAssert/toolchain-macosx-arm64/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc --clang-path /Users/carl/Documents/Code/swift/build/Ninja-ReleaseAssert/toolchain-macosx-arm64/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang --cmake-path /Users/carl/CMake.app/Contents/bin/cmake --ninja-path /Users/carl/homebrew/bin/ninja --build-dir /Users/carl/Documents/Code/swift/build/Ninja-ReleaseAssert/swiftpm-macosx-arm64 --llbuild-build-dir /Users/carl/Documents/Code/swift/build/Ninja-ReleaseAssert/llbuild-macosx-arm64 --reconfigure
--- bootstrap: error: unable to find swiftc at /Users/carl/Documents/Code/swift/build/Ninja-ReleaseAssert/toolchain-macosx-arm64/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc
ERROR: command `['/Users/carl/Documents/Code/swift/swiftpm/Utilities/bootstrap', 'build', '--release', '--swiftc-path', '/Users/carl/Documents/Code/swift/build/Ninja-ReleaseAssert/toolchain-macosx-arm64/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc', '--clang-path', '/Users/carl/Documents/Code/swift/build/Ninja-ReleaseAssert/toolchain-macosx-arm64/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang', '--cmake-path', '/Users/carl/CMake.app/Contents/bin/cmake', '--ninja-path', '/Users/carl/homebrew/bin/ninja', '--build-dir', '/Users/carl/Documents/Code/swift/build/Ninja-ReleaseAssert/swiftpm-macosx-arm64', '--llbuild-build-dir', '/Users/carl/Documents/Code/swift/build/Ninja-ReleaseAssert/llbuild-macosx-arm64', '--reconfigure']` terminated with a non-zero exit status 1, aborting

Looking in /Users/carl/Documents/Code/swift/build/Ninja-ReleaseAssert I see all the directories I would usually see for the compiler builds I've done over the years...

ls -l /Users/carl/Documents/Code/swift/build/Ninja-ReleaseAssert
total 0
drwxr-xr-x  19 carl  staff   608 30 Jul 09:28 cmark-macosx-arm64
drwxr-xr-x   4 carl  staff   128 26 Jul 14:23 earlyswiftdriver-macosx-arm64
drwxr-xr-x  29 carl  staff   928 26 Jul 14:34 llvm-macosx-arm64
drwxr-xr-x  34 carl  staff  1088 26 Jul 15:00 swift-macosx-arm64

I've never seen a toolchain-macosx-arm64 directory there. Is this a regression in building SPM as part of the standard swift compiler build?

7 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 167

Trending Articles