Those are just warnings; to get the actual error, you may have to scroll back further in the build output / log.
Search Criteria
Package Details: swift-language 5.10.1-1
Package Actions
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: | soloturn (fanjiang, refi.64, spacecowgirl, medzik, KyleYe, xiota) |
Last Packager: | xiota |
Votes: | 45 |
Popularity: | 0.000009 |
First Submitted: | 2016-01-08 23:39 (UTC) |
Last Updated: | 2024-07-02 17:33 (UTC) |
Dependencies (17)
- icu (icu-gitAUR)
- libbsd (libbsd-gitAUR)
- libedit
- libxml2 (libxml2-gitAUR, libxml2-2.9AUR)
- ncurses (ncurses-gitAUR)
- python (python37AUR, python311AUR, python310AUR)
- clang (llvm-gitAUR, clang-minimal-gitAUR, clang17-binAUR) (make)
- cmake (cmake-gitAUR) (make)
- git (git-gitAUR, git-glAUR) (make)
- lld (llvm-gitAUR) (make)
- llvm (llvm-gitAUR, llvm-minimal-gitAUR) (make)
- ninja (ninja-kitwareAUR, ninja-memAUR, ninja-fuchsia-gitAUR, ninja-gitAUR, ninja-jobserverAUR) (make)
- patch (patch-gitAUR) (make)
- python-six (make)
- rsync (rsync-gitAUR, rsync-reflink-gitAUR, rsync-reflinkAUR) (make)
- swift-languageAUR (swift-language-gitAUR, swift-bin-developmentAUR, swiftly-binAUR, swift-binAUR) (make)
- swig (swig-gitAUR) (make)
Required by (16)
- clion (optional)
- clion-eap (optional)
- cookcli-git
- fcitx5-hazkey (make)
- memorize (make)
- sourcekitten
- sourcekitten (make)
- swift-format
- swift-format-git
- swift-language (make)
- swift-language-git (make)
- swift-mesonlsp (make)
- swiftformat-bin
- swiftlint
- vapor-toolbox
- vapor-toolbox-git
Sources (35)
- 0001-arch-aur-patches.patch
- apple-indexstore-db
- apple-llvm-project
- apple-sourcekit-lsp
- git+https://github.com/apple/swift#tag=swift-5.10.1-RELEASE
- swift-argument-parser
- swift-asn1
- swift-atomics
- swift-certificates
- swift-cmark
- swift-collections
- swift-corelibs-foundation
- swift-corelibs-libdispatch
- swift-corelibs-xctest
- swift-crypto
- swift-docc-render-artifact
- swift-docc-symbolkit
- swift-docc
- swift-driver
- swift-format
- swift-installer-scripts
- swift-integration-tests
- swift-llbuild
- swift-lmdb
- swift-markdown
- swift-nio-ssl
- swift-nio
- swift-numerics
- swift-package-manager
- swift-stress-tester
- swift-syntax
- swift-system
- swift-tools-support-core
- swift-xcode-playground-support
- yams
Zrax commented on 2016-05-19 23:03 (UTC)
ltorvalds024 commented on 2016-05-19 10:56 (UTC)
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 (UTC)
pod2man should be provided by perl... What version of perl do you have?
rainbyte commented on 2016-04-21 05:49 (UTC)
I've got the same error about pod2man, as described by @nlamirault
walkindude commented on 2016-04-19 23:21 (UTC)
@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 (UTC)
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 (UTC) (edited on 2016-03-01 13:15 (UTC) by nlamirault)
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 (UTC)
Ok, added
Ahti333 commented on 2016-01-18 16:16 (UTC)
It would be nice if this package could also install bin/swift-ide-test, which is built alongside swift.
Pinned Comments
xiota commented on 2023-12-31 14:56 (UTC) (edited on 2024-07-13 07:31 (UTC) by xiota)
While I was able to build this in a clean chroot, consider this package to be a wip.
According to this comment, swift does need swift to build. So if you haven't previously built this package, you'll need
aur/swift-bin
.This package attempts to install only
swift
to/usr/lib/swift
.cmark
andllvm
are built, but not installed. If they are installed, space requirement increases to 20GB, package is 2GB, and installed size 7GB.swift-bin
, especially since it's already needed to build this.)This package does not make debug symbols. With debugging enabled, over 70GB would be required to build. I don't know package or install size because I hadn't figured out how to install at that time.
soloturn commented on 2020-09-06 22:25 (UTC) (edited on 2023-02-05 07:39 (UTC) by soloturn)
to speed up check out of the repositories, use shallow or sparse clone, e.g.:
other options to install swift are currently:
swift-bin, which repackages tachoknights official released centos8 build: https://aur.archlinux.org/packages/swift-bin/. the install is quick, no hours of waiting until everything is compiled.
latest from git, in swift-language-git. there is a binary built with github actions, but this build is not particularly stable, sometimes it uses more resources than github allows, sometimes it fails for a change upstream. the version number is taken out of the official tag on apple/swift main branch: e.g. swift-language-git-swift.DEVELOPMENT.SNAPSHOT.2020.09.28.a.r208.g6651f6e55d4-1-x86_64.pkg.tar.zst. so this one is the development tag from sep 28 + 208 commits, the commit hash is g6651f: aur - https://aur.archlinux.org/packages/swift-language-git. gh-actions: https://github.com/soloturn/swift-aur/releases/tag/latest
there was an 5.4.1 binary build, native arch, by fanjiang, built on GCE: https://github.com/ProfFan/swift-aur/releases