Package Details: swift 2.2.1-4

Git Clone URL: https://aur.archlinux.org/swift-language.git (read-only)
Package Base: swift-language
Description: The Swift programming language compiler and tools
Upstream URL: http://swift.org/
Licenses: Apache
Conflicts: swift-bin, swift-git, swift-language-git
Provides: swift-language
Submitter: Zrax
Maintainer: Zrax
Last Packager: Zrax
Votes: 7
Popularity: 0.652661
First Submitted: 2016-01-08 23:39
Last Updated: 2016-06-11 02:34

Latest Comments

Zrax commented on 2016-06-08 15:42

> lib/libswiftSema.a: No space left on device

LLVM (and by extension Swift) needs a fairly large amount of disk space available in order to compile... If you have a larger partition, you might try building from there instead, or you might try cleaning up other builds to make more space.

xged commented on 2016-06-08 14:10

lib/libswiftSema.a: No space left on device
[223/509] Building CXX object lib/Serialization/CMakeFiles/swiftSerialization.dir/Deserialization.cpp.o
ninja: build stopped: subcommand failed.

Zrax commented on 2016-05-19 23:03

Those are just warnings; to get the actual error, you may have to scroll back further in the build output / log.

ltorvalds024 commented on 2016-05-19 10:56

cannot install, getting this error:

In file included from /home/edward/Downloads/makepkg/swift-language/src/llvm/utils/unittest/googletest/src/gtest-all.cc:46:
/home/edward/Downloads/makepkg/swift-language/src/llvm/utils/unittest/googletest/src/gtest-printers.cc:348:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if GTEST_HAS_STD_WSTRING
^
/home/edward/Downloads/makepkg/swift-language/src/llvm/utils/unittest/googletest/include/gtest/internal/gtest-port.h:362:91: note: expanded from macro 'GTEST_HAS_STD_WSTRING'
(!(GTEST_OS_LINUX_ANDROID || GTEST_OS_CYGWIN || GTEST_OS_SOLARIS || GTEST_OS_HAIKU || defined(_MINIX)))
^
16 warnings generated.
ninja: build stopped: subcommand failed.
utils/build-script: command terminated with a non-zero exit status 1, aborting

Zrax commented on 2016-04-21 21:07

pod2man should be provided by perl... What version of perl do you have?

rainbyte commented on 2016-04-21 05:49

I've got the same error about pod2man, as described by @nlamirault

walkindude commented on 2016-04-19 23:21

@awerush
https://bugs.swift.org/browse/SR-557
try:

cd "$srcdir/swift"
export LD_LIBRARY_PATH=''
export SWIFT_SOURCE_ROOT="$srcdir"

awerush commented on 2016-04-14 17:39

Build failed due to failed test:

+ /usr/bin/python2.7 /tmp/yaourt-tmp-arash/aur-swift/src/llvm/utils/lit/lit.py -sv --xunit-xml-output=/tmp/yaourt-tmp-arash/aur-swift/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/./swift-test-results/x86_64-unknown-linux-gnu/lit-tests.xml /tmp/yaourt-tmp-arash/aur-swift/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64
lit.py: lit.cfg:209: note: using swift: /tmp/yaourt-tmp-arash/aur-swift/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift
lit.py: lit.cfg:209: note: using swiftc: /tmp/yaourt-tmp-arash/aur-swift/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swiftc
lit.py: lit.cfg:209: note: using sil-opt: /tmp/yaourt-tmp-arash/aur-swift/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/sil-opt
lit.py: lit.cfg:209: note: using sil-extract: /tmp/yaourt-tmp-arash/aur-swift/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/sil-extract
lit.py: lit.cfg:209: note: using lldb-moduleimport-test: /tmp/yaourt-tmp-arash/aur-swift/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/lldb-moduleimport-test
lit.py: lit.cfg:209: note: using swift-ide-test: /tmp/yaourt-tmp-arash/aur-swift/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift-ide-test
lit.py: lit.cfg:209: note: using clang: /tmp/yaourt-tmp-arash/aur-swift/src/build/Ninja-ReleaseAssert/llvm-linux-x86_64/bin/clang
lit.py: lit.cfg:209: note: using llvm-link: /tmp/yaourt-tmp-arash/aur-swift/src/build/Ninja-ReleaseAssert/llvm-linux-x86_64/bin/llvm-link
lit.py: lit.cfg:209: note: using swift-llvm-opt: /tmp/yaourt-tmp-arash/aur-swift/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift-llvm-opt
lit.py: lit.cfg:249: note: Using resource dir: /tmp/yaourt-tmp-arash/aur-swift/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/lib/swift
lit.py: lit.cfg:275: note: Using Clang module cache: /tmp/swift-testsuite-clang-module-cachetvQ8IF
lit.py: lit.cfg:279: note: Using code completion cache: /tmp/swift-testsuite-completion-cacheKTrzIR
lit.py: lit.cfg:575: note: Testing Linux x86_64-unknown-linux-gnu
lit.py: lit.cfg:209: note: using swift-autolink-extract: /tmp/yaourt-tmp-arash/aur-swift/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift-autolink-extract
lit.py: lit.cfg:711: note: Using platform module dir: /tmp/yaourt-tmp-arash/aur-swift/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/lib/swift/%target-sdk-name/x86_64
FAIL: Swift :: Driver/environment.swift (495 of 2464)
******************** TEST 'Swift :: Driver/environment.swift' FAILED ********************
Script:
--
env SDKROOT= '/tmp/yaourt-tmp-arash/aur-swift/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swift' -module-cache-path '/tmp/swift-testsuite-clang-module-cachetvQ8IF' -target x86_64-unknown-gnu-linux -L/foo/ -driver-use-frontend-path /tmp/yaourt-tmp-arash/aur-swift/src/swift-swift-2.2-RELEASE/test/Driver/Inputs/print-var.sh /tmp/yaourt-tmp-arash/aur-swift/src/swift-swift-2.2-RELEASE/test/Driver/environment.swift LD_LIBRARY_PATH | FileCheck /tmp/yaourt-tmp-arash/aur-swift/src/swift-swift-2.2-RELEASE/test/Driver/environment.swift
--
Exit Code: 1

