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 master (94a7e5), with Swift 6.2 (beta) for Wasm on 9 Jul 2025 21:25:12 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.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/OlehKulykov/PLzmaSDK.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/OlehKulykov/PLzmaSDK
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 94a7e50 Update README.md
Cloned https://github.com/OlehKulykov/PLzmaSDK.git
Revision (git rev-parse @):
94a7e506f364d589d9e2c7d1c4552b0344e86c65
SUCCESS checkout https://github.com/OlehKulykov/PLzmaSDK.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/OlehKulykov/PLzmaSDK.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:44384f43f933eaa0f42803e9ef7c3d8388c5841ccc831a15a5edf63d8c273423
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Found unhandled resource at /host/spi-builder-workspace/resources/PrivacyInfo.xcprivacy
Building for debugging...
[0/184] Compiling 7zCrc.c
[1/184] Compiling LzmaDecOpt.S
[2/184] Write swift-version-24593BA9C3E375BF.txt
[3/184] Compiling TimeUtils.cpp
[4/184] Compiling libplzma plzma_common.cpp
[5/184] Compiling plzma_test_files file__names_txt.c
[6/184] Compiling plzma_test_files file__shutuptakemoney_jpg.c
[7/184] Compiling plzma_test_files file__southpark_jpg.c
[8/184] Compiling plzma_test_files file__zombies_jpg.c
[9/184] Compiling plzma_test_files file__munchen_jpg.c
In file included from /host/spi-builder-workspace/src/plzma_base_callback.cpp:30:
In file included from /host/spi-builder-workspace/src/plzma_base_callback.hpp:35:
/host/spi-builder-workspace/src/plzma_mutex.hpp:55:18: error: no type named 'mutex' in namespace 'std'
   55 |     typedef std::mutex Mutex;
      |             ~~~~~^
/host/spi-builder-workspace/src/plzma_mutex.hpp:167:23: error: member reference base type 'Mutex' (aka 'int') is not a structure or union
  167 |                 _mutex.lock();
      |                 ~~~~~~^~~~~
/host/spi-builder-workspace/src/plzma_mutex.hpp:176:23: error: member reference base type 'Mutex' (aka 'int') is not a structure or union
  176 |                 _mutex.unlock();
      |                 ~~~~~~^~~~~~~
/host/spi-builder-workspace/src/plzma_mutex.hpp:186:27: error: member reference base type 'Mutex' (aka 'int') is not a structure or union
  186 |                     _mutex.lock();
      |                     ~~~~~~^~~~~
/host/spi-builder-workspace/src/plzma_mutex.hpp:195:27: error: member reference base type 'Mutex' (aka 'int') is not a structure or union
  195 |                     _mutex.unlock();
      |                     ~~~~~~^~~~~~~
In file included from /host/spi-builder-workspace/src/plzma_base_callback.cpp:30:
In file included from /host/spi-builder-workspace/src/plzma_base_callback.hpp:36:
/host/spi-builder-workspace/src/plzma_progress.hpp:108:9: error: no type named 'mutex' in namespace 'std'
  108 |         LIBPLZMA_MUTEX(_mutex)
      |         ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/plzma_mutex.hpp:204:35: note: expanded from macro 'LIBPLZMA_MUTEX'
  204 | #define LIBPLZMA_MUTEX(NAME) std::mutex NAME;
      |                              ~~~~~^
In file included from /host/spi-builder-workspace/src/plzma_base_callback.cpp:30:
/host/spi-builder-workspace/src/plzma_base_callback.hpp:49:9: error: no type named 'mutex' in namespace 'std'
   49 |         LIBPLZMA_MUTEX(mutable _mutex)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/plzma_mutex.hpp:204:35: note: expanded from macro 'LIBPLZMA_MUTEX'
  204 | #define LIBPLZMA_MUTEX(NAME) std::mutex NAME;
      |                              ~~~~~^
/host/spi-builder-workspace/src/plzma_base_callback.cpp:42:13: error: no member named 'mutex' in namespace 'std'
   42 |             LIBPLZMA_LOCKGUARD(lock, _mutex)
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/plzma_mutex.hpp:206:67: note: expanded from macro 'LIBPLZMA_LOCKGUARD'
  206 | #define LIBPLZMA_LOCKGUARD(NAME,MUTEX) const std::lock_guard<std::mutex> NAME(MUTEX);
      |                                                              ~~~~~^
