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-1":/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: master
Cloned https://github.com/amosavian/ExtendedAttributes.git into spi-builder-workspace
SUCCESS checkout https://github.com/amosavian/ExtendedAttributes.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-1":/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
[2/2] Compiling ExtendedAttributes ExtendedAttributes.swift
/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:20:13: error: cannot find 'getxattr' in scope
            getxattr(fileSystemPath, name, nil, 0, 0, 0) > 0
            ^~~~~~~~
/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:20:44: error: 'nil' requires a contextual type
            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:37:30: error: cannot find 'getxattr' in scope
                let result = getxattr(fileSystemPath, name, &data, 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:61:13: error: cannot find 'setxattr' in scope
            setxattr(fileSystemPath, name, &data, data.count, 0, 0)
            ^~~~~~~~
/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:83:13: error: cannot find 'removexattr' in scope
            removexattr(fileSystemPath, name, 0)
            ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:92:26: error: cannot find 'listxattr' in scope
            let length = listxattr(fileSystemPath, nil, 0, 0)
                         ^~~~~~~~~
/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:99:26: error: cannot find 'listxattr' in scope
            let result = listxattr(fileSystemPath, &buffer, length, 0)
                         ^~~~~~~~~
/host/spi-builder-workspace/Sources/ExtendedAttributes/ExtendedAttributes.swift:92: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:92:52: error: 'nil' requires a contextual type
            let length = listxattr(fileSystemPath, nil, 0, 0)
                                                   ^
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 1