<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Thanks for answer. it helped a lot.<div class=""><br class=""></div><div class="">There was one more issue at line 70. Fixed in the same way.</div><div class=""><div class="">- if [[ ! -dx "$source_libraries" ]]; then</div><div class="">+ if [ ! -d "$source_libraries" -o ! -x "$source_libraries" ]]; then</div><div class=""><br class=""></div><div class="">Here is some other things I've tried :</div><div class=""><br class=""></div><div class="">When I run "./utils/swift-stdlib-tool-substitute" I get</div><div class=""><div class="">./utils/swift-stdlib-tool-substitute: error: couldn't find swift-stdlib-tool at /Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-stdlib-tool</div></div><div class=""><br class=""></div><div class="">If I edit swift-stdlib-tool and fix the code there than when launching Xcode it don't pass signature verification and not laughed.</div><div class="">edit "/Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin/swift-stdlib-tool"</div><div class="">run "xcrun launch-with-toolchain /Library/Developer/Toolchains/swift-latest.xctoolchain" </div><div class=""><br class=""></div><div class="">It works when: </div><div class="">I launch Xcode first, and then I edit swift-sodlib-tool.</div><div class="">In that case swiftpm Xcode project is building fine. But I need to keep Xcode open or restore and edit swift-sodlib-tool every time.</div><div class="">Is there anyway I can build and sign swift-sodlib-tool?</div><div class=""><br class=""></div><div class=""><div class="">
<div class=""><div class="">Best Regards,</div><div class="">Kostiantyn</div></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On 13 Dec 2015, at 12:08, Greg Parker <<a href="mailto:gparker@apple.com" class="">gparker@apple.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Thanks. That is much newer than the bash that ships with OS X. Presumably there was a syntax change in the meantime. </div><div class=""><br class=""></div><div class="">Please try this change in your toolchain's swift-stdlib-tool:</div><div class=""><br class=""></div><div class="">-if [[ ! -fx "$tool" ]]; then<br class="">+if [ ! -f "$tool" -o ! -x "$tool" ]; then<br class=""><br class=""></div><div class="">I expect that to get farther but then fail again later in the script.</div><div class=""><br class=""></div><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Dec 13, 2015, at 2:51 AM, Kostiantyn Koval <<a href="mailto:konstantin.koval1@gmail.com" class="">konstantin.koval1@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I haven't updated the swift repo. Will try to do it now.<div class=""><br class=""></div><div class="">Yes, when I run `swift-stdlib-tool-substitute` it shows that error</div><div class=""><div class="">Here is the bash info: </div><div class=""><br class=""></div><div class="">bash --version</div><div class="">GNU bash, version 4.3.42(1)-release (x86_64-apple-darwin14.5.0)</div><div class="">Copyright (C) 2013 Free Software Foundation, Inc.</div><div class="">License GPLv3+: GNU GPL version 3 or later <<a href="http://gnu.org/licenses/gpl.html" class="">http://gnu.org/licenses/gpl.html</a>></div><div class=""><br class=""></div><div class="">This is free software; you are free to change and redistribute it.</div><div class="">There is NO WARRANTY, to the extent permitted by law.</div><div class=""><br class=""></div><div class="">which bash</div><div class="">/usr/local/bin/bash</div><div class=""><br class=""></div><div class="">I also use <a href="http://ohmyz.sh/" class="">http://ohmyz.sh</a> if that has any impact </div></div><div class=""><div class=""><br class=""></div><div class="">zsh --version</div><div class="">zsh 5.0.8 (x86_64-apple-darwin15.0)</div></div><div class=""><div class=""><div class=""><div class=""><br class=""></div><div class="">Kostiantyn</div></div>
</div>
<br class=""><div class=""><blockquote type="cite" class=""><div class="">On 12 Dec 2015, at 22:04, Greg Parker <<a href="mailto:gparker@apple.com" class="">gparker@apple.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">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.</div><div class=""><br class=""></div><div class="">Kostiantyn, what is the output of these two terminal commands?</div><div class=""><br class=""></div><div class="">which bash</div><div class="">bash --version</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div class="">On Dec 12, 2015, at 9:54 AM, Kostiantyn Koval <<a href="mailto:konstantin.koval1@gmail.com" class="">konstantin.koval1@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Done.</div><a href="https://bugs.swift.org/browse/SR-205" class="">https://bugs.swift.org/browse/SR-205</a><div class=""><div class=""><div class=""><div class=""><br class=""></div><div class="">Kostiantyn</div></div>
</div>
<br class=""><div class=""><blockquote type="cite" class=""><div class="">On 12 Dec 2015, at 18:03, Daniel Dunbar <<a href="mailto:daniel_dunbar@apple.com" class="">daniel_dunbar@apple.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">+Greg, any idea what is going on here?<div class=""><br class=""></div><div class="">Can we get a bug for this please, to track?</div><div class=""><br class=""></div><div class=""> - Daniel</div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Dec 12, 2015, at 7:29 AM, Kostiantyn Koval via swift-build-dev <<a href="mailto:swift-build-dev@swift.org" class="">swift-build-dev@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">I've just installed new Swift Toolchain. After installation I'v tried to build swiftpm project from Xcode and it failed.</div><div class="">Here is the build log.</div><div class=""><br class=""></div><div class=""><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">CopySwiftLibs DerivedData/swiftpm/Build/Products/Debug/PackageDescription-tests.xctest</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> cd /Users/konstantin/Work/apple/swiftpm/Support</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> export CODESIGN_ALLOCATE=/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> /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</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class=""><br class=""></div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">/Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin/swift-stdlib-tool: line 23: conditional binary operator expected</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">/Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin/swift-stdlib-tool: line 23: syntax error near `"$tool"'</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">/Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin/swift-stdlib-tool: line 23: `if [[ ! -fx "$tool" ]]; then'</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">Command /Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin/swift-stdlib-tool failed with exit code 2</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; line-height: normal;" class=""><span style="text-indent: 0px;" class="">Any idea what could go wring and how to fix that?</span></div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-family: Helvetica; font-size: 12px; text-indent: 0px;" class="">I'm still able to compile the project using "</span><span style="font-family: Helvetica; font-size: 12px; text-indent: 0px;" class="">./Utilities/bootstrap"</span></div><div class=""><br class=""><div class="">
<div class=""><div class="">Best Regards,</div><div class="">Kostiantyn</div></div>
</div>
<br class=""></div></div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=AdkfTiApI80cNEyortTzHbERtY5det-2FDBvSxuhs4q2PYLaR1T18vUhvKWOt5-2Fk2Aa3daKfc4dtk-2BPRZLncZvmGBtYpddAE6x51S5E3cUPWjLFWn8b0rripz-2BEzBnHy1C-2Fcqnfmzz5SmKOLpxGLx7w28y7MCXBu056CV6dUJikIGmFB516WJh0yv1KzHta8NgWs106hX3ZD7l3Ay78xKFnjkXpxgeoygzvRiNwvSfeXo-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;" class="">
</div>
_______________________________________________<br class="">swift-build-dev mailing list<br class=""><a href="mailto:swift-build-dev@swift.org" class="">swift-build-dev@swift.org</a><br class=""><a href="https://lists.swift.org/mailman/listinfo/swift-build-dev" class="">https://lists.swift.org/mailman/listinfo/swift-build-dev</a><br class=""></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></div></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></div></div></blockquote></div><br class=""></div></div></body></html>