The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Hexaville with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/noppoman/hexaville.git
Reference: 1.0.1
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/noppoman/hexaville
 * tag               1.0.1      -> FETCH_HEAD
HEAD is now at caaf749 update release scripts
Cloned https://github.com/noppoman/hexaville.git
Revision (git rev-parse @):
caaf7497ea3a009b6093548b296d2fe1e68d8d60
SUCCESS checkout https://github.com/noppoman/hexaville.git at 1.0.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/noppoman/hexaville.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/jpsim/Yams.git
Fetching https://github.com/jakeheis/SwiftCLI.git
[1/5074] Fetching swiftcli
[3147/13903] Fetching swiftcli, yams
Fetched https://github.com/jakeheis/SwiftCLI.git from cache (0.91s)
Fetched https://github.com/jpsim/Yams.git from cache (0.94s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 2.0.0 (0.40s)
Computing version for https://github.com/jakeheis/SwiftCLI.git
Computed https://github.com/jakeheis/SwiftCLI.git at 5.3.2 (1.06s)
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 2.0.0
Creating working copy for https://github.com/jakeheis/SwiftCLI.git
Working copy of https://github.com/jakeheis/SwiftCLI.git resolved at 5.3.2
Building for debugging...
[0/17] Write sources
[4/17] Compiling reader.c
[5/17] Compiling parser.c
[6/17] Compiling api.c
[7/17] Compiling writer.c
[7/17] Write swift-version-24593BA9C3E375BF.txt
[9/17] Compiling emitter.c
[10/17] Compiling scanner.c
[12/53] Emitting module SwiftCLI
[13/55] Compiling Yams Constructor.swift
[14/55] Compiling Yams Decoder.swift
[15/55] Compiling Yams Emitter.swift
[16/55] Compiling SwiftCLI ValueBox.swift
[17/55] Compiling SwiftCLI VersionCommand.swift
[18/55] Compiling Yams String+Yams.swift
[19/55] Compiling Yams Tag.swift
[20/57] Compiling Yams shim.swift
[21/57] Compiling SwiftCLI Stream.swift
[22/57] Compiling SwiftCLI Task.swift
[23/57] Compiling SwiftCLI Term.swift
[24/57] Compiling SwiftCLI Validation.swift
[26/57] Compiling Yams Encoder.swift
[29/57] Emitting module Yams
[30/57] Compiling Yams Representer.swift
[31/57] Compiling Yams Resolver.swift
[32/57] Compiling Yams Node.Scalar.swift
[33/57] Compiling Yams Node.Sequence.swift
[34/57] Compiling Yams Node.swift
[35/57] Compiling Yams Parser.swift
[36/57] Compiling Yams Mark.swift
[37/57] Compiling Yams Node.Mapping.swift
[40/57] Compiling Yams YamlError.swift
[53/59] Wrapping AST for SwiftCLI for debugging
[54/59] Wrapping AST for Yams for debugging
[56/77] Emitting module HexavilleCore
/host/spi-builder-workspace/Sources/HexavilleCore/HexavilleFile/SwiftVersion.swift:157:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SwiftDevelopmentSnapshot' to 'Hashable' by implementing 'hash(into:)' instead
    public var hashValue: Int {
               ^
/host/spi-builder-workspace/Sources/HexavilleCore/HexavilleFile/Version.swift:30:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Version' to 'Hashable' by implementing 'hash(into:)' instead
    public var hashValue: Int {
               ^
[57/79] Compiling HexavilleCore AWSLambdaPackager.swift
[58/79] Compiling HexavilleCore Constant.swift
[59/79] Compiling HexavilleCore Error.swift
[60/79] Compiling HexavilleCore Mutex.swift
/host/spi-builder-workspace/Sources/HexavilleCore/Process/Proc.swift:31:17: warning: 'launchPath' is deprecated: renamed to 'executableURL'
        process.launchPath = exetutablePath
                ^
/host/spi-builder-workspace/Sources/HexavilleCore/Process/Proc.swift:31:17: note: use 'executableURL' instead
        process.launchPath = exetutablePath
                ^~~~~~~~~~
                executableURL
/host/spi-builder-workspace/Sources/HexavilleCore/Process/Proc.swift:34:17: warning: 'launch()' is deprecated: renamed to 'run'
        process.launch()
                ^
/host/spi-builder-workspace/Sources/HexavilleCore/Process/Proc.swift:34:17: note: use 'run' instead
        process.launch()
                ^~~~~~
                run
[61/79] Compiling HexavilleCore Proc.swift
/host/spi-builder-workspace/Sources/HexavilleCore/Process/Proc.swift:31:17: warning: 'launchPath' is deprecated: renamed to 'executableURL'
        process.launchPath = exetutablePath
                ^
/host/spi-builder-workspace/Sources/HexavilleCore/Process/Proc.swift:31:17: note: use 'executableURL' instead
        process.launchPath = exetutablePath
                ^~~~~~~~~~
                executableURL
/host/spi-builder-workspace/Sources/HexavilleCore/Process/Proc.swift:34:17: warning: 'launch()' is deprecated: renamed to 'run'
        process.launch()
                ^
/host/spi-builder-workspace/Sources/HexavilleCore/Process/Proc.swift:34:17: note: use 'run' instead
        process.launch()
                ^~~~~~
                run
[62/79] Compiling HexavilleCore Docker.swift
[63/79] Compiling HexavilleCore HexavilleFile.swift
[64/79] Compiling HexavilleCore Swift.swift
[65/79] Compiling HexavilleCore Spawn.swift
/host/spi-builder-workspace/Sources/HexavilleCore/Process/Spawn.swift:62:34: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
        if posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) < 0 {
                                 ^
/host/spi-builder-workspace/Sources/HexavilleCore/Process/Spawn.swift:62:34: note: coalesce using '??' to provide a default when the optional value contains 'nil'
        if posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) < 0 {
                                 ^
                                     ?? <#default value#>
/host/spi-builder-workspace/Sources/HexavilleCore/Process/Spawn.swift:62:34: note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
        if posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) < 0 {
                                 ^
                                    !
/host/spi-builder-workspace/Sources/HexavilleCore/Process/Spawn.swift:89:45: warning: cannot use inout expression here; argument 'outputPipe' must be a pointer that outlives the call to 'init(outputPipe:output:)'
        threadInfo = ThreadInfo(outputPipe: &outputPipe, output: output)
                                            ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/HexavilleCore/Process/Spawn.swift:89:45: note: implicit argument conversion from '[Int32]' to 'UnsafeMutablePointer<Int32>' produces a pointer valid only for the duration of the call to 'init(outputPipe:output:)'
        threadInfo = ThreadInfo(outputPipe: &outputPipe, output: output)
                                            ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/HexavilleCore/Process/Spawn.swift:89:45: note: use the 'withUnsafeMutableBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
        threadInfo = ThreadInfo(outputPipe: &outputPipe, output: output)
                                            ^
[66/79] Compiling HexavilleCore SignalHandler.swift
/host/spi-builder-workspace/Sources/HexavilleCore/Process/Spawn.swift:62:34: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
        if posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) < 0 {
                                 ^
/host/spi-builder-workspace/Sources/HexavilleCore/Process/Spawn.swift:62:34: note: coalesce using '??' to provide a default when the optional value contains 'nil'
        if posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) < 0 {
                                 ^
                                     ?? <#default value#>
/host/spi-builder-workspace/Sources/HexavilleCore/Process/Spawn.swift:62:34: note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
        if posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) < 0 {
                                 ^
                                    !
/host/spi-builder-workspace/Sources/HexavilleCore/Process/Spawn.swift:89:45: warning: cannot use inout expression here; argument 'outputPipe' must be a pointer that outlives the call to 'init(outputPipe:output:)'
        threadInfo = ThreadInfo(outputPipe: &outputPipe, output: output)
                                            ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/HexavilleCore/Process/Spawn.swift:89:45: note: implicit argument conversion from '[Int32]' to 'UnsafeMutablePointer<Int32>' produces a pointer valid only for the duration of the call to 'init(outputPipe:output:)'
        threadInfo = ThreadInfo(outputPipe: &outputPipe, output: output)
                                            ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/HexavilleCore/Process/Spawn.swift:89:45: note: use the 'withUnsafeMutableBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
        threadInfo = ThreadInfo(outputPipe: &outputPipe, output: output)
                                            ^
[67/79] Compiling HexavilleCore DockerBuildEnvironmentProvider.swift
[68/79] Compiling HexavilleCore SwiftBuildEnvironmentProvider.swift
[69/79] Compiling HexavilleCore SwiftVersion.swift
/host/spi-builder-workspace/Sources/HexavilleCore/HexavilleFile/SwiftVersion.swift:157:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SwiftDevelopmentSnapshot' to 'Hashable' by implementing 'hash(into:)' instead
    public var hashValue: Int {
               ^
/host/spi-builder-workspace/Sources/HexavilleCore/HexavilleFile/Version.swift:30:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Version' to 'Hashable' by implementing 'hash(into:)' instead
    public var hashValue: Int {
               ^
[70/79] Compiling HexavilleCore Version.swift
/host/spi-builder-workspace/Sources/HexavilleCore/HexavilleFile/SwiftVersion.swift:157:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SwiftDevelopmentSnapshot' to 'Hashable' by implementing 'hash(into:)' instead
    public var hashValue: Int {
               ^
/host/spi-builder-workspace/Sources/HexavilleCore/HexavilleFile/Version.swift:30:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Version' to 'Hashable' by implementing 'hash(into:)' instead
    public var hashValue: Int {
               ^
[71/79] Compiling HexavilleCore EventEmitter.swift
[72/79] Compiling HexavilleCore FileManager.swift
[73/79] Compiling HexavilleCore Finder.swift
[74/79] Compiling HexavilleCore SwiftBuilder.swift
/host/spi-builder-workspace/Sources/HexavilleCore/Util/Hashids.swift:92:9: warning: variable '_alphabet' was never mutated; consider changing to 'let' constant
    var _alphabet = (alphabet != nil) ? alphabet! : HashidsOptions.ALPHABET
    ~~~ ^
    let
/host/spi-builder-workspace/Sources/HexavilleCore/Util/Hashids.swift:93:9: warning: variable '_seps' was never mutated; consider changing to 'let' constant
    var _seps = HashidsOptions.SEPARATORS
    ~~~ ^
    let
/host/spi-builder-workspace/Sources/HexavilleCore/Util/Hashids.swift:263:9: warning: variable 'hashes' was never mutated; consider changing to 'let' constant
    var hashes = hash.split(maxSplits: hash.count, omittingEmptySubsequences: false) {
    ~~~ ^
    let
[75/79] Compiling HexavilleCore Hashids.swift
/host/spi-builder-workspace/Sources/HexavilleCore/Util/Hashids.swift:92:9: warning: variable '_alphabet' was never mutated; consider changing to 'let' constant
    var _alphabet = (alphabet != nil) ? alphabet! : HashidsOptions.ALPHABET
    ~~~ ^
    let
/host/spi-builder-workspace/Sources/HexavilleCore/Util/Hashids.swift:93:9: warning: variable '_seps' was never mutated; consider changing to 'let' constant
    var _seps = HashidsOptions.SEPARATORS
    ~~~ ^
    let
/host/spi-builder-workspace/Sources/HexavilleCore/Util/Hashids.swift:263:9: warning: variable 'hashes' was never mutated; consider changing to 'let' constant
    var hashes = hash.split(maxSplits: hash.count, omittingEmptySubsequences: false) {
    ~~~ ^
    let
error: fatalError
[0/1] Planning build
Building for debugging...
[0/7] Write swift-version-24593BA9C3E375BF.txt
[2/8] Compiling HexavilleCore SignalHandler.swift
[3/8] Emitting module HexavilleCore
/host/spi-builder-workspace/Sources/HexavilleCore/HexavilleFile/SwiftVersion.swift:157:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SwiftDevelopmentSnapshot' to 'Hashable' by implementing 'hash(into:)' instead
    public var hashValue: Int {
               ^
/host/spi-builder-workspace/Sources/HexavilleCore/HexavilleFile/Version.swift:30:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Version' to 'Hashable' by implementing 'hash(into:)' instead
    public var hashValue: Int {
               ^
[4/8] Compiling HexavilleCore Spawn.swift
/host/spi-builder-workspace/Sources/HexavilleCore/Process/Spawn.swift:62:34: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
        if posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) < 0 {
                                 ^
/host/spi-builder-workspace/Sources/HexavilleCore/Process/Spawn.swift:62:34: note: coalesce using '??' to provide a default when the optional value contains 'nil'
        if posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) < 0 {
                                 ^
                                     ?? <#default value#>
/host/spi-builder-workspace/Sources/HexavilleCore/Process/Spawn.swift:62:34: note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
        if posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) < 0 {
                                 ^
                                    !
/host/spi-builder-workspace/Sources/HexavilleCore/Process/Spawn.swift:89:45: warning: cannot use inout expression here; argument 'outputPipe' must be a pointer that outlives the call to 'init(outputPipe:output:)'
        threadInfo = ThreadInfo(outputPipe: &outputPipe, output: output)
                                            ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/HexavilleCore/Process/Spawn.swift:89:45: note: implicit argument conversion from '[Int32]' to 'UnsafeMutablePointer<Int32>' produces a pointer valid only for the duration of the call to 'init(outputPipe:output:)'
        threadInfo = ThreadInfo(outputPipe: &outputPipe, output: output)
                                            ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/HexavilleCore/Process/Spawn.swift:89:45: note: use the 'withUnsafeMutableBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
        threadInfo = ThreadInfo(outputPipe: &outputPipe, output: output)
                                            ^
[5/9] Compiling HexavilleCore Proc.swift
/host/spi-builder-workspace/Sources/HexavilleCore/Process/Proc.swift:31:17: warning: 'launchPath' is deprecated: renamed to 'executableURL'
        process.launchPath = exetutablePath
                ^
/host/spi-builder-workspace/Sources/HexavilleCore/Process/Proc.swift:31:17: note: use 'executableURL' instead
        process.launchPath = exetutablePath
                ^~~~~~~~~~
                executableURL
/host/spi-builder-workspace/Sources/HexavilleCore/Process/Proc.swift:34:17: warning: 'launch()' is deprecated: renamed to 'run'
        process.launch()
                ^
/host/spi-builder-workspace/Sources/HexavilleCore/Process/Proc.swift:34:17: note: use 'run' instead
        process.launch()
                ^~~~~~
                run
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 1