/host/spi-builder-workspace/src/plzma_base_callback.cpp:74:13: error: no member named 'mutex' in namespace 'std'
   74 |             LIBPLZMA_LOCKGUARD(lock, _mutex)
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/plzma_mutex.hpp:206:67: note: expanded from macro 'LIBPLZMA_LOCKGUARD'
  206 | #define LIBPLZMA_LOCKGUARD(NAME,MUTEX) const std::lock_guard<std::mutex> NAME(MUTEX);
      |                                                              ~~~~~^
/host/spi-builder-workspace/src/plzma_base_callback.cpp:98:13: error: no member named 'mutex' in namespace 'std'
   98 |             LIBPLZMA_LOCKGUARD(lock, _mutex)
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/plzma_mutex.hpp:206:67: note: expanded from macro 'LIBPLZMA_LOCKGUARD'
  206 | #define LIBPLZMA_LOCKGUARD(NAME,MUTEX) const std::lock_guard<std::mutex> NAME(MUTEX);
      |                                                              ~~~~~^
10 errors generated.
[10/184] Compiling libplzma plzma_base_callback.cpp
[10/184] Compiling plzma_test_files file__7_7z.c
[10/184] Compiling plzma_test_files file__9_7z.c
[10/184] Compiling plzma_test_files file__6_7z.c
[10/184] Compiling plzma_test_files file__8_7z.c
[10/184] Compiling libplzma plzma_decoder_impl.cpp
In file included from /host/spi-builder-workspace/src/plzma.cpp:481:
In file included from /host/spi-builder-workspace/src/plzma_in_streams.hpp:35:
/host/spi-builder-workspace/src/plzma_mutex.hpp:55:18: error: no type named 'mutex' in namespace 'std'
   55 |     typedef std::mutex Mutex;
      |             ~~~~~^
/host/spi-builder-workspace/src/plzma_mutex.hpp:167:23: error: member reference base type 'Mutex' (aka 'int') is not a structure or union
  167 |                 _mutex.lock();
      |                 ~~~~~~^~~~~
/host/spi-builder-workspace/src/plzma_mutex.hpp:176:23: error: member reference base type 'Mutex' (aka 'int') is not a structure or union
  176 |                 _mutex.unlock();
      |                 ~~~~~~^~~~~~~
/host/spi-builder-workspace/src/plzma_mutex.hpp:186:27: error: member reference base type 'Mutex' (aka 'int') is not a structure or union
  186 |                     _mutex.lock();
      |                     ~~~~~~^~~~~
/host/spi-builder-workspace/src/plzma_mutex.hpp:195:27: error: member reference base type 'Mutex' (aka 'int') is not a structure or union
  195 |                     _mutex.unlock();
      |                     ~~~~~~^~~~~~~
In file included from /host/spi-builder-workspace/src/plzma.cpp:481:
/host/spi-builder-workspace/src/plzma_in_streams.hpp:54:9: error: no type named 'mutex' in namespace 'std'
   54 |         LIBPLZMA_MUTEX(mutable _mutex)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/plzma_mutex.hpp:204:35: note: expanded from macro 'LIBPLZMA_MUTEX'
  204 | #define LIBPLZMA_MUTEX(NAME) std::mutex NAME;
      |                              ~~~~~^
In file included from /host/spi-builder-workspace/src/plzma.cpp:481:
/host/spi-builder-workspace/src/plzma_in_streams.hpp:85:9: error: cannot initialize a variable of type 'IInStream *' with an rvalue of type 'plzma::InFileStream *'
   85 |         Z7_COM_UNKNOWN_IMP_1(IInStream)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:419:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_1'
  419 |   Z7_COM_QI_ENTRY_UNKNOWN(i) \
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:345:10: note: expanded from macro 'Z7_COM_QI_ENTRY_UNKNOWN'
  345 |     { i *ti = this;  IUnknown *tu = ti;  *outObject = tu; }
      |          ^    ~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:406:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_SPEC'
  406 |   i \
      |   ^
