Package Details: swift-language 5.9.2-2

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)

Sources (35)

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 and llvm are built, but not installed. If they are installed, space requirement increases to 20GB, package is 2GB, and installed size 7GB.
    • Above space requirements count only the build tree. Does not include space needed to download and install depends. Does not include temporary files that may have been created and deleted by the build system.
  • 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.:

  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

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 .. 15 Next › Last »

fanjiang commented on 2021-06-10 03:48 (UTC)

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.

soloturn commented on 2021-02-04 15:16 (UTC)

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

fanjiang commented on 2021-01-03 21:03 (UTC)

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,

soloturn commented on 2020-09-19 09:18 (UTC) (edited on 2020-09-19 09:34 (UTC) by soloturn)

thanks for the hint! i copied now the dependencies from https://aur.archlinux.org/packages/swift-language-git and no diagnostics any more.

freswa commented on 2020-09-17 21:59 (UTC)

Please use python-diagnostics as a depend/makedepend and remove L49. Thank you

elgs commented on 2020-09-15 09:20 (UTC)

Why does Swift have so many Python dependencies?

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.:

  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

soloturn commented on 2020-08-14 02:37 (UTC) (edited on 2020-08-14 05:13 (UTC) by soloturn)

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

fanjiang commented on 2020-08-11 17:14 (UTC)

Hi @soloturn,

did you try to submit the issue to the Arch bug tracker for compiler_rt and stuff?

fanjiang commented on 2020-07-06 21:01 (UTC)

That is great :)