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 KituraCORS, reference 2.1.201 (fd98bd), with Swift 6.1 for Wasm on 27 May 2025 21:20:11 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/Kitura/Kitura-CORS.git
Reference: 2.1.201
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/Kitura/Kitura-CORS
 * tag               2.1.201    -> FETCH_HEAD
HEAD is now at fd98bd7 Add sameAsOrigin in AllowedOrigins (#45)
Cloned https://github.com/Kitura/Kitura-CORS.git
Revision (git rev-parse @):
fd98bd76a458a7530866a465b5b4b558ffbc5198
SUCCESS checkout https://github.com/Kitura/Kitura-CORS.git at 2.1.201
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Kitura/Kitura-CORS.git
https://github.com/Kitura/Kitura-CORS.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "kitura",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.9.200",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Kitura/Kitura.git"
    }
  ],
  "manifest_display_name" : "KituraCORS",
  "name" : "KituraCORS",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "KituraCORS",
      "targets" : [
        "KituraCORS"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "KituraCORSTests",
      "module_type" : "SwiftTarget",
      "name" : "KituraCORSTests",
      "path" : "Tests/KituraCORSTests",
      "sources" : [
        "KituraTest.swift",
        "TestBasicCORS.swift",
        "TestCORSOptions.swift"
      ],
      "target_dependencies" : [
        "KituraCORS"
      ],
      "type" : "test"
    },
    {
      "c99name" : "KituraCORS",
      "module_type" : "SwiftTarget",
      "name" : "KituraCORS",
      "path" : "Sources/KituraCORS",
      "product_dependencies" : [
        "Kitura"
      ],
      "product_memberships" : [
        "KituraCORS"
      ],
      "sources" : [
        "AllowedOrigins.swift",
        "CORS.swift",
        "Options.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
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:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/Kitura/Kitura.git
[1/16909] Fetching kitura
Fetched https://github.com/Kitura/Kitura.git from cache (1.57s)
Computing version for https://github.com/Kitura/Kitura.git
Computed https://github.com/Kitura/Kitura.git at 2.9.200 (2.17s)
Fetching https://github.com/Kitura/Kitura-net.git
Fetching https://github.com/Kitura/KituraContracts.git
Fetching https://github.com/Kitura/TypeDecoder.git
Fetching https://github.com/Kitura/Kitura-TemplateEngine.git
Fetching https://github.com/Kitura/LoggerAPI.git
Fetching https://github.com/apple/swift-log.git
[1/2546] Fetching kituracontracts
[256/6382] Fetching kituracontracts, swift-log
[1240/6820] Fetching kituracontracts, swift-log, kitura-templateengine
[1241/7279] Fetching kituracontracts, swift-log, kitura-templateengine, typedecoder
[2424/16823] Fetching kituracontracts, swift-log, kitura-templateengine, typedecoder, kitura-net
[8299/17594] Fetching kituracontracts, swift-log, kitura-templateengine, typedecoder, kitura-net, loggerapi
Fetched https://github.com/Kitura/LoggerAPI.git from cache (0.42s)
[10047/16823] Fetching kituracontracts, swift-log, kitura-templateengine, typedecoder, kitura-net
Fetched https://github.com/Kitura/Kitura-TemplateEngine.git from cache (0.45s)
Fetched https://github.com/apple/swift-log.git from cache (0.46s)
[6060/12549] Fetching kituracontracts, typedecoder, kitura-net
Fetched https://github.com/Kitura/TypeDecoder.git from cache (0.47s)
[5791/12090] Fetching kituracontracts, kitura-net
Fetched https://github.com/Kitura/KituraContracts.git from cache (0.48s)
[3532/9544] Fetching kitura-net
Fetched https://github.com/Kitura/Kitura-net.git from cache (0.77s)
Computing version for https://github.com/Kitura/Kitura-TemplateEngine.git
Computed https://github.com/Kitura/Kitura-TemplateEngine.git at 2.0.200 (1.49s)
Computing version for https://github.com/Kitura/Kitura-net.git
Computed https://github.com/Kitura/Kitura-net.git at 2.4.200 (0.65s)
Fetching https://github.com/Kitura/BlueSocket.git
Fetching https://github.com/Kitura/BlueSSLService.git
Fetching https://github.com/Kitura/BlueSignals.git
[1/681] Fetching bluesignals
[682/2758] Fetching bluesignals, bluesslservice
[2759/5700] Fetching bluesignals, bluesslservice, bluesocket
Fetched https://github.com/Kitura/BlueSSLService.git from cache (0.30s)
Fetched https://github.com/Kitura/BlueSignals.git from cache (0.38s)
Fetched https://github.com/Kitura/BlueSocket.git from cache (0.38s)
Computing version for https://github.com/Kitura/LoggerAPI.git
Computed https://github.com/Kitura/LoggerAPI.git at 1.9.200 (0.89s)
Computing version for https://github.com/Kitura/BlueSignals.git
Computed https://github.com/Kitura/BlueSignals.git at 1.0.200 (0.52s)
Computing version for https://github.com/Kitura/BlueSSLService.git
Computed https://github.com/Kitura/BlueSSLService.git at 1.0.200 (0.62s)
Fetching https://github.com/Kitura/OpenSSL.git
[1/203] Fetching openssl
Fetched https://github.com/Kitura/OpenSSL.git from cache (0.23s)
Computing version for https://github.com/Kitura/BlueSocket.git
Computed https://github.com/Kitura/BlueSocket.git at 1.0.200 (0.77s)
Computing version for https://github.com/Kitura/TypeDecoder.git
Computed https://github.com/Kitura/TypeDecoder.git at 1.3.201 (0.72s)
Computing version for https://github.com/Kitura/KituraContracts.git
Computed https://github.com/Kitura/KituraContracts.git at 1.2.201 (0.73s)
Computing version for https://github.com/Kitura/OpenSSL.git
Computed https://github.com/Kitura/OpenSSL.git at 2.3.1 (1.97s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (1.02s)
Creating working copy for https://github.com/Kitura/LoggerAPI.git
Working copy of https://github.com/Kitura/LoggerAPI.git resolved at 1.9.200
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Creating working copy for https://github.com/Kitura/Kitura.git
Working copy of https://github.com/Kitura/Kitura.git resolved at 2.9.200
Creating working copy for https://github.com/Kitura/Kitura-TemplateEngine.git
Working copy of https://github.com/Kitura/Kitura-TemplateEngine.git resolved at 2.0.200
Creating working copy for https://github.com/Kitura/BlueSocket.git
Working copy of https://github.com/Kitura/BlueSocket.git resolved at 1.0.200
Creating working copy for https://github.com/Kitura/BlueSignals.git
Working copy of https://github.com/Kitura/BlueSignals.git resolved at 1.0.200
Creating working copy for https://github.com/Kitura/Kitura-net.git
Working copy of https://github.com/Kitura/Kitura-net.git resolved at 2.4.200
Creating working copy for https://github.com/Kitura/OpenSSL.git
Working copy of https://github.com/Kitura/OpenSSL.git resolved at 2.3.1
Creating working copy for https://github.com/Kitura/BlueSSLService.git
Working copy of https://github.com/Kitura/BlueSSLService.git resolved at 1.0.200
Creating working copy for https://github.com/Kitura/TypeDecoder.git
Working copy of https://github.com/Kitura/TypeDecoder.git resolved at 1.3.201
Creating working copy for https://github.com/Kitura/KituraContracts.git
Working copy of https://github.com/Kitura/KituraContracts.git resolved at 1.2.201
warning: you may be able to install openssl using your system-packager:
    apt-get install openssl libssl-dev
warning: you may be able to install openssl using your system-packager:
    apt-get install openssl libssl-dev
Building for debugging...
[0/14] Write sources
[11/14] Compiling CHTTPParser utils.c
[12/14] Write swift-version-24593BA9C3E375BF.txt
[13/14] Compiling CHTTPParser http_parser.c
[15/30] Emitting module KituraTemplateEngine
error: emit-module command failed with exit code 1 (use -v to see invocation)
[16/30] Emitting module Socket
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:146:27: error: cannot find '__DARWIN_FD_SETSIZE' in scope
144 | 	// __DARWIN_FD_SETSIZE is number of *bits*, so divide by number bits in each element to get element count
145 | 	// at present this is 1024 / 32 == 32
146 | 	let __fd_set_count = Int(__DARWIN_FD_SETSIZE) / 32
    |                           `- error: cannot find '__DARWIN_FD_SETSIZE' in scope
147 |
148 | 	extension fd_set {
[17/30] Compiling KituraTemplateEngine TemplateEngine.swift
[19/31] Emitting module Logging
[20/31] Compiling Logging MetadataProvider.swift
[21/31] Compiling Logging LogHandler.swift
[22/31] Compiling Logging Locks.swift
[23/31] Compiling Logging Logging.swift
[25/32] Emitting module Signals
[26/32] Compiling Signals Signals.swift
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:56:18: error: cannot find 'SIGHUP' in scope
 54 | 			switch self {
 55 | 			case .hup:
 56 | 				return Int32(SIGHUP)
    |                  `- error: cannot find 'SIGHUP' in scope
 57 | 			case .int:
 58 | 				return Int32(SIGINT)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:58:18: error: cannot find 'SIGINT' in scope
 56 | 				return Int32(SIGHUP)
 57 | 			case .int:
 58 | 				return Int32(SIGINT)
    |                  `- error: cannot find 'SIGINT' in scope
 59 | 			case .quit:
 60 | 				return Int32(SIGQUIT)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:60:18: error: cannot find 'SIGQUIT' in scope
 58 | 				return Int32(SIGINT)
 59 | 			case .quit:
 60 | 				return Int32(SIGQUIT)
    |                  `- error: cannot find 'SIGQUIT' in scope
 61 | 			case .abrt:
 62 | 				return Int32(SIGABRT)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:62:18: error: cannot find 'SIGABRT' in scope
 60 | 				return Int32(SIGQUIT)
 61 | 			case .abrt:
 62 | 				return Int32(SIGABRT)
    |                  `- error: cannot find 'SIGABRT' in scope
 63 | 			case .kill:
 64 | 				return Int32(SIGKILL)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:64:18: error: cannot find 'SIGKILL' in scope
 62 | 				return Int32(SIGABRT)
 63 | 			case .kill:
 64 | 				return Int32(SIGKILL)
    |                  `- error: cannot find 'SIGKILL' in scope
 65 | 			case .alrm:
 66 | 				return Int32(SIGALRM)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:66:18: error: cannot find 'SIGALRM' in scope
 64 | 				return Int32(SIGKILL)
 65 | 			case .alrm:
 66 | 				return Int32(SIGALRM)
    |                  `- error: cannot find 'SIGALRM' in scope
 67 | 			case .term:
 68 | 				return Int32(SIGTERM)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:68:18: error: cannot find 'SIGTERM' in scope
 66 | 				return Int32(SIGALRM)
 67 | 			case .term:
 68 | 				return Int32(SIGTERM)
    |                  `- error: cannot find 'SIGTERM' in scope
 69 | 			case .pipe:
 70 | 				return Int32(SIGPIPE)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:70:18: error: cannot find 'SIGPIPE' in scope
 68 | 				return Int32(SIGTERM)
 69 | 			case .pipe:
 70 | 				return Int32(SIGPIPE)
    |                  `- error: cannot find 'SIGPIPE' in scope
 71 | 			case .user(let sig):
 72 | 				return Int32(sig)
[27/32] Compiling Socket SocketProtocols.swift
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:146:27: error: cannot find '__DARWIN_FD_SETSIZE' in scope
144 | 	// __DARWIN_FD_SETSIZE is number of *bits*, so divide by number bits in each element to get element count
145 | 	// at present this is 1024 / 32 == 32
146 | 	let __fd_set_count = Int(__DARWIN_FD_SETSIZE) / 32
    |                           `- error: cannot find '__DARWIN_FD_SETSIZE' in scope
147 |
148 | 	extension fd_set {
[28/32] Emitting module TypeDecoder
[29/32] Compiling TypeDecoder OrderedDictionary.swift
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:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
warning: you may be able to install openssl using your system-packager:
    apt-get install openssl libssl-dev
warning: you may be able to install openssl using your system-packager:
    apt-get install openssl libssl-dev
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/17] Emitting module KituraTemplateEngine
[3/17] Compiling KituraTemplateEngine TemplateEngine.swift
[5/18] Emitting module Signals
[6/18] Compiling Signals Signals.swift
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:56:18: error: cannot find 'SIGHUP' in scope
 54 | 			switch self {
 55 | 			case .hup:
 56 | 				return Int32(SIGHUP)
    |                  `- error: cannot find 'SIGHUP' in scope
 57 | 			case .int:
 58 | 				return Int32(SIGINT)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:58:18: error: cannot find 'SIGINT' in scope
 56 | 				return Int32(SIGHUP)
 57 | 			case .int:
 58 | 				return Int32(SIGINT)
    |                  `- error: cannot find 'SIGINT' in scope
 59 | 			case .quit:
 60 | 				return Int32(SIGQUIT)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:60:18: error: cannot find 'SIGQUIT' in scope
 58 | 				return Int32(SIGINT)
 59 | 			case .quit:
 60 | 				return Int32(SIGQUIT)
    |                  `- error: cannot find 'SIGQUIT' in scope
 61 | 			case .abrt:
 62 | 				return Int32(SIGABRT)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:62:18: error: cannot find 'SIGABRT' in scope
 60 | 				return Int32(SIGQUIT)
 61 | 			case .abrt:
 62 | 				return Int32(SIGABRT)
    |                  `- error: cannot find 'SIGABRT' in scope
 63 | 			case .kill:
 64 | 				return Int32(SIGKILL)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:64:18: error: cannot find 'SIGKILL' in scope
 62 | 				return Int32(SIGABRT)
 63 | 			case .kill:
 64 | 				return Int32(SIGKILL)
    |                  `- error: cannot find 'SIGKILL' in scope
 65 | 			case .alrm:
 66 | 				return Int32(SIGALRM)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:66:18: error: cannot find 'SIGALRM' in scope
 64 | 				return Int32(SIGKILL)
 65 | 			case .alrm:
 66 | 				return Int32(SIGALRM)
    |                  `- error: cannot find 'SIGALRM' in scope
 67 | 			case .term:
 68 | 				return Int32(SIGTERM)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:68:18: error: cannot find 'SIGTERM' in scope
 66 | 				return Int32(SIGALRM)
 67 | 			case .term:
 68 | 				return Int32(SIGTERM)
    |                  `- error: cannot find 'SIGTERM' in scope
 69 | 			case .pipe:
 70 | 				return Int32(SIGPIPE)
/host/spi-builder-workspace/.build/checkouts/BlueSignals/Sources/Signals/Signals.swift:70:18: error: cannot find 'SIGPIPE' in scope
 68 | 				return Int32(SIGTERM)
 69 | 			case .pipe:
 70 | 				return Int32(SIGPIPE)
    |                  `- error: cannot find 'SIGPIPE' in scope
 71 | 			case .user(let sig):
 72 | 				return Int32(sig)
[7/18] Compiling Socket SocketUtils.swift
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:146:27: error: cannot find '__DARWIN_FD_SETSIZE' in scope
144 | 	// __DARWIN_FD_SETSIZE is number of *bits*, so divide by number bits in each element to get element count
145 | 	// at present this is 1024 / 32 == 32
146 | 	let __fd_set_count = Int(__DARWIN_FD_SETSIZE) / 32
    |                           `- error: cannot find '__DARWIN_FD_SETSIZE' in scope
147 |
148 | 	extension fd_set {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:152:45: error: cannot find 'fds_bits' in scope
150 | 		@inline(__always)
151 | 		mutating func withCArrayAccess<T>(block: (UnsafeMutablePointer<Int32>) throws -> T) rethrows -> T {
152 | 			return try withUnsafeMutablePointer(to: &fds_bits) {
    |                                             `- error: cannot find 'fds_bits' in scope
153 | 				try block(UnsafeMutableRawPointer($0).assumingMemoryBound(to: Int32.self))
154 | 			}
[8/18] Compiling Logging MetadataProvider.swift
[9/18] Emitting module Logging
[10/18] Compiling Logging LogHandler.swift
[11/18] Compiling Socket SocketProtocols.swift
[12/18] Compiling TypeDecoder OrderedDictionary.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[13/18] Emitting module Socket
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:146:27: error: cannot find '__DARWIN_FD_SETSIZE' in scope
144 | 	// __DARWIN_FD_SETSIZE is number of *bits*, so divide by number bits in each element to get element count
145 | 	// at present this is 1024 / 32 == 32
146 | 	let __fd_set_count = Int(__DARWIN_FD_SETSIZE) / 32
    |                           `- error: cannot find '__DARWIN_FD_SETSIZE' in scope
147 |
148 | 	extension fd_set {
[14/18] Compiling Logging Locks.swift
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:208:13: error: cannot find 'SOCK_STREAM' in scope
 206 | 					return Int32(SOCK_STREAM.rawValue)
 207 | 				#else
 208 | 					return SOCK_STREAM
     |             `- error: cannot find 'SOCK_STREAM' in scope
 209 | 				#endif
 210 | 			case .datagram:
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:214:13: error: cannot find 'SOCK_DGRAM' in scope
 212 | 					return Int32(SOCK_DGRAM.rawValue)
 213 | 				#else
 214 | 					return SOCK_DGRAM
     |             `- error: cannot find 'SOCK_DGRAM' in scope
 215 | 				#endif
 216 | 			}
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:241:10: error: cannot find 'SOCK_STREAM' in scope
 239 | 				switch forValue {
 240 |
 241 | 				case SOCK_STREAM:
     |          `- error: cannot find 'SOCK_STREAM' in scope
 242 | 					return .stream
 243 | 				case SOCK_DGRAM:
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:243:10: error: cannot find 'SOCK_DGRAM' in scope
 241 | 				case SOCK_STREAM:
 242 | 					return .stream
 243 | 				case SOCK_DGRAM:
     |          `- error: cannot find 'SOCK_DGRAM' in scope
 244 | 					return .datagram
 245 | 				default:
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:597:63: error: value of type 'sockaddr_un' has no member 'sun_path'
 595 |
 596 | 			// Validate the length...
 597 | 			guard lengthOfPath < MemoryLayout.size(ofValue: remoteAddr.sun_path) else {
     |                                                               `- error: value of type 'sockaddr_un' has no member 'sun_path'
 598 |
 599 | 				throw Error(code: Socket.SOCKET_ERR_BAD_SIGNATURE_PARAMETERS, reason: "Pathname supplied is too long.")
BUILD FAILURE 6.1 wasm