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 2.4.0 (651a20), with Swift 6.1 for Wasm on 29 May 2025 19:39:17 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" 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.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sbooth/CXXGeographicLib.git
Reference: 2.4.0
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
 * tag               2.4.0      -> FETCH_HEAD
HEAD is now at 651a208 Update README
Cloned https://github.com/sbooth/CXXGeographicLib.git
Revision (git rev-parse @):
651a20861ea8725a33e0e9d7906ff1a093f6f238
SUCCESS checkout https://github.com/sbooth/CXXGeographicLib.git at 2.4.0
========================================
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" 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:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/42] Compiling CXXGeographicLib Accumulator.cpp
[1/42] Compiling CXXGeographicLib AuxLatitude.cpp
[2/42] Compiling CXXGeographicLib Ellipsoid.cpp
[3/42] Compiling CXXGeographicLib AlbersEqualArea.cpp
[4/42] Compiling CXXGeographicLib AuxAngle.cpp
[5/42] Compiling CXXGeographicLib CassiniSoldner.cpp
[6/42] Compiling CXXGeographicLib AzimuthalEquidistant.cpp
[7/42] Compiling CXXGeographicLib DST.cpp
[8/42] Compiling CXXGeographicLib TransverseMercatorExact.cpp
[9/42] Compiling CXXGeographicLib PolarStereographic.cpp
[10/42] Compiling CXXGeographicLib UTMUPS.cpp
[11/42] Compiling CXXGeographicLib Utility.cpp
[12/42] Compiling CXXGeographicLib TransverseMercator.cpp
[13/42] Compiling CXXGeographicLib Rhumb.cpp
[14/42] Compiling CXXGeographicLib SphericalEngine.cpp
[15/42] Compiling CXXGeographicLib PolygonArea.cpp
[16/42] Compiling CXXGeographicLib OSGB.cpp
[17/42] Compiling CXXGeographicLib Math.cpp
[18/42] Compiling CXXGeographicLib LambertConformalConic.cpp
[19/42] Compiling CXXGeographicLib LocalCartesian.cpp
[20/42] Compiling CXXGeographicLib NormalGravity.cpp
[21/42] Compiling CXXGeographicLib MagneticCircle.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.
[22/42] Compiling CXXGeographicLib MagneticModel.cpp
[22/42] Compiling CXXGeographicLib MGRS.cpp
[23/42] Compiling CXXGeographicLib Geoid.cpp
[23/42] Compiling CXXGeographicLib Georef.cpp
[23/42] Compiling CXXGeographicLib GravityCircle.cpp
[23/42] Compiling CXXGeographicLib Gnomonic.cpp
[23/42] Compiling CXXGeographicLib Geohash.cpp
[23/42] Compiling CXXGeographicLib GravityModel.cpp
[23/42] Compiling CXXGeographicLib Intersect.cpp
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" 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:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
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/19] Compiling CXXGeographicLib Gnomonic.cpp
[1/19] Compiling CXXGeographicLib Geohash.cpp
In file included from /host/spi-builder-workspace/Sources/CXXGeographicLib/Geoid.cpp:10:
/host/spi-builder-workspace/Sources/CXXGeographicLib/include/GeographicLib/Geoid.hpp:106:27: error: implicit instantiation of undefined template 'std::basic_ifstream<char>'
  106 |     mutable std::ifstream _file;
      |                           ^
/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/Geoid.cpp:298:22: error: implicit instantiation of undefined template 'std::basic_ifstream<char>'
  298 |     _file.exceptions(ifstream::eofbit | ifstream::failbit | ifstream::badbit);
      |                      ^
/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/Geoid.cpp:298:41: error: implicit instantiation of undefined template 'std::basic_ifstream<char>'
  298 |     _file.exceptions(ifstream::eofbit | ifstream::failbit | ifstream::badbit);
      |                                         ^
/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/Geoid.cpp:298:61: error: implicit instantiation of undefined template 'std::basic_ifstream<char>'
  298 |     _file.exceptions(ifstream::eofbit | ifstream::failbit | ifstream::badbit);
      |                                                             ^
/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;
      |                            ^
4 errors generated.
[2/19] Compiling CXXGeographicLib Geoid.cpp
[2/19] Compiling CXXGeographicLib GravityCircle.cpp
[2/19] Compiling CXXGeographicLib GeodesicLine.cpp
[2/19] Compiling CXXGeographicLib Intersect.cpp
[2/19] Compiling CXXGeographicLib GeodesicLineExact.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/19] Compiling CXXGeographicLib MagneticModel.cpp
[2/19] Compiling CXXGeographicLib Georef.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/19] Compiling CXXGeographicLib GravityModel.cpp
BUILD FAILURE 6.1 wasm