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-http-structured-headers, reference 1.6.0 (76d762), with Swift 6.1 for Wasm on 12 Nov 2025 19:43:35 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/apple/swift-http-structured-headers.git
Reference: 1.6.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/apple/swift-http-structured-headers
 * tag               1.6.0      -> FETCH_HEAD
HEAD is now at 76d7627 Add support for Windows (#73)
Cloned https://github.com/apple/swift-http-structured-headers.git
Revision (git rev-parse @):
76d7627bd88b47bf5a0f8497dd244885960dde0b
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/apple/swift-http-structured-headers.git at 1.6.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/apple/swift-http-structured-headers.git
https://github.com/apple/swift-http-structured-headers.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swift-http-structured-headers",
  "name" : "swift-http-structured-headers",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "StructuredFieldValues",
      "targets" : [
        "StructuredFieldValues"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "RawStructuredFieldValues",
      "targets" : [
        "RawStructuredFieldValues"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "sh-parser",
      "targets" : [
        "sh-parser"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "sh_parser",
      "module_type" : "SwiftTarget",
      "name" : "sh-parser",
      "path" : "Sources/sh-parser",
      "product_memberships" : [
        "sh-parser"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "RawStructuredFieldValues"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "StructuredFieldValuesTests",
      "module_type" : "SwiftTarget",
      "name" : "StructuredFieldValuesTests",
      "path" : "Tests/StructuredFieldValuesTests",
      "sources" : [
        "Base32.swift",
        "Fixtures.swift",
        "StructuredFieldDecoderTests.swift",
        "StructuredFieldEncoderTests.swift",
        "StructuredFieldParserTests.swift",
        "StructuredFieldSerializerTests.swift"
      ],
      "target_dependencies" : [
        "RawStructuredFieldValues",
        "StructuredFieldValues"
      ],
      "type" : "test"
    },
    {
      "c99name" : "StructuredFieldValues",
      "module_type" : "SwiftTarget",
      "name" : "StructuredFieldValues",
      "path" : "Sources/StructuredFieldValues",
      "product_memberships" : [
        "StructuredFieldValues"
      ],
      "sources" : [
        "Decoder/BareInnerListDecoder.swift",
        "Decoder/BareItemDecoder.swift",
        "Decoder/DictionaryKeyedContainer.swift",
        "Decoder/KeyedInnerListDecoder.swift",
        "Decoder/KeyedItemDecoder.swift",
        "Decoder/KeyedTopLevelListDecoder.swift",
        "Decoder/ParametersDecoder.swift",
        "Decoder/StructuredFieldValueDecoder.swift",
        "Decoder/StructuredHeaderCodingKey.swift",
        "Decoder/TopLevelListDecoder.swift",
        "DisplayString.swift",
        "Encoder/StructuredFieldKeyedEncodingContainer.swift",
        "Encoder/StructuredFieldUnkeyedEncodingContainer.swift",
        "Encoder/StructuredFieldValueEncoder.swift",
        "StructuredFieldValue.swift"
      ],
      "target_dependencies" : [
        "RawStructuredFieldValues"
      ],
      "type" : "library"
    },
    {
      "c99name" : "RawStructuredFieldValues",
      "module_type" : "SwiftTarget",
      "name" : "RawStructuredFieldValues",
      "path" : "Sources/RawStructuredFieldValues",
      "product_memberships" : [
        "StructuredFieldValues",
        "RawStructuredFieldValues",
        "sh-parser"
      ],
      "sources" : [
        "ASCII.swift",
        "ComponentTypes.swift",
        "Errors.swift",
        "FieldParser.swift",
        "FieldSerializer.swift",
        "OrderedMap.swift",
        "PseudoDecimal.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:062e4aaff76454b333ce7957a8e87c3beb342f1dedb64399abb81cdea021b526
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/8] Write sources
[3/8] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/16] Compiling RawStructuredFieldValues FieldParser.swift
[6/16] Compiling RawStructuredFieldValues ASCII.swift
[7/16] Compiling RawStructuredFieldValues ComponentTypes.swift
[8/16] Compiling RawStructuredFieldValues Errors.swift
[9/16] Emitting module RawStructuredFieldValues
/host/spi-builder-workspace/Sources/RawStructuredFieldValues/PseudoDecimal.swift:25:8: error: Unsupported OS
 23 | import WinSDK
 24 | #else
 25 | #error("Unsupported OS")
    |        `- error: Unsupported OS
 26 | #endif
 27 |
[10/16] Compiling RawStructuredFieldValues OrderedMap.swift
[11/16] Compiling RawStructuredFieldValues FieldSerializer.swift
[12/16] Compiling RawStructuredFieldValues PseudoDecimal.swift
/host/spi-builder-workspace/Sources/RawStructuredFieldValues/PseudoDecimal.swift:25:8: error: Unsupported OS
 23 | import WinSDK
 24 | #else
 25 | #error("Unsupported OS")
    |        `- error: Unsupported OS
 26 | #endif
 27 |
/host/spi-builder-workspace/Sources/RawStructuredFieldValues/PseudoDecimal.swift:229:49: error: cannot find 'pow' in scope
227 | extension Double {
228 |     public init(_ pseudoDecimal: PseudoDecimal) {
229 |         self = Double(pseudoDecimal.mantissa) * pow(10, Double(pseudoDecimal.exponent))
    |                                                 `- error: cannot find 'pow' in scope
230 |     }
231 | }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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:062e4aaff76454b333ce7957a8e87c3beb342f1dedb64399abb81cdea021b526
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/5] Write swift-version-24593BA9C3E375BF.txt
[2/13] Compiling RawStructuredFieldValues PseudoDecimal.swift
/host/spi-builder-workspace/Sources/RawStructuredFieldValues/PseudoDecimal.swift:25:8: error: Unsupported OS
 23 | import WinSDK
 24 | #else
 25 | #error("Unsupported OS")
    |        `- error: Unsupported OS
 26 | #endif
 27 |
/host/spi-builder-workspace/Sources/RawStructuredFieldValues/PseudoDecimal.swift:229:49: error: cannot find 'pow' in scope
227 | extension Double {
228 |     public init(_ pseudoDecimal: PseudoDecimal) {
229 |         self = Double(pseudoDecimal.mantissa) * pow(10, Double(pseudoDecimal.exponent))
    |                                                 `- error: cannot find 'pow' in scope
230 |     }
231 | }
[3/13] Compiling RawStructuredFieldValues FieldSerializer.swift
[4/13] Compiling RawStructuredFieldValues OrderedMap.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/13] Compiling RawStructuredFieldValues ComponentTypes.swift
[6/13] Compiling RawStructuredFieldValues Errors.swift
[7/13] Compiling RawStructuredFieldValues ASCII.swift
[8/13] Compiling RawStructuredFieldValues FieldParser.swift
[9/13] Emitting module RawStructuredFieldValues
/host/spi-builder-workspace/Sources/RawStructuredFieldValues/PseudoDecimal.swift:25:8: error: Unsupported OS
 23 | import WinSDK
 24 | #else
 25 | #error("Unsupported OS")
    |        `- error: Unsupported OS
 26 | #endif
 27 |
BUILD FAILURE 6.1 wasm