Package Base Details: swift-language

Git Clone URL: https://aur.archlinux.org/swift-language.git (read-only)
Submitter: Zrax
Maintainer: Zrax
Last Packager: Zrax
Votes: 31
Popularity: 0.083269
First Submitted: 2016-01-08 23:39
Last Updated: 2019-05-04 21:38

Packages (2)

Latest Comments

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

adsun commented on 2017-07-18 01:43

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

Thanks @Ahti333, it should be fixed now.

lllf commented on 2017-06-11 05:23

@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

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

@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

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

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

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

MatejLach commented on 2017-01-30 18:32

Ready-made packages: https://www.dropbox.com/sh/s4t5gdqtp05391u/AADrWr2XAmuzOhY-q3ewmq_Ia?dl=0

@Zrax Any chance you could incorporate SourceKit (libsourcekitdInProc.so) into the package?:
https://github.com/apple/swift/pull/3594#issuecomment-234169759

Ahti333 commented on 2017-01-29 22:27

You can build swift without downgrading your installation by building in a chroot, like this:

1. Download the required versions of clang and llvm-libs from ALA. Also build libkqueue.
2. Install the devtools package
3. Run extra-x86_64-build in the folder containing the swift PKGBUILD. Append `--` and then `-I packagefile.pkg.tar.gz` to the extra-x86_64-build arguments for every dependency not in your pacman repos. On my system I needed to append `-- -I clang-3.8.1-1-x86_64.pkg.tar.xz -I llvm-libs-3.8.1-1-x86_64.pkg.tar.xz -I ../libkqueue/libkqueue-2.1.0-1-x86_64.pkg.tar.xz`. Your paths may vary.