The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build CXXGeographicLib, reference main (8387a1), with Swift 6.1 for Wasm on 24 Nov 2025 23:54:03 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sbooth/CXXGeographicLib.git
Reference: main
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/sbooth/CXXGeographicLib
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 8387a19 Bump actions/checkout from 5 to 6 (#4)
Cloned https://github.com/sbooth/CXXGeographicLib.git
Revision (git rev-parse @):
8387a1940b47a649b8b6cebe43e9cb7f7e106893
SUCCESS checkout https://github.com/sbooth/CXXGeographicLib.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/sbooth/CXXGeographicLib.git
https://github.com/sbooth/CXXGeographicLib.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "cxx_language_standard" : "c++17",
  "dependencies" : [
  ],
  "manifest_display_name" : "CXXGeographicLib",
  "name" : "CXXGeographicLib",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "CXXGeographicLib",
      "targets" : [
        "CXXGeographicLib"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CXXGeographicLibTests",
      "module_type" : "SwiftTarget",
      "name" : "CXXGeographicLibTests",
      "path" : "Tests/CXXGeographicLibTests",
      "sources" : [
        "CXXGeographicLibTests.swift"
      ],
      "target_dependencies" : [
        "CXXGeographicLib"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CXXGeographicLib",
      "module_type" : "ClangTarget",
      "name" : "CXXGeographicLib",
      "path" : "Sources/CXXGeographicLib",
      "product_memberships" : [
        "CXXGeographicLib"
      ],
      "sources" : [
        "Accumulator.cpp",
        "AlbersEqualArea.cpp",
        "AuxAngle.cpp",
        "AuxLatitude.cpp",
        "AzimuthalEquidistant.cpp",
        "CassiniSoldner.cpp",
        "CircularEngine.cpp",
        "DAuxLatitude.cpp",
        "DMS.cpp",
        "DST.cpp",
        "Ellipsoid.cpp",
        "EllipticFunction.cpp",
        "GARS.cpp",
        "GeoCoords.cpp",
        "Geocentric.cpp",
        "Geodesic.cpp",
        "GeodesicExact.cpp",
        "GeodesicLine.cpp",
        "GeodesicLineExact.cpp",
        "Geohash.cpp",
        "Geoid.cpp",
        "Georef.cpp",
        "Gnomonic.cpp",
        "GravityCircle.cpp",
        "GravityModel.cpp",
        "Intersect.cpp",
        "LambertConformalConic.cpp",
        "LocalCartesian.cpp",
        "MGRS.cpp",
        "MagneticCircle.cpp",
        "MagneticModel.cpp",
        "Math.cpp",
        "NormalGravity.cpp",
        "OSGB.cpp",
        "PolarStereographic.cpp",
        "PolygonArea.cpp",
        "Rhumb.cpp",
        "SphericalEngine.cpp",
        "TransverseMercator.cpp",
        "TransverseMercatorExact.cpp",
        "UTMUPS.cpp",
        "Utility.cpp"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:4dfe22dedd7a52399668938cbd466a34545eff77bced906005dc4032a6549d90
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/42] Compiling CXXGeographicLib AuxAngle.cpp
[1/42] Compiling CXXGeographicLib AlbersEqualArea.cpp
[2/42] Compiling CXXGeographicLib AuxLatitude.cpp
[3/42] Compiling CXXGeographicLib TransverseMercatorExact.cpp
[4/42] Compiling CXXGeographicLib UTMUPS.cpp
[5/42] Compiling CXXGeographicLib TransverseMercator.cpp
[6/42] Compiling CXXGeographicLib Utility.cpp
[7/42] Compiling CXXGeographicLib Rhumb.cpp
[8/42] Compiling CXXGeographicLib SphericalEngine.cpp
[9/42] Compiling CXXGeographicLib PolarStereographic.cpp
[10/42] Compiling CXXGeographicLib PolygonArea.cpp
[11/42] Compiling CXXGeographicLib NormalGravity.cpp
[12/42] Compiling CXXGeographicLib Math.cpp
[13/42] Compiling CXXGeographicLib OSGB.cpp
/host/spi-builder-workspace/Sources/CXXGeographicLib/MagneticModel.cpp:70:16: error: implicit instantiation of undefined template 'std::basic_ifstream<char>'
   70 |       ifstream coeffstr(coeff.c_str(), ios::binary);
      |                ^
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__fwd/fstream.h:24:28: note: template is declared here
   24 | class _LIBCPP_TEMPLATE_VIS basic_ifstream;
      |                            ^
/host/spi-builder-workspace/Sources/CXXGeographicLib/MagneticModel.cpp:101:14: error: implicit instantiation of undefined template 'std::basic_ifstream<char>'
  101 |     ifstream metastr(_filename.c_str());
      |              ^
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__fwd/fstream.h:24:28: note: template is declared here
   24 | class _LIBCPP_TEMPLATE_VIS basic_ifstream;
      |                            ^
2 errors generated.
[14/42] Compiling CXXGeographicLib MagneticModel.cpp
[14/42] Compiling CXXGeographicLib LambertConformalConic.cpp
[14/42] Compiling CXXGeographicLib MGRS.cpp
[14/42] Compiling CXXGeographicLib GravityCircle.cpp
[14/42] Compiling CXXGeographicLib GravityModel.cpp
[14/42] Compiling CXXGeographicLib MagneticCircle.cpp
[14/42] Compiling CXXGeographicLib Intersect.cpp
[14/42] Compiling CXXGeographicLib LocalCartesian.cpp
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:4dfe22dedd7a52399668938cbd466a34545eff77bced906005dc4032a6549d90
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/28] Compiling CXXGeographicLib LambertConformalConic.cpp
[1/28] Compiling CXXGeographicLib LocalCartesian.cpp
[2/28] Compiling CXXGeographicLib GravityCircle.cpp
/host/spi-builder-workspace/Sources/CXXGeographicLib/GravityModel.cpp:63:16: error: implicit instantiation of undefined template 'std::basic_ifstream<char>'
   63 |       ifstream coeffstr(coeff.c_str(), ios::binary);
      |                ^
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__fwd/fstream.h:24:28: note: template is declared here
   24 | class _LIBCPP_TEMPLATE_VIS basic_ifstream;
      |                            ^
/host/spi-builder-workspace/Sources/CXXGeographicLib/GravityModel.cpp:137:14: error: implicit instantiation of undefined template 'std::basic_ifstream<char>'
  137 |     ifstream metastr(_filename.c_str());
      |              ^
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__fwd/fstream.h:24:28: note: template is declared here
   24 | class _LIBCPP_TEMPLATE_VIS basic_ifstream;
      |                            ^
2 errors generated.
[3/28] Compiling CXXGeographicLib GravityModel.cpp
[3/28] Compiling CXXGeographicLib Geoid.cpp
[3/28] Compiling CXXGeographicLib Intersect.cpp
[3/28] Compiling CXXGeographicLib MagneticCircle.cpp
[3/28] Compiling CXXGeographicLib Georef.cpp
[3/28] Compiling CXXGeographicLib Gnomonic.cpp
[3/28] Compiling CXXGeographicLib MGRS.cpp
/host/spi-builder-workspace/Sources/CXXGeographicLib/MagneticModel.cpp:70:16: error: implicit instantiation of undefined template 'std::basic_ifstream<char>'
   70 |       ifstream coeffstr(coeff.c_str(), ios::binary);
      |                ^
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__fwd/fstream.h:24:28: note: template is declared here
   24 | class _LIBCPP_TEMPLATE_VIS basic_ifstream;
      |                            ^
/host/spi-builder-workspace/Sources/CXXGeographicLib/MagneticModel.cpp:101:14: error: implicit instantiation of undefined template 'std::basic_ifstream<char>'
  101 |     ifstream metastr(_filename.c_str());
      |              ^
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__fwd/fstream.h:24:28: note: template is declared here
   24 | class _LIBCPP_TEMPLATE_VIS basic_ifstream;
      |                            ^
[3/28] Compiling CXXGeographicLib MagneticModel.cpp
BUILD FAILURE 6.1 wasm