Build Information
Failed to build SKQueue 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/daniel-pedersen/SKQueue.git
Reference: master
Cloned https://github.com/daniel-pedersen/SKQueue.git into spi-builder-workspace
SUCCESS checkout https://github.com/daniel-pedersen/SKQueue.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...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/2] Emitting module SKQueue
/host/spi-builder-workspace/SKQueue.swift:26:21: warning: static property 'None' produces an empty option set
public static let None = SKQueueNotification(rawValue: 0)
^
/host/spi-builder-workspace/SKQueue.swift:26:21: note: use [] to silence this warning
public static let None = SKQueueNotification(rawValue: 0)
^ ~~~~~~~~~~~~~
([])
/host/spi-builder-workspace/SKQueue.swift:27:77: error: cannot find 'NOTE_RENAME' in scope
public static let Rename = SKQueueNotification(rawValue: UInt32(NOTE_RENAME))
^~~~~~~~~~~
/host/spi-builder-workspace/SKQueue.swift:28:77: error: cannot find 'NOTE_WRITE' in scope
public static let Write = SKQueueNotification(rawValue: UInt32(NOTE_WRITE))
^~~~~~~~~~
/host/spi-builder-workspace/SKQueue.swift:29:77: error: cannot find 'NOTE_DELETE' in scope
public static let Delete = SKQueueNotification(rawValue: UInt32(NOTE_DELETE))
^~~~~~~~~~~
/host/spi-builder-workspace/SKQueue.swift:30:77: error: cannot find 'NOTE_ATTRIB' in scope
public static let AttributeChange = SKQueueNotification(rawValue: UInt32(NOTE_ATTRIB))
^~~~~~~~~~~
/host/spi-builder-workspace/SKQueue.swift:31:77: error: cannot find 'NOTE_EXTEND' in scope
public static let SizeIncrease = SKQueueNotification(rawValue: UInt32(NOTE_EXTEND))
^~~~~~~~~~~
/host/spi-builder-workspace/SKQueue.swift:32:77: error: cannot find 'NOTE_LINK' in scope
public static let LinkCountChange = SKQueueNotification(rawValue: UInt32(NOTE_LINK))
^~~~~~~~~
/host/spi-builder-workspace/SKQueue.swift:33:77: error: cannot find 'NOTE_REVOKE' in scope
public static let AccessRevocation = SKQueueNotification(rawValue: UInt32(NOTE_REVOKE))
^~~~~~~~~~~
/host/spi-builder-workspace/SKQueue.swift:34:77: error: cannot find 'NOTE_FUNLOCK' in scope
public static let Unlock = SKQueueNotification(rawValue: UInt32(NOTE_FUNLOCK))
^~~~~~~~~~~~
/host/spi-builder-workspace/SKQueue.swift:35:77: error: cannot find 'NOTE_NONE' in scope
public static let DataAvailable = SKQueueNotification(rawValue: UInt32(NOTE_NONE))
^~~~~~~~~
[2/2] Compiling SKQueue SKQueue.swift
/host/spi-builder-workspace/SKQueue.swift:26:21: warning: static property 'None' produces an empty option set
public static let None = SKQueueNotification(rawValue: 0)
^
/host/spi-builder-workspace/SKQueue.swift:26:21: note: use [] to silence this warning
public static let None = SKQueueNotification(rawValue: 0)
^ ~~~~~~~~~~~~~
([])
/host/spi-builder-workspace/SKQueue.swift:27:77: error: cannot find 'NOTE_RENAME' in scope
public static let Rename = SKQueueNotification(rawValue: UInt32(NOTE_RENAME))
^~~~~~~~~~~
/host/spi-builder-workspace/SKQueue.swift:28:77: error: cannot find 'NOTE_WRITE' in scope
public static let Write = SKQueueNotification(rawValue: UInt32(NOTE_WRITE))
^~~~~~~~~~
/host/spi-builder-workspace/SKQueue.swift:29:77: error: cannot find 'NOTE_DELETE' in scope
public static let Delete = SKQueueNotification(rawValue: UInt32(NOTE_DELETE))
^~~~~~~~~~~
/host/spi-builder-workspace/SKQueue.swift:30:77: error: cannot find 'NOTE_ATTRIB' in scope
public static let AttributeChange = SKQueueNotification(rawValue: UInt32(NOTE_ATTRIB))
^~~~~~~~~~~
/host/spi-builder-workspace/SKQueue.swift:31:77: error: cannot find 'NOTE_EXTEND' in scope
public static let SizeIncrease = SKQueueNotification(rawValue: UInt32(NOTE_EXTEND))
^~~~~~~~~~~
/host/spi-builder-workspace/SKQueue.swift:32:77: error: cannot find 'NOTE_LINK' in scope
public static let LinkCountChange = SKQueueNotification(rawValue: UInt32(NOTE_LINK))
^~~~~~~~~
/host/spi-builder-workspace/SKQueue.swift:33:77: error: cannot find 'NOTE_REVOKE' in scope
public static let AccessRevocation = SKQueueNotification(rawValue: UInt32(NOTE_REVOKE))
^~~~~~~~~~~
/host/spi-builder-workspace/SKQueue.swift:34:77: error: cannot find 'NOTE_FUNLOCK' in scope
public static let Unlock = SKQueueNotification(rawValue: UInt32(NOTE_FUNLOCK))
^~~~~~~~~~~~
/host/spi-builder-workspace/SKQueue.swift:35:77: error: cannot find 'NOTE_NONE' in scope
public static let DataAvailable = SKQueueNotification(rawValue: UInt32(NOTE_NONE))
^~~~~~~~~
/host/spi-builder-workspace/SKQueue.swift:60:16: error: cannot find 'kqueue' in scope
kqueueId = kqueue()
^~~~~~
/host/spi-builder-workspace/SKQueue.swift:76:91: error: cannot find 'O_EVTONLY' in scope
fileDescriptor = open(FileManager.default.fileSystemRepresentation(withPath: path), O_EVTONLY)
^~~~~~~~~
/host/spi-builder-workspace/SKQueue.swift:81:16: error: cannot find 'kevent' in scope
var edit = kevent(
^~~~~~
/host/spi-builder-workspace/SKQueue.swift:83:21: error: cannot find 'EVFILT_VNODE' in scope
filter: Int16(EVFILT_VNODE),
^~~~~~~~~~~~
/host/spi-builder-workspace/SKQueue.swift:84:21: error: cannot find 'EV_ADD' in scope
flags: UInt16(EV_ADD | EV_CLEAR),
^~~~~~
/host/spi-builder-workspace/SKQueue.swift:84:30: error: cannot find 'EV_CLEAR' in scope
flags: UInt16(EV_ADD | EV_CLEAR),
^~~~~~~~
/host/spi-builder-workspace/SKQueue.swift:87:14: error: 'nil' requires a contextual type
udata: nil
^
/host/spi-builder-workspace/SKQueue.swift:89:5: error: cannot find 'kevent' in scope
kevent(kqueueId, &edit, 1, nil, 0, nil)
^~~~~~
/host/spi-builder-workspace/SKQueue.swift:89:32: error: 'nil' requires a contextual type
kevent(kqueueId, &edit, 1, nil, 0, nil)
^
/host/spi-builder-workspace/SKQueue.swift:89:40: error: 'nil' requires a contextual type
kevent(kqueueId, &edit, 1, nil, 0, nil)
^
/host/spi-builder-workspace/SKQueue.swift:98:17: error: cannot find 'kevent' in scope
var event = kevent()
^~~~~~
/host/spi-builder-workspace/SKQueue.swift:101:10: error: cannot find 'kevent' in scope
if kevent(kqueueId, nil, 0, &event, 1, &timeout) > 0 && event.filter == EVFILT_VNODE && event.fflags > 0 {
^~~~~~
/host/spi-builder-workspace/SKQueue.swift:101:79: error: cannot find 'EVFILT_VNODE' in scope
if kevent(kqueueId, nil, 0, &event, 1, &timeout) > 0 && event.filter == EVFILT_VNODE && event.fflags > 0 {
^~~~~~~~~~~~
/host/spi-builder-workspace/SKQueue.swift:101:27: error: 'nil' requires a contextual type
if kevent(kqueueId, nil, 0, &event, 1, &timeout) > 0 && event.filter == EVFILT_VNODE && event.fflags > 0 {
^
error: fatalError
BUILD FAILURE 5.9 linux
Build Machine: Linux 1