The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build swift-export, reference main (e4e893), with Swift 6.0 for Linux on 17 Sep 2024 07:09:40 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/franklefebvre/swift-export.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/franklefebvre/swift-export
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at e4e8938 Fix download link
Cloned https://github.com/franklefebvre/swift-export.git
Revision (git rev-parse @):
e4e89380b885ae47b96e09744a2b6dd99de33cf0
SUCCESS checkout https://github.com/franklefebvre/swift-export.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/franklefebvre/swift-export.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:9d7dab235f2b0b46edadd73b1fb0c3b5323df02053420324a4a2f8ca89cb54a5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/jpsim/Yams.git
[1/9796] Fetching yams
[5095/21976] Fetching yams, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (1.22s)
Fetched https://github.com/jpsim/Yams.git from cache (1.25s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 5.1.3 (3.92s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.0 (0.50s)
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 5.1.3
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.0
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/18] Write sources
[5/18] Compiling writer.c
[6/18] Compiling reader.c
[7/18] Compiling parser.c
[8/18] Write swift-version-24593BA9C3E375BF.txt
[9/18] Compiling api.c
[10/18] Compiling emitter.c
[11/20] Compiling scanner.c
[13/35] Emitting module ArgumentParserToolInfo
[14/35] Compiling ArgumentParserToolInfo ToolInfo.swift
[15/36] Wrapping AST for ArgumentParserToolInfo for debugging
[17/74] Compiling ArgumentParser ArgumentVisibility.swift
[18/74] Compiling ArgumentParser CompletionKind.swift
[19/75] Compiling ArgumentParser OptionGroup.swift
[20/75] Compiling ArgumentParser AsyncParsableCommand.swift
[21/75] Compiling Yams YamlError.swift
[22/75] Compiling ArgumentParser EnumerableFlag.swift
[23/75] Compiling ArgumentParser ExpressibleByArgument.swift
[24/75] Compiling ArgumentParser ParsableArguments.swift
[25/75] Compiling ArgumentParser ParsableArgumentsValidation.swift
[26/75] Compiling ArgumentParser NameSpecification.swift
[27/75] Compiling ArgumentParser Option.swift
[28/75] Compiling ArgumentParser Errors.swift
[29/75] Compiling ArgumentParser Flag.swift
[30/75] Emitting module Yams
[31/75] Compiling ArgumentParser CommandConfiguration.swift
[32/75] Compiling ArgumentParser CommandGroup.swift
[33/76] Wrapping AST for Yams for debugging
[35/76] Emitting module ArgumentParser
[36/81] Compiling ArgumentParser Name.swift
[37/81] Compiling ArgumentParser Parsed.swift
[38/81] Compiling ArgumentParser ParsedValues.swift
[39/81] Compiling ArgumentParser ParserError.swift
[40/81] Compiling ArgumentParser SplitArguments.swift
[47/81] Compiling ArgumentParser DumpHelpGenerator.swift
[48/81] Compiling ArgumentParser HelpCommand.swift
[49/81] Compiling ArgumentParser HelpGenerator.swift
[50/81] Compiling ArgumentParser MessageInfo.swift
[51/81] Compiling ArgumentParser UsageGenerator.swift
[52/81] Compiling ArgumentParser ArgumentDefinition.swift
[53/81] Compiling ArgumentParser ArgumentSet.swift
[54/81] Compiling ArgumentParser CommandParser.swift
[55/81] Compiling ArgumentParser InputKey.swift
[56/81] Compiling ArgumentParser InputOrigin.swift
[62/81] Compiling ArgumentParser BashCompletionsGenerator.swift
[63/81] Compiling ArgumentParser CompletionsGenerator.swift
[64/81] Compiling ArgumentParser FishCompletionsGenerator.swift
[65/81] Compiling ArgumentParser ZshCompletionsGenerator.swift
[66/81] Compiling ArgumentParser Argument.swift
[67/81] Compiling ArgumentParser ArgumentHelp.swift
[71/81] Compiling ArgumentParser ParsableCommand.swift
[72/81] Compiling ArgumentParser ArgumentDecoder.swift
[73/81] Compiling ArgumentParser CollectionExtensions.swift
[74/81] Compiling ArgumentParser Platform.swift
[75/81] Compiling ArgumentParser SequenceExtensions.swift
[76/81] Compiling ArgumentParser StringExtensions.swift
[77/81] Compiling ArgumentParser Tree.swift
[78/82] Wrapping AST for ArgumentParser for debugging
[80/90] Compiling swift_export URL+filePath.swift
[81/90] Compiling swift_export Logger.swift
[82/90] Compiling swift_export String+terminal.swift
[83/90] Compiling swift_export CommandRunner.swift
[84/90] Compiling swift_export ExportError.swift
[85/90] Compiling swift_export Config.swift
[86/90] Emitting module swift_export
/host/spi-builder-workspace/Sources/SwiftExport.swift:6:16: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  4 | @main
  5 | struct SwiftExport: AsyncParsableCommand {
  6 |     static var configuration = CommandConfiguration(
    |                |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'configuration' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  7 |         commandName: "swift export",
  8 |         abstract: "A utility to create macOS installer packages for command-line tools."
[87/90] Compiling swift_export SwiftExport.swift
/host/spi-builder-workspace/Sources/SwiftExport.swift:6:16: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  4 | @main
  5 | struct SwiftExport: AsyncParsableCommand {
  6 |     static var configuration = CommandConfiguration(
    |                |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'configuration' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  7 |         commandName: "swift export",
  8 |         abstract: "A utility to create macOS installer packages for command-line tools."
/host/spi-builder-workspace/Sources/SwiftExport.swift:179:26: warning: sending value of non-Sendable type '() -> String' with later accesses from nonisolated context to actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
177 |
178 |         if !dryRun {
179 |             await logger.info("Creating output directory: \(config.outputDirectory.filePath)")
    |                          `- warning: sending value of non-Sendable type '() -> String' with later accesses from nonisolated context to actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
180 |             try FileManager.default.createDirectory(at: config.outputDirectory, withIntermediateDirectories: true)
181 |         }
    :
185 |         await logger.info("Creating signed installer package at \(pkgFile.filePath)")
186 |         let pkgIdentifier = config.exportConfig.package.identifier ?? codesignIdentifier
187 |         try await shell(.pkgbuild, "--identifier", pkgIdentifier, "--version", config.pkgVersion, "--root", pkgRoot.filePath, "--sign", config.exportConfig.package.certificate, pkgFile.filePath)
    |                        `- note: access can happen concurrently
188 |
189 |         await logger.info("Submitting installer package for notarization")
[88/91] Wrapping AST for swift-export for debugging
[89/91] Write Objects.LinkFileList
[90/91] Linking swift-export
swift-build: /home/build-user/llbuild/lib/Core/SQLiteBuildDB.cpp:703: virtual void (anonymous namespace)::SQLiteBuildDB::buildComplete(): Assertion `result == SQLITE_OK' failed.
*** Signal 6: Backtracing from 0x7f305267b9fc... done ***
*** Program crashed: Aborted at 0x0000000000000001 ***
Thread 0 "swift-build":
0  0x00007f305262780a <unknown> in libc.so.6
Thread 1 crashed:
0  0x00007f305267b9fc <unknown> in libc.so.6
Thread 2:
0  0x00007f305270ae2e <unknown> in libc.so.6
Thread 3:
0  0x00007f3052676117 <unknown> in libc.so.6
Registers:
rax 0x0000000000000000  0
rdx 0x00007f304d151640  40 16 15 4d 30 7f 00 00 f0 6b 76 5c 98 55 00 00  @··M0···ðkv\·U··
rcx 0x00007f305267b9fc  41 89 c5 41 f7 dd 3d 00 f0 ff ff b8 00 00 00 00  A·ÅA÷Ý=·ðÿÿ¸····
rbx 0x0000000000000006  6
rsi 0x0000000000000001  1
rdi 0x0000000000000007  7
rbp 0x0000000000000007  7
rsp 0x00007f304d14fbf0  3c fc 22 48 30 7f 00 00 10 fb 22 48 30 7f 00 00  <ü"H0····û"H0···
 r8 0x00007f304d14fcc0  20 00 00 00 00 00 00 00 a0 06 80 52 30 7f 00 00   ······· ··R0···
 r9 0x0000000000000000  0
r10 0x0000000000000008  8
r11 0x0000000000000246  582
r12 0x0000000000000006  6
r13 0x0000000000000016  22
r14 0x000055985ac69344  72 65 73 75 6c 74 20 3d 3d 20 53 51 4c 49 54 45  result == SQLITE
r15 0x00007f3048119eb0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ················
rip 0x00007f305267b9fc  41 89 c5 41 f7 dd 3d 00 f0 ff ff b8 00 00 00 00  A·ÅA÷Ý=·ðÿÿ¸····
rflags 0x0000000000000246  ZF PF
cs 0x0033  fs 0x0000  gs 0x0000
Images (70 omitted):
0x00007f30525e5000–0x00007f30527a1341 490fef8403240c91833978d494d39e537409b92e libc.so.6 /usr/lib/x86_64-linux-gnu/libc.so.6
Backtrace took 0.01s
BUILD FAILURE 6.0 linux