I compiled the latest release on GCE. Here is the prebuilt binary:
https://github.com/ProfFan/swift-aur/releases/download/5.4.1/swift-language-5.4-1-x86_64.pkg.tar.zst
I will also push some changes to make the build go through here.
Git Clone URL: | https://aur.archlinux.org/swift-language.git (read-only, click to copy) |
---|---|
Package Base: | swift-language |
Description: | The Swift programming language and debugger |
Upstream URL: | https://github.com/apple/swift |
Licenses: | Apache-2.0 |
Submitter: | Zrax |
Maintainer: | soloturn (fanjiang, refi.64, spacecowgirl, medzik, KyleYe, xiota) |
Last Packager: | xiota |
Votes: | 45 |
Popularity: | 0.004178 |
First Submitted: | 2016-01-08 23:39 (UTC) |
Last Updated: | 2024-01-01 08:14 (UTC) |
« First ‹ Previous 1 2 3 4 5 6 7 8 9 .. 15 Next › Last »
I compiled the latest release on GCE. Here is the prebuilt binary:
https://github.com/ProfFan/swift-aur/releases/download/5.4.1/swift-language-5.4-1-x86_64.pkg.tar.zst
I will also push some changes to make the build go through here.
hi fanjiang, did so, and granted you access as well to commit, one package is uploaded already: https://github.com/soloturn/swift-aur/releases/tag/latest
hope it will not hit the 6h build timeout too often fingers crossed
Hi soloturn,
I tried your builds on GitHub actions today and I found out that the REPL does not work.
This is due to makepkg stripping out the symbols: https://forums.swift.org/t/failed-to-resolve-repl-breakpoint/761
Could you change the PKGBUILD to skip stripping?
Best,
thanks for the hint! i copied now the dependencies from https://aur.archlinux.org/packages/swift-language-git and no diagnostics any more.
Please use python-diagnostics as a depend/makedepend and remove L49. Thank you
Why does Swift have so many Python dependencies?
to speed up check out of the repositories, use shallow or sparse clone, e.g.:
GITFLAGS="--depth=1" paru -S swift-language
other options to install swift are currently:
swift-bin, which repackages tachoknights official released centos8 build: https://aur.archlinux.org/packages/swift-bin/. the install is quick, no hours of waiting until everything is compiled.
latest from git, in swift-language-git. there is a binary built with github actions, but this build is not particularly stable, sometimes it uses more resources than github allows, sometimes it fails for a change upstream. the version number is taken out of the official tag on apple/swift main branch: e.g. swift-language-git-swift.DEVELOPMENT.SNAPSHOT.2020.09.28.a.r208.g6651f6e55d4-1-x86_64.pkg.tar.zst. so this one is the development tag from sep 28 + 208 commits, the commit hash is g6651f: aur - https://aur.archlinux.org/packages/swift-language-git. gh-actions: https://github.com/soloturn/swift-aur/releases/tag/latest
there was an 5.4.1 binary build, native arch, by fanjiang, built on GCE: https://github.com/ProfFan/swift-aur/releases
i did create one at llvm: https://bugs.llvm.org/show_bug.cgi?id=47163
it is not considered a bug in swift: https://bugs.swift.org/browse/SR-13082
it happens when compiling compiler-rt with llvm, at least on arch linux, but it is not considered a bug in arch: https://bugs.archlinux.org/task/67518
Hi @soloturn,
did you try to submit the issue to the Arch bug tracker for compiler_rt and stuff?
That is great :)
Pinned Comments
xiota commented on 2023-12-31 14:56 (UTC) (edited on 2024-01-01 08:28 (UTC) by xiota)
While I was able to build this in a clean chroot, consider this package to be a wip.
According to this comment, swift does need swift to build. So if you haven't previously built this package, you'll need
aur/swift-bin
.This package attempts to install only
swift
to/usr/lib/swift
. Building takes about 15GB. Package is 650MB. Installed size is 2GB.cmark
andllvm
are built, but not installed. If they are installed, space requirement increases to 20GB, package is 2GB, and installed size 7GB.This package does not make debug symbols. With debugging enabled, over 70GB would be required to build. I don't know package or install size because I hadn't figured out how to install at that time.
soloturn commented on 2020-09-06 22:25 (UTC) (edited on 2023-02-05 07:39 (UTC) by soloturn)
to speed up check out of the repositories, use shallow or sparse clone, e.g.:
other options to install swift are currently:
swift-bin, which repackages tachoknights official released centos8 build: https://aur.archlinux.org/packages/swift-bin/. the install is quick, no hours of waiting until everything is compiled.
latest from git, in swift-language-git. there is a binary built with github actions, but this build is not particularly stable, sometimes it uses more resources than github allows, sometimes it fails for a change upstream. the version number is taken out of the official tag on apple/swift main branch: e.g. swift-language-git-swift.DEVELOPMENT.SNAPSHOT.2020.09.28.a.r208.g6651f6e55d4-1-x86_64.pkg.tar.zst. so this one is the development tag from sep 28 + 208 commits, the commit hash is g6651f: aur - https://aur.archlinux.org/packages/swift-language-git. gh-actions: https://github.com/soloturn/swift-aur/releases/tag/latest
there was an 5.4.1 binary build, native arch, by fanjiang, built on GCE: https://github.com/ProfFan/swift-aur/releases