Package Base Details: swift-language

Git Clone URL: https://aur.archlinux.org/swift-language.git (read-only, click to copy)
Submitter: Zrax
Maintainer: Zrax
Last Packager: Zrax
Votes: 33
Popularity: 1.74
First Submitted: 2016-01-08 23:39
Last Updated: 2019-12-03 01:12

Packages (2)

Latest Comments

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

yurikoles commented on 2019-12-06 14:15

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

@Zrax Thanks for the patch. I have finally been able to install it

Zrax commented on 2019-12-03 01:12

Thanks, I've added the Python 3.8 fix

joekiller commented on 2019-12-02 15:45

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

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

@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

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

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)

n00b3 commented on 2019-09-29 18:39

any suggestions how to trace back this error. Issued command in swift-language dir: makepkg -si

Warning, treated as error: /home/adones/tarballs/swift-language/src/swift/docs/ABI/Mangling.rst:708:Unknown target name: "0". [934/979][ 95%][1835.321s] Compiling /home/adones/tarballs/swift-language/src/build/Ninja-ReleaseAssert/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 ==> ERROR: A failure occurred in build(). Aborting...

calin commented on 2019-09-29 10:29

I get a compilation failure:

/home/user/.cache/yay/swift-language/src/swift/docs/ABI/Mangling.rst:708:Unknown target name: "0". [296/992][ 29%][58.189s] Building CXX object lib/AST/CMakeFiles/swiftAST.dir/Decl.cpp.o 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 build(). Aborting... Error making: swift-language (swift)