I'm no expert, but it seems that the downstream fedora package has been updated to v 5.1.5, so the PKGBUILD is not working. Can you update the PKGBUILD file when you have a few mins please?
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.000051 |
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-rocm-gitAUR, llvm-gitAUR, clang-minimal-gitAUR, clang17-binAUR) (make)
- cmake (cmake-gitAUR) (make)
- git (git-gitAUR, git-glAUR) (make)
- lld (llvm-rocm-gitAUR, llvm-gitAUR) (make)
- llvm (llvm-rocm-gitAUR, 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-reflinkAUR, rsync-reflink-gitAUR) (make)
- swift-languageAUR (swift-language-gitAUR, swift-bin-developmentAUR, swiftly-binAUR, swift-binAUR) (make)
- swig (swig-gitAUR) (make)
Required by (17)
- clion (optional)
- clion-eap (optional)
- cookcli-git
- fabricversions
- 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
Latest Comments
« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 11 .. 15 Next › Last »
jamesth commented on 2020-03-17 19:42 (UTC)
yurikoles commented on 2019-12-06 14:15 (UTC)
Warning, treated as error:
/home/yurikoles/.cache/yay/swift-language/src/swift/docs/ABI/Mangling.rst:708:Unknown target name: "0".
[949/993][ 95%][199.394s] Compiling /home/yurikoles/.cache/yay/s...ssert/swift-linux-x86_64/stdlib/public/core/LINUX/x86_64/Swift.o
ninja: build stopped: subcommand failed.
./utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting
FirstAirBender commented on 2019-12-05 07:19 (UTC)
@Zrax Thanks for the patch. I have finally been able to install it
Zrax commented on 2019-12-03 01:12 (UTC)
Thanks, I've added the Python 3.8 fix
joekiller commented on 2019-12-02 15:45 (UTC)
The problem is that the normalize test doesn't support python3.8.
See https://github.com/commonmark/cmark/commit/68c3a91166347a32a57fb81223750a63cfd92105
FirstAirBender commented on 2019-12-02 01:35 (UTC) (edited on 2019-12-02 01:36 (UTC) by FirstAirBender)
Keeps failing at the test stage:
[0/1][ 0%][0.000s] Running tests...
Test project /home/chigozirim/.cache/yay/swift-language/src/build/Ninja-ReleaseAssert/cmark-linux-x86_64
Start 1: api_test
1/9 Test #1: api_test ......................... Passed 0.00 sec
Start 2: html_normalization
2/9 Test #2: html_normalization ...............***Failed 0.12 sec
Start 3: spectest_library
3/9 Test #3: spectest_library ................. Passed 0.11 sec
Start 4: pathological_tests_library
4/9 Test #4: pathological_tests_library ....... Passed 0.75 sec
Start 5: roundtriptest_library
5/9 Test #5: roundtriptest_library ............***Failed 0.12 sec
Start 6: entity_library
6/9 Test #6: entity_library ................... Passed 0.09 sec
Start 7: spectest_executable
7/9 Test #7: spectest_executable .............. Passed 0.62 sec
Start 8: smartpuncttest_executable
8/9 Test #8: smartpuncttest_executable ........ Passed 0.11 sec
Start 9: regressiontest_executable
9/9 Test #9: regressiontest_executable ........ Passed 0.10 sec
78% tests passed, 2 tests failed out of 9
Total Test time (real) = 2.03 sec
The following tests FAILED:
2 - html_normalization (Failed)
5 - roundtriptest_library (Failed)
Errors while running CTest
FAILED: CMakeFiles/test.util
cd /home/chigozirim/.cache/yay/swift-language/src/build/Ninja-ReleaseAssert/cmark-linux-x86_64 && /usr/bin/ctest --force-new-ctest-process
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)
Any suggestions?
Zrax commented on 2019-12-01 19:14 (UTC)
@eagleflo Not sure what happened, but a fresh build confirms your checksum, so I've updated it to match... Thanks
eagleflo commented on 2019-12-01 14:08 (UTC)
The SHA sum for swift-5.1.2-RELEASE.tar.gz was off for me.
$ shasum -a 256 swift-5.1.2-RELEASE.tar.gz
ad7f569ca505f349b4e499ed781f53030afe068644c72e76a5d6fbb7b5b80b86 swift-5.1.2-RELEASE.tar.gz
cparrott73 commented on 2019-10-08 19:32 (UTC) (edited on 2019-10-09 06:23 (UTC) by cparrott73)
Just tried to build swift 5.1-1, and I ran into a different error:
--- bootstrap: note: building stage1 Compiling libc.c Compiling Swift Module 'PackageDescription4' (10 sources) clang-8: warning: argument unused during compilation: '-fmodules-cache-path=/home/pacman/aur/swift-language/src/build/Ninja-ReleaseAssert/swiftpm-linux-x86_64/.bootstrap/ModuleCache' [-Wunused-command-line-argument] Linking clibc Compiling Swift Module 'SPMLibc' (1 sources) Linking SPMLibc Compiling Swift Module 'Basic' (40 sources) Linking PackageDescription4 /home/pacman/aur/swift-language/src/swiftpm/Sources/Basic/Process.swift:328:59: error: value of optional type 'UnsafeMutablePointer<Int8>?' must be unwrapped to a value of type 'UnsafeMutablePointer<Int8>' posix_spawn_file_actions_addopen(&fileActions, 0, devNull, O_RDONLY, 0) ^ /home/pacman/aur/swift-language/src/swiftpm/Sources/Basic/Process.swift:328:59: note: coalesce using '??' to provide a default when the optional value contains 'nil' posix_spawn_file_actions_addopen(&fileActions, 0, devNull, O_RDONLY, 0) ^ ?? <#default value#> /home/pacman/aur/swift-language/src/swiftpm/Sources/Basic/Process.swift:328:59: note: force-unwrap using '!' to abort execution if the optional value contains 'nil' posix_spawn_file_actions_addopen(&fileActions, 0, devNull, O_RDONLY, 0) ^ ! /home/pacman/aur/swift-language/src/swiftpm/Sources/Basic/Process.swift:351:54: error: value of optional type 'UnsafeMutablePointer<Int8>?' must be unwrapped to a value of type 'UnsafeMutablePointer<Int8>' let rv = posix_spawnp(&processID, argv.cArray[0], &fileActions, &attributes, argv.cArray, env.cArray) ^ /home/pacman/aur/swift-language/src/swiftpm/Sources/Basic/Process.swift:351:54: note: coalesce using '??' to provide a default when the optional value contains 'nil' let rv = posix_spawnp(&processID, argv.cArray[0], &fileActions, &attributes, argv.cArray, env.cArray) ^ ?? <#default value#> /home/pacman/aur/swift-language/src/swiftpm/Sources/Basic/Process.swift:351:54: note: force-unwrap using '!' to abort execution if the optional value contains 'nil' let rv = posix_spawnp(&processID, argv.cArray[0], &fileActions, &attributes, argv.cArray, env.cArray) ^ ! --- bootstrap: error: build failed with exit status 1 ./utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting ==> ERROR: A failure occurred in build(). Aborting...
Any ideas?
EDIT: I seem to have fixed the compile error by modifying src/swiftpm/Sources/Basic/Process.swift:
--- Process.swift.orig 2019-10-08 13:36:31.053125481 -0700 +++ Process.swift 2019-10-08 13:26:17.278207101 -0700 @@ -325,7 +325,7 @@ let devNull = strdup("/dev/null") defer { free(devNull) } // Open /dev/null as stdin. - posix_spawn_file_actions_addopen(&fileActions, 0, devNull, O_RDONLY, 0) + posix_spawn_file_actions_addopen(&fileActions, 0, devNull!, O_RDONLY, 0) var outputPipe: [Int32] = [0, 0] var stderrPipe: [Int32] = [0, 0] @@ -348,7 +348,7 @@ let argv = CStringArray(arguments) let env = CStringArray(environment.map({ "\($0.0)=\($0.1)" })) - let rv = posix_spawnp(&processID, argv.cArray[0], &fileActions, &attributes, argv.cArray, env.cArray) + let rv = posix_spawnp(&processID, argv.cArray[0]!, &fileActions, &attributes, argv.cArray, env.cArray) guard rv == 0 else { throw SystemError.posix_spawn(rv, arguments)
Not sure if this is the correct/preferred solution, but it worked for me.
EDIT 2: similar fix for failing test in src/swift/test/stdlib/POSIX.swift:
--- POSIX.swift.orig 2019-10-08 13:45:28.987050875 -0700 +++ POSIX.swift 2019-10-08 13:39:31.728895278 -0700 @@ -69,7 +69,7 @@ let sem = sem_open(semaphoreName, O_CREAT, 0o777, 1) expectNotEqual(SEM_FAILED, sem) - let res = sem_close(sem) + let res = sem_close(sem!) expectEqual(0, res) let res2 = sem_unlink(semaphoreName) @@ -83,7 +83,7 @@ let sem = sem_open(semaphoreName, O_CREAT | O_EXCL, 0o777, 1) expectNotEqual(SEM_FAILED, sem) - let res = sem_close(sem) + let res = sem_close(sem!) expectEqual(0, res) let res2 = sem_unlink(semaphoreName) @@ -102,7 +102,7 @@ // difficult. expectNotEqual(SEM_FAILED, sem2) - let res = sem_close(sem) + let res = sem_close(sem!) expectEqual(0, res) let res2 = sem_unlink(semaphoreName) @@ -120,7 +120,7 @@ expectEqual(SEM_FAILED, sem2) expectEqual(EEXIST, errno) - let res = sem_close(sem) + let res = sem_close(sem!) expectEqual(0, res) let res2 = sem_unlink(semaphoreName)
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