Cannot get it build :(
/home/fred/swift-language/src/swift/stdlib/public/stubs/Stubs.cpp:64:10: fatal error: 'xlocale.h' file not found
#include <xlocale.h>
^
1 error generated.
[579/652] Building CXX object stdlib/p...ection-linux-x86_64.dir/Demangle.cpp.o
ninja: build stopped: subcommand failed.
./utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting
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 .. 6 7 8 9 10 11 12 13 14 15 Next › Last »
FredBezies commented on 2017-09-11 08:25 (UTC) (edited on 2017-09-11 11:06 (UTC) by FredBezies)
Zrax commented on 2017-07-19 23:17 (UTC)
@adsun: Should be fixed now, thanks.
adsun commented on 2017-07-18 01:43 (UTC)
Got a build error in swift-language/src/build/Ninja-ReleaseAssert/libdispatch-linux-x86_64:
https://gist.github.com/Adsun701/b0be4a5fb7bd9a775476ee80f84b9618
Swift build fails because of this.
Zrax commented on 2017-06-14 22:25 (UTC)
Thanks @Ahti333, it should be fixed now.
lllf commented on 2017-06-11 05:23 (UTC)
@Ahti333
Something like this in prepare() should fix it?
( cd "${srcdir}/lldb" && sed -i '/#include <vector>/a#include <functional>' include/lldb/Utility/TaskPool.h )
Ahti333 commented on 2017-06-10 16:15 (UTC)
The package currently does not build due to https://bugs.swift.org/browse/SR-4838
Until that issue is resolved, this patch https://gist.github.com/7c8723abc3d7fd7b33fedb2824c144a3 makes the package buildable again.
PS: I also think libkqueue is no longer needed as a dependency since Swift now includes its own copy.
RemoteAdmin commented on 2017-04-09 14:38 (UTC)
@lf-araujo
What about the line "/usr/bin/ranlib: lib/libllbuildBuildSystem.a: Not enough space". You're systems may have run out of disk space. Otherwise it might be due to a lack of ram. I'am only able to build it with at least 5 GB.
lf-araujo commented on 2017-04-09 08:51 (UTC) (edited on 2017-04-09 09:07 (UTC) by lf-araujo)
Hi all,
Not working for me. Similar error to RemoteAdmin, except I had python and rsync fully installed.
Error:
FAILED: lib/libllbuildBuildSystem.a
: && /usr/bin/cmake -E remove lib/libllbuildBuildSystem.a && /usr/bin/ar qc lib/libllbuildBuildSystem.a lib/BuildSystem/CMakeFiles/llbuildBuildSystem.dir/BuildExecutionQueue.cpp.o lib/BuildSystem/CMakeFiles/llbuildBuildSystem.dir/BuildFile.cpp.o lib/BuildSystem/CMakeFiles/llbuildBuildSystem.dir/BuildKey.cpp.o lib/BuildSystem/CMakeFiles/llbuildBuildSystem.dir/BuildNode.cpp.o lib/BuildSystem/CMakeFiles/llbuildBuildSystem.dir/BuildSystem.cpp.o lib/BuildSystem/CMakeFiles/llbuildBuildSystem.dir/BuildSystemFrontend.cpp.o lib/BuildSystem/CMakeFiles/llbuildBuildSystem.dir/BuildValue.cpp.o lib/BuildSystem/CMakeFiles/llbuildBuildSystem.dir/ExternalCommand.cpp.o lib/BuildSystem/CMakeFiles/llbuildBuildSystem.dir/LaneBasedExecutionQueue.cpp.o lib/BuildSystem/CMakeFiles/llbuildBuildSystem.dir/SwiftTools.cpp.o && /usr/bin/ranlib lib/libllbuildBuildSystem.a && :
/usr/bin/ranlib: lib/libllbuildBuildSystem.a: Not enough space.
ninja: build stopped: subcommand failed.
RemoteAdmin commented on 2017-04-08 10:54 (UTC)
The build doesn't work if python and rsync are not installed. Therefore I would recommend changing the makedepends to:
makedepends=('git' 'cmake' 'ninja' 'swig' 'clang>=3.8' 'python2-six' 'perl'
'python2-sphinx' 'python2-requests', 'python', 'rsync')
python is required in the check function which fails with:
src/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/sil-passpipeline-dump/Output/basic.test-sh.script: line 2: python: command not found
LLVM ERROR: IO failure on output stream.
rsync is required in package_swift which fails with:
/bin/sh: rsync: command not found
ninja: build stopped: subcommand failed.
utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting
Zrax commented on 2017-04-07 05:33 (UTC)
Updated to 3.1 with SourceKit. Sorry for the delay; both the 3.1 release and enabling SourceKit created some issues with getting everything built...
Also, the swift REPL has a known bug in this version that I wasn't able to patch yet. There is a workaround described here: https://bugs.swift.org/browse/SR-3794
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