Command Output (stderr):
--
/tmp/yaourt-tmp-arash/aur-swift/src/swift-swift-2.2-RELEASE/test/Driver/environment.swift:5:11: error: expected string not found in input
// CHECK: {{^/foo/:[^:]+/lib/swift/linux$}}
^
<stdin>:1:1: note: scanning from here
/foo/:/tmp/yaourt-tmp-arash/aur-swift/src/swift-swift-2.2-RELEASE/test/Driver/lib/swift/linux::/home/arash/glc/lib64:/home/arash/glc/lib32
^
<stdin>:1:64: note: possible intended match here
/foo/:/tmp/yaourt-tmp-arash/aur-swift/src/swift-swift-2.2-RELEASE/test/Driver/lib/swift/linux::/home/arash/glc/lib64:/home/arash/glc/lib32
^

--

********************
Testing Time: 112.64s
********************
Failing Tests (1):
Swift :: Driver/environment.swift

Expected Passes : 1778
Expected Failures : 76
Unsupported Tests : 609
Unexpected Failures: 1
*** Failed while running tests for swift (check-swift-linux-x86_64)
utils/build-script: command terminated with a non-zero exit status 1, aborting
==> ERROR: A failure occurred in check().
Aborting...
==> ERROR: Makepkg was unable to build swift-language.
==> Restart building swift ? [y/N]
==> ------------------------------

nlamirault commented on 2016-03-01 12:44

I've got an error during installation :

$ yaourt -Sy swift
[...]
==> swift-language dependencies:
- python2 (already installed)
- libutil-linux (already installed)
- icu (already installed)
- libbsd (already installed)
- libedit (already installed)
- libxml2 (already installed)
- sqlite (already installed)
- ncurses (already installed)
- git (already installed) [makedepend]
- cmake (already installed) [makedepend]
- ninja (already installed) [makedepend]
- swig (already installed) [makedepend]
- clang>=3.6 (already installed) [makedepend]
- python2-six (already installed) [makedepend]
[...]
==> Retrieving sources...
-> Downloading swift-2.2-SNAPSHOT-2016-02-08-a.tar.gz...
[...]
-- Found ICU: /usr/include
-- Found PythonInterp: /usr/bin/python2.7 (found version "2.7.11")
CMake Error at cmake/modules/SwiftManpage.cmake:23 (message):
Need pod2man installed to generate man page
Call Stack (most recent call first):
docs/tools/CMakeLists.txt:3 (manpage)

==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build swift-language.

Same error trying :

sudo ln -s /usr/bin/core_perl/pod2man /usr/bin/

Zrax commented on 2016-01-18 19:04

Ok, added

Ahti333 commented on 2016-01-18 16:16

It would be nice if this package could also install bin/swift-ide-test, which is built alongside swift.