Uploaded image for project: 'Swift'
  1. Swift
  2. SR-6758

Fatal error when building single product

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Component/s: Package Manager
    • Labels:
      None
    • Environment:

      Swift 4.0.3.

      Darwin.

      Description

       

      Package.swift

      // swift-tools-version:4.0
      import PackageDescription
      
      var targets:[Target] = [
          .target(name: "OnlinePlayground")
      ]
      
      var products: [Product] = [
          .library(name: "OnlinePlayground", targets: ["OnlinePlayground"])
      ]
      
      let package = Package(
          name: "Foofooo",
          products: products,
          dependencies: [],
          targets: targets
      )
      

      When using --product option, execution ends with Fatal error:

       

       

      $ swift build --product OnlinePlayground
      Fatal error: file /BuildRoot/Library/Caches/com.apple.xbs/Sources/swiftpm/swiftpm-13752/Sources/Build/llbuild.swift, line 235
      Illegal instruction: 4

       

      but works with a default options

      $ swift build
      Compile Swift Module 'OnlinePlayground' (1 sources)

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            krzyzanowskim Marcin Krzyzanowski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: