Package Details: swift 5.0.1-2

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: 31
Popularity: 0.026458
First Submitted: 2016-01-08 23:39
Last Updated: 2019-06-05 22:10

Required by (11)

Sources (15)

Latest Comments

1 2 3 4 5 6 ... Next › Last »

joekiller commented on 2019-06-06 15:52

With building 5.0.1-2 I get the error:

Warning, treated as error:
/home/jlawson/.cache/yay/swift-language/src/swift/docs/ARCOptimization.rst:100:Pygments lexer name 'sil' is not known
[907/950] Compiling /home/jlawson/.cache/yay/swift-language/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/stdlib/public/core/linux/x86_64/Swift.o

I read https://github.com/apple/swift/tree/master/utils/pygments and copied the swift.py lexer to /usr/lib/python2.7/site-packages/pygments/lexers and then run sudo python2.7 _mapping.py to rebuild the mapping but the error persists.

Zrax commented on 2019-06-05 22:12

It looks like lldb hasn't been updated to work with swig 4 yet, so I created a swig3 AUR package which can be installed side-by-side with swig, and updated swift to use it for now until a better fix can be made.

I've also re-enabled the sourcekit (libsourcekitdInProc.so) build.

torpesco commented on 2019-06-04 16:56

I ran strace on the command that fails. Python can't find swig_runtime_data4. It tries various suffixes on it of .so, module.so, .py, .pyc in the library path. Has anyone reported this (or found an existing report for this) at bugs.swift.org? I can't find one, myself.

MarcinWieczorek commented on 2019-06-03 13:33

I confirm.

felix990302 commented on 2019-06-03 04:30

@imkerberos can confirm getting same error, looks like the system installed swig 4 package conflicted with the version provided by the swift bois

imkerberos commented on 2019-05-21 06:47

AIL: Swift(linux-x86_64) :: Runtime/linux-fatal-backtrace.swift (2736 of 4876)
******************** TEST 'Swift(linux-x86_64) :: Runtime/linux-fatal-backtrace.swift' FAILED ********************
Script:
--
: 'RUN: at line 1';   rm -rf "/home/kerberos/.cache/yay/swift-language/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/Runtime/Output/linux-fatal-backtrace.swift.tmp" && mkdir -p "/home/kerberos/.cache/yay/swift-language/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/Runtime/Output/linux-fatal-backtrace.swift.tmp"
: 'RUN: at line 2';   /home/kerberos/.cache/yay/swift-language/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swiftc -target x86_64-unknown-linux-gnu  -module-cache-path '/home/kerberos/.cache/yay/swift-language/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/swift-test-results/x86_64-unknown-linux-gnu/clang-module-cache' -swift-version 4   /home/kerberos/.cache/yay/swift-language/src/swift/test/Runtime/linux-fatal-backtrace.swift -o /home/kerberos/.cache/yay/swift-language/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/Runtime/Output/linux-fatal-backtrace.swift.tmp/a.out
: 'RUN: at line 3';   not --crash /home/kerberos/.cache/yay/swift-language/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/Runtime/Output/linux-fatal-backtrace.swift.tmp/a.out 2>&1 | PYTHONPATH=/home/kerberos/.cache/yay/swift-language/src/build/Ninja-ReleaseAssert/lldb-linux-x86_64/lib/python2.7/site-packages /home/kerberos/.cache/yay/swift-language/src/swift/utils/symbolicate-linux-fatal /home/kerberos/.cache/yay/swift-language/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64/Runtime/Output/linux-fatal-backtrace.swift.tmp/a.out - | /home/kerberos/.cache/yay/swift-language/src/swift/utils/backtrace-check -u
--
Exit Code: 1

Command Output (stderr):
--
Traceback (most recent call last):
  File "/home/kerberos/.cache/yay/swift-language/src/swift/utils/symbolicate-linux-fatal", line 32, in <module>
    import lldb
  File "/home/kerberos/.cache/yay/swift-language/src/build/Ninja-ReleaseAssert/lldb-linux-x86_64/lib/python2.7/site-packages/lldb/__init__.py", line 1499, in <module>
    class SBAddress(object):
  File "/home/kerberos/.cache/yay/swift-language/src/build/Ninja-ReleaseAssert/lldb-linux-x86_64/lib/python2.7/site-packages/lldb/__init__.py", line 1665, in SBAddress
    __swig_getmethods__["module"] = GetModule
NameError: name '__swig_getmethods__' is not defined
Traceback (most recent call last):
  File "/home/kerberos/.cache/yay/swift-language/src/swift/utils/backtrace-check", line 84, in <module>
    main()
  File "/home/kerberos/.cache/yay/swift-language/src/swift/utils/backtrace-check", line 80, in main
    assert(found_stack_trace_entry)
AssertionError

--

********************
Testing Time: 645.13s
********************
Failing Tests (1):
    Swift(linux-x86_64) :: Runtime/linux-fatal-backtrace.swift

  Expected Passes    : 3613
  Expected Failures  : 43
  Unsupported Tests  : 1219
  Unexpected Failures: 1

4 warning(s) in tests.
FAILED: test/CMakeFiles/check-swift-linux-x86_64 
cd /home/kerberos/.cache/yay/swift-language/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/test && /usr/bin/cmake -E remove_directory /home/kerberos/.cache/yay/swift-language/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/./swift-test-results/x86_64-unknown-linux-gnu && /usr/bin/cmake -E make_directory /home/kerberos/.cache/yay/swift-language/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/./swift-test-results/x86_64-unknown-linux-gnu && /usr/bin/python2.7 /home/kerberos/.cache/yay/swift-language/src/llvm/utils/lit/lit.py --incremental -sv --xunit-xml-output=/home/kerberos/.cache/yay/swift-language/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/./swift-test-results/x86_64-unknown-linux-gnu/lit-tests.xml --param swift_test_subset=primary --param swift_test_mode=optimize_none /home/kerberos/.cache/yay/swift-language/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64
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 check().
    Aborting...
Error making: swift-language (swift swift-lldb)

adsun commented on 2019-05-16 13:06

I tested with version 5.0.1 and can confirm sourcekit (libsourcekitdInProc.so) now builds successfully.

omtcyfz commented on 2019-04-05 18:56

diffutils should be included in the dependencies: I tried building Swift without it and the build caught a fatal error:

FAILED: test/CMakeFiles/check-swift-linux-x86_64
cd /home/kirillbobyrev/.cache/yay/swift-language/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/test && /usr/bin/cmake -E remove_directory /home/kirillbobyrev/.cache/yay/swift-language/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/./s
wift-test-results/x86_64-unknown-linux-gnu && /usr/bin/cmake -E make_directory /home/kirillbobyrev/.cache/yay/swift-language/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/./swift-test-results/x86_64-unknown-linux-gnu && /usr/bin/python2
.7 /home/kirillbobyrev/.cache/yay/swift-language/src/llvm/utils/lit/lit.py --incremental -sv --xunit-xml-output=/home/kirillbobyrev/.cache/yay/swift-language/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/./swift-test-results/x86_64-unkn
own-linux-gnu/lit-tests.xml --param swift_test_subset=primary --param swift_test_mode=optimize_none /home/kirillbobyrev/.cache/yay/swift-language/src/build/Ninja-ReleaseAssert/swift-linux-x86_64/test-linux-x86_64
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 check().
    Aborting...

Zrax commented on 2019-03-14 15:45

@cipi1965: pkgconf is already part of base-devel. See https://wiki.archlinux.org/index.php/Arch_User_Repository#Prerequisites .

cipi1965 commented on 2019-03-14 09:49

Please add pkg-config to make dependencies