In file included from /host/spi-builder-workspace/src/plzma.cpp:481:
/host/spi-builder-workspace/src/plzma_in_streams.hpp:85:9: error: cannot initialize a variable of type 'IInStream *' with an rvalue of type 'plzma::InFileStream *'
   85 |         Z7_COM_UNKNOWN_IMP_1(IInStream)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:420:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_1'
  420 |   Z7_COM_QI_ENTRY(i) \
      |   ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:336:10: note: expanded from macro 'Z7_COM_QI_ENTRY'
  336 |     { i *ti = this;  *outObject = ti; }
      |          ^    ~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:406:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_SPEC'
  406 |   i \
      |   ^
In file included from /host/spi-builder-workspace/src/plzma.cpp:481:
/host/spi-builder-workspace/src/plzma_in_streams.hpp:116:9: error: cannot initialize a variable of type 'IInStream *' with an rvalue of type 'plzma::InMemStream *'
  116 |         Z7_COM_UNKNOWN_IMP_1(IInStream)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:419:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_1'
  419 |   Z7_COM_QI_ENTRY_UNKNOWN(i) \
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:345:10: note: expanded from macro 'Z7_COM_QI_ENTRY_UNKNOWN'
  345 |     { i *ti = this;  IUnknown *tu = ti;  *outObject = tu; }
      |          ^    ~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:406:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_SPEC'
  406 |   i \
      |   ^
In file included from /host/spi-builder-workspace/src/plzma.cpp:481:
/host/spi-builder-workspace/src/plzma_in_streams.hpp:116:9: error: cannot initialize a variable of type 'IInStream *' with an rvalue of type 'plzma::InMemStream *'
  116 |         Z7_COM_UNKNOWN_IMP_1(IInStream)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:420:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_1'
  420 |   Z7_COM_QI_ENTRY(i) \
      |   ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:336:10: note: expanded from macro 'Z7_COM_QI_ENTRY'
  336 |     { i *ti = this;  *outObject = ti; }
      |          ^    ~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:406:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_SPEC'
  406 |   i \
      |   ^
In file included from /host/spi-builder-workspace/src/plzma.cpp:481:
/host/spi-builder-workspace/src/plzma_in_streams.hpp:147:9: error: cannot initialize a variable of type 'IInStream *' with an rvalue of type 'plzma::InCallbackStream *'
  147 |         Z7_COM_UNKNOWN_IMP_1(IInStream)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:419:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_1'
  419 |   Z7_COM_QI_ENTRY_UNKNOWN(i) \
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:345:10: note: expanded from macro 'Z7_COM_QI_ENTRY_UNKNOWN'
  345 |     { i *ti = this;  IUnknown *tu = ti;  *outObject = tu; }
      |          ^    ~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:406:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_SPEC'
  406 |   i \
      |   ^
In file included from /host/spi-builder-workspace/src/plzma.cpp:481:
/host/spi-builder-workspace/src/plzma_in_streams.hpp:147:9: error: cannot initialize a variable of type 'IInStream *' with an rvalue of type 'plzma::InCallbackStream *'
  147 |         Z7_COM_UNKNOWN_IMP_1(IInStream)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:420:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_1'
  420 |   Z7_COM_QI_ENTRY(i) \
      |   ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:336:10: note: expanded from macro 'Z7_COM_QI_ENTRY'
  336 |     { i *ti = this;  *outObject = ti; }
      |          ^    ~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:406:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_SPEC'
  406 |   i \
      |   ^
In file included from /host/spi-builder-workspace/src/plzma.cpp:481:
/host/spi-builder-workspace/src/plzma_in_streams.hpp:178:9: error: cannot initialize a variable of type 'IInStream *' with an rvalue of type 'plzma::InMultiStream *'
  178 |         Z7_COM_UNKNOWN_IMP_1(IInStream)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:419:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_1'
  419 |   Z7_COM_QI_ENTRY_UNKNOWN(i) \
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:345:10: note: expanded from macro 'Z7_COM_QI_ENTRY_UNKNOWN'
  345 |     { i *ti = this;  IUnknown *tu = ti;  *outObject = tu; }
      |          ^    ~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:406:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_SPEC'
  406 |   i \
      |   ^
