The Swift Package Index logo.Swift Package Index

Build Information

Failed to build why-foundation, reference 0.2.1 (02f991), with Swift 6.2 for Wasm on 25 Oct 2026 12:48:54 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/niktishakov/why-foundation.git
Reference: 0.2.1
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/niktishakov/why-foundation
 * tag               0.2.1      -> FETCH_HEAD
HEAD is now at 02f9917 Report privacy-manifest-only targets separately and skip targets outside library products
Cloned https://github.com/niktishakov/why-foundation.git
Revision (git rev-parse @):
02f99173b555fb4593974da4ae583d6506585ec9
SUCCESS checkout https://github.com/niktishakov/why-foundation.git at 0.2.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/niktishakov/why-foundation.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:c2cc4df169d3c45015ced899e997f329be5fc90bdbfce388bd8981e1ea44d639
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/swiftlang/swift-syntax
[1/19306] Fetching swift-argument-parser
[19307/100389] Fetching swift-argument-parser, swift-syntax
Fetched https://github.com/apple/swift-argument-parser from cache (3.41s)
Fetched https://github.com/swiftlang/swift-syntax from cache (3.42s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 602.0.0 (4.40s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.15s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.8.2
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 602.0.0
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/602.0.0/swift-6.2-RELEASE-MacroSupport-ubuntu_noble_x86_64.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/602.0.0/swift-6.2-RELEASE-MacroSupport-ubuntu_noble_x86_64.tar.gz (0.18s)
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/40] Write sources
[19/40] Compiling _SwiftSyntaxCShims PlatformMutex.c
[19/40] Write swift-version-24593BA9C3E375BF.txt
[22/52] Emitting module SwiftSyntax602
[23/52] Emitting module ArgumentParserToolInfo
[24/52] Emitting module SwiftSyntax600
[25/52] Compiling SwiftSyntax600 Empty.swift
[26/53] Wrapping AST for SwiftSyntax600 for debugging
[28/53] Emitting module SwiftSyntax601
[29/53] Compiling SwiftSyntax601 Empty.swift
[30/54] Wrapping AST for SwiftSyntax601 for debugging
[32/54] Emitting module SwiftSyntax510
[33/54] Compiling SwiftSyntax510 Empty.swift
[34/55] Wrapping AST for SwiftSyntax510 for debugging
[36/55] Emitting module SwiftSyntax509
[37/55] Compiling SwiftSyntax509 Empty.swift
[38/56] Wrapping AST for SwiftSyntax509 for debugging
[40/56] Compiling ArgumentParserToolInfo ToolInfo.swift
[42/57] Compiling SwiftSyntax602 Empty.swift
[43/58] Wrapping AST for ArgumentParserToolInfo for debugging
[44/83] Wrapping AST for SwiftSyntax602 for debugging
[46/168] Emitting module ArgumentParser
[47/174] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[48/174] Compiling SwiftSyntax TokenDiagnostic.swift
[49/174] Compiling SwiftSyntax TokenSequence.swift
[50/174] Compiling SwiftSyntax TokenSyntax.swift
[51/174] Compiling SwiftSyntax Trivia.swift
[52/174] Compiling SwiftSyntax Utils.swift
[53/174] Compiling SwiftSyntax SyntaxRewriter.swift
[54/174] Compiling SwiftSyntax Identifier.swift
[55/174] Compiling SwiftSyntax MemoryLayout.swift
[56/174] Compiling SwiftSyntax MissingNodeInitializers.swift
[57/174] Compiling SwiftSyntax RawSyntax.swift
[58/174] Compiling SwiftSyntax RawSyntaxArena.swift
[59/174] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[60/174] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[61/174] Compiling SwiftSyntax RawSyntaxTokenView.swift
[62/174] Compiling SwiftSyntax SourceEdit.swift
[63/174] Compiling SwiftSyntax AbsolutePosition.swift
[64/174] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[65/174] Compiling SwiftSyntax ArenaAllocatedBuffer.swift
[66/174] Compiling SwiftSyntax Assert.swift
[67/174] Compiling SwiftSyntax BumpPtrAllocator.swift
[68/174] Compiling SwiftSyntax CommonAncestor.swift
[69/174] Compiling SwiftSyntax Convenience.swift
[70/174] Compiling SwiftSyntax CustomTraits.swift
[71/174] Compiling SwiftSyntax EditorPlaceholder.swift
[72/182] Compiling SwiftSyntax SourceLength.swift
[73/182] Compiling SwiftSyntax SourceLocation.swift
[74/182] Compiling SwiftSyntax SourcePresence.swift
[75/182] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[76/182] Compiling SwiftSyntax Syntax.swift
[77/182] Compiling SwiftSyntax SyntaxChildren.swift
[78/182] Compiling ArgumentParser AsyncCompletionsValidator.swift
[79/182] Compiling ArgumentParser CodingKeyValidator.swift
[80/182] Compiling ArgumentParser NonsenseFlagsValidator.swift
[81/182] Compiling ArgumentParser ParsableArgumentsValidation.swift
[82/182] Compiling ArgumentParser PositionalArgumentsValidator.swift
[83/182] Compiling ArgumentParser UniqueNamesValidator.swift
[98/182] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[99/182] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[100/182] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[101/182] Compiling SwiftSyntax SyntaxBaseNodes.swift
[102/182] Compiling SwiftSyntax SyntaxCollections.swift
[103/182] Compiling SwiftSyntax SyntaxEnum.swift
[104/182] Compiling SwiftSyntax SyntaxKind.swift
[105/182] Compiling SwiftSyntax SyntaxCollection.swift
[106/182] Compiling SwiftSyntax SyntaxHashable.swift
[107/182] Compiling SwiftSyntax SyntaxIdentifier.swift
[108/182] Compiling SwiftSyntax SyntaxNodeStructure.swift
[109/182] Compiling SwiftSyntax SyntaxProtocol.swift
[110/182] Compiling SwiftSyntax SyntaxText.swift
[115/182] Compiling SwiftSyntax ChildNameForKeyPath.swift
[116/182] Compiling SwiftSyntax Keyword.swift
[117/183] Wrapping AST for ArgumentParser for debugging
[119/183] Emitting module SwiftSyntax
[120/183] Compiling SwiftSyntax RawSyntaxNodesEF.swift
[121/183] Compiling SwiftSyntax RawSyntaxNodesGHI.swift
[122/183] Compiling SwiftSyntax RawSyntaxNodesJKLMN.swift
[123/183] Compiling SwiftSyntax RawSyntaxNodesOP.swift
[124/183] Compiling SwiftSyntax RawSyntaxNodesQRS.swift
[125/183] Compiling SwiftSyntax RawSyntaxNodesTUVWXYZ.swift
[126/183] Compiling SwiftSyntax RawSyntaxValidation.swift
[127/183] Compiling SwiftSyntax SyntaxNodesAB.swift
[144/183] Compiling SwiftSyntax RawSyntaxNodesC.swift
[145/183] Compiling SwiftSyntax RawSyntaxNodesD.swift
[164/183] Compiling SwiftSyntax SyntaxNodesC.swift
[165/183] Compiling SwiftSyntax SyntaxNodesD.swift
[166/183] Compiling SwiftSyntax SyntaxNodesEF.swift
[167/183] Compiling SwiftSyntax SyntaxNodesGHI.swift
[168/183] Compiling SwiftSyntax SyntaxNodesJKLMN.swift
[169/183] Compiling SwiftSyntax SyntaxNodesOP.swift
[170/183] Compiling SwiftSyntax SyntaxNodesQRS.swift
[171/183] Compiling SwiftSyntax SyntaxNodesTUVWXYZ.swift
[172/201] Wrapping AST for SwiftSyntax for debugging
[174/243] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[175/243] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[176/243] Compiling SwiftBasicFormat Syntax+Extensions.swift
[177/243] Compiling SwiftDiagnostics Message.swift
[178/244] Emitting module SwiftDiagnostics
[179/244] Compiling SwiftDiagnostics Note.swift
[180/244] Compiling SwiftBasicFormat Indenter.swift
[181/244] Compiling SwiftBasicFormat InferIndentation.swift
[182/244] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[183/244] Compiling SwiftDiagnostics FixIt.swift
[184/244] Compiling SwiftParser CharacterInfo.swift
[185/244] Compiling SwiftParser CollectionNodes+Parsable.swift
[186/244] Compiling SwiftDiagnostics DiagnosticDecorator.swift
[187/244] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[188/244] Compiling SwiftParser Attributes.swift
[189/244] Compiling SwiftParser Availability.swift
[190/245] Wrapping AST for SwiftDiagnostics for debugging
[192/245] Emitting module SwiftBasicFormat
[193/245] Compiling SwiftBasicFormat BasicFormat.swift
[194/246] Wrapping AST for SwiftBasicFormat for debugging
[196/246] Compiling SwiftParser TokenSpec.swift
[197/246] Compiling SwiftParser TokenSpecSet.swift
[198/246] Compiling SwiftParser TopLevel.swift
[199/246] Compiling SwiftParser TriviaParser.swift
[200/246] Compiling SwiftParser Types.swift
[201/246] Compiling SwiftParser StringLiterals.swift
[202/246] Compiling SwiftParser SwiftParserCompatibility.swift
[203/246] Compiling SwiftParser SwiftVersion.swift
[204/246] Compiling SwiftParser SyntaxUtils.swift
[205/246] Compiling SwiftParser TokenConsumer.swift
[206/246] Compiling SwiftParser TokenPrecedence.swift
[207/251] Compiling SwiftParser Lexeme.swift
[208/251] Compiling SwiftParser LexemeSequence.swift
[209/251] Compiling SwiftParser Lexer.swift
[210/251] Compiling SwiftParser RegexLiteralLexer.swift
[211/251] Compiling SwiftParser UnicodeScalarExtensions.swift
[212/251] Compiling SwiftParser Lookahead.swift
[213/251] Compiling SwiftParser Parser.swift
[214/251] Compiling SwiftParser Patterns.swift
[215/251] Compiling SwiftParser Recovery.swift
[216/251] Compiling SwiftParser Specifiers.swift
[217/251] Compiling SwiftParser Statements.swift
[218/251] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[219/251] Compiling SwiftParser LoopProgressCondition.swift
[220/251] Compiling SwiftParser Modifiers.swift
[221/251] Compiling SwiftParser Names.swift
[222/251] Compiling SwiftParser Nominals.swift
[223/251] Compiling SwiftParser Parameters.swift
[224/251] Compiling SwiftParser ParseSourceFile.swift
[229/251] Compiling SwiftParser CompilerFiles.swift
[230/251] Compiling SwiftParser Declarations.swift
[231/251] Compiling SwiftParser Directives.swift
[232/251] Compiling SwiftParser ExpressionInterpretedAsVersionTuple.swift
[233/251] Compiling SwiftParser Expressions.swift
[234/251] Compiling SwiftParser IncrementalParseTransition.swift
[235/251] Compiling SwiftParser IsValidIdentifier.swift
[236/251] Compiling SwiftParser Cursor.swift
[237/251] Emitting module SwiftParser
[238/251] Compiling SwiftParser ExperimentalFeatures.swift
[239/251] Compiling SwiftParser IsLexerClassified.swift
[240/251] Compiling SwiftParser LayoutNodes+Parsable.swift
[241/251] Compiling SwiftParser Parser+TokenSpecSet.swift
[242/251] Compiling SwiftParser TokenSpecStaticMembers.swift
[243/252] Wrapping AST for SwiftParser for debugging
[245/275] Compiling SwiftOperators PrecedenceGroup.swift
[246/276] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[247/277] Compiling SwiftOperators PrecedenceGraph.swift
[248/277] Compiling SwiftOperators OperatorTable.swift
[249/277] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[250/277] Compiling SwiftOperators SyntaxSynthesis.swift
[251/277] Compiling SwiftOperators OperatorError.swift
[252/277] Compiling SwiftOperators OperatorTable+Defaults.swift
[253/277] Compiling SwiftOperators OperatorTable+Semantics.swift
[254/277] Compiling SwiftOperators OperatorTable+Folding.swift
[255/277] Emitting module SwiftOperators
[256/277] Compiling SwiftOperators Operator.swift
[257/277] Compiling SwiftOperators OperatorError+Diagnostics.swift
[260/278] Wrapping AST for SwiftOperators for debugging
[262/278] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[263/278] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[264/278] Compiling SwiftParserDiagnostics PresenceUtils.swift
[265/278] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[266/278] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[267/278] Emitting module SwiftParserDiagnostics
[270/278] Compiling SwiftParserDiagnostics MissingNodesError.swift
[271/278] Compiling SwiftParserDiagnostics MissingTokenError.swift
[272/279] Wrapping AST for SwiftParserDiagnostics for debugging
[274/294] Compiling SwiftSyntaxBuilder Indenter.swift
[275/294] Compiling SwiftSyntaxBuilder ListBuilder.swift
[276/295] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[277/295] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[278/295] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[279/295] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[280/295] Emitting module SwiftSyntaxBuilder
[281/295] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[282/295] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[283/295] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[284/295] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[285/295] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[286/295] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[287/295] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[288/295] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[289/295] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[290/296] Wrapping AST for SwiftSyntaxBuilder for debugging
[292/310] Compiling SwiftIfConfig SyntaxLiteralUtils.swift
[293/310] Compiling SwiftIfConfig SyntaxProtocol+IfConfig.swift
[294/311] Compiling SwiftIfConfig IfConfigFunctions.swift
[295/311] Compiling SwiftIfConfig IfConfigRegionState.swift
[296/311] Compiling SwiftIfConfig VersionTuple+Parsing.swift
[297/311] Compiling SwiftIfConfig VersionTuple.swift
[298/311] Emitting module SwiftIfConfig
[299/311] Compiling SwiftIfConfig ActiveSyntaxVisitor.swift
[300/311] Compiling SwiftIfConfig BuildConfiguration.swift
[301/311] Compiling SwiftIfConfig ActiveClauseEvaluator.swift
[302/311] Compiling SwiftIfConfig ActiveSyntaxRewriter.swift
[303/311] Compiling SwiftIfConfig ConfiguredRegions.swift
[304/311] Compiling SwiftIfConfig IfConfigDecl+IfConfig.swift
[305/311] Compiling SwiftIfConfig IfConfigDiagnostic.swift
[306/311] Compiling SwiftIfConfig IfConfigEvaluation.swift
[307/312] Wrapping AST for SwiftIfConfig for debugging
[309/324] Compiling WhyFoundationCore TargetPlatform.swift
[310/325] Compiling WhyFoundationCore SwiftVersion.swift
[311/325] Compiling WhyFoundationCore TextReport.swift
[312/325] Compiling WhyFoundationCore XcodeProjectImporter.swift
/host/spi-builder-workspace/Sources/WhyFoundationCore/XcodeProjectImporter.swift:98:23: error: cannot find 'Process' in scope
 96 |     static func loadObjects(_ projectURL: URL) throws -> [String: [String: Any]] {
 97 |         let pbxproj = projectURL.appendingPathComponent("project.pbxproj")
 98 |         let process = Process()
    |                       `- error: cannot find 'Process' in scope
 99 |         process.executableURL = URL(fileURLWithPath: "/usr/bin/plutil")
100 |         process.arguments = ["-convert", "json", "-o", "-", pbxproj.path]
[313/325] Emitting module WhyFoundationCore
[314/325] Compiling WhyFoundationCore Analyzer.swift
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:47:23: error: cannot find 'posix_spawn_file_actions_t' in scope
45 |         var actions: posix_spawn_file_actions_t? = nil
46 |         #else
47 |         var actions = posix_spawn_file_actions_t()
   |                       `- error: cannot find 'posix_spawn_file_actions_t' in scope
48 |         #endif
49 |         posix_spawn_file_actions_init(&actions)
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:49:9: error: cannot find 'posix_spawn_file_actions_init' in scope
47 |         var actions = posix_spawn_file_actions_t()
48 |         #endif
49 |         posix_spawn_file_actions_init(&actions)
   |         `- error: cannot find 'posix_spawn_file_actions_init' in scope
50 |         defer { posix_spawn_file_actions_destroy(&actions) }
51 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:50:17: error: cannot find 'posix_spawn_file_actions_destroy' in scope
48 |         #endif
49 |         posix_spawn_file_actions_init(&actions)
50 |         defer { posix_spawn_file_actions_destroy(&actions) }
   |                 `- error: cannot find 'posix_spawn_file_actions_destroy' in scope
51 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
52 |         posix_spawn_file_actions_addopen(&actions, 1, outputURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:51:9: error: cannot find 'posix_spawn_file_actions_addopen' in scope
49 |         posix_spawn_file_actions_init(&actions)
50 |         defer { posix_spawn_file_actions_destroy(&actions) }
51 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
   |         `- error: cannot find 'posix_spawn_file_actions_addopen' in scope
52 |         posix_spawn_file_actions_addopen(&actions, 1, outputURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
53 |         posix_spawn_file_actions_addopen(&actions, 2, errorURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:52:9: error: cannot find 'posix_spawn_file_actions_addopen' in scope
50 |         defer { posix_spawn_file_actions_destroy(&actions) }
51 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
52 |         posix_spawn_file_actions_addopen(&actions, 1, outputURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
   |         `- error: cannot find 'posix_spawn_file_actions_addopen' in scope
53 |         posix_spawn_file_actions_addopen(&actions, 2, errorURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
54 |
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:52:82: error: cannot find 'O_CREAT' in scope
50 |         defer { posix_spawn_file_actions_destroy(&actions) }
51 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
52 |         posix_spawn_file_actions_addopen(&actions, 1, outputURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
   |                                                                                  `- error: cannot find 'O_CREAT' in scope
53 |         posix_spawn_file_actions_addopen(&actions, 2, errorURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
54 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
   |         `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:52:92: error: cannot find 'O_TRUNC' in scope
50 |         defer { posix_spawn_file_actions_destroy(&actions) }
51 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
52 |         posix_spawn_file_actions_addopen(&actions, 1, outputURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
   |                                                                                            `- error: cannot find 'O_TRUNC' in scope
53 |         posix_spawn_file_actions_addopen(&actions, 2, errorURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
54 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:16:9: note: macro 'O_TRUNC' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
   |         `- note: macro 'O_TRUNC' unavailable: structure not supported
17 |
18 | #define O_NOFOLLOW (0x01000000)
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:53:9: error: cannot find 'posix_spawn_file_actions_addopen' in scope
51 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
52 |         posix_spawn_file_actions_addopen(&actions, 1, outputURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
53 |         posix_spawn_file_actions_addopen(&actions, 2, errorURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
   |         `- error: cannot find 'posix_spawn_file_actions_addopen' in scope
54 |
55 |         let argv: [UnsafeMutablePointer<CChar>?] = (["/usr/bin/env"] + arguments).map { strdup($0) } + [nil]
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:53:81: error: cannot find 'O_CREAT' in scope
51 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
52 |         posix_spawn_file_actions_addopen(&actions, 1, outputURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
53 |         posix_spawn_file_actions_addopen(&actions, 2, errorURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
   |                                                                                 `- error: cannot find 'O_CREAT' in scope
54 |
55 |         let argv: [UnsafeMutablePointer<CChar>?] = (["/usr/bin/env"] + arguments).map { strdup($0) } + [nil]
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
   |         `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:53:91: error: cannot find 'O_TRUNC' in scope
51 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
52 |         posix_spawn_file_actions_addopen(&actions, 1, outputURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
53 |         posix_spawn_file_actions_addopen(&actions, 2, errorURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
   |                                                                                           `- error: cannot find 'O_TRUNC' in scope
54 |
55 |         let argv: [UnsafeMutablePointer<CChar>?] = (["/usr/bin/env"] + arguments).map { strdup($0) } + [nil]
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:16:9: note: macro 'O_TRUNC' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
   |         `- note: macro 'O_TRUNC' unavailable: structure not supported
17 |
18 | #define O_NOFOLLOW (0x01000000)
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:64:27: error: cannot find 'posix_spawn' in scope
62 |
63 |         var pid = pid_t()
64 |         let spawnResult = posix_spawn(&pid, "/usr/bin/env", &actions, nil, argv, envp)
   |                           `- error: cannot find 'posix_spawn' in scope
65 |         guard spawnResult == 0 else {
66 |             throw Error.spawnFailed(arguments.joined(separator: " "), spawnResult)
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:64:71: error: 'nil' requires a contextual type
62 |
63 |         var pid = pid_t()
64 |         let spawnResult = posix_spawn(&pid, "/usr/bin/env", &actions, nil, argv, envp)
   |                                                                       `- error: 'nil' requires a contextual type
65 |         guard spawnResult == 0 else {
66 |             throw Error.spawnFailed(arguments.joined(separator: " "), spawnResult)
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:70:15: error: cannot find 'waitpid' in scope
68 |
69 |         var status: Int32 = 0
70 |         while waitpid(pid, &status, 0) == -1 && errno == EINTR {}
   |               `- error: cannot find 'waitpid' in scope
71 |         // WIFEXITED / WEXITSTATUS, which aren't available as functions in Swift.
72 |         let exitCode: Int32 = (status & 0x7f) == 0 ? (status >> 8) & 0xff : 128 + (status & 0x7f)
[315/325] Compiling WhyFoundationCore Command.swift
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:47:23: error: cannot find 'posix_spawn_file_actions_t' in scope
45 |         var actions: posix_spawn_file_actions_t? = nil
46 |         #else
47 |         var actions = posix_spawn_file_actions_t()
   |                       `- error: cannot find 'posix_spawn_file_actions_t' in scope
48 |         #endif
49 |         posix_spawn_file_actions_init(&actions)
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:49:9: error: cannot find 'posix_spawn_file_actions_init' in scope
47 |         var actions = posix_spawn_file_actions_t()
48 |         #endif
49 |         posix_spawn_file_actions_init(&actions)
   |         `- error: cannot find 'posix_spawn_file_actions_init' in scope
50 |         defer { posix_spawn_file_actions_destroy(&actions) }
51 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:50:17: error: cannot find 'posix_spawn_file_actions_destroy' in scope
48 |         #endif
49 |         posix_spawn_file_actions_init(&actions)
50 |         defer { posix_spawn_file_actions_destroy(&actions) }
   |                 `- error: cannot find 'posix_spawn_file_actions_destroy' in scope
51 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
52 |         posix_spawn_file_actions_addopen(&actions, 1, outputURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:51:9: error: cannot find 'posix_spawn_file_actions_addopen' in scope
49 |         posix_spawn_file_actions_init(&actions)
50 |         defer { posix_spawn_file_actions_destroy(&actions) }
51 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
   |         `- error: cannot find 'posix_spawn_file_actions_addopen' in scope
52 |         posix_spawn_file_actions_addopen(&actions, 1, outputURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
53 |         posix_spawn_file_actions_addopen(&actions, 2, errorURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:52:9: error: cannot find 'posix_spawn_file_actions_addopen' in scope
50 |         defer { posix_spawn_file_actions_destroy(&actions) }
51 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
52 |         posix_spawn_file_actions_addopen(&actions, 1, outputURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
   |         `- error: cannot find 'posix_spawn_file_actions_addopen' in scope
53 |         posix_spawn_file_actions_addopen(&actions, 2, errorURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
54 |
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:52:82: error: cannot find 'O_CREAT' in scope
50 |         defer { posix_spawn_file_actions_destroy(&actions) }
51 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
52 |         posix_spawn_file_actions_addopen(&actions, 1, outputURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
   |                                                                                  `- error: cannot find 'O_CREAT' in scope
53 |         posix_spawn_file_actions_addopen(&actions, 2, errorURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
54 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
   |         `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:52:92: error: cannot find 'O_TRUNC' in scope
50 |         defer { posix_spawn_file_actions_destroy(&actions) }
51 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
52 |         posix_spawn_file_actions_addopen(&actions, 1, outputURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
   |                                                                                            `- error: cannot find 'O_TRUNC' in scope
53 |         posix_spawn_file_actions_addopen(&actions, 2, errorURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
54 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:16:9: note: macro 'O_TRUNC' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
   |         `- note: macro 'O_TRUNC' unavailable: structure not supported
17 |
18 | #define O_NOFOLLOW (0x01000000)
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:53:9: error: cannot find 'posix_spawn_file_actions_addopen' in scope
51 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
52 |         posix_spawn_file_actions_addopen(&actions, 1, outputURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
53 |         posix_spawn_file_actions_addopen(&actions, 2, errorURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
   |         `- error: cannot find 'posix_spawn_file_actions_addopen' in scope
54 |
55 |         let argv: [UnsafeMutablePointer<CChar>?] = (["/usr/bin/env"] + arguments).map { strdup($0) } + [nil]
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:53:81: error: cannot find 'O_CREAT' in scope
51 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
52 |         posix_spawn_file_actions_addopen(&actions, 1, outputURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
53 |         posix_spawn_file_actions_addopen(&actions, 2, errorURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
   |                                                                                 `- error: cannot find 'O_CREAT' in scope
54 |
55 |         let argv: [UnsafeMutablePointer<CChar>?] = (["/usr/bin/env"] + arguments).map { strdup($0) } + [nil]
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
   |         `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:53:91: error: cannot find 'O_TRUNC' in scope
51 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
52 |         posix_spawn_file_actions_addopen(&actions, 1, outputURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
53 |         posix_spawn_file_actions_addopen(&actions, 2, errorURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
   |                                                                                           `- error: cannot find 'O_TRUNC' in scope
54 |
55 |         let argv: [UnsafeMutablePointer<CChar>?] = (["/usr/bin/env"] + arguments).map { strdup($0) } + [nil]
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:16:9: note: macro 'O_TRUNC' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
   |         `- note: macro 'O_TRUNC' unavailable: structure not supported
17 |
18 | #define O_NOFOLLOW (0x01000000)
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:64:27: error: cannot find 'posix_spawn' in scope
62 |
63 |         var pid = pid_t()
64 |         let spawnResult = posix_spawn(&pid, "/usr/bin/env", &actions, nil, argv, envp)
   |                           `- error: cannot find 'posix_spawn' in scope
65 |         guard spawnResult == 0 else {
66 |             throw Error.spawnFailed(arguments.joined(separator: " "), spawnResult)
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:64:71: error: 'nil' requires a contextual type
62 |
63 |         var pid = pid_t()
64 |         let spawnResult = posix_spawn(&pid, "/usr/bin/env", &actions, nil, argv, envp)
   |                                                                       `- error: 'nil' requires a contextual type
65 |         guard spawnResult == 0 else {
66 |             throw Error.spawnFailed(arguments.joined(separator: " "), spawnResult)
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:70:15: error: cannot find 'waitpid' in scope
68 |
69 |         var status: Int32 = 0
70 |         while waitpid(pid, &status, 0) == -1 && errno == EINTR {}
   |               `- error: cannot find 'waitpid' in scope
71 |         // WIFEXITED / WEXITSTATUS, which aren't available as functions in Swift.
72 |         let exitCode: Int32 = (status & 0x7f) == 0 ? (status >> 8) & 0xff : 128 + (status & 0x7f)
[316/325] Compiling WhyFoundationCore PackageGraph.swift
[317/325] Compiling WhyFoundationCore SourceLocator.swift
[318/325] Compiling WhyFoundationCore MemberAPI.swift
[319/325] Compiling WhyFoundationCore OneLineFix.swift
[320/325] Compiling WhyFoundationCore ExitStatus.swift
[321/325] Compiling WhyFoundationCore ImportScanner.swift
BUILD FAILURE 6.2 wasm