Build Information
Failed to build CXXGeographicLib, reference main (0351a2), with Swift 6.1 for Wasm on 2 May 2026 03:20:29 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.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 0351a21 Refactor Swift CI workflow for improved readability (#5)
Cloned https://github.com/sbooth/CXXGeographicLib.git
Revision (git rev-parse @):
0351a2110b1d77a4c00d2889376865e12958c4a5
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
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/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 swiftpackageindex/spi-images
Digest: sha256:276d66a16377d3ee059b2e3429cbc1154d9f01e42871e5d702fd5d8b9044d93d
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
Building for debugging...
[0/42] Compiling CXXGeographicLib AuxAngle.cpp
[1/42] Compiling CXXGeographicLib AuxLatitude.cpp
[2/42] Compiling CXXGeographicLib CassiniSoldner.cpp
[3/42] Compiling CXXGeographicLib Geocentric.cpp
[4/42] Compiling CXXGeographicLib AzimuthalEquidistant.cpp
[5/42] Compiling CXXGeographicLib DST.cpp
[6/42] Compiling CXXGeographicLib GeoCoords.cpp
[7/42] Compiling CXXGeographicLib DMS.cpp
[8/42] Compiling CXXGeographicLib Utility.cpp
[9/42] Compiling CXXGeographicLib TransverseMercatorExact.cpp
[10/42] Compiling CXXGeographicLib UTMUPS.cpp
[11/42] Compiling CXXGeographicLib PolarStereographic.cpp
[12/42] Compiling CXXGeographicLib PolygonArea.cpp
[13/42] Compiling CXXGeographicLib Rhumb.cpp
[14/42] Compiling CXXGeographicLib TransverseMercator.cpp
[15/42] Compiling CXXGeographicLib NormalGravity.cpp
[16/42] Compiling CXXGeographicLib SphericalEngine.cpp
[17/42] Compiling CXXGeographicLib Math.cpp
[18/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.
[19/42] Compiling CXXGeographicLib MagneticModel.cpp
[19/42] Compiling CXXGeographicLib GravityModel.cpp
[19/42] Compiling CXXGeographicLib LambertConformalConic.cpp
[19/42] Compiling CXXGeographicLib LocalCartesian.cpp
[19/42] Compiling CXXGeographicLib Intersect.cpp
[19/42] Compiling CXXGeographicLib GravityCircle.cpp
[19/42] Compiling CXXGeographicLib MGRS.cpp
[19/42] Compiling CXXGeographicLib MagneticCircle.cpp
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:276d66a16377d3ee059b2e3429cbc1154d9f01e42871e5d702fd5d8b9044d93d
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/23] Compiling CXXGeographicLib LambertConformalConic.cpp
[1/23] Compiling CXXGeographicLib LocalCartesian.cpp
[2/23] 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;
| ^
2 errors generated.
[3/23] Compiling CXXGeographicLib MagneticModel.cpp
[3/23] Compiling CXXGeographicLib Georef.cpp
[3/23] Compiling CXXGeographicLib Geoid.cpp
[3/23] Compiling CXXGeographicLib Gnomonic.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;
| ^
[3/23] Compiling CXXGeographicLib GravityModel.cpp
[3/23] Compiling CXXGeographicLib MagneticCircle.cpp
[3/23] Compiling CXXGeographicLib Intersect.cpp
[3/23] Compiling CXXGeographicLib GravityCircle.cpp
BUILD FAILURE 6.1 wasm