In file included from /host/spi-builder-workspace/src/plzma.cpp:481:
/host/spi-builder-workspace/src/plzma_in_streams.hpp:178:9: error: cannot initialize a variable of type 'IInStream *' with an rvalue of type 'plzma::InMultiStream *'
  178 |         Z7_COM_UNKNOWN_IMP_1(IInStream)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:420:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_1'
  420 |   Z7_COM_QI_ENTRY(i) \
      |   ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:336:10: note: expanded from macro 'Z7_COM_QI_ENTRY'
  336 |     { i *ti = this;  *outObject = ti; }
      |          ^    ~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:406:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_SPEC'
  406 |   i \
      |   ^
In file included from /host/spi-builder-workspace/src/plzma.cpp:482:
In file included from /host/spi-builder-workspace/src/plzma_out_streams.hpp:39:
/host/spi-builder-workspace/src/plzma_progress.hpp:108:9: error: no type named 'mutex' in namespace 'std'
  108 |         LIBPLZMA_MUTEX(_mutex)
      |         ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/plzma_mutex.hpp:204:35: note: expanded from macro 'LIBPLZMA_MUTEX'
  204 | #define LIBPLZMA_MUTEX(NAME) std::mutex NAME;
      |                              ~~~~~^
In file included from /host/spi-builder-workspace/src/plzma.cpp:482:
/host/spi-builder-workspace/src/plzma_out_streams.hpp:52:9: error: no type named 'mutex' in namespace 'std'
   52 |         LIBPLZMA_MUTEX(mutable _mutex)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/plzma_mutex.hpp:204:35: note: expanded from macro 'LIBPLZMA_MUTEX'
  204 | #define LIBPLZMA_MUTEX(NAME) std::mutex NAME;
      |                              ~~~~~^
In file included from /host/spi-builder-workspace/src/plzma.cpp:482:
/host/spi-builder-workspace/src/plzma_out_streams.hpp:86:9: error: cannot initialize a variable of type 'IOutStream *' with an rvalue of type 'plzma::OutFileStream *'
   86 |         Z7_COM_UNKNOWN_IMP_1(IOutStream)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:419:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_1'
  419 |   Z7_COM_QI_ENTRY_UNKNOWN(i) \
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:345:10: note: expanded from macro 'Z7_COM_QI_ENTRY_UNKNOWN'
  345 |     { i *ti = this;  IUnknown *tu = ti;  *outObject = tu; }
      |          ^    ~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:406:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_SPEC'
  406 |   i \
      |   ^
In file included from /host/spi-builder-workspace/src/plzma.cpp:482:
/host/spi-builder-workspace/src/plzma_out_streams.hpp:86:9: error: cannot initialize a variable of type 'IOutStream *' with an rvalue of type 'plzma::OutFileStream *'
   86 |         Z7_COM_UNKNOWN_IMP_1(IOutStream)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:420:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_1'
  420 |   Z7_COM_QI_ENTRY(i) \
      |   ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:336:10: note: expanded from macro 'Z7_COM_QI_ENTRY'
  336 |     { i *ti = this;  *outObject = ti; }
      |          ^    ~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:406:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_SPEC'
  406 |   i \
      |   ^
In file included from /host/spi-builder-workspace/src/plzma.cpp:482:
/host/spi-builder-workspace/src/plzma_out_streams.hpp:118:9: error: cannot initialize a variable of type 'IOutStream *' with an rvalue of type 'plzma::OutMemStream *'
  118 |         Z7_COM_UNKNOWN_IMP_1(IOutStream)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:419:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_1'
  419 |   Z7_COM_QI_ENTRY_UNKNOWN(i) \
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:345:10: note: expanded from macro 'Z7_COM_QI_ENTRY_UNKNOWN'
  345 |     { i *ti = this;  IUnknown *tu = ti;  *outObject = tu; }
      |          ^    ~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:406:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_SPEC'
  406 |   i \
      |   ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
