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

Swiftly doesn't reliably install dependencies #144

Closed
MahdiBM opened this issue Jul 23, 2024 · 6 comments
Closed

Swiftly doesn't reliably install dependencies #144

MahdiBM opened this issue Jul 23, 2024 · 6 comments

Comments

@MahdiBM
Copy link
Contributor

MahdiBM commented Jul 23, 2024

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.

@adam-fowler
Copy link
Contributor

Hmmm I really can't see how that happens as it installs what's in the Dockerfiles. But yeah we are waiting on a better method to decide on dependencies, so this probably won't get looked into.

@MahdiBM
Copy link
Contributor Author

MahdiBM commented Jul 23, 2024

I really can't see how that happens

Me too, but it appears to me that it did happen 😅.

@MahdiBM
Copy link
Contributor Author

MahdiBM commented Jul 28, 2024

Someone else also reported a not-installed dependency in Vapor's Discord server (zlib).
Here's the last message of the conversation related to this issue. Just leaving it here as proof.

@MahdiBM MahdiBM changed the title Swiftly seems to have skipped installing libcurl4-openssl-dev Swiftly doesn't reliably install dependencies Jul 28, 2024
@MahdiBM
Copy link
Contributor Author

MahdiBM commented Jul 28, 2024

I see there is a test here as well. Not sure what could be going wrong there (though in my limited bash experience, anything can go wrong at all times).

@adam-fowler
Copy link
Contributor

Given the changes in #127 I don't think this is valid anymore.

@MahdiBM
Copy link
Contributor Author

MahdiBM commented Aug 8, 2024

Hmmm it still relies on the dockerfiles?
Though to be honest I don't think the issue was from parsing dockerfiles or something.

We can close for now.

@MahdiBM MahdiBM closed this as completed Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants