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

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

The reason why I ask about that I can't build the SwiftPM itself with the
bootstrap script these days.
  - GitHub - apple/swift-package-manager: The Package Manager for the Swift Programming Language (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

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

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@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

The reason why I ask about that I can't build the SwiftPM itself with the bootstrap script these days.
  - GitHub - apple/swift-package-manager: The Package Manager for the Swift Programming Language (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

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@swift.org
https://lists.swift.org/mailman/listinfo/swift-build-dev

Hi, Kostiantyn

Thank you so much for explaining it in detail.

I'm sorry that I had misunderstood what SwiftPM requires, and it's not
related to the changes occurred by executing the "quote" method.

I cannot try that now, so I'll try later.

Best regards,
JPMartha

···

2016-04-16 19:23 GMT+09:00 Kostiantyn Koval <konstantin.koval1@gmail.com>:

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@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

The reason why I ask about that I can't build the SwiftPM itself with the
bootstrap script these days.
  - GitHub - apple/swift-package-manager: The Package Manager for the Swift Programming Language (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

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@swift.org
https://lists.swift.org/mailman/listinfo/swift-build-dev