Build Information
Failed to build PerfectPCRE2, reference 3.1.0 (5c04d8
), with Swift 6.1 for Wasm on 27 May 2025 13:11:02 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
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: wasm
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-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-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-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-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 wasm