Build Information
Failed to build HTMLSpecialCharacters with Swift 5.7 for Linux.
Build Command
docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.7-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.22.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sonsongithub/HTMLSpecialCharacters.git
Reference: 1.4.0
Cloned https://github.com/sonsongithub/HTMLSpecialCharacters.git into spi-builder-workspace
SUCCESS checkout https://github.com/sonsongithub/HTMLSpecialCharacters.git at 1.4.0
========================================
Build
========================================
Selected platform: linux
Swift version: 5.7
Building package at path: spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.7-latest swift build 2>&1
Building for debugging...
[1/2] Emitting module HTMLSpecialCharacters
[2/2] Compiling HTMLSpecialCharacters HTMLSpecialCharacters.swift
/host/spi-builder-workspace/Sources/HTMLSpecialCharacters/HTMLSpecialCharacters.swift:542:97: error: cannot find type 'UniChar' in scope
guard let entry = table.first(where: {memcmp($0.unescapingCodes, unichars, MemoryLayout<UniChar>.size * length) == 0})
^~~~~~~
/host/spi-builder-workspace/Sources/HTMLSpecialCharacters/HTMLSpecialCharacters.swift:536:29: error: type of expression is ambiguous without more context
return try utf16Storage.withUnsafeBufferPointer {
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTMLSpecialCharacters/HTMLSpecialCharacters.swift:568:53: error: missing argument for parameter 'range' in call
NSString(string: self).getCharacters(&buffer)
^
, range: <#NSRange#>
Foundation.NSString:2:17: note: 'getCharacters(_:range:)' declared here
public func getCharacters(_ buffer: UnsafeMutablePointer<unichar>, range: NSRange)
^
/host/spi-builder-workspace/Sources/HTMLSpecialCharacters/HTMLSpecialCharacters.swift:604:52: error: missing argument for parameter 'range' in call
NSString(string: self).getCharacters(buffer)
^
, range: <#NSRange#>
Foundation.NSString:2:17: note: 'getCharacters(_:range:)' declared here
public func getCharacters(_ buffer: UnsafeMutablePointer<unichar>, range: NSRange)
^
/host/spi-builder-workspace/Sources/HTMLSpecialCharacters/HTMLSpecialCharacters.swift:648:53: error: missing argument for parameter 'range' in call
NSString(string: self).getCharacters(&buffer)
^
, range: <#NSRange#>
Foundation.NSString:2:17: note: 'getCharacters(_:range:)' declared here
public func getCharacters(_ buffer: UnsafeMutablePointer<unichar>, range: NSRange)
^
BUILD FAILURE 5.7 linux
Build Machine: Linux 2