In file included from /host/spi-builder-workspace/src/plzma_encoder_impl.cpp:30:
In file included from /host/spi-builder-workspace/src/plzma_encoder_impl.hpp:35:
In file included from /host/spi-builder-workspace/src/plzma_in_streams.hpp:35:
/host/spi-builder-workspace/src/plzma_mutex.hpp:55:18: error: no type named 'mutex' in namespace 'std'
   55 |     typedef std::mutex Mutex;
      |             ~~~~~^
/host/spi-builder-workspace/src/plzma_mutex.hpp:167:23: error: member reference base type 'Mutex' (aka 'int') is not a structure or union
  167 |                 _mutex.lock();
      |                 ~~~~~~^~~~~
/host/spi-builder-workspace/src/plzma_mutex.hpp:176:23: error: member reference base type 'Mutex' (aka 'int') is not a structure or union
  176 |                 _mutex.unlock();
      |                 ~~~~~~^~~~~~~
/host/spi-builder-workspace/src/plzma_mutex.hpp:186:27: error: member reference base type 'Mutex' (aka 'int') is not a structure or union
  186 |                     _mutex.lock();
      |                     ~~~~~~^~~~~
/host/spi-builder-workspace/src/plzma_mutex.hpp:195:27: error: member reference base type 'Mutex' (aka 'int') is not a structure or union
  195 |                     _mutex.unlock();
      |                     ~~~~~~^~~~~~~
In file included from /host/spi-builder-workspace/src/plzma_encoder_impl.cpp:30:
In file included from /host/spi-builder-workspace/src/plzma_encoder_impl.hpp:35:
/host/spi-builder-workspace/src/plzma_in_streams.hpp:54:9: error: no type named 'mutex' in namespace 'std'
   54 |         LIBPLZMA_MUTEX(mutable _mutex)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/plzma_mutex.hpp:204:35: note: expanded from macro 'LIBPLZMA_MUTEX'
  204 | #define LIBPLZMA_MUTEX(NAME) std::mutex NAME;
      |                              ~~~~~^
In file included from /host/spi-builder-workspace/src/plzma_encoder_impl.cpp:30:
In file included from /host/spi-builder-workspace/src/plzma_encoder_impl.hpp:35:
/host/spi-builder-workspace/src/plzma_in_streams.hpp:85:9: error: cannot initialize a variable of type 'IInStream *' with an rvalue of type 'plzma::InFileStream *'
   85 |         Z7_COM_UNKNOWN_IMP_1(IInStream)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:419:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_1'
  419 |   Z7_COM_QI_ENTRY_UNKNOWN(i) \
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:345:10: note: expanded from macro 'Z7_COM_QI_ENTRY_UNKNOWN'
  345 |     { i *ti = this;  IUnknown *tu = ti;  *outObject = tu; }
      |          ^    ~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:406:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_SPEC'
  406 |   i \
      |   ^
In file included from /host/spi-builder-workspace/src/plzma_encoder_impl.cpp:30:
In file included from /host/spi-builder-workspace/src/plzma_encoder_impl.hpp:35:
/host/spi-builder-workspace/src/plzma_in_streams.hpp:85:9: error: cannot initialize a variable of type 'IInStream *' with an rvalue of type 'plzma::InFileStream *'
   85 |         Z7_COM_UNKNOWN_IMP_1(IInStream)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:420:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_1'
  420 |   Z7_COM_QI_ENTRY(i) \
      |   ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:336:10: note: expanded from macro 'Z7_COM_QI_ENTRY'
  336 |     { i *ti = this;  *outObject = ti; }
      |          ^    ~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:406:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_SPEC'
  406 |   i \
      |   ^
In file included from /host/spi-builder-workspace/src/plzma_encoder_impl.cpp:30:
In file included from /host/spi-builder-workspace/src/plzma_encoder_impl.hpp:35:
/host/spi-builder-workspace/src/plzma_in_streams.hpp:116:9: error: cannot initialize a variable of type 'IInStream *' with an rvalue of type 'plzma::InMemStream *'
  116 |         Z7_COM_UNKNOWN_IMP_1(IInStream)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:419:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_1'
  419 |   Z7_COM_QI_ENTRY_UNKNOWN(i) \
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:345:10: note: expanded from macro 'Z7_COM_QI_ENTRY_UNKNOWN'
  345 |     { i *ti = this;  IUnknown *tu = ti;  *outObject = tu; }
      |          ^    ~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:406:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_SPEC'
  406 |   i \
      |   ^
