Package Details: swift 5.0.1-1

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.074512
First Submitted: 2016-01-08 23:39
Last Updated: 2019-05-04 21:38

Required by (9)

Sources (15)

Latest Comments

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

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

Zrax commented on 2018-11-28 02:13

@zaytoven: libblocksruntime is another AUR package (https://aur.archlinux.org/packages/libblocksruntime), so you'll need to build/install it first, before building swift.

zaytoven commented on 2018-11-28 02:10

@Zrax fair enough... I'm new so I will need some guidance... I see another error.. ERROR: 'pacman' failed to install missing dependencies. happens after not finding libblocksruntime. Steps to reproduce 1. git clone <https://aur.archlinux.org/swift-language.git> && cd swift-language && makepkg -sic.

EDIT: fix: git clone path/to/libblocksruntime.git libblockruntime-repo && cd $_ && makepkg -sic && cd ../ then git clone <https://aur.archlinux.org/swift-language.git> && cd swift-language && makepkg -sic

segabor commented on 2018-11-19 09:33

@zaytoven What you posted is a CPP compilation error that has nothing to do with Swift. I suppose you're trying to build Trolltech QT with Swift support. The error itself shows a QT / CPP specific build error.

Zrax commented on 2018-11-19 01:09

@zaytoven: I believe you're looking for https://aur.archlinux.org/packages/swift-im/ (this package is for the Swift programming language compiler)

zaytoven commented on 2018-11-18 02:18

I cannot build and action aborts due to some file in Swift/QtUI/UserSearch folder. I get

In file included from Swift/QtUI/UserSearch/moc_QtUserSearchWindow.cc:9:
Swift/QtUI/UserSearch/QtUserSearchWindow.h:94:13: error: 'QAbstractItemModel' does not name a type; did you mean 'QAbstractButton'?
             QAbstractItemModel* model_;
             ^~~~~~~~~~~~~~~~~~
             QAbstractButton
  MOC Swift/QtUI/moc_QtContactEditWidget.cc
  MOC Swift/QtUI/moc_QtContactEditWindow.cc
  MOC Swift/QtUI/moc_QtEditBookmarkWindow.cc
  CXX Swift/QtUI/moc_QtContactEditWidget.o
In file included from Swift/QtUI/UserSearch/QtUserSearchWindow.cpp:7:
./Swift/QtUI/UserSearch/QtUserSearchWindow.h:94:13: error: 'QAbstractItemModel' does not name a type; did you mean 'QAbstractButton'?
             QAbstractItemModel* model_;
             ^~~~~~~~~~~~~~~~~~
             QAbstractButton
  CXX Swift/QtUI/moc_QtContactEditWindow.o
scons: *** [Swift/QtUI/UserSearch/moc_QtUserSearchWindow.o] Error 1
Swift/QtUI/UserSearch/QtUserSearchWindow.cpp: In constructor 'Swift::QtUserSearchWindow::QtUserSearchWindow(Swift::UIEventStream*, Swift::UserSearchWindow::Type, const std::set<std::__cxx11::basic_string<char> >&, Swift::SettingsProvider*)':
Swift/QtUI/UserSearch/QtUserSearchWindow.cpp:37:212: error: class 'Swift::QtUserSearchWindow' does not have any field named 'model_'
 e type, const std::set<std::string>& groups, SettingsProvider* settingsProvider) : eventStream_(eventStream), type_(type), model_(nullptr), firstPage_(nullptr), firstMultiJIDPage_(nullptr), settings_(settingsProvider), searchNext_(false), supportsImpromptu_(false) {
                                                                                                                            ^~~~~~

Swift/QtUI/UserSearch/QtUserSearchWindow.cpp: In destructor 'virtual Swift::QtUserSearchWindow::~QtUserSearchWindow()':
Swift/QtUI/UserSearch/QtUserSearchWindow.cpp:75:12: error: 'model_' was not declared in this scope
     delete model_;
            ^~~~~~
Swift/QtUI/UserSearch/QtUserSearchWindow.cpp:75:12: note: suggested alternative: 'mode_t'
     delete model_;
            ^~~~~~
            mode_t
Swift/QtUI/UserSearch/QtUserSearchWindow.cpp: In member function 'Swift::JID Swift::QtUserSearchWindow::getContactJID() const':
Swift/QtUI/UserSearch/QtUserSearchWindow.cpp:282:44: error: 'model_' was not declared in this scope
         if (dynamic_cast<UserSearchModel*>(model_)) {
                                            ^~~~~~
Swift/QtUI/UserSearch/QtUserSearchWindow.cpp:282:44: note: suggested alternative: 'mode_t'
         if (dynamic_cast<UserSearchModel*>(model_)) {
                                            ^~~~~~
                                            mode_t
Swift/QtUI/UserSearch/QtUserSearchWindow.cpp:287:63: error: cannot dynamic_cast 'model_' (of type '<type error>') to type 'class Swift::QtFormResultItemModel*' (source is not a pointer)
         } else if (dynamic_cast<QtFormResultItemModel*>(model_)) {
                                                               ^
Swift/QtUI/UserSearch/QtUserSearchWindow.cpp:290:78: error: cannot dynamic_cast 'model_' (of type '<type error>') to type 'class Swift::QtFormResultItemModel*' (source is not a pointer)
             Form::FormItem item = dynamic_cast<QtFormResultItemModel*>(model_)->getForm()->getItems().at(row);
                                                                              ^
Swift/QtUI/UserSearch/QtUserSearchWindow.cpp: In member function 'virtual void Swift::QtUserSearchWindow::setResults(const std::vector<Swift::UserSearchResult>&)':
Swift/QtUI/UserSearch/QtUserSearchWindow.cpp:488:12: error: 'model_' was not declared in this scope
     delete model_;
            ^~~~~~
Swift/QtUI/UserSearch/QtUserSearchWindow.cpp:488:12: note: suggested alternative: 'mode_t'
     delete model_;
            ^~~~~~
            mode_t
Swift/QtUI/UserSearch/QtUserSearchWindow.cpp: In member function 'virtual void Swift::QtUserSearchWindow::setResultsForm(Swift::Form::ref)':
Swift/QtUI/UserSearch/QtUserSearchWindow.cpp:505:12: error: 'model_' was not declared in this scope
     delete model_;
            ^~~~~~
Swift/QtUI/UserSearch/QtUserSearchWindow.cpp:505:12: note: suggested alternative: 'mode_t'
     delete model_;
            ^~~~~~
            mode_t
Swift/QtUI/UserSearch/QtUserSearchWindow.cpp: In member function 'virtual void Swift::QtUserSearchWindow::clear()':
Swift/QtUI/UserSearch/QtUserSearchWindow.cpp:613:12: error: 'model_' was not declared in this scope
     delete model_;
            ^~~~~~
Swift/QtUI/UserSearch/QtUserSearchWindow.cpp:613:12: note: suggested alternative: 'mode_t'
     delete model_;
            ^~~~~~

any idea how to fix this? thx