Not sure how this has been working for everyone else but there is a typo in the build script of the 3.0.1 release and it is impossible to build for me.
Added a patch to fix the typo: https://github.com/papodaca/swift-language
Search Criteria
Package Details: swift-language 5.10.1-1
Package Actions
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) |
Dependencies (17)
- icu (icu-gitAUR)
- libbsd (libbsd-gitAUR)
- libedit
- libxml2 (libxml2-gitAUR, libxml2-2.9AUR)
- ncurses (ncurses-gitAUR)
- python (python37AUR, python311AUR, python310AUR)
- clang (llvm-rocm-gitAUR, llvm-gitAUR, clang-minimal-gitAUR, clang17-binAUR) (make)
- cmake (cmake-gitAUR) (make)
- git (git-gitAUR, git-glAUR) (make)
- lld (llvm-rocm-gitAUR, llvm-gitAUR) (make)
- llvm (llvm-rocm-gitAUR, llvm-gitAUR, llvm-minimal-gitAUR) (make)
- ninja (ninja-kitwareAUR, ninja-memAUR, ninja-fuchsia-gitAUR, ninja-gitAUR, ninja-jobserverAUR) (make)
- patch (patch-gitAUR) (make)
- python-six (make)
- rsync (rsync-gitAUR, rsync-reflinkAUR, rsync-reflink-gitAUR) (make)
- swift-languageAUR (swift-language-gitAUR, swift-bin-developmentAUR, swiftly-binAUR, swift-binAUR) (make)
- swig (swig-gitAUR) (make)
Required by (17)
- clion (optional)
- clion-eap (optional)
- cookcli-git
- fabricversions
- fcitx5-hazkey (make)
- memorize (make)
- sourcekitten
- sourcekitten (make)
- swift-format
- swift-format-git
- swift-language (make)
- swift-language-git (make)
- swift-mesonlsp (make)
- swiftformat-bin
- swiftlint
- vapor-toolbox
- vapor-toolbox-git
Sources (35)
- 0001-arch-aur-patches.patch
- apple-indexstore-db
- apple-llvm-project
- apple-sourcekit-lsp
- git+https://github.com/apple/swift#tag=swift-5.10.1-RELEASE
- swift-argument-parser
- swift-asn1
- swift-atomics
- swift-certificates
- swift-cmark
- swift-collections
- swift-corelibs-foundation
- swift-corelibs-libdispatch
- swift-corelibs-xctest
- swift-crypto
- swift-docc-render-artifact
- swift-docc-symbolkit
- swift-docc
- swift-driver
- swift-format
- swift-installer-scripts
- swift-integration-tests
- swift-llbuild
- swift-lmdb
- swift-markdown
- swift-nio-ssl
- swift-nio
- swift-numerics
- swift-package-manager
- swift-stress-tester
- swift-syntax
- swift-system
- swift-tools-support-core
- swift-xcode-playground-support
- yams
Latest Comments
« First ‹ Previous 1 .. 8 9 10 11 12 13 14 15 Next › Last »
papodaca commented on 2016-11-23 21:54 (UTC)
Zrax commented on 2016-11-20 18:23 (UTC)
You'll need to downgrade the whole set (clang, llvm, llvm-libs, plus lib32-llvm-libs if you have it installed too). You can re-upgrade them after building swift, since the old version is only needed for building it.
efikarl commented on 2016-11-20 12:58 (UTC)
Help!
:: resolving dependencies...
:: no results found for clang=3.8.1
I can't downgrade to clang=3.8.1 because
:: clang: installing llvm-libs (3.8.1-1) breaks dependency 'llvm-libs=3.9.0-1'
Then, what should i do ?
Zrax commented on 2016-11-08 21:15 (UTC)
The current version of swift does not build successfully with clang 3.9, so you'll need to keep 3.8.1 installed (at least for now).
Xndr commented on 2016-11-08 19:56 (UTC)
Got this error:
not found: clang=3.8.1
any ideas?
Zrax commented on 2016-11-08 16:28 (UTC)
I've never used yaourt, but from looking at it, I believe the command you want is:
$ yaourt -S swift
edoardo849 commented on 2016-11-08 13:31 (UTC)
Hello! So I'm trying to install this package with
yaourt install swift-language
but it just exits and it doesn't seem to be listed anywhere in yaourt: can u pls advice on how to install?
Zrax commented on 2016-10-31 16:49 (UTC)
I'm afraid I've not yet been able to reproduce the Dispatch or SwiftGlibc issues you guys are seeing, but I can say that swift 3.0 doesn't appear to compile successfully with clang/llvm 3.9 yet. So for now the clang dependency is fixed at 3.8.1.
mafe commented on 2016-10-27 22:46 (UTC)
I was able to makepkg -sri once, when I had an old swift-bin AUR (2.1 I guess) installed.
After installation swift-bin package was dropped and I just tried to re-install via git instead of snapshot for update reasons.
Then the same error mentioned by jdarnold occured:
Foundation/NSData.swift:19:8: error: cannot load underlying module for 'Dispatch'
import Dispatch
Uninstalled both swift and swift-lldb via pacman and retried - same issue.
Now I'm building the (outdated) swift-bin AUR and try to reproduce behaviour.
kingtong commented on 2016-09-23 20:04 (UTC)
Got this error :
[546/579] Compiling /home/nicolas/builds/swift-language/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/stdlib/public/Platform/linux/x86_64/Glibc.o
FAILED: stdlib/public/Platform/linux/x86_64/Glibc.o lib/swift/linux/x86_64/Glibc.swiftmodule lib/swift/linux/x86_64/Glibc.swiftdoc
cd /home/nicolas/builds/swift-language/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/stdlib/public/Platform && /usr/bin/cmake -E make_directory /home/nicolas/builds/swift-language/src/build/Ninja-ReleaseAssert
/swift-linux-x86_64/stdlib/public/Platform/linux/x86_64 && /usr/bin/cmake -E make_directory /home/nicolas/builds/swift-language/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/./lib/swift/linux/x86_64 && /home/n
icolas/builds/swift-language/src/swift/utils/line-directive /home/nicolas/builds/swift-language/src/swift/stdlib/public/Platform/Glibc.swift /home/nicolas/builds/swift-language/src/swift/stdlib/public/Platform/Pl
atform.swift /home/nicolas/builds/swift-language/src/swift/stdlib/public/Platform/TiocConstants.swift /home/nicolas/builds/swift-language/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/stdlib/public/Platform/8/
tgmath.swift -- /home/nicolas/builds/swift-language/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/./bin/swiftc -c -sdk / -target x86_64-unknown-linux-gnu -resource-dir /home/nicolas/builds/swift-language/src/b
uild/Ninja-ReleaseAssert/swift-linux-x86_64/./lib/swift -O -D INTERNAL_CHECKS_ENABLED -I /home/nicolas/builds/swift-language/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/./lib/swift/linux/x86_64 -module-cache
-path /home/nicolas/builds/swift-language/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/./module-cache -no-link-objc-runtime -autolink-force-load -module-link-name swiftGlibc -force-single-frontend-invocation
-parse-as-library -emit-module -emit-module-path /home/nicolas/builds/swift-language/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/./lib/swift/linux/x86_64/Glibc.swiftmodule -o /home/nicolas/builds/swift-langu
age/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/stdlib/public/Platform/linux/x86_64/Glibc.o /home/nicolas/builds/swift-language/src/swift/stdlib/public/Platform/Glibc.swift /home/nicolas/builds/swift-languag
e/src/swift/stdlib/public/Platform/Platform.swift /home/nicolas/builds/swift-language/src/swift/stdlib/public/Platform/TiocConstants.swift /home/nicolas/builds/swift-language/src/build/Ninja-ReleaseAssert/swift-l
inux-x86_64/stdlib/public/Platform/8/tgmath.swift
/home/nicolas/builds/swift-language/src/swift/stdlib/public/Platform/Glibc.swift:13:19: error: no such module 'SwiftGlibc'
@_exported import SwiftGlibc // Clang module
^
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().
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
.cmark
andllvm
are built, but not installed. If they are installed, space requirement increases to 20GB, package is 2GB, and installed size 7GB.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.:
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