<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 <b class="">default: main </b>is coming from llbuild. There was a change in llbuild and now to build swiftpm you have to use llbuild from master.</div><div class=""><br class=""></div><div class="">1. Build llbuild -> ./swift/utils/build-scripl llbuild </div><div class="">2 - Build swiftpm and specify --sbt ./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 <<a href="mailto:swift-build-dev@swift.org" class="">swift-build-dev@swift.org</a>> 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=""> - <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=""> - <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=""><unknown>: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=""> - swift-DEVELOPMENT-SNAPSHOT-2016-04-12</div><div class=""> - 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=""> - <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=""> test: [<Build.testsuite.module>, <Functional.testsuite.module>, <Get.testsuite.module>, <ManifestParser.testsuite.module>, <OptionsParser.testsuite.module>, <PackageDescription.testsuite.module>, <PackageType.testsuite.module>, <Transmute.testsuite.module>, <Utility.testsuite.module>, <Xcodeproj.testsuite.module>, <SwiftPM.test>]</div><div class=""> main: [<Build.module>, <Get.module>, <libc.module>, <ManifestParser.module>, <Multitool.module>, <OptionsParser.module>, <PackageDescription.module>, <PackageType.module>, <POSIX.module>, "<swift-build.module>", "<swift-test.module>", <Transmute.module>, <Utility.module>, <Xcodeproj.module>, "<swift-build.exe>", "<swift-test.exe>", <PackageDescription.dylib>]</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=""><swift-build.module>, <swift-test.module>, <swift-build.exe>, <swift-test.exe></div><div class=""><br class=""></div><div class="">## After the change:</div><div class="">"<swift-build.module>", "<swift-test.module>", "<swift-build.exe>", "<swift-test.exe>"</div><div class=""><br class=""></div><div class="">But, I cannot confirm that because I cannot run 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>