The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftPlot, reference master (36f460), with Swift 6.1 for Wasm on 28 May 2025 05:32:49 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-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/KarthikRIyer/swiftplot.git
Reference: master
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/KarthikRIyer/swiftplot
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 36f4608 Fix typo in `xIncrement` calculation (#131)
Cloned https://github.com/KarthikRIyer/swiftplot.git
Revision (git rev-parse @):
36f46087d36de0375d6245e767b33b3efcb7dc30
SUCCESS checkout https://github.com/KarthikRIyer/swiftplot.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/KarthikRIyer/swiftplot.git
https://github.com/KarthikRIyer/swiftplot.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "cxx_language_standard" : "c++11",
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftPlot",
  "name" : "SwiftPlot",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftPlot",
      "targets" : [
        "SwiftPlot"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "SVGRenderer",
      "targets" : [
        "SVGRenderer"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "AGGRenderer",
      "targets" : [
        "AGGRenderer"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "lodepng",
      "module_type" : "ClangTarget",
      "name" : "lodepng",
      "path" : "Sources/lodepng",
      "product_memberships" : [
        "AGGRenderer"
      ],
      "sources" : [
        "lodepng.cpp"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SwiftPlotTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftPlotTests",
      "path" : "Tests/SwiftPlotTests",
      "sources" : [
        "AGGRenderer/agg-png-output.swift",
        "AGGRenderer/aggTests.swift",
        "Annotation/annotation-arrow-dart.swift",
        "Annotation/annotation-arrow-double-headed.swift",
        "Annotation/annotation-arrow-wedge.swift",
        "Annotation/annotation-arrow.swift",
        "Annotation/annotation-bracket.swift",
        "Annotation/annotation-text-bounding-box.swift",
        "Annotation/annotation-text.swift",
        "Annotation/annotationTests.swift",
        "BarChart/barchart-hatched-backwardslash.swift",
        "BarChart/barchart-hatched-cross.swift",
        "BarChart/barchart-hatched-filledcircle.swift",
        "BarChart/barchart-hatched-forwardsslash.swift",
        "BarChart/barchart-hatched-grid.swift",
        "BarChart/barchart-hatched-hollowcircle.swift",
        "BarChart/barchart-hatched-horizontal.swift",
        "BarChart/barchart-hatched-vertical.swift",
        "BarChart/barchart-orientation-horizontal.swift",
        "BarChart/barchart-stacked-horizontal.swift",
        "BarChart/barchart-stacked-vertical.swift",
        "BarChart/barchart.swift",
        "BarChart/barchartTests.swift",
        "Heatmap/heatmap.swift",
        "Histogram/histogram-arrayValues.swift",
        "Histogram/histogram-regression-tests.swift",
        "Histogram/histogram-stacked-arrayValues.swift",
        "Histogram/histogram-stacked-step-arrayValues.swift",
        "Histogram/histogram-stacked-step.swift",
        "Histogram/histogram-stacked.swift",
        "Histogram/histogram-step-arrayValues.swift",
        "Histogram/histogram-step.swift",
        "Histogram/histogram.swift",
        "Histogram/histogramTests.swift",
        "LineChart/linechart-functionplot.swift",
        "LineChart/linechart-multiple-series.swift",
        "LineChart/linechart-regressiontests.swift",
        "LineChart/linechart-secondary-axis.swift",
        "LineChart/linechart-single-series.swift",
        "LineChart/linechart-subplot-gridstacked.swift",
        "LineChart/linechart-subplot-h-stacked.swift",
        "LineChart/linechart-subplot-v-stacked.swift",
        "LineChart/linechartTests.swift",
        "PerformanceTests/performance-histogram.swift",
        "PerformanceTests/performanceTests.swift",
        "ScatterPlot/scatterplot-arrayValues.swift",
        "ScatterPlot/scatterplot.swift",
        "ScatterPlot/scatterplotTests.swift",
        "SubPlots/subplotTests.swift",
        "SubPlots/subplots.swift",
        "SwiftPlotTestCase.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "AGGRenderer",
        "SVGRenderer",
        "SwiftPlot"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftPlot",
      "module_type" : "SwiftTarget",
      "name" : "SwiftPlot",
      "path" : "Sources/SwiftPlot",
      "product_memberships" : [
        "SwiftPlot",
        "SVGRenderer",
        "AGGRenderer"
      ],
      "sources" : [
        "AdaptersNamespace.swift",
        "Axis.swift",
        "BarChart.swift",
        "BarGraphSeriesOptions.swift",
        "Color/Color.swift",
        "Color/ColorMap.swift",
        "Color/ColorMapData.swift",
        "FloatConvertible.swift",
        "Geometry/EdgeComponents.swift",
        "Geometry/Rect.swift",
        "Geometry/Size.swift",
        "GraphLayout.swift",
        "Heatmap-adapter.swift",
        "Heatmap.swift",
        "HelperFunction.swift",
        "Histogram.swift",
        "HistogramSeries.swift",
        "HistogramSeriesOptions.swift",
        "LayoutComponents/Label.swift",
        "LayoutComponents/LayoutComponent.swift",
        "LayoutComponents/Spacing.swift",
        "LineChart.swift",
        "Pair.swift",
        "Plot.swift",
        "PlotDimensions.swift",
        "PlotMarkers.swift",
        "PlotStyleHelpers.swift",
        "Renderer.swift",
        "ScatterChart.swift",
        "ScatterPlotSeriesOptions.swift",
        "SequencePlots.swift",
        "Series.swift",
        "SubPlot.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SVGRenderer",
      "module_type" : "SwiftTarget",
      "name" : "SVGRenderer",
      "path" : "Sources/SVGRenderer",
      "product_memberships" : [
        "SVGRenderer"
      ],
      "sources" : [
        "SVGRenderer.swift"
      ],
      "target_dependencies" : [
        "SwiftPlot"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CPPAGGRenderer",
      "module_type" : "ClangTarget",
      "name" : "CPPAGGRenderer",
      "path" : "Sources/AGGRenderer/CPPAGGRenderer",
      "product_memberships" : [
        "AGGRenderer"
      ],
      "sources" : [
        "CPPAGGRenderer.cpp"
      ],
      "target_dependencies" : [
        "AGG",
        "lodepng"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CFreeType",
      "module_type" : "SystemLibraryTarget",
      "name" : "CFreeType",
      "path" : "Sources/CFreeType",
      "product_memberships" : [
        "AGGRenderer"
      ],
      "sources" : [
      ],
      "type" : "system-target"
    },
    {
      "c99name" : "CAGGRenderer",
      "module_type" : "ClangTarget",
      "name" : "CAGGRenderer",
      "path" : "Sources/AGGRenderer/CAGGRenderer",
      "product_memberships" : [
        "AGGRenderer"
      ],
      "sources" : [
        "CAGGRenderer.cpp"
      ],
      "target_dependencies" : [
        "CPPAGGRenderer"
      ],
      "type" : "library"
    },
    {
      "c99name" : "AGGRenderer",
      "module_type" : "SwiftTarget",
      "name" : "AGGRenderer",
      "path" : "Sources/AGGRenderer/AGGRenderer",
      "product_memberships" : [
        "AGGRenderer"
      ],
      "sources" : [
        "AGGRenderer.swift"
      ],
      "target_dependencies" : [
        "CAGGRenderer",
        "SwiftPlot"
      ],
      "type" : "library"
    },
    {
      "c99name" : "AGG",
      "module_type" : "ClangTarget",
      "name" : "AGG",
      "path" : "Sources/AGG",
      "product_memberships" : [
        "AGGRenderer"
      ],
      "sources" : [
        "agg_arc.cpp",
        "agg_arrowhead.cpp",
        "agg_bezier_arc.cpp",
        "agg_bspline.cpp",
        "agg_color_rgba.cpp",
        "agg_curves.cpp",
        "agg_embedded_raster_fonts.cpp",
        "agg_font_freetype.cpp",
        "agg_gsv_text.cpp",
        "agg_image_filters.cpp",
        "agg_line_aa_basics.cpp",
        "agg_line_profile_aa.cpp",
        "agg_rounded_rect.cpp",
        "agg_sqrt_tables.cpp",
        "agg_trans_affine.cpp",
        "agg_trans_double_path.cpp",
        "agg_trans_single_path.cpp",
        "agg_trans_warp_magnifier.cpp",
        "agg_vcgen_bspline.cpp",
        "agg_vcgen_contour.cpp",
        "agg_vcgen_dash.cpp",
        "agg_vcgen_markers_term.cpp",
        "agg_vcgen_smooth_poly1.cpp",
        "agg_vcgen_stroke.cpp",
        "agg_vpgen_clip_polygon.cpp",
        "agg_vpgen_clip_polyline.cpp",
        "agg_vpgen_segmentator.cpp",
        "ctrl/agg_bezier_ctrl.cpp",
        "ctrl/agg_cbox_ctrl.cpp",
        "ctrl/agg_gamma_ctrl.cpp",
        "ctrl/agg_gamma_spline.cpp",
        "ctrl/agg_polygon_ctrl.cpp",
        "ctrl/agg_rbox_ctrl.cpp",
        "ctrl/agg_scale_ctrl.cpp",
        "ctrl/agg_slider_ctrl.cpp",
        "ctrl/agg_spline_ctrl.cpp",
        "gpc.c"
      ],
      "target_dependencies" : [
        "CFreeType"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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
warning: you may be able to install freetype2 using your system-packager:
    apt-get install libfreetype6-dev
warning: you may be able to install freetype2 using your system-packager:
    apt-get install libfreetype6-dev
Building for debugging...
[0/44] Write sources
[2/44] Compiling AGG agg_arrowhead.cpp
[2/44] Write sources
[4/44] Compiling AGG agg_bezier_arc.cpp
[5/44] Compiling AGG agg_bspline.cpp
[6/44] Compiling AGG gpc.c
[7/44] Compiling AGG agg_arc.cpp
[8/44] Compiling agg_scale_ctrl.cpp
[9/44] Compiling agg_spline_ctrl.cpp
[10/44] Compiling agg_slider_ctrl.cpp
[11/44] Compiling agg_gamma_spline.cpp
[12/44] Compiling agg_polygon_ctrl.cpp
[13/44] Compiling agg_rbox_ctrl.cpp
[14/44] Compiling agg_cbox_ctrl.cpp
[15/44] Compiling AGG agg_vpgen_segmentator.cpp
[16/44] Compiling agg_gamma_ctrl.cpp
[17/44] Compiling agg_bezier_ctrl.cpp
[18/44] Compiling AGG agg_vcgen_stroke.cpp
[19/44] Compiling AGG agg_vpgen_clip_polyline.cpp
[20/44] Compiling AGG agg_vpgen_clip_polygon.cpp
[21/44] Compiling CAGGRenderer CAGGRenderer.cpp
In file included from /host/spi-builder-workspace/Sources/AGGRenderer/CPPAGGRenderer/CPPAGGRenderer.cpp:19:
/host/spi-builder-workspace/Sources/AGG/include/agg_font_freetype.h:23:10: fatal error: 'ft2build.h' file not found
   23 | #include <ft2build.h>
      |          ^~~~~~~~~~~~
1 error generated.
[22/44] Compiling CPPAGGRenderer CPPAGGRenderer.cpp
[22/44] Write swift-version-24593BA9C3E375BF.txt
[22/44] Compiling AGG agg_vcgen_bspline.cpp
[22/44] Compiling AGG agg_vcgen_contour.cpp
[22/44] Compiling AGG agg_vcgen_dash.cpp
[22/44] Compiling lodepng lodepng.cpp
[22/44] Compiling AGG agg_vcgen_smooth_poly1.cpp
[22/44] Compiling AGG agg_vcgen_markers_term.cpp
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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
warning: you may be able to install freetype2 using your system-packager:
    apt-get install libfreetype6-dev
warning: you may be able to install freetype2 using your system-packager:
    apt-get install libfreetype6-dev
[0/1] Planning build
Building for debugging...
[0/22] Compiling AGG agg_vcgen_markers_term.cpp
[1/22] Compiling AGG agg_vcgen_smooth_poly1.cpp
[2/22] Write swift-version-24593BA9C3E375BF.txt
[3/22] Compiling AGG agg_trans_warp_magnifier.cpp
[4/22] Compiling AGG agg_vcgen_dash.cpp
[5/22] Compiling AGG agg_vcgen_bspline.cpp
[6/22] Compiling AGG agg_vcgen_contour.cpp
[7/22] Compiling AGG agg_trans_double_path.cpp
[8/22] Compiling AGG agg_rounded_rect.cpp
[9/22] Compiling AGG agg_trans_single_path.cpp
[10/22] Compiling AGG agg_sqrt_tables.cpp
[11/22] Compiling AGG agg_trans_affine.cpp
[12/22] Compiling AGG agg_line_profile_aa.cpp
[13/52] Compiling AGG agg_image_filters.cpp
[14/52] Compiling AGG agg_embedded_raster_fonts.cpp
[15/52] Compiling AGG agg_line_aa_basics.cpp
[16/52] Compiling AGG agg_color_rgba.cpp
[17/52] Compiling AGG agg_curves.cpp
[18/52] Compiling AGG agg_gsv_text.cpp
In file included from /host/spi-builder-workspace/Sources/AGG/agg_font_freetype.cpp:19:
/host/spi-builder-workspace/Sources/AGG/include/agg_font_freetype.h:23:10: fatal error: 'ft2build.h' file not found
   23 | #include <ft2build.h>
      |          ^~~~~~~~~~~~
1 error generated.
[19/52] Compiling AGG agg_font_freetype.cpp
[19/52] Compiling CPPAGGRenderer CPPAGGRenderer.cpp
[19/52] Compiling lodepng lodepng.cpp
BUILD FAILURE 6.1 wasm