Skip to content

[SR-9347] XCTest and dispatch compiled with wrong linker settings [was: SwiftPM libBlocksRuntime.so.0 missing dependency] #630

Open
@swift-ci

Description

@swift-ci
Previous ID SR-9347
Radar rdar://problem/52194061
Original Reporter djones6 (JIRA User)
Type Bug
Environment

Ubuntu 16.04 (docker: ubuntu:16.04)

Additional Detail from JIRA
Votes 1
Component/s libdispatch
Labels Bug
Assignee None
Priority Medium

md5: c366bc20e06db396929e3f33a653ef84

Issue Description:

SwiftPM in swift development snapshots of 2018-07-21-a and later fails on a clean Ubuntu installation with:

/swift-DEVELOPMENT-SNAPSHOT-2018-07-21-a-ubuntu16.04/usr/bin/swift-package: error while loading shared libraries: libBlocksRuntime.so.0: cannot open shared object file: No such file or directory

It seems that installing libblocksruntime-dev resolves this, but this is not a dependency that was required for any previous versions of Swift.

It looks like this additional dependency was introduced in this PR: swiftlang/swift-package-manager#1631

Snapshots around 2018-10-19-a and later do seem to include /usr/lib/swift/linux/libBlocksRuntime.so - possibly as a result of #362 - but there is no libBlocksRuntime.so.0 symlink to this. Creating a symlink from libBlocksRuntime.so -> libBlocksRuntime.so.0 seems to make things work, but I'll freely admit that I don't really know what I'm doing.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions