Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-8522] System Package failed to build with ambiguous errors #5343

Closed
swift-ci opened this issue Aug 12, 2018 · 0 comments
Closed

[SR-8522] System Package failed to build with ambiguous errors #5343

swift-ci opened this issue Aug 12, 2018 · 0 comments
Labels

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-8522
Radar None
Original Reporter mowais (JIRA User)
Type Bug
Status Resolved
Resolution Duplicate
Environment

Ubuntu 16.04

Swift 4.03

Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: aad529ffc2772dcf9650aad59f104c46

duplicates:

  • SR-5383 Display appropriate message when trying to build system module packages

Issue Description:

I am trying to build a swift system package on Ubuntu which uses Berkeley DB. It generated following errors

<unknown>:0: error: unexpected 'commands' value (expected map)
{{ <unknown>:0: error: unable to load build file}}

My modulemap file looks like the following

module BerkeleyDB [system] {
{{ header "/usr/include/db.h"}}
{{ link "libdb-5.3"}}
{{ export *}}
{{ }}}
{{ }}

And Package.swift is as follows
// swift-tools-version:4.0
{{ // The swift-tools-version declares the minimum version of Swift required to build this package.}}

import PackageDescription

let package = Package(
{{ name: "BerkeleyDB",}}
{{ dependencies: [}}
{{ // Dependencies declare other packages that this package depends on.}}
{{ // .package(url: /* package url */, from: "1.0.0"),}}
{{ ]}}
{{ )}}

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant