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 HTMLParserBuilder, reference main (cd58ad), with Swift 6.0 for Linux on 16 Sep 2024 06:04:15 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/danny1113/html-parser-builder.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/danny1113/html-parser-builder
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at cd58ad3 add swift package index manifest file
Cloned https://github.com/danny1113/html-parser-builder.git
Revision (git rev-parse @):
cd58ad3b89c04f8c154143d20e22d89b4566f366
SUCCESS checkout https://github.com/danny1113/html-parser-builder.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/danny1113/html-parser-builder.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/scinfu/SwiftSoup.git
[1/3176] Fetching swiftsoup
Fetched https://github.com/scinfu/SwiftSoup.git from cache (0.36s)
Computing version for https://github.com/scinfu/SwiftSoup.git
Computed https://github.com/scinfu/SwiftSoup.git at 2.7.2 (2.18s)
Creating working copy for https://github.com/scinfu/SwiftSoup.git
Working copy of https://github.com/scinfu/SwiftSoup.git resolved at 2.7.2
warning: 'swiftsoup': found 4 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Info.plist
    /host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/InfoMac.plist
    /host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/InfoWatchOS.plist
    /host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/InfotvOS.plist
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: compile command failed due to signal 6 (use -v to see invocation)
/host/spi-builder-workspace/Sources/HTMLParserBuilder/HTMLDocodeImpl.swift:147:30: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
145 |         switch node {
146 |         case .concatenation(let array):
147 |             return try await withThrowingTaskGroup(of: (Int, [Any]).self) { (group) -> [Any] in
    |                              `- warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
148 |                 var result = [Any]()
149 |                 var orderTable = [Int: [Any]]()
/host/spi-builder-workspace/Sources/HTMLParserBuilder/HTMLDocodeImpl.swift:147:75: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
145 |         switch node {
146 |         case .concatenation(let array):
147 |             return try await withThrowingTaskGroup(of: (Int, [Any]).self) { (group) -> [Any] in
    |                                                                           `- warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
148 |                 var result = [Any]()
149 |                 var orderTable = [Int: [Any]]()
swift-frontend: /home/build-user/swift/include/swift/SIL/SILType.h:114: swift::SILType::SILType(swift::CanType, swift::SILValueCategory): Assertion `ty->isLegalSILType() && "constructing SILType with type that should have been " "eliminated by SIL lowering"' failed.
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0.	Program arguments: /usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/Sources/HTMLParserBuilder/Capture.swift /host/spi-builder-workspace/Sources/HTMLParserBuilder/CaptureAll.swift /host/spi-builder-workspace/Sources/HTMLParserBuilder/CaptureTransform.swift /host/spi-builder-workspace/Sources/HTMLParserBuilder/DSLTree.swift /host/spi-builder-workspace/Sources/HTMLParserBuilder/HTML.swift /host/spi-builder-workspace/Sources/HTMLParserBuilder/HTMLComponent.swift -primary-file /host/spi-builder-workspace/Sources/HTMLParserBuilder/HTMLComponentBuilder.swift -primary-file /host/spi-builder-workspace/Sources/HTMLParserBuilder/HTMLDocodeImpl.swift /host/spi-builder-workspace/Sources/HTMLParserBuilder/HTMLParseError.swift /host/spi-builder-workspace/Sources/HTMLParserBuilder/HTMLParserBuilder.swift /host/spi-builder-workspace/Sources/HTMLParserBuilder/LateInit.swift /host/spi-builder-workspace/Sources/HTMLParserBuilder/Local.swift /host/spi-builder-workspace/Sources/HTMLParserBuilder/Optional+orThrow.swift /host/spi-builder-workspace/Sources/HTMLParserBuilder/TryCapture.swift /host/spi-builder-workspace/Sources/HTMLParserBuilder/TypeConstruction.swift -emit-dependencies-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/HTMLParserBuilder.build/HTMLComponentBuilder.d -emit-reference-dependencies-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/HTMLParserBuilder.build/HTMLComponentBuilder.swiftdeps -emit-dependencies-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/HTMLParserBuilder.build/HTMLDocodeImpl.d -emit-reference-dependencies-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/HTMLParserBuilder.build/HTMLDocodeImpl.swiftdeps -target x86_64-unknown-linux-gnu -disable-objc-interop -I /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Modules -enable-testing -g -debug-info-format=dwarf -dwarf-version=4 -module-cache-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/ModuleCache -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -stats-output-dir .stats -enable-upcoming-feature ExistentialAny -strict-concurrency=complete -empty-abi-descriptor -resource-dir /usr/lib/swift -enable-anonymous-context-mangled-names -file-compilation-dir /host/spi-builder-workspace -Xcc -fPIC -Xcc -g -Xcc -fno-omit-frame-pointer -module-name HTMLParserBuilder -package-name spi_builder_workspace -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/HTMLParserBuilder.build/HTMLComponentBuilder.swift.o -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/HTMLParserBuilder.build/HTMLDocodeImpl.swift.o -index-store-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/index/store -index-system-modules
1.	Swift version 6.0-dev (LLVM c3efe9282719c35, Swift b163fed2b3101e0)
2.	Compiling with effective version 5.10
3.	While evaluating request ExecuteSILPipelineRequest(Run pipelines { Mandatory Diagnostic Passes + Enabling Optimization Passes } on SIL for HTMLParserBuilder)
4.	While running pass #225 SILFunctionTransform "TransferNonSendable" on SILFunction "@$s17HTMLParserBuilder14HTMLDecodeImplV10parseAsync_7elementSayypGAA7DSLTreeV4NodeO_AA7Element_ptYaKFZAFScgySi_AFts5Error_pGzYaKXEfU_".
 for expression at [/host/spi-builder-workspace/Sources/HTMLParserBuilder/HTMLDocodeImpl.swift:147:75 - line:167:13] RangeText="{ (group) -> [Any] in
                var result = [Any]()
                var orderTable = [Int: [Any]]()
                let count = array.count
                result.reserveCapacity(count)
                orderTable.reserveCapacity(count)

                for (i, node) in array.enumerated() {
                    group.addTask {
                        let result = try await parseAsync(node, element: element)
                        return (i, result)
                    }
                }
                for try await node in group {
                    orderTable[node.0] = node.1
                }
                for key in 0..<count {
                    result += orderTable[key]!
                }
                return result
            "
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  swift-frontend 0x0000557f0a2962b7
1  swift-frontend 0x0000557f0a29400e
2  swift-frontend 0x0000557f0a29692a
3  libc.so.6      0x00007f1a78593520
4  libc.so.6      0x00007f1a785e79fc pthread_kill + 300
5  libc.so.6      0x00007f1a78593476 raise + 22
6  libc.so.6      0x00007f1a785797f3 abort + 211
7  libc.so.6      0x00007f1a7857971b
8  libc.so.6      0x00007f1a7858ae96
9  swift-frontend 0x0000557f0436b12b
10 swift-frontend 0x0000557f04366ca7
11 swift-frontend 0x0000557f03e0d3f8
12 swift-frontend 0x0000557f03e0e6e1
13 swift-frontend 0x0000557f03e118ec
14 swift-frontend 0x0000557f03e0b208
15 swift-frontend 0x0000557f03e0b1bd
16 swift-frontend 0x0000557f03e484ba
17 swift-frontend 0x0000557f03e33fe6
18 swift-frontend 0x0000557f03e0b3fd
19 swift-frontend 0x0000557f03e35a31
20 swift-frontend 0x0000557f037d2767
21 swift-frontend 0x0000557f034a0d53
22 swift-frontend 0x0000557f0349fd7b
23 swift-frontend 0x0000557f034b0905
24 swift-frontend 0x0000557f034a3127
25 swift-frontend 0x0000557f034a1e7a
26 swift-frontend 0x0000557f03257fce
27 libc.so.6      0x00007f1a7857ad90
28 libc.so.6      0x00007f1a7857ae40 __libc_start_main + 128
29 swift-frontend 0x0000557f03257075
BUILD FAILURE 6.0 linux