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

Swift build crashes C Modulemap packages

    XMLWordPrintable

    Details

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

      Tested with the 05-09 and 06-06 snapshots, along with the Xcode 8.0 Swift preview. Can reproduce on all of them. Also fails on Linux (tested in a Ubuntu 14.04 docker container).

      Description

      Steps to reproduce:

      git clone https://github.com/Zewo/CLibpq && cd CLibpq
      swift build
      

      Output:

      <unknown>:0: error: unexpected 'commands' value (expected map)
      <unknown>:0: error: unable to load build file
      error: exit(1): /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-06-06-a.xctoolchain/usr/bin/swift-build-tool -f /Users/dan/Developer/projects/Zewo/Development/CLibpq/.build/debug.yaml
      

      Breaks with other similar-style c packages as well ([Clibbson](https://github.com/danappelxx/clibbson), [CMysql](https://github.com/zewo/cmysql)); but doesn't break with packages that have C sources ([CLibvenice](https://github.com/venicex/clibvenice), [CHTTPParser](https://github.com/zewo/chttpparser)).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              dan Dan Appel
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: