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 ExtendedAttributes with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/amosavian/ExtendedAttributes.git
Reference: 1.0.0
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/amosavian/ExtendedAttributes
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 075e545 Added readme badges for pods
Cloned https://github.com/amosavian/ExtendedAttributes.git
Revision (git rev-parse @):
075e545e2f128482fa377c825bfa0e4f0e266419
SUCCESS checkout https://github.com/amosavian/ExtendedAttributes.git at 1.0.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/amosavian/ExtendedAttributes.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/4] Emitting module ExtendedAttributes
/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:14:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func hasExtendedAttribute(forName name: String) -> Bool {
    ^~~~~~~

/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:25:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func extendedAttribute(forName name: String) throws -> Data {
    ^~~~~~~

/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:49:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func extendedAttributeValue<T>(forName name: String) throws -> T {
    ^~~~~~~

/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:60:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func setExtendedAttribute(data: Data, forName name: String) throws {
    ^~~~~~~

/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:71:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func setExtendedAttribute<T>(value: T, forName name: String) throws {
    ^~~~~~~

/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:84:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func removeExtendedAttribute(forName name: String) throws {
    ^~~~~~~

/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:93:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func listExtendedAttributes() throws -> [String] {
    ^~~~~~~

[4/4] Compiling ExtendedAttributes ExtendedAttributes.swift
/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:14:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func hasExtendedAttribute(forName name: String) -> Bool {
    ^~~~~~~

/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:25:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func extendedAttribute(forName name: String) throws -> Data {
    ^~~~~~~

/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:49:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func extendedAttributeValue<T>(forName name: String) throws -> T {
    ^~~~~~~

/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:60:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func setExtendedAttribute(data: Data, forName name: String) throws {
    ^~~~~~~

/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:71:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func setExtendedAttribute<T>(value: T, forName name: String) throws {
    ^~~~~~~

/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:84:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func removeExtendedAttribute(forName name: String) throws {
    ^~~~~~~

/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:93:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func listExtendedAttributes() throws -> [String] {
    ^~~~~~~

/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:20:20: error: cannot find 'getxattr' in scope
            return getxattr(fileSystemPath, name, nil, 0, 0, 0) > 0
                   ^~~~~~~~
/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:20:51: error: 'nil' requires a contextual type
            return getxattr(fileSystemPath, name, nil, 0, 0, 0) > 0
                                                  ^
/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:29:26: error: cannot find 'getxattr' in scope
            let length = getxattr(fileSystemPath, name, nil, 0, 0, 0)
                         ^~~~~~~~
/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:38:21: error: cannot find 'getxattr' in scope
                    getxattr(fileSystemPath, name, $0, length, 0, 0)
                    ^~~~~~~~
/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:29:57: error: 'nil' requires a contextual type
            let length = getxattr(fileSystemPath, name, nil, 0, 0, 0)
                                                        ^
/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:64:17: error: cannot find 'setxattr' in scope
                setxattr(fileSystemPath, name, $0, data.count, 0, 0)
                ^~~~~~~~
/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:87:26: error: cannot find 'removexattr' in scope
            let result = removexattr(fileSystemPath, name, 0)
                         ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:96:26: error: cannot find 'listxattr' in scope
            let length = listxattr(fileSystemPath, nil, 0, 0)
                         ^~~~~~~~~
/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:104:17: error: cannot find 'listxattr' in scope
                listxattr(fileSystemPath, $0, length, 0)
                ^~~~~~~~~
/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:96:52: error: 'nil' requires a contextual type
            let length = listxattr(fileSystemPath, nil, 0, 0)
                                                   ^
/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:29:57: error: 'nil' requires a contextual type
            let length = getxattr(fileSystemPath, name, nil, 0, 0, 0)
                                                        ^
/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:96:52: error: 'nil' requires a contextual type
            let length = listxattr(fileSystemPath, nil, 0, 0)
                                                   ^
/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:110:30: error: no exact matches in call to initializer
                String(data: Data($0), encoding: .utf8)
                             ^
Foundation.Data:20:23: note: incorrect labels for candidate (have: '(_:)', expected: '(capacity:)')
    @inlinable public init(capacity: Int)
                      ^
Foundation.Data:21:23: note: incorrect labels for candidate (have: '(_:)', expected: '(count:)')
    @inlinable public init(count: Int)
                      ^
Foundation.Data:27:12: note: incorrect labels for candidate (have: '(_:)', expected: '(referencing:)')
    public init(referencing reference: __shared NSData)
           ^
Foundation.Data:33:12: note: incorrect labels for candidate (have: '(_:)', expected: '(bytes:)')
    public init(bytes: [UInt8])
           ^
Foundation.Data:35:12: note: incorrect labels for candidate (have: '(_:)', expected: '(bytes:)')
    public init(bytes: ArraySlice<UInt8>)
           ^
Foundation.Data:2:12: note: incorrect labels for candidate (have: '(_:)', expected: '(from:)')
    public init(from decoder: any Decoder) throws
           ^
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/3] Emitting module ExtendedAttributes
/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:14:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func hasExtendedAttribute(forName name: String) -> Bool {
    ^~~~~~~

/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:25:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func extendedAttribute(forName name: String) throws -> Data {
    ^~~~~~~

/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:49:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func extendedAttributeValue<T>(forName name: String) throws -> T {
    ^~~~~~~

/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:60:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func setExtendedAttribute(data: Data, forName name: String) throws {
    ^~~~~~~

/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:71:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func setExtendedAttribute<T>(value: T, forName name: String) throws {
    ^~~~~~~

/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:84:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func removeExtendedAttribute(forName name: String) throws {
    ^~~~~~~

/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:93:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func listExtendedAttributes() throws -> [String] {
    ^~~~~~~

[3/3] Compiling ExtendedAttributes ExtendedAttributes.swift
/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:14:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func hasExtendedAttribute(forName name: String) -> Bool {
    ^~~~~~~

/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:25:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func extendedAttribute(forName name: String) throws -> Data {
    ^~~~~~~

/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:49:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func extendedAttributeValue<T>(forName name: String) throws -> T {
    ^~~~~~~

/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:60:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func setExtendedAttribute(data: Data, forName name: String) throws {
    ^~~~~~~

/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:71:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func setExtendedAttribute<T>(value: T, forName name: String) throws {
    ^~~~~~~

/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:84:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func removeExtendedAttribute(forName name: String) throws {
    ^~~~~~~

/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:93:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func listExtendedAttributes() throws -> [String] {
    ^~~~~~~

/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:20:20: error: cannot find 'getxattr' in scope
            return getxattr(fileSystemPath, name, nil, 0, 0, 0) > 0
                   ^~~~~~~~
/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:20:51: error: 'nil' requires a contextual type
            return getxattr(fileSystemPath, name, nil, 0, 0, 0) > 0
                                                  ^
/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:29:26: error: cannot find 'getxattr' in scope
            let length = getxattr(fileSystemPath, name, nil, 0, 0, 0)
                         ^~~~~~~~
/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:38:21: error: cannot find 'getxattr' in scope
                    getxattr(fileSystemPath, name, $0, length, 0, 0)
                    ^~~~~~~~
/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:29:57: error: 'nil' requires a contextual type
            let length = getxattr(fileSystemPath, name, nil, 0, 0, 0)
                                                        ^
/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:64:17: error: cannot find 'setxattr' in scope
                setxattr(fileSystemPath, name, $0, data.count, 0, 0)
                ^~~~~~~~
/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:87:26: error: cannot find 'removexattr' in scope
            let result = removexattr(fileSystemPath, name, 0)
                         ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:96:26: error: cannot find 'listxattr' in scope
            let length = listxattr(fileSystemPath, nil, 0, 0)
                         ^~~~~~~~~
/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:104:17: error: cannot find 'listxattr' in scope
                listxattr(fileSystemPath, $0, length, 0)
                ^~~~~~~~~
/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:96:52: error: 'nil' requires a contextual type
            let length = listxattr(fileSystemPath, nil, 0, 0)
                                                   ^
/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:29:57: error: 'nil' requires a contextual type
            let length = getxattr(fileSystemPath, name, nil, 0, 0, 0)
                                                        ^
/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:96:52: error: 'nil' requires a contextual type
            let length = listxattr(fileSystemPath, nil, 0, 0)
                                                   ^
/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:110:30: error: no exact matches in call to initializer
                String(data: Data($0), encoding: .utf8)
                             ^
Foundation.Data:20:23: note: incorrect labels for candidate (have: '(_:)', expected: '(capacity:)')
    @inlinable public init(capacity: Int)
                      ^
Foundation.Data:21:23: note: incorrect labels for candidate (have: '(_:)', expected: '(count:)')
    @inlinable public init(count: Int)
                      ^
Foundation.Data:27:12: note: incorrect labels for candidate (have: '(_:)', expected: '(referencing:)')
    public init(referencing reference: __shared NSData)
           ^
Foundation.Data:33:12: note: incorrect labels for candidate (have: '(_:)', expected: '(bytes:)')
    public init(bytes: [UInt8])
           ^
Foundation.Data:35:12: note: incorrect labels for candidate (have: '(_:)', expected: '(bytes:)')
    public init(bytes: ArraySlice<UInt8>)
           ^
Foundation.Data:2:12: note: incorrect labels for candidate (have: '(_:)', expected: '(from:)')
    public init(from decoder: any Decoder) throws
           ^
error: fatalError
BUILD FAILURE 5.10 linux