The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AMSMB2, reference master (f1c589), with Swift 6.2 for Wasm on 23 Apr 2026 06:07:33 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/swiftpackageindex/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
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 f1c5898 Move directory/no-buffering guard into CreateOptions.init
Submodule path 'Dependencies/libsmb2': checked out 'd2c698619024b08569701b35a6f6dad2b226685f'
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 @):
f1c589855407967a302766a5cf4e27e1ccf49caf
SUCCESS checkout https://github.com/amosavian/AMSMB2.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/amosavian/AMSMB2.git
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/swiftpackageindex/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:2a8b2d9e022a9894c61e0736af7cdaa1ee64c002dbb133a55c0d7e8980b3ad16
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest
Fetching https://github.com/apple/swift-atomics.git
[1/1820] Fetching swift-atomics
Fetched https://github.com/apple/swift-atomics.git from cache (1.52s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (2.14s)
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.0
Building for debugging...
[0/60] Compiling compat.c
[1/60] Compiling hmac.c
/host/spi-builder-workspace/Dependencies/libsmb2/lib/errors.c:1120:24: error: use of undeclared identifier 'ENODATA'
 1120 |                 return ENODATA;
      |                        ^
1 error generated.
[2/60] Compiling errors.c
/host/spi-builder-workspace/Dependencies/libsmb2/lib/dcerpc.c:55:10: fatal error: 'sys/unistd.h' file not found
   55 | #include <sys/unistd.h>
      |          ^~~~~~~~~~~~~~
[2/60] Compiling dcerpc.c
/host/spi-builder-workspace/Dependencies/libsmb2/lib/dcerpc-srvsvc.c:55:10: fatal error: 'sys/unistd.h' file not found
   55 | #include <sys/unistd.h>
      |          ^~~~~~~~~~~~~~
[2/60] Compiling dcerpc-srvsvc.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/60] Compiling dcerpc-lsa.c
[2/60] Compiling usha.c
[2/60] Compiling hmac-md5.c
/host/spi-builder-workspace/Dependencies/libsmb2/lib/asn1-ber.c:56:10: fatal error: 'sys/unistd.h' file not found
   56 | #include <sys/un[2/60] Compiling asn1-ber.c
[2/60] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.2 wasm