Build Information
Failed to build SwissEphemeris with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-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/vsmithers1087/SwissEphemeris.git
Reference: 0.0.99
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/vsmithers1087/SwissEphemeris
* tag 0.0.99 -> FETCH_HEAD
HEAD is now at 9d9ac62 Make ZodiacCoordinate init public (#18)
Cloned https://github.com/vsmithers1087/SwissEphemeris.git
Revision (git rev-parse @):
9d9ac62383eafa176e744af1130dcb0da17ca325
SUCCESS checkout https://github.com/vsmithers1087/SwissEphemeris.git at 0.0.99
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/vsmithers1087/SwissEphemeris.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/22] Copying sweph.sln
[1/22] Copying swedecl64.txt
[1/22] Copying swedecl.txt
[1/22] Copying seorbel.txt
[1/22] Copying sepl_18.se1
[1/22] Copying seleapsec.txt
[6/22] Copying sefstars.txt
[6/22] Copying sedeltat.txt.inactive
[8/22] Copying semo_18.se1
[8/22] Copying seas_18.se1
[10/22] Copying ast_list.txt
[10/22] Write sources
[12/22] Compiling swejpl.c
[13/22] Write swift-version-24593BA9C3E375BF.txt
[14/22] Compiling swedate.c
[15/22] Compiling swemmoon.c
[16/22] Compiling swehel.c
[17/22] Compiling swehouse.c
[18/22] Compiling swemplan.c
[19/22] Compiling swephlib.c
[20/22] Compiling swecl.c
[21/22] Compiling sweph.c
[23/48] Emitting module SwissEphemeris
[24/51] Compiling SwissEphemeris Zodiac.swift
[25/51] Compiling SwissEphemeris ZodiacCoordinate.swift
[26/51] Compiling SwissEphemeris resource_bundle_accessor.swift
[27/51] Compiling SwissEphemeris LunarSouthNode.swift
[28/51] Compiling SwissEphemeris Lunation.swift
[29/51] Compiling SwissEphemeris Pair.swift
[30/51] Compiling SwissEphemeris Planet.swift
[31/51] Compiling SwissEphemeris Cusp.swift
[32/51] Compiling SwissEphemeris Date+JulianDate.swift
[33/51] Compiling SwissEphemeris Date+Strideable.swift
[34/51] Compiling SwissEphemeris FixedStar.swift
[35/51] Compiling SwissEphemeris Aspect.swift
[36/51] Compiling SwissEphemeris Asteroid.swift
[37/51] Compiling SwissEphemeris Ayanamsha.swift
[38/51] Compiling SwissEphemeris Coordinate.swift
[39/51] Compiling SwissEphemeris ZodiacMappable.swift
[40/51] Compiling SwissEphemeris RiseTime.swift
[41/51] Compiling SwissEphemeris SetTime.swift
[42/51] Compiling SwissEphemeris HouseCusps.swift
[43/51] Compiling SwissEphemeris HouseSystem.swift
[44/51] Compiling SwissEphemeris LunarMansion.swift
[45/51] Compiling SwissEphemeris LunarNorthNode.swift
[46/51] Compiling SwissEphemeris PlanetPairs.swift
[47/51] Compiling SwissEphemeris BatchRequest.swift
[48/51] Compiling SwissEphemeris CelestialBody.swift
[49/51] Compiling SwissEphemeris Station.swift
/host/spi-builder-workspace/Sources/SwissEphemeris/Utility/JPLFileManager.swift:21:28: error: value of optional type 'String?' must be unwrapped to a value of type 'String'
swe_set_ephe_path(strdup(path))
^
/host/spi-builder-workspace/Sources/SwissEphemeris/Utility/JPLFileManager.swift:21:28: note: coalesce using '??' to provide a default when the optional value contains 'nil'
swe_set_ephe_path(strdup(path))
^
?? <#default value#>
/host/spi-builder-workspace/Sources/SwissEphemeris/Utility/JPLFileManager.swift:21:28: note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
swe_set_ephe_path(strdup(path))
^
!
[50/51] Compiling SwissEphemeris JPLFileManager.swift
/host/spi-builder-workspace/Sources/SwissEphemeris/Utility/JPLFileManager.swift:21:28: error: value of optional type 'String?' must be unwrapped to a value of type 'String'
swe_set_ephe_path(strdup(path))
^
/host/spi-builder-workspace/Sources/SwissEphemeris/Utility/JPLFileManager.swift:21:28: note: coalesce using '??' to provide a default when the optional value contains 'nil'
swe_set_ephe_path(strdup(path))
^
?? <#default value#>
/host/spi-builder-workspace/Sources/SwissEphemeris/Utility/JPLFileManager.swift:21:28: note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
swe_set_ephe_path(strdup(path))
^
!
[51/51] Compiling SwissEphemeris PlanetsRequest.swift
/host/spi-builder-workspace/Sources/SwissEphemeris/Utility/JPLFileManager.swift:21:28: error: value of optional type 'String?' must be unwrapped to a value of type 'String'
swe_set_ephe_path(strdup(path))
^
/host/spi-builder-workspace/Sources/SwissEphemeris/Utility/JPLFileManager.swift:21:28: note: coalesce using '??' to provide a default when the optional value contains 'nil'
swe_set_ephe_path(strdup(path))
^
?? <#default value#>
/host/spi-builder-workspace/Sources/SwissEphemeris/Utility/JPLFileManager.swift:21:28: note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
swe_set_ephe_path(strdup(path))
^
!
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/5] Compiling SwissEphemeris Station.swift
[3/5] Compiling SwissEphemeris PlanetsRequest.swift
[4/5] Emitting module SwissEphemeris
[5/5] Compiling SwissEphemeris JPLFileManager.swift
/host/spi-builder-workspace/Sources/SwissEphemeris/Utility/JPLFileManager.swift:21:28: error: value of optional type 'String?' must be unwrapped to a value of type 'String'
swe_set_ephe_path(strdup(path))
^
/host/spi-builder-workspace/Sources/SwissEphemeris/Utility/JPLFileManager.swift:21:28: note: coalesce using '??' to provide a default when the optional value contains 'nil'
swe_set_ephe_path(strdup(path))
^
?? <#default value#>
/host/spi-builder-workspace/Sources/SwissEphemeris/Utility/JPLFileManager.swift:21:28: note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
swe_set_ephe_path(strdup(path))
^
!
error: fatalError
BUILD FAILURE 5.10 linux