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 PerfectPCRE2, reference 3.1.0 (5c04d8), with Swift 6.1 for Linux on 25 Apr 2025 14:16:51 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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/rockfordwei/perfect-pcre2.git
Reference: 3.1.0
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/rockfordwei/perfect-pcre2
 * tag               3.1.0      -> FETCH_HEAD
HEAD is now at 5c04d84 upgrading to swift 4.2
Cloned https://github.com/rockfordwei/perfect-pcre2.git
Revision (git rev-parse @):
5c04d84b93dafe52393910dd79352f8e7860f367
SUCCESS checkout https://github.com/rockfordwei/perfect-pcre2.git at 3.1.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/rockfordwei/perfect-pcre2.git
https://github.com/rockfordwei/perfect-pcre2.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "PerfectPCRE2",
  "name" : "PerfectPCRE2",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "PerfectPCRE2",
      "targets" : [
        "PerfectPCRE2"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "pcre2api",
      "module_type" : "SystemLibraryTarget",
      "name" : "pcre2api",
      "path" : "Sources/pcre2api",
      "product_memberships" : [
        "PerfectPCRE2"
      ],
      "sources" : [
      ],
      "type" : "system-target"
    },
    {
      "c99name" : "PerfectPCRE2Tests",
      "module_type" : "SwiftTarget",
      "name" : "PerfectPCRE2Tests",
      "path" : "Tests/PerfectPCRE2Tests",
      "sources" : [
        "PerfectPCRE2Tests.swift"
      ],
      "target_dependencies" : [
        "PerfectPCRE2"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PerfectPCRE2",
      "module_type" : "SwiftTarget",
      "name" : "PerfectPCRE2",
      "path" : "Sources/PerfectPCRE2",
      "product_memberships" : [
        "PerfectPCRE2"
      ],
      "sources" : [
        "PerfectPCRE2.swift"
      ],
      "target_dependencies" : [
        "pcre2api"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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
warning: you may be able to install libpcre2-8 using your system-packager:
    apt-get install libpcre2-dev
warning: you may be able to install libpcre2-8 using your system-packager:
    apt-get install libpcre2-dev
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module PerfectPCRE2
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "pcre2api.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/pcre2api/pcre2api.h:5:10: error: 'pcre2.h' file not found
3 | #define PCRE2_CODE_UNIT_WIDTH 8
4 |
5 | #include "pcre2.h"
  |          `- error: 'pcre2.h' file not found
6 |
7 | #endif
/host/spi-builder-workspace/Sources/PerfectPCRE2/PerfectPCRE2.swift:1:8: error: could not build C module 'pcre2api'
  1 | import pcre2api
    |        `- error: could not build C module 'pcre2api'
  2 | import Foundation
  3 |
[4/4] Compiling PerfectPCRE2 PerfectPCRE2.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "pcre2api.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/pcre2api/pcre2api.h:5:10: error: 'pcre2.h' file not found
3 | #define PCRE2_CODE_UNIT_WIDTH 8
4 |
5 | #include "pcre2.h"
  |          `- error: 'pcre2.h' file not found
6 |
7 | #endif
/host/spi-builder-workspace/Sources/PerfectPCRE2/PerfectPCRE2.swift:1:8: error: could not build C module 'pcre2api'
  1 | import pcre2api
    |        `- error: could not build C module 'pcre2api'
  2 | import Foundation
  3 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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
warning: you may be able to install libpcre2-8 using your system-packager:
    apt-get install libpcre2-dev
warning: you may be able to install libpcre2-8 using your system-packager:
    apt-get install libpcre2-dev
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] Emitting module PerfectPCRE2
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "pcre2api.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/pcre2api/pcre2api.h:5:10: error: 'pcre2.h' file not found
3 | #define PCRE2_CODE_UNIT_WIDTH 8
4 |
5 | #include "pcre2.h"
  |          `- error: 'pcre2.h' file not found
6 |
7 | #endif
/host/spi-builder-workspace/Sources/PerfectPCRE2/PerfectPCRE2.swift:1:8: error: could not build C module 'pcre2api'
  1 | import pcre2api
    |        `- error: could not build C module 'pcre2api'
  2 | import Foundation
  3 |
[3/3] Compiling PerfectPCRE2 PerfectPCRE2.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "pcre2api.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/pcre2api/pcre2api.h:5:10: error: 'pcre2.h' file not found
3 | #define PCRE2_CODE_UNIT_WIDTH 8
4 |
5 | #include "pcre2.h"
  |          `- error: 'pcre2.h' file not found
6 |
7 | #endif
/host/spi-builder-workspace/Sources/PerfectPCRE2/PerfectPCRE2.swift:1:8: error: could not build C module 'pcre2api'
  1 | import pcre2api
    |        `- error: could not build C module 'pcre2api'
  2 | import Foundation
  3 |
BUILD FAILURE 6.1 linux