[swift-build-dev] Can't build swiftpm (SPM) Project after installing new swift-2.2-SNAPSHOT-2015-12-10-a
Greg Parker
gparker at apple.com
Sat Dec 12 15:04:22 CST 2015
The source for the script that it's running is swift/utils/swift-stdlib-tool-substitute. That script finds the real swift-stdlib-tool from a built-in toolchain and runs it. Looks like the shell doesn't like the script's syntax.
Kostiantyn, what is the output of these two terminal commands?
which bash
bash --version
> On Dec 12, 2015, at 9:54 AM, Kostiantyn Koval <konstantin.koval1 at gmail.com> wrote:
>
> Done.
> https://bugs.swift.org/browse/SR-205 <https://bugs.swift.org/browse/SR-205>
>
> Kostiantyn
>
>> On 12 Dec 2015, at 18:03, Daniel Dunbar <daniel_dunbar at apple.com> wrote:
>>
>> +Greg, any idea what is going on here?
>>
>> Can we get a bug for this please, to track?
>>
>> - Daniel
>>
>>> On Dec 12, 2015, at 7:29 AM, Kostiantyn Koval via swift-build-dev <swift-build-dev at swift.org <mailto:swift-build-dev at swift.org>> wrote:
>>>
>>> Hi,
>>>
>>> I've just installed new Swift Toolchain. After installation I'v tried to build swiftpm project from Xcode and it failed.
>>> Here is the build log.
>>>
>>> CopySwiftLibs DerivedData/swiftpm/Build/Products/Debug/PackageDescription-tests.xctest
>>> cd /Users/konstantin/Work/apple/swiftpm/Support
>>> export CODESIGN_ALLOCATE=/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
>>> /Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin/swift-stdlib-tool --copy --verbose --sign - --scan-executable /Users/konstantin/Work/apple/swiftpm/Support/DerivedData/swiftpm/Build/Products/Debug/PackageDescription-tests.xctest/Contents/MacOS/PackageDescription-tests --scan-folder /Users/konstantin/Work/apple/swiftpm/Support/DerivedData/swiftpm/Build/Products/Debug/PackageDescription-tests.xctest/Contents/Frameworks --scan-folder /Users/konstantin/Work/apple/swiftpm/Support/DerivedData/swiftpm/Build/Products/Debug/PackageDescription-tests.xctest/Contents/PlugIns --platform macosx --destination /Users/konstantin/Work/apple/swiftpm/Support/DerivedData/swiftpm/Build/Products/Debug/PackageDescription-tests.xctest/Contents/Frameworks --strip-bitcode
>>>
>>> /Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin/swift-stdlib-tool: line 23: conditional binary operator expected
>>> /Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin/swift-stdlib-tool: line 23: syntax error near `"$tool"'
>>> /Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin/swift-stdlib-tool: line 23: `if [[ ! -fx "$tool" ]]; then'
>>> Command /Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin/swift-stdlib-tool failed with exit code 2
>>>
>>> Any idea what could go wring and how to fix that?
>>> I'm still able to compile the project using "./Utilities/bootstrap"
>>>
>>> Best Regards,
>>> Kostiantyn
>>>
>>>
>>> _______________________________________________
>>> swift-build-dev mailing list
>>> swift-build-dev at swift.org <mailto:swift-build-dev at swift.org>
>>> https://lists.swift.org/mailman/listinfo/swift-build-dev
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-build-dev/attachments/20151212/afde9493/attachment.html>
More information about the swift-build-dev
mailing list