<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="">Hi JPMartha<div class=""><br class=""></div><div class="">The error you see &nbsp;<b class="">default: main </b>is&nbsp;coming from llbuild. There was a change in llbuild and now to build swiftpm you have to use&nbsp;llbuild&nbsp;from master.</div><div class=""><br class=""></div><div class="">1. Build&nbsp;llbuild&nbsp;-&gt; &nbsp;./swift/utils/build-scripl&nbsp;llbuild&nbsp;</div><div class="">2 - Build swiftpm and specify --sbt &nbsp; ./Utilities/bootstrap --swiftc /Users/kkoval/Work/apple/build/Ninja-ReleaseAssert/swift-macosx-x86_64/bin/swiftc --sbt /Users/kkoval/Work/apple/build/Ninja-ReleaseAssert/llbuild-macosx-x86_64/bin/swift-build-tool</div><div class=""><div class=""><br class=""></div><div class="">- Kostiantyn</div><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">On 16 Apr 2016, at 09:23, Martha JP via swift-build-dev &lt;<a href="mailto:swift-build-dev@swift.org" class="">swift-build-dev@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Hi, I'm JPMartha.</div><div class=""><br class=""></div><div class="">Can I ask about the following implementation?</div><div class="">&nbsp; - <a href="https://github.com/apple/swift-package-manager/blob/master/Sources/Build/YAML.swift#L31-L40" class="">https://github.com/apple/swift-package-manager/blob/master/Sources/Build/YAML.swift#L31-L40</a></div><div class=""><br class=""></div><div class="">The reason why I ask about that I can't build the SwiftPM itself with the bootstrap script these days.</div><div class="">&nbsp; - <a href="https://github.com/apple/swift-package-manager#development" class="">https://github.com/apple/swift-package-manager#development</a> (2)</div><div class=""><br class=""></div><div class="">When I try to build itself, the following error occurs.</div><div class=""><br class=""></div><div class="">## Error</div><div class="">```</div><div class="">/swift-package-manager/.build/debug.yaml:7:1: error: unexpected trailing top-level section</div><div class="">default: main</div><div class="">^</div><div class="">&lt;unknown&gt;:0: error: unable to load build file</div><div class="">error: exit(1): /Users/.../swift-package-manager/.build/debug/swift-build-tool -f /Users/.../swift-package-manager/.build/debug.yaml</div><div class="">```</div><div class=""><br class=""></div><div class="">## Environment</div><div class="">&nbsp; - swift-DEVELOPMENT-SNAPSHOT-2016-04-12</div><div class="">&nbsp; - OS X 10.11.4</div><div class=""><br class=""></div><div class="">I thought I had made a mistake, so I was checking the SwiftPM in my repository.</div><div class=""><br class=""></div><div class="">But, I have concern about the current implementation.</div><div class="">&nbsp; - <a href="https://github.com/apple/swift-package-manager/blob/master/Sources/Build/YAML.swift#L33-L34" class="">https://github.com/apple/swift-package-manager/blob/master/Sources/Build/YAML.swift#L33-L34</a></div><div class=""><br class=""></div><div class="">Please see my debug.yaml.</div><div class=""><br class=""></div><div class="">```</div><div class="">targets:</div><div class="">&nbsp; test: [&lt;Build.testsuite.module&gt;, &lt;Functional.testsuite.module&gt;, &lt;Get.testsuite.module&gt;, &lt;ManifestParser.testsuite.module&gt;, &lt;OptionsParser.testsuite.module&gt;, &lt;PackageDescription.testsuite.module&gt;, &lt;PackageType.testsuite.module&gt;, &lt;Transmute.testsuite.module&gt;, &lt;Utility.testsuite.module&gt;, &lt;Xcodeproj.testsuite.module&gt;, &lt;SwiftPM.test&gt;]</div><div class="">&nbsp; main: [&lt;Build.module&gt;, &lt;Get.module&gt;, &lt;libc.module&gt;, &lt;ManifestParser.module&gt;, &lt;Multitool.module&gt;, &lt;OptionsParser.module&gt;, &lt;PackageDescription.module&gt;, &lt;PackageType.module&gt;, &lt;POSIX.module&gt;, "&lt;swift-build.module&gt;", "&lt;swift-test.module&gt;", &lt;Transmute.module&gt;, &lt;Utility.module&gt;, &lt;Xcodeproj.module&gt;, "&lt;swift-build.exe&gt;", "&lt;swift-test.exe&gt;", &lt;PackageDescription.dylib&gt;]</div><div class="">```</div><div class=""><br class=""></div><div class="">I guess the following changes are occurred by executing the "quote" method.</div><div class=""><br class=""></div><div class="">## Before the change:</div><div class="">&lt;swift-build.module&gt;, &lt;swift-test.module&gt;, &lt;swift-build.exe&gt;, &lt;swift-test.exe&gt;</div><div class=""><br class=""></div><div class="">## After the change:</div><div class="">"&lt;swift-build.module&gt;", "&lt;swift-test.module&gt;", "&lt;swift-build.exe&gt;", "&lt;swift-test.exe&gt;"</div><div class=""><br class=""></div><div class="">But, I cannot confirm that because I cannot run&nbsp;the bootstrap script.</div><div class=""><br class=""></div><div class="">I'm really sorry if I got the wrong idea.</div><div class=""><br class=""></div><div class="">Best regards,</div><div class="">JPMartha</div></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="">https://lists.swift.org/mailman/listinfo/swift-build-dev<br class=""></div></blockquote></div><br class=""></div></body></html>