The Swift Package Index logo.Swift Package Index

Build Information

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

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886769-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.3-latest swift build --swift-sdk swift-6.3.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.3
Building package at path:  $PWD
https://github.com/niktishakov/why-foundation.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-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.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:eea66feda95ad8894091082dbcb77ec1fc917891d37888fd1938b0b68455d992
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/swiftlang/swift-syntax
[1/19306] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (0.85s)
[1/81083] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (3.47s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 602.0.0 (4.43s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.14s)
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 602.0.0
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
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/602.0.0/swift-6.3.2-RELEASE-ubuntu_noble_x86_64-MacroSupport.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/602.0.0/swift-6.3.2-RELEASE-ubuntu_noble_x86_64-MacroSupport.tar.gz (0.16s)
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/40] Write sources
[19/40] Compiling _SwiftSyntaxCShims PlatformMutex.c
[20/40] Write swift-version-24593BA9C3E375BF.txt
[22/52] Compiling SwiftSyntax601 Empty.swift
[23/52] Emitting module SwiftSyntax601
[25/53] Emitting module SwiftSyntax602
[26/53] Compiling SwiftSyntax602 Empty.swift
[26/54] Wrapping AST for SwiftSyntax601 for debugging
[28/54] Wrapping AST for SwiftSyntax602 for debugging
[30/54] Compiling SwiftSyntax600 Empty.swift
[31/54] Emitting module SwiftSyntax600
[32/55] Wrapping AST for SwiftSyntax600 for debugging
[34/55] Emitting module SwiftSyntax510
[35/55] Compiling SwiftSyntax510 Empty.swift
[36/56] Wrapping AST for SwiftSyntax510 for debugging
[38/56] Emitting module ArgumentParserToolInfo
[39/56] Compiling ArgumentParserToolInfo ToolInfo.swift
[40/57] Wrapping AST for ArgumentParserToolInfo for debugging
[42/104] Emitting module SwiftSyntax509
[43/104] Compiling SwiftSyntax509 Empty.swift
[44/105] Wrapping AST for SwiftSyntax509 for debugging
[46/168] Compiling SwiftSyntax AbsolutePosition.swift
[47/168] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[48/168] Compiling SwiftSyntax ArenaAllocatedBuffer.swift
[49/168] Compiling SwiftSyntax Assert.swift
[50/168] Compiling SwiftSyntax BumpPtrAllocator.swift
[51/168] Compiling SwiftSyntax CommonAncestor.swift
[52/168] Compiling SwiftSyntax Convenience.swift
[53/168] Compiling SwiftSyntax CustomTraits.swift
[54/168] Compiling SwiftSyntax EditorPlaceholder.swift
[55/176] Emitting module ArgumentParser
[56/182] Compiling SwiftSyntax SyntaxNodeStructure.swift
[57/182] Compiling SwiftSyntax SyntaxProtocol.swift
[58/182] Compiling SwiftSyntax SyntaxText.swift
[59/182] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[60/182] Compiling SwiftSyntax TokenDiagnostic.swift
[61/182] Compiling SwiftSyntax TokenSequence.swift
[62/182] Compiling SwiftSyntax TokenSyntax.swift
[63/182] Compiling SwiftSyntax Trivia.swift
[64/182] Compiling SwiftSyntax Utils.swift
[67/182] Compiling SwiftSyntax SourceLength.swift
[68/182] Compiling SwiftSyntax SourceLocation.swift
[69/182] Compiling SwiftSyntax SourcePresence.swift
[70/182] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[71/182] Compiling SwiftSyntax Syntax.swift
[72/182] Compiling SwiftSyntax SyntaxBaseNodes.swift
[73/182] Compiling SwiftSyntax SyntaxCollections.swift
[74/182] Compiling SwiftSyntax SyntaxEnum.swift
[75/182] Compiling SwiftSyntax SyntaxKind.swift
[76/182] Compiling SwiftSyntax SyntaxRewriter.swift
[77/182] Compiling SwiftSyntax SyntaxTraits.swift
[78/182] Compiling SwiftSyntax SyntaxChildren.swift
[79/182] Compiling SwiftSyntax SyntaxCollection.swift
[80/182] Compiling SwiftSyntax SyntaxHashable.swift
[81/182] Compiling SwiftSyntax SyntaxIdentifier.swift
[82/182] Compiling SwiftSyntax RawSyntaxNodesEF.swift
[83/182] Compiling SwiftSyntax RawSyntaxNodesGHI.swift
[93/182] Compiling ArgumentParser AsyncCompletionsValidator.swift
[94/182] Compiling ArgumentParser CodingKeyValidator.swift
[95/182] Compiling ArgumentParser NonsenseFlagsValidator.swift
[96/182] Compiling ArgumentParser ParsableArgumentsValidation.swift
[97/182] Compiling ArgumentParser PositionalArgumentsValidator.swift
[98/182] Compiling ArgumentParser UniqueNamesValidator.swift
[99/182] Compiling SwiftSyntax MemoryLayout.swift
[100/182] Compiling SwiftSyntax MissingNodeInitializers.swift
[101/182] Compiling SwiftSyntax RawSyntax.swift
[102/182] Compiling SwiftSyntax RawSyntaxArena.swift
[103/182] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[104/182] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[112/182] Compiling SwiftSyntax RawSyntaxNodesJKLMN.swift
[113/182] Compiling SwiftSyntax RawSyntaxNodesOP.swift
[114/182] Compiling SwiftSyntax RawSyntaxNodesQRS.swift
[115/182] Compiling SwiftSyntax RawSyntaxNodesTUVWXYZ.swift
[116/182] Compiling SwiftSyntax RawSyntaxValidation.swift
[117/182] Compiling SwiftSyntax SyntaxNodesAB.swift
[118/182] Compiling SwiftSyntax Identifier.swift
[119/182] Compiling SwiftSyntax RawSyntaxTokenView.swift
[120/182] Compiling SwiftSyntax SourceEdit.swift
[121/182] Compiling SwiftSyntax ChildNameForKeyPath.swift
[122/182] Compiling SwiftSyntax Keyword.swift
[123/182] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[124/182] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[125/182] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[126/183] Wrapping AST for ArgumentParser for debugging
[128/183] Emitting module SwiftSyntax
[137/183] Compiling SwiftSyntax SyntaxNodesC.swift
[138/183] Compiling SwiftSyntax SyntaxNodesD.swift
[139/183] Compiling SwiftSyntax SyntaxNodesEF.swift
[140/183] Compiling SwiftSyntax SyntaxNodesGHI.swift
[141/183] Compiling SwiftSyntax SyntaxNodesJKLMN.swift
[142/183] Compiling SwiftSyntax SyntaxNodesOP.swift
[143/183] Compiling SwiftSyntax SyntaxNodesQRS.swift
[144/183] Compiling SwiftSyntax SyntaxNodesTUVWXYZ.swift
[162/183] Compiling SwiftSyntax RawSyntaxNodesD.swift
[172/190] Wrapping AST for SwiftSyntax for debugging
[174/243] Compiling SwiftDiagnostics Message.swift
[175/244] Compiling SwiftBasicFormat Syntax+Extensions.swift
[176/244] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[177/244] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[178/244] Compiling SwiftDiagnostics Note.swift
[179/244] Compiling SwiftParser Attributes.swift
[180/244] Compiling SwiftParser Availability.swift
[181/244] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[182/244] Compiling SwiftDiagnostics DiagnosticDecorator.swift
[183/244] Compiling SwiftDiagnostics FixIt.swift
[184/244] Emitting module SwiftDiagnostics
[185/244] Compiling SwiftParser CharacterInfo.swift
[186/244] Compiling SwiftParser CollectionNodes+Parsable.swift
[187/244] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[188/244] Compiling SwiftBasicFormat InferIndentation.swift
[189/245] Compiling SwiftBasicFormat Indenter.swift
[190/245] Wrapping AST for SwiftDiagnostics for debugging
[192/245] Compiling SwiftBasicFormat BasicFormat.swift
[193/245] Emitting module SwiftBasicFormat
[194/246] Wrapping AST for SwiftBasicFormat for debugging
[196/246] Compiling SwiftParser LoopProgressCondition.swift
[197/246] Compiling SwiftParser Modifiers.swift
[198/246] Compiling SwiftParser Names.swift
[199/246] Compiling SwiftParser Nominals.swift
[200/246] Compiling SwiftParser Parameters.swift
[201/246] Compiling SwiftParser ParseSourceFile.swift
[202/251] Emitting module SwiftParser
[203/251] Compiling SwiftParser TokenSpec.swift
[204/251] Compiling SwiftParser TokenSpecSet.swift
[205/251] Compiling SwiftParser TopLevel.swift
[206/251] Compiling SwiftParser TriviaParser.swift
[207/251] Compiling SwiftParser Types.swift
[208/251] Compiling SwiftParser StringLiterals.swift
[209/251] Compiling SwiftParser SwiftParserCompatibility.swift
[210/251] Compiling SwiftParser SwiftVersion.swift
[211/251] Compiling SwiftParser SyntaxUtils.swift
[212/251] Compiling SwiftParser TokenConsumer.swift
[213/251] Compiling SwiftParser TokenPrecedence.swift
[214/251] Compiling SwiftParser Lexeme.swift
[215/251] Compiling SwiftParser LexemeSequence.swift
[216/251] Compiling SwiftParser Lexer.swift
[217/251] Compiling SwiftParser RegexLiteralLexer.swift
[218/251] Compiling SwiftParser UnicodeScalarExtensions.swift
[219/251] Compiling SwiftParser Lookahead.swift
[220/251] Compiling SwiftParser Parser.swift
[221/251] Compiling SwiftParser Patterns.swift
[222/251] Compiling SwiftParser Recovery.swift
[223/251] Compiling SwiftParser Specifiers.swift
[224/251] Compiling SwiftParser Statements.swift
[225/251] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[226/251] Compiling SwiftParser Directives.swift
[227/251] Compiling SwiftParser ExpressionInterpretedAsVersionTuple.swift
[228/251] Compiling SwiftParser Expressions.swift
[229/251] Compiling SwiftParser IncrementalParseTransition.swift
[230/251] Compiling SwiftParser IsValidIdentifier.swift
[231/251] Compiling SwiftParser Cursor.swift
[236/251] Compiling SwiftParser CompilerFiles.swift
[237/251] Compiling SwiftParser Declarations.swift
[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 SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[246/276] Compiling SwiftOperators PrecedenceGraph.swift
[247/276] Compiling SwiftOperators PrecedenceGroup.swift
[248/277] Compiling SwiftOperators OperatorTable+Semantics.swift
[249/277] Compiling SwiftOperators OperatorTable.swift
[250/277] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[251/277] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[252/277] Compiling SwiftParserDiagnostics Utils.swift
[253/277] Compiling SwiftOperators SyntaxSynthesis.swift
[254/277] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[255/277] Compiling SwiftOperators OperatorError.swift
[256/277] Compiling SwiftOperators OperatorTable+Defaults.swift
[257/277] Compiling SwiftOperators OperatorTable+Folding.swift
[258/277] Compiling SwiftOperators Operator.swift
[259/277] Compiling SwiftOperators OperatorError+Diagnostics.swift
[260/277] Emitting module SwiftOperators
[261/278] Wrapping AST for SwiftOperators for debugging
[263/278] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[264/278] Compiling SwiftParserDiagnostics PresenceUtils.swift
[269/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 ResultBuilderExtensions.swift
[275/294] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[276/295] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[277/295] Compiling SwiftSyntaxBuilder Indenter.swift
[278/295] Compiling SwiftSyntaxBuilder ListBuilder.swift
[279/295] Emitting module SwiftSyntaxBuilder
[280/295] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[281/295] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[282/295] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[283/295] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[284/295] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[285/295] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[286/295] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[287/295] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[288/295] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[289/295] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.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] Compiling SwiftIfConfig ActiveClauseEvaluator.swift
[299/311] Compiling SwiftIfConfig ActiveSyntaxRewriter.swift
[300/311] Emitting module SwiftIfConfig
[301/311] Compiling SwiftIfConfig ConfiguredRegions.swift
[302/311] Compiling SwiftIfConfig IfConfigDecl+IfConfig.swift
[303/311] Compiling SwiftIfConfig ActiveSyntaxVisitor.swift
[304/311] Compiling SwiftIfConfig BuildConfiguration.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] Compiling WhyFoundationCore MemberAPI.swift
[314/325] Compiling WhyFoundationCore OneLineFix.swift
[315/325] Compiling WhyFoundationCore PackageGraph.swift
[316/325] Compiling WhyFoundationCore SourceLocator.swift
[317/325] Emitting module WhyFoundationCore
[318/325] Compiling WhyFoundationCore ExitStatus.swift
[319/325] Compiling WhyFoundationCore ImportScanner.swift
[320/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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.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)
[321/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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.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.3.2-RELEASE_wasm.artifactbundle/swift-6.3.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)
BUILD FAILURE 6.3 wasm