Skip to content

Swiftly doesn't reliably install dependencies #144

Closed
@MahdiBM

Description

@MahdiBM

For the full discussion, see this thread in Swift Open Source Slack.

Apparently Swiftly did not automatically install libcurl4-openssl-dev on my fresh VPS, which caused build failures when using --static-swift-stdlib.

For the sake of search-ability if someone steps into this issue, here's also part of the error pasted here:

error: link command failed with exit code 1 (use -v to see invocation)
/usr/bin/ld.gold: error: cannot find -lcurl
/root/.local/share/swiftly/toolchains/5.10.1/usr/lib/swift_static/linux/libFoundationNetworking.a(CFURLSessionInterface.c.o):CFURLSessionInterface.c:function CFURLSessionEasyCodeDescription: error: undefined reference to 'curl_easy_strerror'

I know the "find what dependencies to install" logic is not bulletproof and reads from the Dockerfiles, and that Swiftly is waiting on official ways to know what dependencies to install.

I did check the Dockerfiles, all seem to include libcurl4-openssl-dev for Ubuntu 22.04.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions