[swift-build-dev] [build debug.yaml] The changes occurred by executing the "quote" method

Kostiantyn Koval konstantin.koval1 at gmail.com
Sat Apr 16 05:23:57 CDT 2016


Hi JPMartha

The error you see  default: main is coming from llbuild. There was a change in llbuild and now to build swiftpm you have to use llbuild from master.

1. Build llbuild ->  ./swift/utils/build-scripl llbuild 
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

- Kostiantyn

> On 16 Apr 2016, at 09:23, Martha JP via swift-build-dev <swift-build-dev at swift.org> wrote:
> 
> Hi, I'm JPMartha.
> 
> Can I ask about the following implementation?
>   - https://github.com/apple/swift-package-manager/blob/master/Sources/Build/YAML.swift#L31-L40 <https://github.com/apple/swift-package-manager/blob/master/Sources/Build/YAML.swift#L31-L40>
> 
> The reason why I ask about that I can't build the SwiftPM itself with the bootstrap script these days.
>   - https://github.com/apple/swift-package-manager#development <https://github.com/apple/swift-package-manager#development> (2)
> 
> When I try to build itself, the following error occurs.
> 
> ## Error
> ```
> /swift-package-manager/.build/debug.yaml:7:1: error: unexpected trailing top-level section
> default: main
> ^
> <unknown>:0: error: unable to load build file
> error: exit(1): /Users/.../swift-package-manager/.build/debug/swift-build-tool -f /Users/.../swift-package-manager/.build/debug.yaml
> ```
> 
> ## Environment
>   - swift-DEVELOPMENT-SNAPSHOT-2016-04-12
>   - OS X 10.11.4
> 
> I thought I had made a mistake, so I was checking the SwiftPM in my repository.
> 
> But, I have concern about the current implementation.
>   - https://github.com/apple/swift-package-manager/blob/master/Sources/Build/YAML.swift#L33-L34 <https://github.com/apple/swift-package-manager/blob/master/Sources/Build/YAML.swift#L33-L34>
> 
> Please see my debug.yaml.
> 
> ```
> targets:
>   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>]
>   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>]
> ```
> 
> I guess the following changes are occurred by executing the "quote" method.
> 
> ## Before the change:
> <swift-build.module>, <swift-test.module>, <swift-build.exe>, <swift-test.exe>
> 
> ## After the change:
> "<swift-build.module>", "<swift-test.module>", "<swift-build.exe>", "<swift-test.exe>"
> 
> But, I cannot confirm that because I cannot run the bootstrap script.
> 
> I'm really sorry if I got the wrong idea.
> 
> Best regards,
> JPMartha
> _______________________________________________
> swift-build-dev mailing list
> 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/20160416/8223243c/attachment.html>


More information about the swift-build-dev mailing list