In file included from /host/spi-builder-workspace/src/plzma_encoder_impl.cpp:30:
In file included from /host/spi-builder-workspace/src/plzma_encoder_impl.hpp:35:
/host/spi-builder-workspace/src/plzma_in_streams.hpp:116:9: error: cannot initialize a variable of type 'IInStream *' with an rvalue of type 'plzma::InMemStream *'
  116 |         Z7_COM_UNKNOWN_IMP_1(IInStream)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:420:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_1'
  420 |   Z7_COM_QI_ENTRY(i) \
      |   ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:336:10: note: expanded from macro 'Z7_COM_QI_ENTRY'
  336 |     { i *ti = this;  *outObject = ti; }
      |          ^    ~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:406:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_SPEC'
  406 |   i \
      |   ^
In file included from /host/spi-builder-workspace/src/plzma_encoder_impl.cpp:30:
In file included from /host/spi-builder-workspace/src/plzma_encoder_impl.hpp:35:
/host/spi-builder-workspace/src/plzma_in_streams.hpp:147:9: error: cannot initialize a variable of type 'IInStream *' with an rvalue of type 'plzma::InCallbackStream *'
  147 |         Z7_COM_UNKNOWN_IMP_1(IInStream)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:419:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_1'
  419 |   Z7_COM_QI_ENTRY_UNKNOWN(i) \
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:345:10: note: expanded from macro 'Z7_COM_QI_ENTRY_UNKNOWN'
  345 |     { i *ti = this;  IUnknown *tu = ti;  *outObject = tu; }
      |          ^    ~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:406:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_SPEC'
  406 |   i \
      |   ^
In file included from /host/spi-builder-workspace/src/plzma_encoder_impl.cpp:30:
In file included from /host/spi-builder-workspace/src/plzma_encoder_impl.hpp:35:
/host/spi-builder-workspace/src/plzma_in_streams.hpp:147:9: error: cannot initialize a variable of type 'IInStream *' with an rvalue of type 'plzma::InCallbackStream *'
  147 |         Z7_COM_UNKNOWN_IMP_1(IInStream)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:420:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_1'
  420 |   Z7_COM_QI_ENTRY(i) \
      |   ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:336:10: note: expanded from macro 'Z7_COM_QI_ENTRY'
  336 |     { i *ti = this;  *outObject = ti; }
      |          ^    ~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:406:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_SPEC'
  406 |   i \
      |   ^
In file included from /host/spi-builder-workspace/src/plzma_encoder_impl.cpp:30:
In file included from /host/spi-builder-workspace/src/plzma_encoder_impl.hpp:35:
/host/spi-builder-workspace/src/plzma_in_streams.hpp:178:9: error: cannot initialize a variable of type 'IInStream *' with an rvalue of type 'plzma::InMultiStream *'
  178 |         Z7_COM_UNKNOWN_IMP_1(IInStream)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:419:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_1'
  419 |   Z7_COM_QI_ENTRY_UNKNOWN(i) \
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:345:10: note: expanded from macro 'Z7_COM_QI_ENTRY_UNKNOWN'
  345 |     { i *ti = this;  IUnknown *tu = ti;  *outObject = tu; }
      |          ^    ~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:406:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_SPEC'
  406 |   i \
      |   ^
In file included from /host/spi-builder-workspace/src/plzma_encoder_impl.cpp:30:
In file included from /host/spi-builder-workspace/src/plzma_encoder_impl.hpp:35:
/host/spi-builder-workspace/src/plzma_in_streams.hpp:178:9: error: cannot initialize a variable of type 'IInStream *' with an rvalue of type 'plzma::InMultiStream *'
  178 |         Z7_COM_UNKNOWN_IMP_1(IInStream)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:420:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_1'
  420 |   Z7_COM_QI_ENTRY(i) \
      |   ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:336:10: note: expanded from macro 'Z7_COM_QI_ENTRY'
  336 |     { i *ti = this;  *outObject = ti; }
      |          ^    ~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:406:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_SPEC'
  406 |   i \
      |   ^
