The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AMSMB2, reference master (90737c), with Swift 6.1 for Wasm on 24 Jun 2026 20:19:57 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4071e0796c748d991a0123890d2f0ecadc8fcc8c
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/amosavian/AMSMB2.git
Reference: master
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/amosavian/AMSMB2
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 90737c4 chore: Use System package for Errno, SeekWhence and minor renamings
Submodule path 'Dependencies/libsmb2': checked out 'aedafb2c8742c83188e27841e270fdaad6035d41'
Submodule 'Dependencies/libsmb2' (https://github.com/sahlberg/libsmb2) registered for path 'Dependencies/libsmb2'
Cloning into '/host/spi-builder-workspace/Dependencies/libsmb2'...
Cloned https://github.com/amosavian/AMSMB2.git
Revision (git rev-parse @):
90737c486c9d1a6ed1c1d4307060587c7bb0dfec
SUCCESS checkout https://github.com/amosavian/AMSMB2.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/amosavian/AMSMB2.git
https://github.com/amosavian/AMSMB2.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/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 swiftpackageindex/spi-images
Digest: sha256:87277f180438764e0763769462b4e00642129a1e8364b1cdaa91f88fde66785b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-system.git
[1/1868] Fetching swift-atomics
[1869/7761] Fetching swift-atomics, swift-system
Fetched https://github.com/apple/swift-atomics.git from cache (0.51s)
Fetched https://github.com/apple/swift-system.git from cache (0.51s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.1 (0.75s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.7.2 (0.25s)
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.7.2
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.1
Building for debugging...
[0/63] Compiling compat.c
[1/63] Compiling aes_apple.c
/host/spi-builder-workspace/Dependencies/libsmb2/lib/asn1-ber.c:56:10: fatal error: 'sys/unistd.h' file not found
   56 | #include <sys/unistd.h>
      |          ^~~~~~~~~~~~~~
1 error generated.
[2/63] Compiling asn1-ber.c
[2/63] Compiling unicode.c
[2/63] Compiling aes_reference.c
/host/spi-builder-workspace/Dependencies/libsmb2/lib/dcerpc-lsa.c:55:10: fatal error: 'sys/unistd.h' file not found
   55 | #include <sys/unistd.h>
      |          ^~~~~~~~~~~~~~
[2/63] Compiling dcerpc-lsa.c
[2/63] Compiling usha.c
/host/spi-builder-workspace/Dependencies/libsmb2/lib/alloc.c:51:10: fatal error: 'sys/unistd.h' file not found
   51 | #include <sys/unistd.h>
      |          ^~~~~~~~~~~~~~
1 error generated.
[2/63] Compiling alloc.c
[2/63] Compiling aes128ccm.c
[2/63] Write swift-version-24593BA9C3E375BF.txt
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:87277f180438764e0763769462b4e00642129a1e8364b1cdaa91f88fde66785b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/61] Compiling timestamps.c
[1/61] Compiling unicode.c
/host/spi-builder-workspace/Dependencies/libsmb2/lib/socket.c:31:10: fatal error: 'netdb.h' file not found
   31 | #include <netdb.h>
      |          ^~~~~~~~~
1 error generated.
[2/61] Compiling socket.c
/host/spi-builder-workspace/Dependencies/libsmb2/lib/spnego-wrapper.c:56:10: fatal error: 'sys/unistd.h' file not found
   56 | #include <sys/unistd.h>
      |          ^~~~~~~~~~~~~~
1 error generated.
[2/61] Compiling spnego-wrapper.c
[2/61] Compiling smb3-seal.c
[2/61] Compiling smb2-signing.c
[2/61] Compiling smb2-share-enum.c
In file included from /host/spi-builder-workspace/Dependencies/libsmb2/lib/sync.c:37:
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/sys/poll.h:1:2: warning: redirecting incorrect #include <sys/poll.h> to <poll.h> [-W#warnings]
    1 | #warning redirecting incorrect #include <sys/poll.h> to <poll.h>
      |  ^
[2/61] Compiling sync.c
[2/61] Compiling usha.c
[2/61] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.1 wasm