Package Details: swift-language 5.10.1-1

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.000051
First Submitted: 2016-01-08 23:39 (UTC)
Last Updated: 2024-07-02 17:33 (UTC)

Sources (35)

Pinned Comments

xiota commented on 2023-12-31 14:56 (UTC) (edited on 2024-07-13 07:31 (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 (5.9.2) 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.
    • I don't know if everything actually works correctly. Someone who knows better would have to check. (I would use swift-bin, especially since it's already needed to build this.)
  • 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 .. 5 6 7 8 9 10 11 12 13 14 15 Next › Last »

tierriminator commented on 2017-12-27 21:30 (UTC)

My issue below seemed to be a issue of apacman, not of this package. The package builds and installs fine without a helper.

tierriminator commented on 2017-12-15 03:35 (UTC)

Thanks for the upgrade. However for me it doesn't seem to install properly. Everything builds fine and no error is thrown, but after installation, it does not seem that the swift package is installed. Therefore when swift-lldb tries to install, it fails, because the dependencies are not resolved.

Zrax commented on 2017-10-31 00:50 (UTC)

Yeah, I'm aware it needs an update... I've had some difficulty getting sourcekit linking correctly since this build, so I may end up disabling it for now. But I also haven't had much time to work on it recently. Sorry for the delay.

tierriminator commented on 2017-10-30 22:20 (UTC)

Swift 4 is now out since over a month, it would be great if this package got an upgrade.

skela commented on 2017-09-20 06:58 (UTC)

@Zrax: That builds and works for me now, thanks so much for the help!

Zrax commented on 2017-09-19 18:21 (UTC)

@skela: Thanks, I've added another patch to make it build with clang 5.

skela commented on 2017-09-18 06:42 (UTC)

Thanks, that now comes a long way further when I try to install, except it stops with a different error: [287/652] Building CXX object lib/Serialization/CMakeFiles/swiftSerialization.dir/Serialization.cpp.o [288/652] Building CXX object lib/SIL/CMakeFiles/swiftSIL.dir/SILDeclRef.cpp.o ninja: build stopped: subcommand failed. ./utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting ==> ERROR: A failure occurred in build(). Aborting...

Zrax commented on 2017-09-17 17:18 (UTC)

It looks like github made a change that affects how some tarballs are generated (affecting much more than just swift). I've updated the checksums to match.

skela commented on 2017-09-17 06:49 (UTC)

This doesn't install for me at the moment, any idea what is going on ? ==> Validating source files with sha256sums... swift-3.1.1-RELEASE.tar.gz ... FAILED swift-llvm-3.1.1-RELEASE.tar.gz ... FAILED swift-clang-3.1.1-RELEASE.tar.gz ... FAILED swift-lldb-3.1.1-RELEASE.tar.gz ... FAILED swift-cmark-3.1.1-RELEASE.tar.gz ... Passed swift-llbuild-3.1.1-RELEASE.tar.gz ... FAILED swift-package-manager-3.1.1-RELEASE.tar.gz ... FAILED swift-corelibs-xctest-3.1.1-RELEASE.tar.gz ... Passed swift-corelibs-foundation-3.1.1-RELEASE.tar.gz ... FAILED swift-corelibs-libdispatch-3.1.1-RELEASE.tar.gz ... Passed swift-integration-tests-3.1.1-RELEASE.tar.gz ... Passed sourcekit_link_order.patch ... Passed icu59.patch ... Passed sphinx1.6.patch ... Passed lldb_missing_include.patch ... Passed glibc-2.26.patch ... Passed ==> ERROR: One or more files did not pass the validity check!

Zrax commented on 2017-09-12 16:47 (UTC)

@FredBezies: I've added some fixes for building with glibc 2.26 (including the error you encountered).