The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Cachyr 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/nrkno/yr-cachyr.git
Reference: master
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/nrkno/yr-cachyr
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 74e48d4 Updated readme with SPM info
Cloned https://github.com/nrkno/yr-cachyr.git
Revision (git rev-parse @):
74e48d428a9b399e3fa4745f0634983d4f66a4c8
SUCCESS checkout https://github.com/nrkno/yr-cachyr.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/nrkno/yr-cachyr.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/9] Compiling Cachyr DataConvertable.swift
/host/spi-builder-workspace/Sources/DataConvertable.swift:55:29: warning: initialization of 'UnsafeBufferPointer<Self>' results in a dangling buffer pointer
        return Data(buffer: UnsafeBufferPointer(start: &theValue, count: 1))
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DataConvertable.swift:55:56: note: implicit argument conversion from 'Self' to 'UnsafePointer<Self>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
        return Data(buffer: UnsafeBufferPointer(start: &theValue, count: 1))
                                                       ^~~~~~~~~
/host/spi-builder-workspace/Sources/DataConvertable.swift:55:56: note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
        return Data(buffer: UnsafeBufferPointer(start: &theValue, count: 1))
                                                       ^
[4/9] Emitting module Cachyr
[5/9] Compiling Cachyr CacheLog.swift
[6/9] Compiling Cachyr DataCache.swift
[7/9] Compiling Cachyr MemoryCache.swift
[8/9] Compiling Cachyr FileManager+xattr.swift
/host/spi-builder-workspace/Sources/FileManager+xattr.swift:38:14: error: cannot find 'ENOATTR' in scope
        case ENOATTR:
             ^~~~~~~
/host/spi-builder-workspace/Sources/FileManager+xattr.swift:93:20: error: cannot find 'getxattr' in scope
        var size = getxattr(url.path, name, nil, 0, 0, 0)
                   ^~~~~~~~
/host/spi-builder-workspace/Sources/FileManager+xattr.swift:93:45: error: 'nil' requires a contextual type
        var size = getxattr(url.path, name, nil, 0, 0, 0)
                                            ^
/host/spi-builder-workspace/Sources/FileManager+xattr.swift:104:16: error: cannot find 'getxattr' in scope
        size = getxattr(url.path, name, ptr, size, 0, 0)
               ^~~~~~~~
/host/spi-builder-workspace/Sources/FileManager+xattr.swift:114:26: error: cannot find 'setxattr' in scope
            let result = setxattr(url.path, name, ptr, data.count, 0, 0)
                         ^~~~~~~~
/host/spi-builder-workspace/Sources/FileManager+xattr.swift:122:22: error: cannot find 'removexattr' in scope
        let result = removexattr(url.path, name, 0)
                     ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/FileManager+xattr.swift:125:25: error: cannot find 'ENOATTR' in scope
            if errno != ENOATTR {
                        ^~~~~~~
[9/9] Compiling Cachyr DiskCache.swift
/host/spi-builder-workspace/Sources/DiskCache.swift:406:30: error: cannot find 'ENOATTR' in scope
            if error.code != ENOATTR {
                             ^~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/4] Emitting module Cachyr
[3/4] Compiling Cachyr FileManager+xattr.swift
/host/spi-builder-workspace/Sources/FileManager+xattr.swift:38:14: error: cannot find 'ENOATTR' in scope
        case ENOATTR:
             ^~~~~~~
/host/spi-builder-workspace/Sources/FileManager+xattr.swift:93:20: error: cannot find 'getxattr' in scope
        var size = getxattr(url.path, name, nil, 0, 0, 0)
                   ^~~~~~~~
/host/spi-builder-workspace/Sources/FileManager+xattr.swift:93:45: error: 'nil' requires a contextual type
        var size = getxattr(url.path, name, nil, 0, 0, 0)
                                            ^
/host/spi-builder-workspace/Sources/FileManager+xattr.swift:104:16: error: cannot find 'getxattr' in scope
        size = getxattr(url.path, name, ptr, size, 0, 0)
               ^~~~~~~~
/host/spi-builder-workspace/Sources/FileManager+xattr.swift:114:26: error: cannot find 'setxattr' in scope
            let result = setxattr(url.path, name, ptr, data.count, 0, 0)
                         ^~~~~~~~
/host/spi-builder-workspace/Sources/FileManager+xattr.swift:122:22: error: cannot find 'removexattr' in scope
        let result = removexattr(url.path, name, 0)
                     ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/FileManager+xattr.swift:125:25: error: cannot find 'ENOATTR' in scope
            if errno != ENOATTR {
                        ^~~~~~~
[4/4] Compiling Cachyr DiskCache.swift
/host/spi-builder-workspace/Sources/DiskCache.swift:406:30: error: cannot find 'ENOATTR' in scope
            if error.code != ENOATTR {
                             ^~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 2