Build Information
Failed to build swift-driver, reference main (7a96ff), with Swift 6.2 for Wasm on 20 Jun 2025 22:15:26 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SDGGiesbrecht/swift-driver.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/SDGGiesbrecht/swift-driver
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 7a96ffd Merge pull request #1313 from apple/mracek/add-baremetal-target
Cloned https://github.com/SDGGiesbrecht/swift-driver.git
Revision (git rev-parse @):
7a96ffdd68dda2049cc2da005493b872ea43e3bc
SUCCESS checkout https://github.com/SDGGiesbrecht/swift-driver.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/SDGGiesbrecht/swift-driver.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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
Fetching https://github.com/apple/swift-llbuild.git
[1/29039] Fetching swift-llbuild
Fetched https://github.com/apple/swift-llbuild.git from cache (2.40s)
Fetching https://github.com/apple/swift-tools-support-core.git
[1/6855] Fetching swift-tools-support-core
Fetched https://github.com/apple/swift-tools-support-core.git from cache (0.58s)
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/jpsim/Yams.git
Fetching https://github.com/swiftlang/swift-toolchain-sqlite
[1/136] Fetching swift-toolchain-sqlite
[23/11010] Fetching swift-toolchain-sqlite, yams
[1221/26390] Fetching swift-toolchain-sqlite, yams, swift-argument-parser
Fetched https://github.com/swiftlang/swift-toolchain-sqlite from cache (1.18s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.25s)
Fetched https://github.com/jpsim/Yams.git from cache (1.28s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.2.3 (2.10s)
Computing version for https://github.com/swiftlang/swift-toolchain-sqlite
Computed https://github.com/swiftlang/swift-toolchain-sqlite at 1.0.5 (1.49s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 5.0.6 (0.45s)
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.2.3
Creating working copy for https://github.com/apple/swift-llbuild.git
Working copy of https://github.com/apple/swift-llbuild.git resolved at main (f3b9649)
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 5.0.6
Creating working copy for https://github.com/apple/swift-tools-support-core.git
Working copy of https://github.com/apple/swift-tools-support-core.git resolved at main (f9b4010)
Creating working copy for https://github.com/swiftlang/swift-toolchain-sqlite
Working copy of https://github.com/swiftlang/swift-toolchain-sqlite resolved at 1.0.5
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/141] Write sources
[4/141] Compiling makeOptions main.cpp
[5/141] Write swift-version-24593BA9C3E375BF.txt
[6/141] Compiling llvmSupport Valgrind.cpp
[7/141] Compiling llvmSupport UnicodeCaseFold.cpp
[8/141] Compiling llvmSupport Mutex.cpp
[9/141] Compiling llvmSupport circular_raw_ostream.cpp
/host/spi-builder-workspace/Sources/makeOptions/makeOptions.cpp:42:2: warning: "Unable to include 'swift/Option/Options.inc', `makeOptions` will not be usable" [-W#warnings]
42 | #warning "Unable to include 'swift/Option/Options.inc', `makeOptions` will not be usable"
| ^
1 warning generated.
[10/141] Compiling makeOptions makeOptions.cpp
[11/141] Write Objects.LinkFileList
[12/141] Compiling llvmSupport Unicode.cpp
[13/141] Compiling llvmSupport Twine.cpp
error: link command failed with exit code 1 (use -v to see invocation)
wasm-ld: error: /root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/swift.xctoolchain/usr/lib/swift_static/wasi/wasm32/swiftrt.o: undefined symbol: swift_addNewDSOImage
wasm-ld: error: /host/spi-builder-workspace/.build/wasm32-unknown-wasi/debug/makeOptions.build/makeOptions.cpp.o: undefined symbol: __cxa_allocate_exception
wasm-ld: error: /host/spi-builder-workspace/.build/wasm32-unknown-wasi/debug/makeOptions.build/makeOptions.cpp.o: undefined symbol: __cxa_throw
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[14/141] Linking makeOptions.wasm
[14/141] Compiling llvmSupport YAMLParser.cpp
[14/141] Compiling llvmSupport raw_ostream.cpp
[14/141] Compiling llvmSupport StringSaver.cpp
[14/141] Compiling llvmSupport StringRef.cpp
[14/141] Compiling llvmSupport TargetParser.cpp
[14/141] Compiling llvmSupport Threading.cpp
[14/141] Compiling llvmSupport Triple.cpp
BUILD FAILURE 6.2 wasm