The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ExtendedAttributes with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4606859-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/amosavian/ExtendedAttributes.git
Reference: 1.0.0
Cloned https://github.com/amosavian/ExtendedAttributes.git into spi-builder-workspace
SUCCESS checkout https://github.com/amosavian/ExtendedAttributes.git at 1.0.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
[1/2] 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] {
    ^~~~~~~
    
[2/2] 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: Decoder) throws
           ^
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 1