The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build swift-docker-cli, reference master (8c48fb), with Swift 6.1 for Linux on 25 Apr 2025 14:09:53 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/iainsmith/swift-docker.git
Reference: master
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/iainsmith/swift-docker
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 8c48fbc Add a repl command
Cloned https://github.com/iainsmith/swift-docker.git
Revision (git rev-parse @):
8c48fbc44d7ff44a06d44d2b338e279d8d8e1cde
SUCCESS checkout https://github.com/iainsmith/swift-docker.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/iainsmith/swift-docker.git
https://github.com/iainsmith/swift-docker.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-tools-support-core",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.1.1",
            "upper_bound" : "0.2.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-tools-support-core"
    },
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.0.5",
            "upper_bound" : "0.1.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser"
    }
  ],
  "manifest_display_name" : "swift-docker-cli",
  "name" : "swift-docker-cli",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.14"
    }
  ],
  "products" : [
    {
      "name" : "swift-docker",
      "targets" : [
        "SwiftDocker"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "SwiftDocker",
      "targets" : [
        "SwiftDocker"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftDockerLibTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftDockerLibTests",
      "path" : "Tests/SwiftDockerLibTests",
      "sources" : [
        "BuildImageCommandUnitTests.swift",
        "CLIOptionTests.swift",
        "CleanupCommandUnitTests.swift",
        "DockerCommandTests.swift",
        "Mocks.swift",
        "TestCommandUnitTests.swift",
        "URLArgumentTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "SwiftDockerLib"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftDockerLib",
      "module_type" : "SwiftTarget",
      "name" : "SwiftDockerLib",
      "path" : "Sources/SwiftDockerLib",
      "product_dependencies" : [
        "SwiftToolsSupport-auto",
        "ArgumentParser"
      ],
      "product_memberships" : [
        "swift-docker",
        "SwiftDocker"
      ],
      "sources" : [
        "ArgumentParserExtensions.swift",
        "BuildCommand.swift",
        "BuildImageCommand.swift",
        "CLI.swift",
        "CLIOptions.swift",
        "CleanupCommand.swift",
        "DocExamples.swift",
        "DockerCommand.swift",
        "DockerCommandsLegacy.swift",
        "DockerHub.swift",
        "DockerLabel.swift",
        "DockerOutputRewriter.swift",
        "DockerTag.swift",
        "Dockerfile.swift",
        "Errors.swift",
        "Indent.swift",
        "OutputDestination.swift",
        "PackageMetadata.swift",
        "ReplyCommand.swift",
        "RunCommand.swift",
        "ShellRunner.swift",
        "SquareBracketsLineRewriter.swift",
        "TSCLibExtensions.swift",
        "TemporaryFile.swift",
        "TestCommand.swift",
        "VaporCommand.swift",
        "WriteDockerfileCommand.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SwiftDocker",
      "module_type" : "SwiftTarget",
      "name" : "SwiftDocker",
      "path" : "Sources/SwiftDocker",
      "product_memberships" : [
        "swift-docker",
        "SwiftDocker"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "SwiftDockerLib"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/apple/swift-tools-support-core
Fetching https://github.com/apple/swift-argument-parser
[1/6718] Fetching swift-tools-support-core
[6719/21631] Fetching swift-tools-support-core, swift-argument-parser
Fetched https://github.com/apple/swift-tools-support-core from cache (1.07s)
Fetched https://github.com/apple/swift-argument-parser from cache (1.08s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 0.0.6 (2.01s)
Computing version for https://github.com/apple/swift-tools-support-core
Computed https://github.com/apple/swift-tools-support-core at 0.1.12 (0.54s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 0.0.6
Creating working copy for https://github.com/apple/swift-tools-support-core
Working copy of https://github.com/apple/swift-tools-support-core resolved at 0.1.12
Building for debugging...
[0/17] Write sources
[6/17] Compiling TSCclibc libc.c
/host/spi-builder-workspace/.build/checkouts/swift-tools-support-core/Sources/TSCclibc/process.c:10:12: error: call to undeclared function 'posix_spawn_file_actions_addchdir_np'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   10 |     return posix_spawn_file_actions_addchdir_np(file_actions, path);
      |            ^
/host/spi-builder-workspace/.build/checkouts/swift-tools-support-core/Sources/TSCclibc/process.c:10:12: note: did you mean 'SPM_posix_spawn_file_actions_addchdir_np'?
/host/spi-builder-workspace/.build/checkouts/swift-tools-support-core/Sources/TSCclibc/process.c:7:5: note: 'SPM_posix_spawn_file_actions_addchdir_np' declared here
    7 | int SPM_posix_spawn_file_actions_addchdir_np(posix_spawn_file_actions_t *restrict file_actions, const char *restrict path) {
      |     ^
    8 | #if defined(__GLIBC__)
    9 | #  if __GLIBC_PREREQ(2, 29)
   10 |     return posix_spawn_file_actions_addchdir_np(file_actions, path);
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |            SPM_posix_spawn_file_actions_addchdir_np
1 error generated.
[7/17] Compiling TSCclibc process.c
[7/17] Write swift-version-24593BA9C3E375BF.txt
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
/host/spi-builder-workspace/.build/checkouts/swift-tools-support-core/Sources/TSCclibc/process.c:10:12: error: call to undeclared function 'posix_spawn_file_actions_addchdir_np'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   10 |     return posix_spawn_file_actions_addchdir_np(file_actions, path);
      |            ^
/host/spi-builder-workspace/.build/checkouts/swift-tools-support-core/Sources/TSCclibc/process.c:10:12: note: did you mean 'SPM_posix_spawn_file_actions_addchdir_np'?
/host/spi-builder-workspace/.build/checkouts/swift-tools-support-core/Sources/TSCclibc/process.c:7:5: note: 'SPM_posix_spawn_file_actions_addchdir_np' declared here
    7 | int SPM_posix_spawn_file_actions_addchdir_np(posix_spawn_file_actions_t *restrict file_actions, const char *restrict path) {
      |     ^
    8 | #if defined(__GLIBC__)
    9 | #  if __GLIBC_PREREQ(2, 29)
   10 |     return posix_spawn_file_actions_addchdir_np(file_actions, path);
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |            SPM_posix_spawn_file_actions_addchdir_np
1 error generated.
[0/10] Compiling TSCclibc process.c
[0/10] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.1 linux