Skip to content

swift-foundation fails to build for Wasm with 4/1 nightly toolchain #88283

@jmschonfeld

Description

@jmschonfeld

Description

The swift-foundation fails to build for WASM with the 4/1 nightly toolchain, but it built successfully with the 3/16 nightly toolchain

Reproduction

See CI run at https://github.com/swiftlang/swift-foundation/actions/runs/23912627888/job/69738273919?pr=1871

/root/.swiftpm/swift-sdks/swift-DEVELOPMENT-SNAPSHOT-2026-04-01-a_wasm.artifactbundle/swift-DEVELOPMENT-SNAPSHOT-2026-04-01-a_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/signal.h:2:2: error: "wasm lacks signal support; to enable minimal signal emulation, compile with -D_WASI_EMULATED_SIGNAL and link with -lwasi-emulated-signal"
[29/100] _FoundationICU 268 / 892
    2 | #error "wasm lacks signal support; to enable minimal signal emulation, \
      |  ^
1 error generated.

Expected behavior

swift-foundation builds successfully for WASM

Environment

Swift version 6.4-dev (LLVM b8889af02f47cf7, Swift cf7481b)

Additional information

No response

Metadata

Metadata

Assignees

Labels

WebAssemblyPlatform: WebAssemblytriage neededThis issue needs more specific labels

Type

No fields configured for Bug.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions