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 libheif, reference 1.17.0 (29bbad), with Swift 6.1 for Wasm on 29 May 2025 14:59:49 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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/SDWebImage/libheif-Xcode.git
Reference: 1.17.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/SDWebImage/libheif-Xcode
 * tag               1.17.0     -> FETCH_HEAD
HEAD is now at 29bbada Fix CocoaPods again
Submodule path 'libheif': checked out '588b096027d620a9b9a617d1111e5a25d02d48e5'
Submodule 'libheif' (https://github.com/strukturag/libheif.git) registered for path 'libheif'
Cloning into '/host/spi-builder-workspace/libheif'...
Cloned https://github.com/SDWebImage/libheif-Xcode.git
Revision (git rev-parse @):
29bbadaf0cccf1a62138377fda7da5954d0f73ae
SUCCESS checkout https://github.com/SDWebImage/libheif-Xcode.git at 1.17.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/SDWebImage/libheif-Xcode.git
https://github.com/SDWebImage/libheif-Xcode.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "c_language_standard" : "gnu11",
  "cxx_language_standard" : "gnu++14",
  "dependencies" : [
    {
      "identity" : "libde265-xcode",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.9",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/SDWebImage/libde265-Xcode.git"
    }
  ],
  "manifest_display_name" : "libheif",
  "name" : "libheif",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.11"
    },
    {
      "name" : "ios",
      "version" : "9.0"
    },
    {
      "name" : "tvos",
      "version" : "9.0"
    },
    {
      "name" : "watchos",
      "version" : "2.0"
    }
  ],
  "products" : [
    {
      "name" : "libheif",
      "targets" : [
        "libheif"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "libheif",
      "module_type" : "ClangTarget",
      "name" : "libheif",
      "path" : ".",
      "product_dependencies" : [
        "libde265"
      ],
      "product_memberships" : [
        "libheif"
      ],
      "sources" : [
        "libheif/libheif/avif.cc",
        "libheif/libheif/bitstream.cc",
        "libheif/libheif/box.cc",
        "libheif/libheif/color-conversion/alpha.cc",
        "libheif/libheif/color-conversion/chroma_sampling.cc",
        "libheif/libheif/color-conversion/colorconversion.cc",
        "libheif/libheif/color-conversion/hdr_sdr.cc",
        "libheif/libheif/color-conversion/monochrome.cc",
        "libheif/libheif/color-conversion/rgb2rgb.cc",
        "libheif/libheif/color-conversion/rgb2yuv.cc",
        "libheif/libheif/color-conversion/rgb2yuv_sharp.cc",
        "libheif/libheif/color-conversion/yuv2rgb.cc",
        "libheif/libheif/common_utils.cc",
        "libheif/libheif/context.cc",
        "libheif/libheif/error.cc",
        "libheif/libheif/exif.cc",
        "libheif/libheif/file.cc",
        "libheif/libheif/heif.cc",
        "libheif/libheif/heif_plugin.cc",
        "libheif/libheif/heif_properties.cc",
        "libheif/libheif/heif_regions.cc",
        "libheif/libheif/hevc.cc",
        "libheif/libheif/init.cc",
        "libheif/libheif/jpeg.cc",
        "libheif/libheif/jpeg2000.cc",
        "libheif/libheif/mask_image.cc",
        "libheif/libheif/metadata_compression.cc",
        "libheif/libheif/nclx.cc",
        "libheif/libheif/pixelimage.cc",
        "libheif/libheif/plugin_registry.cc",
        "libheif/libheif/plugins/decoder_libde265.cc",
        "libheif/libheif/plugins/encoder_mask.cc",
        "libheif/libheif/plugins/encoder_uncompressed.cc",
        "libheif/libheif/region.cc",
        "libheif/libheif/uncompressed_image.cc",
        "libheif/libheif/vvc.cc"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/libheif/libheif/plugins/encoder_ffmpeg.h': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/libheif/libheif/plugins/encoder_ffmpeg.cc': File not found.
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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
Fetching https://github.com/SDWebImage/libde265-Xcode.git
[1/276] Fetching libde265-xcode
Fetched https://github.com/SDWebImage/libde265-Xcode.git from cache (0.26s)
Computing version for https://github.com/SDWebImage/libde265-Xcode.git
Computed https://github.com/SDWebImage/libde265-Xcode.git at 1.0.15 (0.87s)
Creating working copy for https://github.com/SDWebImage/libde265-Xcode.git
Working copy of https://github.com/SDWebImage/libde265-Xcode.git resolved at 1.0.15
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/libheif/libheif/plugins/encoder_ffmpeg.cc': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/libheif/libheif/plugins/encoder_ffmpeg.h': File not found.
Building for debugging...
[0/36] Compiling vvc.cc
[1/36] Compiling bitstream.cc
[2/36] Compiling alpha.cc
[3/36] Compiling chroma_sampling.cc
[4/36] Compiling avif.cc
[5/36] Compiling decoder_libde265.cc
[6/36] Compiling encoder_uncompressed.cc
[7/36] Compiling encoder_mask.cc
[8/36] Compiling colorconversion.cc
[9/36] Compiling uncompressed_image.cc
[10/36] Compiling region.cc
[11/36] Compiling metadata_compression.cc
[12/36] Compiling plugin_registry.cc
[13/36] Compiling nclx.cc
[14/36] Compiling box.cc
[15/36] Compiling pixelimage.cc
[16/36] Compiling heif_plugin.cc
[17/36] Compiling mask_image.cc
[18/36] Compiling init.cc
[19/36] Compiling jpeg.cc
[20/36] Compiling jpeg2000.cc
[21/36] Compiling hevc.cc
[22/36] Compiling common_utils.cc
[23/36] Compiling exif.cc
/host/spi-builder-workspace/libheif/libheif/heif.cc:1636:10: warning: result of comparison of constant 4294967295 with expression of type 'uint16_t' (aka 'unsigned short') is always false [-Wtautological-constant-out-of-range-compare]
 1636 |       cp > std::numeric_limits<std::underlying_type<heif_color_primaries>::type>::max()) {
      |       ~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/libheif/libheif/heif.cc:1677:10: warning: result of comparison of constant 4294967295 with expression of type 'uint16_t' (aka 'unsigned short') is always false [-Wtautological-constant-out-of-range-compare]
 1677 |       tc > std::numeric_limits<std::underlying_type<heif_transfer_characteristics>::type>::max()) {
      |       ~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/libheif/libheif/heif.cc:1714:10: warning: result of comparison of constant 4294967295 with expression of type 'uint16_t' (aka 'unsigned short') is always false [-Wtautological-constant-out-of-range-compare]
 1714 |       mc > std::numeric_limits<std::underlying_type<heif_matrix_coefficients>::type>::max()) {
      |       ~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/libheif/libheif/heif.cc:1922:17: error: implicit instantiation of undefined template 'std::basic_ofstream<char>'
 1922 |   std::ofstream ostr(filename, std::ios_base::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:26:28: note: template is declared here
   26 | class _LIBCPP_TEMPLATE_VIS basic_ofstream;
      |                            ^
3 warnings and 1 error generated.
[24/36] Compiling heif.cc
[24/36] Compiling heif_properties.cc
[24/36] Compiling context.cc
[24/36] Compiling rgb2yuv_sharp.cc
[24/36] Compiling yuv2rgb.cc
[24/36] Compiling error.cc
[24/36] Compiling file.cc
[24/36] Compiling heif_regions.cc
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/libheif/libheif/plugins/encoder_ffmpeg.h': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/libheif/libheif/plugins/encoder_ffmpeg.cc': File not found.
[0/1] Planning build
Building for debugging...
[0/12] Compiling error.cc
[1/12] Compiling rgb2yuv_sharp.cc
[2/12] Compiling yuv2rgb.cc
[3/12] Compiling heif_properties.cc
/host/spi-builder-workspace/libheif/libheif/file.cc:79:62: error: implicit instantiation of undefined template 'std::basic_ifstream<char>'
   79 |   auto input_stream_istr = std::unique_ptr<std::istream>(new std::ifstream(input_filename, std::ios_base::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;
      |                            ^
1 error generated.
[4/12] Compiling file.cc
[4/12] Compiling hdr_sdr.cc
[4/12] Compiling monochrome.cc
[4/12] Compiling rgb2yuv.cc
[4/12] Compiling rgb2rgb.cc
/host/spi-builder-workspace/libheif/libheif/heif.cc:1636:10: warning: result of comparison of constant 4294967295 with expression of type 'uint16_t' (aka 'unsigned short') is always false [-Wtautological-constant-out-of-range-compare]
 1636 |       cp > std::numeric_limits<std::underlying_type<heif_color_primaries>::type>::max()) {
      |       ~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/libheif/libheif/heif.cc:1677:10: warning: result of comparison of constant 4294967295 with expression of type 'uint16_t' (aka 'unsigned short') is always false [-Wtautological-constant-out-of-range-compare]
 1677 |       tc > std::numeric_limits<std::underlying_type<heif_transfer_characteristics>::type>::max()) {
      |       ~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/libheif/libheif/heif.cc:1714:10: warning: result of comparison of constant 4294967295 with expression of type 'uint16_t' (aka 'unsigned short') is always false [-Wtautological-constant-out-of-range-compare]
 1714 |       mc > std::numeric_limits<std::underlying_type<heif_matrix_coefficients>::type>::max()) {
      |       ~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/libheif/libheif/heif.cc:1922:17: error: implicit instantiation of undefined template 'std::basic_ofstream<char>'
 1922 |   std::ofstream ostr(filename, std::ios_base::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:26:28: note: template is declared here
   26 | class _LIBCPP_TEMPLATE_VIS basic_ofstream;
      |                            ^
[4/12] Compiling heif.cc
[4/12] Compiling context.cc
[4/12] Compiling heif_regions.cc
BUILD FAILURE 6.1 wasm