Are the prebuilt toolchains (https://swift.org/download/) giving you trouble?
The Ubuntu ones are well known for having linker issues on LTS distributions.
I'm currently using Arch, so I don't think the prebuilt Ubuntu ones are going to work.
Re:Swift 5.2
by resist_futility on Wednesday March 25, 2020 @12:19AM
(#22681906)
Maybe just use the Docker builds?
I know I'm out of fashion :-), but I don't really use containers for anything. I think Swift looks really nice, but when I check out other languages (such as Go, Rust, or any of the gazillion others), I don't have to jump through any hoops other than using the system package manager or something like "./configure; make install". I wish Swift was in this camp.
> I don't have to jump through any hoops other than using the system package manager
Wouldn't that be something the package manager should include?
If you're using Arch, I'm pretty sure AUR have you covered... [0]
The last time I tried, it didn't go well. When the AUR package for swift or swift-bin goes to 5.2, I'll probably try again.
> If you're using Arch, I'm pretty sure AUR have you covered...
Have you gotten it working with Arch?
There are user comments on the page you linked indicating other people have had problems too.
However since then, I've had very limited success under Ubuntu, CentOS, and Arch. Different failures on each. Every few releases or so I give it a go, but something always fails and I go back to working on some other pet project.