Package Details: swift-language 5.10.1-1

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: None
Last Packager: xiota
Votes: 45
Popularity: 0.000000
First Submitted: 2016-01-08 23:39 (UTC)
Last Updated: 2024-07-02 17:33 (UTC)

Sources (35)

Latest Comments

« First ‹ Previous 1 .. 4 5 6 7 8 9 10 11 12 13 14 15 Next › Last »

Zrax commented on 2018-11-19 01:09 (UTC)

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

<deleted-account> commented on 2018-11-18 02:18 (UTC)

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

segabor commented on 2018-11-13 11:16 (UTC) (edited on 2018-11-13 11:39 (UTC) by segabor)

Build is broken since the advent of Clang 7.0.

Bug ticket: https://bugs.swift.org/browse/SR-8958 Official patch: https://github.com/apple/swift/pull/16372

So either package must stick to Clang 6.0 or source must be patched.

Tidinho commented on 2018-11-03 14:39 (UTC)

Swift 4.2.1 was released the October 30, 2018.

segabor commented on 2018-09-07 07:31 (UTC)

adsun: compiler-rt project must be patched because ustat.h was removed by a recent GCC release. It has nothing to do with libsourcekit lib. Patch can be found here: https://github.com/llvm-mirror/compiler-rt/commit/521935db9de17ad08748fd050137ac83b7734835#diff-20ab94538eaf37f6c17b98229dfa7d7c

I slightly updated Swift build for Arch Linux, now I have a working 4.2-dev binary set. Steps are detailed here: https://gist.github.com/segabor/cd08eae2ce8717a1e4f8476687d98221

fenuks commented on 2018-09-06 23:36 (UTC)

I think package is missing libsourcekitdInProc.so. swift-bin has it, and it's required by sourcekitten.

adsun commented on 2018-08-09 10:50 (UTC)

Swift now fails to build because it currently requires the /usr/include/sys/ustat.h header, which was removed with glibc 2.28.

fennectech commented on 2018-03-01 18:31 (UTC)

Package fills the temp partition.

trustin commented on 2018-02-28 12:05 (UTC) (edited on 2018-02-28 13:16 (UTC) by trustin)

Builds just fine for me. Looking forward to the sourcekit support! (.. and maybe sourcekiten as well?)

adsun commented on 2018-02-23 12:49 (UTC)

@RemoteAdmin: That's unexpected. I successfully built swift in a clean chroot without any problems. Are you building in a clean chroot? If not, try that to see if the check function succeeds.