In file included from /host/spi-builder-workspace/src/plzma_encoder_impl.cpp:30:
In file included from /host/spi-builder-workspace/src/plzma_encoder_impl.hpp:36:
In file included from /host/spi-builder-workspace/src/plzma_out_streams.hpp:39:
/host/spi-builder-workspace/src/plzma_progress.hpp:108:9: error: no type named 'mutex' in namespace 'std'
  108 |         LIBPLZMA_MUTEX(_mutex)
      |         ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/plzma_mutex.hpp:204:35: note: expanded from macro 'LIBPLZMA_MUTEX'
  204 | #define LIBPLZMA_MUTEX(NAME) std::mutex NAME;
      |                              ~~~~~^
In file included from /host/spi-builder-workspace/src/plzma_encoder_impl.cpp:30:
In file included from /host/spi-builder-workspace/src/plzma_encoder_impl.hpp:36:
/host/spi-builder-workspace/src/plzma_out_streams.hpp:52:9: error: no type named 'mutex' in namespace 'std'
   52 |         LIBPLZMA_MUTEX(mutable _mutex)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/plzma_mutex.hpp:204:35: note: expanded from macro 'LIBPLZMA_MUTEX'
  204 | #define LIBPLZMA_MUTEX(NAME) std::mutex NAME;
      |                              ~~~~~^
In file included from /host/spi-builder-workspace/src/plzma_encoder_impl.cpp:30:
In file included from /host/spi-builder-workspace/src/plzma_encoder_impl.hpp:36:
/host/spi-builder-workspace/src/plzma_out_streams.hpp:86:9: error: cannot initialize a variable of type 'IOutStream *' with an rvalue of type 'plzma::OutFileStream *'
   86 |         Z7_COM_UNKNOWN_IMP_1(IOutStream)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:419:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_1'
  419 |   Z7_COM_QI_ENTRY_UNKNOWN(i) \
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:345:10: note: expanded from macro 'Z7_COM_QI_ENTRY_UNKNOWN'
  345 |     { i *ti = this;  IUnknown *tu = ti;  *outObject = tu; }
      |          ^    ~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:406:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_SPEC'
  406 |   i \
      |   ^
In file included from /host/spi-builder-workspace/src/plzma_encoder_impl.cpp:30:
In file included from /host/spi-builder-workspace/src/plzma_encoder_impl.hpp:36:
/host/spi-builder-workspace/src/plzma_out_streams.hpp:86:9: error: cannot initialize a variable of type 'IOutStream *' with an rvalue of type 'plzma::OutFileStream *'
   86 |         Z7_COM_UNKNOWN_IMP_1(IOutStream)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:420:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_1'
  420 |   Z7_COM_QI_ENTRY(i) \
      |   ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:336:10: note: expanded from macro 'Z7_COM_QI_ENTRY'
  336 |     { i *ti = this;  *outObject = ti; }
      |          ^    ~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:406:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_SPEC'
  406 |   i \
      |   ^
In file included from /host/spi-builder-workspace/src/plzma_encoder_impl.cpp:30:
In file included from /host/spi-builder-workspace/src/plzma_encoder_impl.hpp:36:
/host/spi-builder-workspace/src/plzma_out_streams.hpp:118:9: error: cannot initialize a variable of type 'IOutStream *' with an rvalue of type 'plzma::OutMemStream *'
  118 |         Z7_COM_UNKNOWN_IMP_1(IOutStream)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:419:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_1'
  419 |   Z7_COM_QI_ENTRY_UNKNOWN(i) \
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:345:10: note: expanded from macro 'Z7_COM_QI_ENTRY_UNKNOWN'
  345 |     { i *ti = this;  IUnknown *tu = ti;  *outObject = tu; }
      |          ^    ~~~~
/host/spi-builder-workspace/src/CPP/Common/MyCom.h:406:3: note: expanded from macro 'Z7_COM_UNKNOWN_IMP_SPEC'
  406 |   i \
      |   ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
[10/184] Compiling libplzma plzma_encoder_impl.cpp
[10/184] Compiling libplzma plzma.cpp
BUILD FAILURE 6.2 wasm