The Swift Package Index logo.Swift Package Index

Build Information

Failed to build IPAddress, reference main (a69979), with Swift 6.2 for Wasm on 21 Jun 2025 11:13:40 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fdebrabander/swift-ipaddress.git
Reference: main
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/fdebrabander/swift-ipaddress
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at a699794 Add devcontainer.json
Cloned https://github.com/fdebrabander/swift-ipaddress.git
Revision (git rev-parse @):
a69979469ab221208b34b6160d22137f53beae30
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/fdebrabander/swift-ipaddress.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/fdebrabander/swift-ipaddress.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:44384f43f933eaa0f42803e9ef7c3d8388c5841ccc831a15a5edf63d8c273423
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/7] Compiling IPAddress Helpers.swift
/host/spi-builder-workspace/Sources/IPAddress/Helpers.swift:9:26: error: integer literal '4294967295' overflows when stored into 'Int'
  7 | public func PrefixToSubnetMask(prefix: Int) -> Int {
  8 |     precondition(0...32 ~= prefix)
  9 |     return 0xFFFFFFFF - (0xFFFFFFFF >> prefix)
    |                          `- error: integer literal '4294967295' overflows when stored into 'Int'
 10 | }
 11 |
/host/spi-builder-workspace/Sources/IPAddress/Helpers.swift:9:12: error: integer literal '4294967295' overflows when stored into 'Int'
  7 | public func PrefixToSubnetMask(prefix: Int) -> Int {
  8 |     precondition(0...32 ~= prefix)
  9 |     return 0xFFFFFFFF - (0xFFFFFFFF >> prefix)
    |            `- error: integer literal '4294967295' overflows when stored into 'Int'
 10 | }
 11 |
[4/7] Compiling IPAddress IPv4Address.swift
/host/spi-builder-workspace/Sources/IPAddress/IPv4Address.swift:36:84: error: integer literal '3323068416' overflows when stored into signed 'Builtin.Int32'
34 |             IPv4Network(network: 0xC0000000, prefix: 24).contains(ipaddress: self) ||
35 |             // 192.168.0.0/16
36 |             IPv4Network(network: 0xC0A80000, prefix: 16).contains(ipaddress: self) ||
   |                                                                                    `- error: integer literal '3323068416' overflows when stored into signed 'Builtin.Int32'
37 |             // 192.18.0.0/15
38 |             IPv4Network(network: 0xC6120000, prefix: 15).contains(ipaddress: self)
/host/spi-builder-workspace/Sources/IPAddress/IPv4Address.swift:34:84: error: integer literal '3232235520' overflows when stored into signed 'Builtin.Int32'
32 |             IPv4Network(network: 0xAC100000, prefix: 12).contains(ipaddress: self) ||
33 |             // 192.0.0.0/24
34 |             IPv4Network(network: 0xC0000000, prefix: 24).contains(ipaddress: self) ||
   |                                                                                    `- error: integer literal '3232235520' overflows when stored into signed 'Builtin.Int32'
35 |             // 192.168.0.0/16
36 |             IPv4Network(network: 0xC0A80000, prefix: 16).contains(ipaddress: self) ||
/host/spi-builder-workspace/Sources/IPAddress/IPv4Address.swift:32:84: error: integer literal '3221225472' overflows when stored into signed 'Builtin.Int32'
30 |             IPv4Network(network: 0x64400000, prefix: 10).contains(ipaddress: self) ||
31 |             // 172.16.0.0/12
32 |             IPv4Network(network: 0xAC100000, prefix: 12).contains(ipaddress: self) ||
   |                                                                                    `- error: integer literal '3221225472' overflows when stored into signed 'Builtin.Int32'
33 |             // 192.0.0.0/24
34 |             IPv4Network(network: 0xC0000000, prefix: 24).contains(ipaddress: self) ||
/host/spi-builder-workspace/Sources/IPAddress/IPv4Address.swift:30:84: error: integer literal '2886729728' overflows when stored into signed 'Builtin.Int32'
28 |             IPv4Network(network: 0x0A000000, prefix: 8).contains(ipaddress: self) ||
29 |             // 100.64.0.0/10
30 |             IPv4Network(network: 0x64400000, prefix: 10).contains(ipaddress: self) ||
   |                                                                                    `- error: integer literal '2886729728' overflows when stored into signed 'Builtin.Int32'
31 |             // 172.16.0.0/12
32 |             IPv4Network(network: 0xAC100000, prefix: 12).contains(ipaddress: self) ||
/host/spi-builder-workspace/Sources/IPAddress/IPv4Address.swift:32:34: error: integer literal '2886729728' overflows when stored into 'Int'
30 |             IPv4Network(network: 0x64400000, prefix: 10).contains(ipaddress: self) ||
31 |             // 172.16.0.0/12
32 |             IPv4Network(network: 0xAC100000, prefix: 12).contains(ipaddress: self) ||
   |                                  `- error: integer literal '2886729728' overflows when stored into 'Int'
33 |             // 192.0.0.0/24
34 |             IPv4Network(network: 0xC0000000, prefix: 24).contains(ipaddress: self) ||
/host/spi-builder-workspace/Sources/IPAddress/IPv4Address.swift:34:34: error: integer literal '3221225472' overflows when stored into 'Int'
32 |             IPv4Network(network: 0xAC100000, prefix: 12).contains(ipaddress: self) ||
33 |             // 192.0.0.0/24
34 |             IPv4Network(network: 0xC0000000, prefix: 24).contains(ipaddress: self) ||
   |                                  `- error: integer literal '3221225472' overflows when stored into 'Int'
35 |             // 192.168.0.0/16
36 |             IPv4Network(network: 0xC0A80000, prefix: 16).contains(ipaddress: self) ||
/host/spi-builder-workspace/Sources/IPAddress/IPv4Address.swift:36:34: error: integer literal '3232235520' overflows when stored into 'Int'
34 |             IPv4Network(network: 0xC0000000, prefix: 24).contains(ipaddress: self) ||
35 |             // 192.168.0.0/16
36 |             IPv4Network(network: 0xC0A80000, prefix: 16).contains(ipaddress: self) ||
   |                                  `- error: integer literal '3232235520' overflows when stored into 'Int'
37 |             // 192.18.0.0/15
38 |             IPv4Network(network: 0xC6120000, prefix: 15).contains(ipaddress: self)
/host/spi-builder-workspace/Sources/IPAddress/IPv4Address.swift:38:34: error: integer literal '3323068416' overflows when stored into 'Int'
36 |             IPv4Network(network: 0xC0A80000, prefix: 16).contains(ipaddress: self) ||
37 |             // 192.18.0.0/15
38 |             IPv4Network(network: 0xC6120000, prefix: 15).contains(ipaddress: self)
   |                                  `- error: integer literal '3323068416' overflows when stored into 'Int'
39 |     }
40 |
[5/7] Emitting module IPAddress
[6/7] Compiling IPAddress Errors.swift
[7/7] Compiling IPAddress IPv4Network.swift
BUILD FAILURE 6.2 wasm