Build Information
Failed to build Geotum with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.38.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pducks32/Geotum.git
Reference: 1.4.1
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/pducks32/Geotum
* tag 1.4.1 -> FETCH_HEAD
HEAD is now at ecd8e81 Bump minor
Cloned https://github.com/pducks32/Geotum.git
Revision (git rev-parse @):
ecd8e81374fe417ff3d5d56cf7bd120f06242144
SUCCESS checkout https://github.com/pducks32/Geotum.git at 1.4.1
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/pducks32/Geotum.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module Geotum
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:62:27: error: cannot find type 'Measurement' in scope
public let latitude : Measurement<UnitAngle>
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:63:28: error: cannot find type 'Measurement' in scope
public let longitude : Measurement<UnitAngle>
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:65:28: error: cannot find type 'Measurement' in scope
public init(latitude : Measurement<UnitAngle>, longitude : Measurement<UnitAngle>) {
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:65:64: error: cannot find type 'Measurement' in scope
public init(latitude : Measurement<UnitAngle>, longitude : Measurement<UnitAngle>) {
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:75:47: error: cannot find type 'UnitAngle' in scope
mutating public func convert(to newUnit : UnitAngle) {
^~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:79:40: error: cannot find type 'UnitAngle' in scope
public func converted(to newUnit : UnitAngle) -> LatLonCoordinate {
^~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:168:48: error: cannot find type 'Measurement' in scope
public func abs<T : Dimension>(_ measurement : Measurement<T>) -> Measurement<T> {
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:168:67: error: cannot find type 'Measurement' in scope
public func abs<T : Dimension>(_ measurement : Measurement<T>) -> Measurement<T> {
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:168:21: error: cannot find type 'Dimension' in scope
public func abs<T : Dimension>(_ measurement : Measurement<T>) -> Measurement<T> {
^~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:179:54: error: cannot find type 'Measurement' in scope
private func centralMeridian(for zone : UInt) -> Measurement<UnitAngle> {
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:240:45: error: cannot find type 'Measurement' in scope
private func latitudeBand(at latitude : Measurement<UnitAngle>) -> String {
^~~~~~~~~~~
[4/4] Compiling Geotum Geotum.swift
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:62:27: error: cannot find type 'Measurement' in scope
public let latitude : Measurement<UnitAngle>
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:63:28: error: cannot find type 'Measurement' in scope
public let longitude : Measurement<UnitAngle>
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:65:28: error: cannot find type 'Measurement' in scope
public init(latitude : Measurement<UnitAngle>, longitude : Measurement<UnitAngle>) {
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:65:64: error: cannot find type 'Measurement' in scope
public init(latitude : Measurement<UnitAngle>, longitude : Measurement<UnitAngle>) {
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:75:47: error: cannot find type 'UnitAngle' in scope
mutating public func convert(to newUnit : UnitAngle) {
^~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:79:40: error: cannot find type 'UnitAngle' in scope
public func converted(to newUnit : UnitAngle) -> LatLonCoordinate {
^~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:168:48: error: cannot find type 'Measurement' in scope
public func abs<T : Dimension>(_ measurement : Measurement<T>) -> Measurement<T> {
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:168:67: error: cannot find type 'Measurement' in scope
public func abs<T : Dimension>(_ measurement : Measurement<T>) -> Measurement<T> {
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:168:21: error: cannot find type 'Dimension' in scope
public func abs<T : Dimension>(_ measurement : Measurement<T>) -> Measurement<T> {
^~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:179:54: error: cannot find type 'Measurement' in scope
private func centralMeridian(for zone : UInt) -> Measurement<UnitAngle> {
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:240:45: error: cannot find type 'Measurement' in scope
private func latitudeBand(at latitude : Measurement<UnitAngle>) -> String {
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:71:25: error: cannot find 'Measurement' in scope
self.latitude = Measurement(value: latiudinalDegrees, unit: .degrees)
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:71:70: error: cannot infer contextual base in reference to member 'degrees'
self.latitude = Measurement(value: latiudinalDegrees, unit: .degrees)
~^~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:72:26: error: cannot find 'Measurement' in scope
self.longitude = Measurement(value: longitudinalDegrees, unit: .degrees)
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:72:73: error: cannot infer contextual base in reference to member 'degrees'
self.longitude = Measurement(value: longitudinalDegrees, unit: .degrees)
~^~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:80:32: error: incorrect argument labels in call (have 'latitude:longitude:', expected 'latiudinalDegrees:longitudinalDegrees:')
return LatLonCoordinate(latitude: latitude.converted(to: newUnit), longitude: longitude.converted(to: newUnit))
^~~~~~~~~ ~~~~~~~~~
latiudinalDegrees longitudinalDegrees
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:120:16: error: cannot find 'sqrt' in scope
return sqrt(inverseFlattening * (2 - inverseFlattening))
^~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:187:28: error: cannot find 'Measurement' in scope
if abs(latitude) > Measurement(value: 84, unit: UnitAngle.degrees) {
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:187:57: error: cannot find 'UnitAngle' in scope
if abs(latitude) > Measurement(value: 84, unit: UnitAngle.degrees) {
^~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:192:25: error: cannot find 'floor' in scope
var zone = UInt(floor((longitude.converted(to: .degrees).value + 180.0) / 6) + 1)
^~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:192:57: error: cannot infer contextual base in reference to member 'degrees'
var zone = UInt(floor((longitude.converted(to: .degrees).value + 180.0) / 6) + 1)
~^~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:198:31: error: cannot find 'Measurement' in scope
let centralMeridian = Measurement<UnitAngle>(value: (Double(zone - 1) * 6.0) - 180.0 + 3.0, unit: .degrees)
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:198:108: error: cannot infer contextual base in reference to member 'degrees'
let centralMeridian = Measurement<UnitAngle>(value: (Double(zone - 1) * 6.0) - 180.0 + 3.0, unit: .degrees)
~^~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:199:42: error: cannot infer contextual base in reference to member 'radians'
let φ = latitude.converted(to: .radians).value
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:200:43: error: cannot infer contextual base in reference to member 'radians'
let λ = longitude.converted(to: .radians).value - centralMeridian.converted(to: .radians).value
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:200:91: error: cannot infer contextual base in reference to member 'radians'
let λ = longitude.converted(to: .radians).value - centralMeridian.converted(to: .radians).value
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:204:21: error: cannot find 'cos' in scope
let cosλ = cos(λ)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:205:21: error: cannot find 'sin' in scope
let sinλ = sin(λ)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:207:18: error: cannot find 'tan' in scope
let τ = tan(φ)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:208:18: error: cannot find 'sinh' in scope
let σ = sinh(datum.eccentricity * atanh((datum.eccentricity * τ) / sqrt(1 + τ*τ)))
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:208:44: error: cannot find 'atanh' in scope
let σ = sinh(datum.eccentricity * atanh((datum.eccentricity * τ) / sqrt(1 + τ*τ)))
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:208:78: error: cannot find 'sqrt' in scope
let σ = sinh(datum.eccentricity * atanh((datum.eccentricity * τ) / sqrt(1 + τ*τ)))
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:209:28: error: cannot find 'sqrt' in scope
let τPrime = τ * sqrt(1 + σ*σ) - σ * sqrt(1 + τ*τ)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:209:51: error: cannot find 'sqrt' in scope
let τPrime = τ * sqrt(1 + σ*σ) - σ * sqrt(1 + τ*τ)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:211:23: error: cannot find 'atan2' in scope
let ξPrime = atan2(τPrime, cosλ)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:212:23: error: cannot find 'asinh' in scope
let ηPrime = asinh(sinλ / sqrt(τPrime*τPrime + cosλ*cosλ))
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:212:37: error: cannot find 'sqrt' in scope
let ηPrime = asinh(sinλ / sqrt(τPrime*τPrime + cosλ*cosλ))
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:220:43: error: cannot find 'sin' in scope
ξ += krüger.α[index - 1] * sin(properIndex * ξPrime) * cosh(properIndex * ηPrime)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:220:72: error: cannot find 'cosh' in scope
ξ += krüger.α[index - 1] * sin(properIndex * ξPrime) * cosh(properIndex * ηPrime)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:221:43: error: cannot find 'cos' in scope
η += krüger.α[index - 1] * cos(properIndex * ξPrime) * sinh(properIndex * ηPrime)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:221:72: error: cannot find 'sinh' in scope
η += krüger.α[index - 1] * cos(properIndex * ξPrime) * sinh(properIndex * ηPrime)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:242:25: error: cannot find 'floor' in scope
let index = Int(floor(latitude.converted(to: .degrees).value / 8 + 10))
^~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:242:55: error: cannot infer contextual base in reference to member 'degrees'
let index = Int(floor(latitude.converted(to: .degrees).value / 8 + 10))
~^~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:249:40: error: cannot find 'Measurement' in scope
guard coordinates.longitude >= Measurement(value: 3, unit: UnitAngle.degrees) else { return zone }
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:249:68: error: cannot find 'UnitAngle' in scope
guard coordinates.longitude >= Measurement(value: 3, unit: UnitAngle.degrees) else { return zone }
^~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:258:70: error: cannot infer contextual base in reference to member 'degrees'
let longitiudeDegrees = coordinates.longitude.converted(to: .degrees).value
~^~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:292:48: error: cannot find 'sin' in scope
ξPrime -= krüger.β[index - 1] * sin(properIndex * ξ) * cosh(properIndex * η)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:292:72: error: cannot find 'cosh' in scope
ξPrime -= krüger.β[index - 1] * sin(properIndex * ξ) * cosh(properIndex * η)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:293:48: error: cannot find 'cos' in scope
ηPrime -= krüger.β[index - 1] * cos(properIndex * ξ) * sinh(properIndex * η)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:293:72: error: cannot find 'sinh' in scope
ηPrime -= krüger.β[index - 1] * cos(properIndex * ξ) * sinh(properIndex * η)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:296:27: error: cannot find 'sinh' in scope
let sinhηPrime = sinh(ηPrime)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:297:26: error: cannot find 'sin' in scope
let sinξPrime = sin(ξPrime)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:298:26: error: cannot find 'cos' in scope
let cosξPrime = cos(ξPrime)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:300:36: error: cannot find 'sqrt' in scope
let τPrime = sinξPrime / sqrt(sinhηPrime*sinhηPrime + cosξPrime*cosξPrime)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:306:23: error: cannot find 'sinh' in scope
let σi = sinh(datum.eccentricity*atanh(datum.eccentricity*τi/sqrt(1+τi*τi)));
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:306:47: error: cannot find 'atanh' in scope
let σi = sinh(datum.eccentricity*atanh(datum.eccentricity*τi/sqrt(1+τi*τi)));
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:306:76: error: cannot find 'sqrt' in scope
let σi = sinh(datum.eccentricity*atanh(datum.eccentricity*τi/sqrt(1+τi*τi)));
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:307:34: error: cannot find 'sqrt' in scope
let τiPrime = τi * sqrt(1+σi*σi) - σi * sqrt(1+τi*τi);
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:307:58: error: cannot find 'sqrt' in scope
let τiPrime = τi * sqrt(1+σi*σi) - σi * sqrt(1+τi*τi);
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:308:42: error: cannot find 'sqrt' in scope
δτi = (τPrime - τiPrime)/sqrt(1+τiPrime*τiPrime)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:309:52: error: cannot find 'sqrt' in scope
* (1 + (1 - e2)*τi*τi) / ((1-e2)*sqrt(1+τi*τi));
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:308:41: error: binary operator '/' cannot be applied to operands of type 'UTMDistance' and 'Double'
δτi = (τPrime - τiPrime)/sqrt(1+τiPrime*τiPrime)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:308:41: note: overloads for '/' exist with these partially matching parameter lists: (Double, Double), (Duration, Duration)
δτi = (τPrime - τiPrime)/sqrt(1+τiPrime*τiPrime)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:313:18: error: cannot find 'atan' in scope
let φ = atan(τ)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:315:31: error: cannot find 'Measurement' in scope
let centralMeridian = Measurement<UnitAngle>(value: (Double(utm.zone) - 1.0) * 6 - 180.0 + 3.0, unit: .degrees).converted(to: .radians).value
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:315:112: error: cannot infer contextual base in reference to member 'degrees'
let centralMeridian = Measurement<UnitAngle>(value: (Double(utm.zone) - 1.0) * 6 - 180.0 + 3.0, unit: .degrees).converted(to: .radians).value
~^~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:315:136: error: cannot infer contextual base in reference to member 'radians'
let centralMeridian = Measurement<UnitAngle>(value: (Double(utm.zone) - 1.0) * 6 - 180.0 + 3.0, unit: .degrees).converted(to: .radians).value
~^~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:316:18: error: cannot find 'atan2' in scope
let λ = atan2(sinhηPrime, cosξPrime) + centralMeridian
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:318:43: error: cannot find 'Measurement' in scope
return LatLonCoordinate(latitude: Measurement<UnitAngle>(value: φ, unit: .radians), longitude: Measurement<UnitAngle>(value: λ, unit: .radians))
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:318:105: error: cannot find 'Measurement' in scope
return LatLonCoordinate(latitude: Measurement<UnitAngle>(value: φ, unit: .radians), longitude: Measurement<UnitAngle>(value: λ, unit: .radians))
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:318:32: error: incorrect argument labels in call (have 'latitude:longitude:', expected 'latiudinalDegrees:longitudinalDegrees:')
return LatLonCoordinate(latitude: Measurement<UnitAngle>(value: φ, unit: .radians), longitude: Measurement<UnitAngle>(value: λ, unit: .radians))
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:318:84: error: cannot infer contextual base in reference to member 'radians'
return LatLonCoordinate(latitude: Measurement<UnitAngle>(value: φ, unit: .radians), longitude: Measurement<UnitAngle>(value: λ, unit: .radians))
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:318:146: error: cannot infer contextual base in reference to member 'radians'
return LatLonCoordinate(latitude: Measurement<UnitAngle>(value: φ, unit: .radians), longitude: Measurement<UnitAngle>(value: λ, unit: .radians))
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] Emitting module Geotum
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:62:27: error: cannot find type 'Measurement' in scope
public let latitude : Measurement<UnitAngle>
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:63:28: error: cannot find type 'Measurement' in scope
public let longitude : Measurement<UnitAngle>
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:65:28: error: cannot find type 'Measurement' in scope
public init(latitude : Measurement<UnitAngle>, longitude : Measurement<UnitAngle>) {
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:65:64: error: cannot find type 'Measurement' in scope
public init(latitude : Measurement<UnitAngle>, longitude : Measurement<UnitAngle>) {
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:75:47: error: cannot find type 'UnitAngle' in scope
mutating public func convert(to newUnit : UnitAngle) {
^~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:79:40: error: cannot find type 'UnitAngle' in scope
public func converted(to newUnit : UnitAngle) -> LatLonCoordinate {
^~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:168:48: error: cannot find type 'Measurement' in scope
public func abs<T : Dimension>(_ measurement : Measurement<T>) -> Measurement<T> {
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:168:67: error: cannot find type 'Measurement' in scope
public func abs<T : Dimension>(_ measurement : Measurement<T>) -> Measurement<T> {
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:168:21: error: cannot find type 'Dimension' in scope
public func abs<T : Dimension>(_ measurement : Measurement<T>) -> Measurement<T> {
^~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:179:54: error: cannot find type 'Measurement' in scope
private func centralMeridian(for zone : UInt) -> Measurement<UnitAngle> {
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:240:45: error: cannot find type 'Measurement' in scope
private func latitudeBand(at latitude : Measurement<UnitAngle>) -> String {
^~~~~~~~~~~
[3/3] Compiling Geotum Geotum.swift
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:62:27: error: cannot find type 'Measurement' in scope
public let latitude : Measurement<UnitAngle>
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:63:28: error: cannot find type 'Measurement' in scope
public let longitude : Measurement<UnitAngle>
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:65:28: error: cannot find type 'Measurement' in scope
public init(latitude : Measurement<UnitAngle>, longitude : Measurement<UnitAngle>) {
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:65:64: error: cannot find type 'Measurement' in scope
public init(latitude : Measurement<UnitAngle>, longitude : Measurement<UnitAngle>) {
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:75:47: error: cannot find type 'UnitAngle' in scope
mutating public func convert(to newUnit : UnitAngle) {
^~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:79:40: error: cannot find type 'UnitAngle' in scope
public func converted(to newUnit : UnitAngle) -> LatLonCoordinate {
^~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:168:48: error: cannot find type 'Measurement' in scope
public func abs<T : Dimension>(_ measurement : Measurement<T>) -> Measurement<T> {
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:168:67: error: cannot find type 'Measurement' in scope
public func abs<T : Dimension>(_ measurement : Measurement<T>) -> Measurement<T> {
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:168:21: error: cannot find type 'Dimension' in scope
public func abs<T : Dimension>(_ measurement : Measurement<T>) -> Measurement<T> {
^~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:179:54: error: cannot find type 'Measurement' in scope
private func centralMeridian(for zone : UInt) -> Measurement<UnitAngle> {
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:240:45: error: cannot find type 'Measurement' in scope
private func latitudeBand(at latitude : Measurement<UnitAngle>) -> String {
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:71:25: error: cannot find 'Measurement' in scope
self.latitude = Measurement(value: latiudinalDegrees, unit: .degrees)
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:71:70: error: cannot infer contextual base in reference to member 'degrees'
self.latitude = Measurement(value: latiudinalDegrees, unit: .degrees)
~^~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:72:26: error: cannot find 'Measurement' in scope
self.longitude = Measurement(value: longitudinalDegrees, unit: .degrees)
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:72:73: error: cannot infer contextual base in reference to member 'degrees'
self.longitude = Measurement(value: longitudinalDegrees, unit: .degrees)
~^~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:80:32: error: incorrect argument labels in call (have 'latitude:longitude:', expected 'latiudinalDegrees:longitudinalDegrees:')
return LatLonCoordinate(latitude: latitude.converted(to: newUnit), longitude: longitude.converted(to: newUnit))
^~~~~~~~~ ~~~~~~~~~
latiudinalDegrees longitudinalDegrees
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:120:16: error: cannot find 'sqrt' in scope
return sqrt(inverseFlattening * (2 - inverseFlattening))
^~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:187:28: error: cannot find 'Measurement' in scope
if abs(latitude) > Measurement(value: 84, unit: UnitAngle.degrees) {
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:187:57: error: cannot find 'UnitAngle' in scope
if abs(latitude) > Measurement(value: 84, unit: UnitAngle.degrees) {
^~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:192:25: error: cannot find 'floor' in scope
var zone = UInt(floor((longitude.converted(to: .degrees).value + 180.0) / 6) + 1)
^~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:192:57: error: cannot infer contextual base in reference to member 'degrees'
var zone = UInt(floor((longitude.converted(to: .degrees).value + 180.0) / 6) + 1)
~^~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:198:31: error: cannot find 'Measurement' in scope
let centralMeridian = Measurement<UnitAngle>(value: (Double(zone - 1) * 6.0) - 180.0 + 3.0, unit: .degrees)
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:198:108: error: cannot infer contextual base in reference to member 'degrees'
let centralMeridian = Measurement<UnitAngle>(value: (Double(zone - 1) * 6.0) - 180.0 + 3.0, unit: .degrees)
~^~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:199:42: error: cannot infer contextual base in reference to member 'radians'
let φ = latitude.converted(to: .radians).value
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:200:43: error: cannot infer contextual base in reference to member 'radians'
let λ = longitude.converted(to: .radians).value - centralMeridian.converted(to: .radians).value
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:200:91: error: cannot infer contextual base in reference to member 'radians'
let λ = longitude.converted(to: .radians).value - centralMeridian.converted(to: .radians).value
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:204:21: error: cannot find 'cos' in scope
let cosλ = cos(λ)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:205:21: error: cannot find 'sin' in scope
let sinλ = sin(λ)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:207:18: error: cannot find 'tan' in scope
let τ = tan(φ)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:208:18: error: cannot find 'sinh' in scope
let σ = sinh(datum.eccentricity * atanh((datum.eccentricity * τ) / sqrt(1 + τ*τ)))
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:208:44: error: cannot find 'atanh' in scope
let σ = sinh(datum.eccentricity * atanh((datum.eccentricity * τ) / sqrt(1 + τ*τ)))
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:208:78: error: cannot find 'sqrt' in scope
let σ = sinh(datum.eccentricity * atanh((datum.eccentricity * τ) / sqrt(1 + τ*τ)))
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:209:28: error: cannot find 'sqrt' in scope
let τPrime = τ * sqrt(1 + σ*σ) - σ * sqrt(1 + τ*τ)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:209:51: error: cannot find 'sqrt' in scope
let τPrime = τ * sqrt(1 + σ*σ) - σ * sqrt(1 + τ*τ)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:211:23: error: cannot find 'atan2' in scope
let ξPrime = atan2(τPrime, cosλ)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:212:23: error: cannot find 'asinh' in scope
let ηPrime = asinh(sinλ / sqrt(τPrime*τPrime + cosλ*cosλ))
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:212:37: error: cannot find 'sqrt' in scope
let ηPrime = asinh(sinλ / sqrt(τPrime*τPrime + cosλ*cosλ))
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:220:43: error: cannot find 'sin' in scope
ξ += krüger.α[index - 1] * sin(properIndex * ξPrime) * cosh(properIndex * ηPrime)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:220:72: error: cannot find 'cosh' in scope
ξ += krüger.α[index - 1] * sin(properIndex * ξPrime) * cosh(properIndex * ηPrime)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:221:43: error: cannot find 'cos' in scope
η += krüger.α[index - 1] * cos(properIndex * ξPrime) * sinh(properIndex * ηPrime)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:221:72: error: cannot find 'sinh' in scope
η += krüger.α[index - 1] * cos(properIndex * ξPrime) * sinh(properIndex * ηPrime)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:242:25: error: cannot find 'floor' in scope
let index = Int(floor(latitude.converted(to: .degrees).value / 8 + 10))
^~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:242:55: error: cannot infer contextual base in reference to member 'degrees'
let index = Int(floor(latitude.converted(to: .degrees).value / 8 + 10))
~^~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:249:40: error: cannot find 'Measurement' in scope
guard coordinates.longitude >= Measurement(value: 3, unit: UnitAngle.degrees) else { return zone }
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:249:68: error: cannot find 'UnitAngle' in scope
guard coordinates.longitude >= Measurement(value: 3, unit: UnitAngle.degrees) else { return zone }
^~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:258:70: error: cannot infer contextual base in reference to member 'degrees'
let longitiudeDegrees = coordinates.longitude.converted(to: .degrees).value
~^~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:292:48: error: cannot find 'sin' in scope
ξPrime -= krüger.β[index - 1] * sin(properIndex * ξ) * cosh(properIndex * η)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:292:72: error: cannot find 'cosh' in scope
ξPrime -= krüger.β[index - 1] * sin(properIndex * ξ) * cosh(properIndex * η)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:293:48: error: cannot find 'cos' in scope
ηPrime -= krüger.β[index - 1] * cos(properIndex * ξ) * sinh(properIndex * η)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:293:72: error: cannot find 'sinh' in scope
ηPrime -= krüger.β[index - 1] * cos(properIndex * ξ) * sinh(properIndex * η)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:296:27: error: cannot find 'sinh' in scope
let sinhηPrime = sinh(ηPrime)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:297:26: error: cannot find 'sin' in scope
let sinξPrime = sin(ξPrime)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:298:26: error: cannot find 'cos' in scope
let cosξPrime = cos(ξPrime)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:300:36: error: cannot find 'sqrt' in scope
let τPrime = sinξPrime / sqrt(sinhηPrime*sinhηPrime + cosξPrime*cosξPrime)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:306:23: error: cannot find 'sinh' in scope
let σi = sinh(datum.eccentricity*atanh(datum.eccentricity*τi/sqrt(1+τi*τi)));
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:306:47: error: cannot find 'atanh' in scope
let σi = sinh(datum.eccentricity*atanh(datum.eccentricity*τi/sqrt(1+τi*τi)));
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:306:76: error: cannot find 'sqrt' in scope
let σi = sinh(datum.eccentricity*atanh(datum.eccentricity*τi/sqrt(1+τi*τi)));
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:307:34: error: cannot find 'sqrt' in scope
let τiPrime = τi * sqrt(1+σi*σi) - σi * sqrt(1+τi*τi);
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:307:58: error: cannot find 'sqrt' in scope
let τiPrime = τi * sqrt(1+σi*σi) - σi * sqrt(1+τi*τi);
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:308:42: error: cannot find 'sqrt' in scope
δτi = (τPrime - τiPrime)/sqrt(1+τiPrime*τiPrime)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:309:52: error: cannot find 'sqrt' in scope
* (1 + (1 - e2)*τi*τi) / ((1-e2)*sqrt(1+τi*τi));
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:308:41: error: binary operator '/' cannot be applied to operands of type 'UTMDistance' and 'Double'
δτi = (τPrime - τiPrime)/sqrt(1+τiPrime*τiPrime)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:308:41: note: overloads for '/' exist with these partially matching parameter lists: (Double, Double), (Duration, Duration)
δτi = (τPrime - τiPrime)/sqrt(1+τiPrime*τiPrime)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:313:18: error: cannot find 'atan' in scope
let φ = atan(τ)
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:315:31: error: cannot find 'Measurement' in scope
let centralMeridian = Measurement<UnitAngle>(value: (Double(utm.zone) - 1.0) * 6 - 180.0 + 3.0, unit: .degrees).converted(to: .radians).value
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:315:112: error: cannot infer contextual base in reference to member 'degrees'
let centralMeridian = Measurement<UnitAngle>(value: (Double(utm.zone) - 1.0) * 6 - 180.0 + 3.0, unit: .degrees).converted(to: .radians).value
~^~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:315:136: error: cannot infer contextual base in reference to member 'radians'
let centralMeridian = Measurement<UnitAngle>(value: (Double(utm.zone) - 1.0) * 6 - 180.0 + 3.0, unit: .degrees).converted(to: .radians).value
~^~~~~~~
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:316:18: error: cannot find 'atan2' in scope
let λ = atan2(sinhηPrime, cosξPrime) + centralMeridian
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:318:43: error: cannot find 'Measurement' in scope
return LatLonCoordinate(latitude: Measurement<UnitAngle>(value: φ, unit: .radians), longitude: Measurement<UnitAngle>(value: λ, unit: .radians))
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:318:105: error: cannot find 'Measurement' in scope
return LatLonCoordinate(latitude: Measurement<UnitAngle>(value: φ, unit: .radians), longitude: Measurement<UnitAngle>(value: λ, unit: .radians))
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:318:32: error: incorrect argument labels in call (have 'latitude:longitude:', expected 'latiudinalDegrees:longitudinalDegrees:')
return LatLonCoordinate(latitude: Measurement<UnitAngle>(value: φ, unit: .radians), longitude: Measurement<UnitAngle>(value: λ, unit: .radians))
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:318:84: error: cannot infer contextual base in reference to member 'radians'
return LatLonCoordinate(latitude: Measurement<UnitAngle>(value: φ, unit: .radians), longitude: Measurement<UnitAngle>(value: λ, unit: .radians))
/host/spi-builder-workspace/Sources/Geotum/Geotum.swift:318:146: error: cannot infer contextual base in reference to member 'radians'
return LatLonCoordinate(latitude: Measurement<UnitAngle>(value: φ, unit: .radians), longitude: Measurement<UnitAngle>(value: λ, unit: .radians))
error: fatalError
BUILD FAILURE 5.10 linux