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 PLzmaSDK, reference 1.5.0 (d42ec4), with Swift 6.1 for Wasm on 30 May 2025 02:17:18 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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/OlehKulykov/PLzmaSDK.git
Reference: 1.5.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/OlehKulykov/PLzmaSDK
 * tag               1.5.0      -> FETCH_HEAD
HEAD is now at d42ec41 Release 1.5.0
Cloned https://github.com/OlehKulykov/PLzmaSDK.git
Revision (git rev-parse @):
d42ec415ffa0fa45bafd09b9e36e7bf8dfc6c136
SUCCESS checkout https://github.com/OlehKulykov/PLzmaSDK.git at 1.5.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/OlehKulykov/PLzmaSDK.git
https://github.com/OlehKulykov/PLzmaSDK.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "c_language_standard" : "c11",
  "cxx_language_standard" : "c++11",
  "dependencies" : [
  ],
  "manifest_display_name" : "PLzmaSDK",
  "name" : "PLzmaSDK",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "PLzmaSDK",
      "targets" : [
        "PLzmaSDK"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "PLzmaSDK-Static",
      "targets" : [
        "PLzmaSDK"
      ],
      "type" : {
        "library" : [
          "static"
        ]
      }
    },
    {
      "name" : "PLzmaSDK-Dynamic",
      "targets" : [
        "PLzmaSDK"
      ],
      "type" : {
        "library" : [
          "dynamic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "plzma_test_files",
      "module_type" : "ClangTarget",
      "name" : "plzma_test_files",
      "path" : "test_files",
      "sources" : [
        "file__10_7z.c",
        "file__11_7z.c",
        "file__12_7z.c",
        "file__13_7z.c",
        "file__14_7z.c",
        "file__15_tar.c",
        "file__16_tar_xz.c",
        "file__17_jpg_xz.c",
        "file__18_7z_001.c",
        "file__18_7z_002.c",
        "file__18_7z_003.c",
        "file__1_7z.c",
        "file__2_7z.c",
        "file__3_7z.c",
        "file__4_7z.c",
        "file__5_7z.c",
        "file__6_7z.c",
        "file__7_7z.c",
        "file__8_7z.c",
        "file__9_7z.c",
        "file__munchen_jpg.c",
        "file__names_txt.c",
        "file__shutuptakemoney_jpg.c",
        "file__southpark_jpg.c",
        "file__zombies_jpg.c"
      ],
      "type" : "library"
    },
    {
      "c99name" : "libplzma",
      "module_type" : "ClangTarget",
      "name" : "libplzma",
      "path" : "src",
      "product_memberships" : [
        "PLzmaSDK",
        "PLzmaSDK-Static",
        "PLzmaSDK-Dynamic"
      ],
      "sources" : [
        "Asm/arm64/7zAsm.S",
        "Asm/arm64/LzmaDecOpt.S",
        "C/7zCrc.c",
        "C/7zCrcOpt.c",
        "C/7zStream.c",
        "C/Aes.c",
        "C/AesOpt.c",
        "C/Alloc.c",
        "C/Bcj2.c",
        "C/Bcj2Enc.c",
        "C/Bra.c",
        "C/Bra86.c",
        "C/BraIA64.c",
        "C/CpuArch.c",
        "C/Delta.c",
        "C/LzFind.c",
        "C/LzFindMt.c",
        "C/LzFindOpt.c",
        "C/Lzma2Dec.c",
        "C/Lzma2DecMt.c",
        "C/Lzma2Enc.c",
        "C/LzmaDec.c",
        "C/LzmaEnc.c",
        "C/LzmaLib.c",
        "C/MtCoder.c",
        "C/Ppmd7.c",
        "C/Ppmd7Dec.c",
        "C/Ppmd7Enc.c",
        "C/Sha256.c",
        "C/Sha256Opt.c",
        "C/Sort.c",
        "C/SwapBytes.c",
        "C/Threads.c",
        "C/Xz.c",
        "C/XzCrc64.c",
        "C/XzCrc64Opt.c",
        "C/XzDec.c",
        "C/XzEnc.c",
        "C/XzIn.c",
        "CPP/7zip/Archive/7z/7zDecode.cpp",
        "CPP/7zip/Archive/7z/7zEncode.cpp",
        "CPP/7zip/Archive/7z/7zExtract.cpp",
        "CPP/7zip/Archive/7z/7zFolderInStream.cpp",
        "CPP/7zip/Archive/7z/7zHandler.cpp",
        "CPP/7zip/Archive/7z/7zHandlerOut.cpp",
        "CPP/7zip/Archive/7z/7zHeader.cpp",
        "CPP/7zip/Archive/7z/7zIn.cpp",
        "CPP/7zip/Archive/7z/7zOut.cpp",
        "CPP/7zip/Archive/7z/7zProperties.cpp",
        "CPP/7zip/Archive/7z/7zRegister.cpp",
        "CPP/7zip/Archive/7z/7zUpdate.cpp",
        "CPP/7zip/Archive/ArchiveExports.cpp",
        "CPP/7zip/Archive/Common/CoderMixer2.cpp",
        "CPP/7zip/Archive/Common/DummyOutStream.cpp",
        "CPP/7zip/Archive/Common/HandlerOut.cpp",
        "CPP/7zip/Archive/Common/InStreamWithCRC.cpp",
        "CPP/7zip/Archive/Common/ItemNameUtils.cpp",
        "CPP/7zip/Archive/Common/MultiStream.cpp",
        "CPP/7zip/Archive/Common/OutStreamWithCRC.cpp",
        "CPP/7zip/Archive/DllExports2.cpp",
        "CPP/7zip/Archive/LzmaHandler.cpp",
        "CPP/7zip/Archive/SplitHandler.cpp",
        "CPP/7zip/Archive/Tar/TarHandler.cpp",
        "CPP/7zip/Archive/Tar/TarHandlerOut.cpp",
        "CPP/7zip/Archive/Tar/TarHeader.cpp",
        "CPP/7zip/Archive/Tar/TarIn.cpp",
        "CPP/7zip/Archive/Tar/TarOut.cpp",
        "CPP/7zip/Archive/Tar/TarRegister.cpp",
        "CPP/7zip/Archive/Tar/TarUpdate.cpp",
        "CPP/7zip/Archive/XzHandler.cpp",
        "CPP/7zip/Common/CWrappers.cpp",
        "CPP/7zip/Common/CreateCoder.cpp",
        "CPP/7zip/Common/FileStreams.cpp",
        "CPP/7zip/Common/FilterCoder.cpp",
        "CPP/7zip/Common/InBuffer.cpp",
        "CPP/7zip/Common/InOutTempBuffer.cpp",
        "CPP/7zip/Common/LimitedStreams.cpp",
        "CPP/7zip/Common/MethodProps.cpp",
        "CPP/7zip/Common/OffsetStream.cpp",
        "CPP/7zip/Common/OutBuffer.cpp",
        "CPP/7zip/Common/ProgressUtils.cpp",
        "CPP/7zip/Common/PropId.cpp",
        "CPP/7zip/Common/StreamObjects.cpp",
        "CPP/7zip/Common/StreamUtils.cpp",
        "CPP/7zip/Common/UniqBlocks.cpp",
        "CPP/7zip/Common/VirtThread.cpp",
        "CPP/7zip/Compress/Bcj2Coder.cpp",
        "CPP/7zip/Compress/Bcj2Register.cpp",
        "CPP/7zip/Compress/BcjCoder.cpp",
        "CPP/7zip/Compress/BcjRegister.cpp",
        "CPP/7zip/Compress/BranchMisc.cpp",
        "CPP/7zip/Compress/BranchRegister.cpp",
        "CPP/7zip/Compress/ByteSwap.cpp",
        "CPP/7zip/Compress/CodecExports.cpp",
        "CPP/7zip/Compress/CopyCoder.cpp",
        "CPP/7zip/Compress/CopyRegister.cpp",
        "CPP/7zip/Compress/DeltaFilter.cpp",
        "CPP/7zip/Compress/Lzma2Decoder.cpp",
        "CPP/7zip/Compress/Lzma2Encoder.cpp",
        "CPP/7zip/Compress/Lzma2Register.cpp",
        "CPP/7zip/Compress/LzmaDecoder.cpp",
        "CPP/7zip/Compress/LzmaEncoder.cpp",
        "CPP/7zip/Compress/LzmaRegister.cpp",
        "CPP/7zip/Compress/PpmdDecoder.cpp",
        "CPP/7zip/Compress/PpmdEncoder.cpp",
        "CPP/7zip/Compress/PpmdRegister.cpp",
        "CPP/7zip/Compress/XzDecoder.cpp",
        "CPP/7zip/Compress/XzEncoder.cpp",
        "CPP/7zip/Crypto/7zAes.cpp",
        "CPP/7zip/Crypto/7zAesRegister.cpp",
        "CPP/7zip/Crypto/MyAes.cpp",
        "CPP/7zip/Crypto/MyAesReg.cpp",
        "CPP/7zip/Crypto/RandGen.cpp",
        "CPP/Common/CRC.cpp",
        "CPP/Common/CrcReg.cpp",
        "CPP/Common/IntToString.cpp",
        "CPP/Common/MyString.cpp",
        "CPP/Common/MyWindows.cpp",
        "CPP/Common/NewHandler.cpp",
        "CPP/Common/Sha256Reg.cpp",
        "CPP/Common/StringConvert.cpp",
        "CPP/Common/StringToInt.cpp",
        "CPP/Common/UTFConvert.cpp",
        "CPP/Common/Wildcard.cpp",
        "CPP/Common/XzCrc64Reg.cpp",
        "CPP/Windows/FileDir.cpp",
        "CPP/Windows/FileFind.cpp",
        "CPP/Windows/FileIO.cpp",
        "CPP/Windows/FileName.cpp",
        "CPP/Windows/PropVariant.cpp",
        "CPP/Windows/PropVariantConv.cpp",
        "CPP/Windows/System.cpp",
        "CPP/Windows/TimeUtils.cpp",
        "plzma.cpp",
        "plzma_base_callback.cpp",
        "plzma_common.cpp",
        "plzma_decoder_impl.cpp",
        "plzma_encoder_impl.cpp",
        "plzma_exception.cpp",
        "plzma_extract_callback.cpp",
        "plzma_file_utils.cpp",
        "plzma_in_streams.cpp",
        "plzma_item.cpp",
        "plzma_open_callback.cpp",
        "plzma_out_streams.cpp",
        "plzma_path.cpp",
        "plzma_path_utils.cpp",
        "plzma_progress.cpp",
        "plzma_raw_heap_memory.cpp",
        "plzma_string.cpp",
        "plzma_update_callback.cpp"
      ],
      "type" : "library"
    },
    {
      "c99name" : "PLzmaSDKTests",
      "module_type" : "SwiftTarget",
      "name" : "PLzmaSDKTests",
      "path" : "swift_pm_tests",
      "sources" : [
        "LinuxMain.swift",
        "plzmaTests/Compress.swift",
        "plzmaTests/Global.swift",
        "plzmaTests/OpenAndList.swift",
        "plzmaTests/TypesTests.swift",
        "plzmaTests/XCTestManifests.swift",
        "plzmaTests/plzmaTests.swift"
      ],
      "target_dependencies" : [
        "PLzmaSDK",
        "libplzma",
        "plzma_test_files"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PLzmaSDK",
      "module_type" : "SwiftTarget",
      "name" : "PLzmaSDK",
      "path" : "swift",
      "product_memberships" : [
        "PLzmaSDK",
        "PLzmaSDK-Static",
        "PLzmaSDK-Dynamic"
      ],
      "sources" : [
        "Decoder.swift",
        "Encoder.swift",
        "Exception.swift",
        "Global.swift",
        "InStream.swift",
        "Item.swift",
        "ItemArray.swift",
        "ItemOutStreamArray.swift",
        "OutMultiStream.swift",
        "OutStream.swift",
        "Path.swift",
        "String+Plzma.swift",
        "Types.swift"
      ],
      "target_dependencies" : [
        "libplzma"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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/183] Compiling BraIA64.c
[1/183] Compiling 7zCrc.c
[2/183] Compiling Bra86.c
[3/183] Compiling LzmaLib.c
[4/183] Compiling Bra.c
[5/183] Compiling LzmaDecOpt.S
[6/183] Compiling Bcj2.c
[7/183] Compiling Bcj2Enc.c
[8/183] Compiling plzma_test_files file__southpark_jpg.c
[9/183] Compiling plzma_test_files file__names_txt.c
[10/183] Compiling plzma_test_files file__zombies_jpg.c
[11/183] Write swift-version-24593BA9C3E375BF.txt
[12/183] Compiling plzma_test_files file__munchen_jpg.c
[13/183] Compiling plzma_test_files file__shutuptakemoney_jpg.c
[14/183] Compiling plzma_test_files file__7_7z.c
[15/183] Compiling plzma_test_files file__8_7z.c
[16/183] Compiling plzma_test_files file__9_7z.c
[17/183] Compiling plzma_test_files file__18_7z_003.c
[18/183] Compiling plzma_test_files file__5_7z.c
[19/183] Compiling plzma_test_files file__18_7z_002.c
[19/183] Compiling plzma_test_files file__4_7z.c
[21/183] Compiling plzma_test_files file__6_7z.c
[22/183] Compiling plzma_test_files file__2_7z.c
[23/183] Compiling plzma_test_files file__3_7z.c
[24/183] Compiling plzma_test_files file__1_7z.c
[25/183] Compiling plzma_test_files file__17_jpg_xz.c
[26/183] Compiling plzma_test_files file__18_7z_001.c
[27/183] Compiling plzma_test_files file__13_7z.c
[28/183] Compiling libplzma plzma_update_callback.cpp
[29/183] Compiling plzma_test_files file__14_7z.c
[30/183] Compiling plzma_test_files file__16_tar_xz.c
[31/183] Compiling plzma_test_files file__12_7z.c
[32/183] Compiling plzma_test_files file__15_tar.c
[33/183] Compiling libplzma plzma_raw_heap_memory.cpp
[34/183] Compiling plzma_test_files file__11_7z.c
/host/spi-builder-workspace/src/plzma_path_utils.cpp:86:35: error: no member named 'readdir_r' in the global namespace
   86 |                 if ( (readRes = ::readdir_r(dir.dir, &d, &dp)) == 0 && dp) {
      |                                 ~~^
1 error generated.
[35/183] Compiling libplzma plzma_path_utils.cpp
[35/183] Compiling libplzma plzma_open_callback.cpp
[35/183] Compiling libplzma plzma_item.cpp
[35/183] Compiling libplzma plzma_out_streams.cpp
/host/spi-builder-workspace/src/plzma_path.cpp:261:29: error: no member named 'readdir_r' in the global namespace
  261 |                 readRes = ::readdir_r(_dir, &d, &dp);
      |                           ~~^
[35/183] Compiling libplzma plzma_path.cpp
[35/183] Compiling libplzma plzma_string.cpp
[35/183] Compiling plzma_test_files file__10_7z.c
[35/183] Compiling libplzma plzma_progress.cpp
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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/148] Write sources
/host/spi-builder-workspace/src/plzma_path_utils.cpp:86:35: error: no member named 'readdir_r' in the global namespace
   86 |                 if ( (readRes = ::readdir_r(dir.dir, &d, &dp)) == 0 && dp) {
      |                                 ~~^
1 error generated.
[1/149] Compiling libplzma plzma_path_utils.cpp
[1/149] Compiling libplzma plzma_out_streams.cpp
[1/149] Compiling libplzma plzma_item.cpp
[1/149] Compiling plzma_test_files file__10_7z.c
[1/149] Compiling libplzma plzma_string.cpp
[1/149] Compiling libplzma plzma_open_callback.cpp
[1/149] Compiling libplzma plzma_path.cpp
[1/149] Compiling libplzma plzma_progress.cpp
BUILD FAILURE 6.1 wasm