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 (1edd79), with Swift 6.1 for Wasm on 19 Aug 2025 02:11:07 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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.67.1
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 1edd798 Bump actions/checkout from 4 to 5 (#3)
Cloned https://github.com/sbooth/CXXGeographicLib.git
Revision (git rev-parse @):
1edd798af22a00bcb4840ba7267464907916df93
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-0":/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
e1a89dea01a6: Already exists
39bc14e52995: Already exists
cc0382103b05: Already exists
084072dee40a: Already exists
552936df2a22: Pulling fs layer
9713b288b12e: Pulling fs layer
552936df2a22: Verifying Checksum
552936df2a22: Download complete
9713b288b12e: Verifying Checksum
9713b288b12e: Download complete
552936df2a22: Pull complete
9713b288b12e: Pull complete
Digest: sha256:eb0758f51dbd6991fb9e51dedbfbcbec142ffc0d3b9b8ad91fa19d35e5136f0a
Status: Downloaded newer image for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/42] Compiling CXXGeographicLib PolarStereographic.cpp
[1/42] Compiling CXXGeographicLib TransverseMercatorExact.cpp
[2/42] Compiling CXXGeographicLib PolygonArea.cpp
[3/42] Compiling CXXGeographicLib Utility.cpp
[4/42] Compiling CXXGeographicLib TransverseMercator.cpp
[5/42] Compiling CXXGeographicLib Rhumb.cpp
[6/42] Compiling CXXGeographicLib UTMUPS.cpp
[7/42] Compiling CXXGeographicLib SphericalEngine.cpp
[8/42] Compiling CXXGeographicLib OSGB.cpp
[9/42] Compiling CXXGeographicLib NormalGravity.cpp
[10/42] Compiling CXXGeographicLib Math.cpp
[11/42] Compiling CXXGeographicLib LambertConformalConic.cpp
[12/42] Compiling CXXGeographicLib LocalCartesian.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.
[13/42] Compiling CXXGeographicLib MagneticModel.cpp
[13/42] Compiling CXXGeographicLib Georef.cpp
[13/42] Compiling CXXGeographicLib Gnomonic.cpp
[13/42] Compiling CXXGeographicLib GravityCircle.cpp
[13/42] Compiling CXXGeographicLib GravityModel.cpp
[13/42] Compiling CXXGeographicLib Intersect.cpp
[13/42] Compiling CXXGeographicLib MGRS.cpp
[13/42] Compiling CXXGeographicLib MagneticCircle.cpp
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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:eb0758f51dbd6991fb9e51dedbfbcbec142ffc0d3b9b8ad91fa19d35e5136f0a
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/29] Compiling CXXGeographicLib Gnomonic.cpp
[1/29] Compiling CXXGeographicLib Georef.cpp
[2/29] Compiling CXXGeographicLib MagneticCircle.cpp
[3/29] Compiling CXXGeographicLib MGRS.cpp
[4/29] 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.
[5/29] Compiling CXXGeographicLib GravityModel.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.
[5/29] Compiling CXXGeographicLib MagneticModel.cpp
[5/29] Compiling CXXGeographicLib GeodesicLineExact.cpp
[5/29] Compiling CXXGeographicLib GeodesicLine.cpp
[5/29] Compiling CXXGeographicLib GeodesicExact.cpp
[5/29] Compiling CXXGeographicLib Geohash.cpp
[5/29] Compiling CXXGeographicLib Geoid.cpp
[5/29] Compiling CXXGeographicLib Intersect.cpp
BUILD FAILURE 6.1 wasm