The Swift Package Index logo.Swift Package Index

Build Information

Failed to build CocoaImageHashing, reference 1.9.0 (ad01ee), with Swift 6.1 for Wasm on 28 May 2025 02:14:03 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-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/ameingast/cocoaimagehashing.git
Reference: 1.9.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/ameingast/cocoaimagehashing
 * tag               1.9.0      -> FETCH_HEAD
HEAD is now at ad01eee ARM support
Cloned https://github.com/ameingast/cocoaimagehashing.git
Revision (git rev-parse @):
ad01eee3c3f91bd181f7f4eba7f48f7cb211b51c
SUCCESS checkout https://github.com/ameingast/cocoaimagehashing.git at 1.9.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/ameingast/cocoaimagehashing.git
https://github.com/ameingast/cocoaimagehashing.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CocoaImageHashing",
  "name" : "CocoaImageHashing",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "CocoaImageHashing",
      "targets" : [
        "CocoaImageHashing"
      ],
      "type" : {
        "library" : [
          "static"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CocoaImageHashing",
      "module_type" : "ClangTarget",
      "name" : "CocoaImageHashing",
      "path" : "CocoaImageHashing",
      "product_memberships" : [
        "CocoaImageHashing"
      ],
      "sources" : [
        "OSAHash.m",
        "OSAbstractHash.m",
        "OSCategories.m",
        "OSDHash.m",
        "OSFastGraphics.m",
        "OSImageHashing.m",
        "OSPHash.m",
        "OSSimilaritySearch.m",
        "OSTypes.m"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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
Building for debugging...
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSCategories.m:9:
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:9:1: error: use of '@import' when modules are disabled
    9 | @import Foundation;
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:19:1: error: use of '@import' when modules are disabled
   19 | @import Cocoa;
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:29:1: error: unknown type name 'NS_ASSUME_NONNULL_BEGIN'
   29 | NS_ASSUME_NONNULL_BEGIN
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:31:12: error: cannot find interface declaration for 'NSArray'
   31 | @interface NSArray (CocoaImageHashing)
      |            ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:33:4: error: expected a type
   33 | - (NSArray<OSTuple<id, id> *> *)arrayWithPairCombinations;
      |    ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:39:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   39 | NS_ASSUME_NONNULL_END
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:43:24: error: expected ';' after top level declarator
   43 | NS_ASSUME_NONNULL_BEGIN
      |                        ^
      |                        ;
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:50:1: error: '@end' must appear in an Objective-C context
   50 | @end
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:52:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   52 | NS_ASSUME_NONNULL_END
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:58:24: error: expected ';' after top level declarator
   58 | NS_ASSUME_NONNULL_BEGIN
      |                        ^
      |                        ;
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:67:1: error: '@end' must appear in an Objective-C context
   67 | @end
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:69:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   69 | NS_ASSUME_NONNULL_END
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:77:24: error: expected ';' after top level declarator
   77 | NS_ASSUME_NONNULL_BEGIN
      |                        ^
      |                        ;
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:83:1: error: '@end' must appear in an Objective-C context
   83 | @end
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:85:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   85 | NS_ASSUME_NONNULL_END
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:107:24: error: expected ';' after top level declarator
  107 | NS_ASSUME_NONNULL_BEGIN
      |                        ^
      |                        ;
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:113:1: error: '@end' must appear in an Objective-C context
  113 | @end
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:115:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
  115 | NS_ASSUME_NONNULL_END
      | ^
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSCategories.m:10:
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSTypes+Internal.h:6:
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:9:2: error: prefix attribute must be followed by an interface, protocol, or implementation
    9 | @import Foundation;
      |  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[0/11] Compiling CocoaImageHashing OSCategories.m
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSDHash.m:9:
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:9:1: error: use of '@import' when modules are disabled
    9 | @import Foundation;
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:19:1: error: use of '@import' when modules are disabled
   19 | @import Cocoa;
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:29:1: error: unknown type name 'NS_ASSUME_NONNULL_BEGIN'
   29 | NS_ASSUME_NONNULL_BEGIN
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:31:12: error: cannot find interface declaration for 'NSArray'
   31 | @interface NSArray (CocoaImageHashing)
      |            ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:33:4: error: expected a type
   33 | - (NSArray<OSTuple<id, id> *> *)arrayWithPairCombinations;
      |    ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:39:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   39 | NS_ASSUME_NONNULL_END
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:43:24: error: expected ';' after top level declarator
   43 | NS_ASSUME_NONNULL_BEGIN
      |                        ^
      |                        ;
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:50:1: error: '@end' must appear in an Objective-C context
   50 | @end
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:52:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   52 | NS_ASSUME_NONNULL_END
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:58:24: error: expected ';' after top level declarator
   58 | NS_ASSUME_NONNULL_BEGIN
      |                        ^
      |                        ;
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:67:1: error: '@end' must appear in an Objective-C context
   67 | @end
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:69:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   69 | NS_ASSUME_NONNULL_END
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:77:24: error: expected ';' after top level declarator
   77 | NS_ASSUME_NONNULL_BEGIN
      |                        ^
      |                        ;
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:83:1: error: '@end' must appear in an Objective-C context
   83 | @end
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:85:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   85 | NS_ASSUME_NONNULL_END
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:107:24: error: expected ';' after top level declarator
  107 | NS_ASSUME_NONNULL_BEGIN
      |                        ^
      |                        ;
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:113:1: error: '@end' must appear in an Objective-C context
  113 | @end
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:115:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
  115 | NS_ASSUME_NONNULL_END
      | ^
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSDHash.m:10:
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSDHash.h:9:
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSImageHashing.h:9:
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:9:2: error: prefix attribute must be followed by an interface, protocol, or implementation
    9 | @import Foundation;
      |  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[0/11] Compiling CocoaImageHashing OSDHash.m
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSAbstractHash.m:9:
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSAbstractHash.h:9:
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:9:1: error: use of '@import' when modules are disabled
    9 | @import Foundation;
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:28:9: error: unknown type name 'SInt64'
   28 | typedef SInt64 OSHashType;
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:33:9: error: unknown type name 'SInt64'
   33 | typedef SInt64 OSHashDistanceType;
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:38:9: error: unknown type name 'NSString'
   38 | typedef NSString OSImageId;
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:1: error: function definition declared 'typedef'
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      | ^~~~~~~
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: error: parameter 'OSImageHashingProviderId' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:20: error: parameter 'UInt16' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                    ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:9: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      | ~~~~~~~ ^
      | int
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:48:5: error: use of undeclared identifier 'OSImageHashingProviderAHash'; did you mean 'OSImageHashingProviderId'?
   48 |     OSImageHashingProviderAHash = 1 << 0,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:51:35: error: expected ';' after expression
   51 |     OSImageHashingProviderNone = 0
      |                                   ^
      |                                   ;
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:49:5: error: use of undeclared identifier 'OSImageHashingProviderDHash'; did you mean 'OSImageHashingProviderId'?
   49 |     OSImageHashingProviderDHash = 1 << 1,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:50:5: error: use of undeclared identifier 'OSImageHashingProviderPHash'; did you mean 'OSImageHashingProviderId'?
   50 |     OSImageHashingProviderPHash = 1 << 2,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:51:5: error: use of undeclared identifier 'OSImageHashingProviderNone'; did you mean 'OSImageHashingProviderId'?
   51 |     OSImageHashingProviderNone = 0
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:1: error: function definition declared 'typedef'
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      | ^~~~~~~
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:25: error: parameter 'OSImageHashingQuality' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      |                         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:17: error: parameter 'UInt16' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      |                 ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:9: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      | ~~~~~~~ ^
      | int
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:62:5: error: use of undeclared identifier 'OSImageHashingQualityLow'; did you mean 'OSImageHashingQuality'?
   62 |     OSImageHashingQualityLow,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingQuality
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:25: note: 'OSImageHashingQuality' declared here
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      |                         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:65:30: error: expected ';' after expression
   65 |     OSImageHashingQualityNone
      |                              ^
      |                              ;
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.
[0/11] Compiling CocoaImageHashing OSAbstractHash.m
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSSimilaritySearch.m:9:
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:9:1: error: use of '@import' when modules are disabled
    9 | @import Foundation;
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:19:1: error: use of '@import' when modules are disabled
   19 | @import Cocoa;
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:29:1: error: unknown type name 'NS_ASSUME_NONNULL_BEGIN'
   29 | NS_ASSUME_NONNULL_BEGIN
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:31:12: error: cannot find interface declaration for 'NSArray'
   31 | @interface NSArray (CocoaImageHashing)
      |            ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:33:4: error: expected a type
   33 | - (NSArray<OSTuple<id, id> *> *)arrayWithPairCombinations;
      |    ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:39:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   39 | NS_ASSUME_NONNULL_END
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:43:24: error: expected ';' after top level declarator
   43 | NS_ASSUME_NONNULL_BEGIN
      |                        ^
      |                        ;
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:50:1: error: '@end' must appear in an Objective-C context
   50 | @end
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:52:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   52 | NS_ASSUME_NONNULL_END
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:58:24: error: expected ';' after top level declarator
   58 | NS_ASSUME_NONNULL_BEGIN
      |                        ^
      |                        ;
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:67:1: error: '@end' must appear in an Objective-C context
   67 | @end
      | ^
[0/11] Compiling CocoaImageHashing OSSimilaritySearch.m
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSPHash.m:9:
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:9:1: error: use of '@import' when modules are disabled
    9 | [0/11] Compiling CocoaImageHashing OSPHash.m
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSTypes.m:9:
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSAHash.h:9:
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSImageHashing.h:9:
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:9:1: error: use of '@import' when modules are disabled
    9 | @import Foundation;
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:28:9: error: unknown type name 'SInt64'
   28 | typedef SInt64 OSHashType;
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:33:9: error: unknown type name 'SInt64'
   33 | typedef SInt64 OSHashDistanceType;
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:38:9: error: unknown type name 'NSString'
   38 | typedef NSString OSImageId;
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:1: error: function definition declared 'typedef'
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      | ^~~~~~~
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: error: parameter 'OSImageHashingProviderId' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:20: error: parameter 'UInt16' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                    ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:9: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      | ~~~~~~~ ^
      | int
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:48:5: error: use of undeclared identifier 'OSImageHashingProviderAHash'; did you mean 'OSImageHashingProviderId'?
   48 |     OSImageHashingProviderAHash = 1 << 0,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:51:35: error: expected ';' after expression
   51 |     OSImageHashingProviderNone = 0
      |                                   ^
      |                                   ;
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:49:5: error: use of undeclared identifier 'OSImageHashingProviderDHash'; did you mean 'OSImageHashingProviderId'?
   49 |     OSImageHashingProviderDHash = 1 << 1,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:50:5: error: use of undeclared identifier 'OSImageHashingProviderPHash'; did you mean 'OSImageHashingProviderId'?
   50 |     OSImageHashingProviderPHash = 1 << 2,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:51:5: error: use of undeclared identifier 'OSImageHashingProviderNone'; did you mean 'OSImageHashingProviderId'?
   51 |     OSImageHashingProviderNone = 0
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:1: error: function definition declared 'typedef'
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      | ^~~~~~~
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:25: error: parameter 'OSImageHashingQuality' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      |                         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:17: error: parameter 'UInt16' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      |                 ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:9: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      | ~~~~~~~ ^
      | int
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:62:5: error: use of undeclared identifier 'OSImageHashingQualityLow'; did you mean 'OSImageHashingQuality'?
   62 |     OSImageHashingQualityLow,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingQuality
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:25: note: 'OSImageHashingQuality' declared here
[0/11] Compiling CocoaImageHashing OSTypes.m
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSAHash.m:9:
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSAHash.h:9:
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSImageHashing.h:9:
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:9:1: error: use of '@import' when modules are disabled
    9 | @import Foundation;
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:28:9: error: unknown type name 'SInt64'
   28 | typedef SInt64 OSHashType;
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:33:9: error: unknown type name 'SInt64'
   33 | typedef SInt64 OSHashDistanceType;
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:38:9: error: unknown type name 'NSString'
   38 | typedef NSString OSImageId;
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:1: error: function definition declared 'typedef'
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      | ^~~~~~~
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: error: parameter 'OSImageHashingProviderId' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:20: error: parameter 'UInt16' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                    ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:9: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      | ~~~~~~~ ^
      | int
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:48:5: error: use of undeclared identifier 'OSImageHashingProviderAHash'; did you mean 'OSImageHashingProviderId'?
   48 |     OSImageHashingProviderAHash = 1 << 0,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:51:35: error: expected ';' after expression
   51 |     OSImageHashingProviderNone = 0
      |                                   ^
      |                                   ;
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:49:5: error: use of undeclared identifier 'OSImageHashingProviderDHash'; did you mean 'OSImageHashingProviderId'?
   49 |     OSImageHashingProviderDHash = 1 << 1,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:50:5: error: use of undeclared identifier 'OSImageHashingProviderPHash'; did you mean 'OSImageHashingProviderId'?
   50 |     OSImageHashingProviderPHash = 1 << 2,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:51:5: error: use of undeclared identifier 'OSImageHashingProviderNone'; did you mean 'OSImageHashingProviderId'?
   51 |     OSImageHashingProviderNone = 0
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:1: error: function definition declared 'typedef'
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      | ^~~~~~~
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:25: error: parameter 'OSImageHashingQuality' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      |                         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:17: error: parameter 'UInt16' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      |                 ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:9: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      | ~~~~~~~ ^
      | int
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:62:5: error: use of undeclared identifier 'OSImageHashingQualityLow'; did you mean 'OSImageHashingQuality'?
   62 |     OSImageHashingQualityLow,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingQuality
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:25: note: 'OSImageHashingQuality' declared here
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      |                         ^
[0/11] Compiling CocoaImageHashing OSAHash.m
[0/11] Compiling CocoaImageHashing OSImageHashing.m
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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
[0/1] Planning build
Building for debugging...
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSSimilaritySearch.m:9:
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:9:1: error: use of '@import' when modules are disabled
    9 | @import Foundation;
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:19:1: error: use of '@import' when modules are disabled
   19 | @import Cocoa;
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:29:1: error: unknown type name 'NS_ASSUME_NONNULL_BEGIN'
   29 | NS_ASSUME_NONNULL_BEGIN
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:31:12: error: cannot find interface declaration for 'NSArray'
   31 | @interface NSArray (CocoaImageHashing)
      |            ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:33:4: error: expected a type
   33 | - (NSArray<OSTuple<id, id> *> *)arrayWithPairCombinations;
      |    ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:39:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   39 | NS_ASSUME_NONNULL_END
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:43:24: error: expected ';' after top level declarator
   43 | NS_ASSUME_NONNULL_BEGIN
      |                        ^
      |                        ;
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:50:1: error: '@end' must appear in an Objective-C context
   50 | @end
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:52:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   52 | NS_ASSUME_NONNULL_END
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:58:24: error: expected ';' after top level declarator
   58 | NS_ASSUME_NONNULL_BEGIN
      |                        ^
      |                        ;
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:67:1: error: '@end' must appear in an Objective-C context
   67 | @end
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:69:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   69 | NS_ASSUME_NONNULL_END
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:77:24: error: expected ';' after top level declarator
   77 | NS_ASSUME_NONNULL_BEGIN
      |                        ^
      |                        ;
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:83:1: error: '@end' must appear in an Objective-C context
   83 | @end
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:85:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   85 | NS_ASSUME_NONNULL_END
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:107:24: error: expected ';' after top level declarator
  107 | NS_ASSUME_NONNULL_BEGIN
      |                        ^
      |                        ;
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:113:1: error: '@end' must appear in an Objective-C context
  113 | @end
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:115:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
  115 | NS_ASSUME_NONNULL_END
      | ^
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSSimilaritySearch.m:10:
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSImageHashing.h:9:
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:9:2: error: prefix attribute must be followed by an interface, protocol, or implementation
    9 | @import Foundation;
      |  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[0/11] Compiling CocoaImageHashing OSSimilaritySearch.m
[0/11] Compiling CocoaImageHashing OSAbstractHash.m
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSPHash.m:9:
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:9:1: error: use of '@import' when modules are disabled
    9 | @import Foundation;
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:19:1: error: use of '@import' when modules are disabled
   19 | @import Cocoa;
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:29:1: error: unknown type name 'NS_ASSUME_NONNULL_BEGIN'
   29 | NS_ASSUME_NONNULL_BEGIN
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:31:12: error: cannot find interface declaration for 'NSArray'
   31 | @interface NSArray (CocoaImageHashing)
      |            ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:33:4: error: expected a type
   33 | - (NSArray<OSTuple<id, id> *> *)arrayWithPairCombinations;
      |    ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:39:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   39 | NS_ASSUME_NONNULL_END
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:43:24: error: expected ';' after top level declarator
   43 | NS_ASSUME_NONNULL_BEGIN
      |                        ^
      |                        ;
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:50:1: error: '@end' must appear in an Objective-C context
   50 | @end
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:52:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   52 | NS_ASSUME_NONNULL_END
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:58:24: error: expected ';' after top level declarator
   58 | NS_ASSUME_NONNULL_BEGIN
      |                        ^
      |                        ;
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:67:1: error: '@end' must appear in an Objective-C context
   67 | @end
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:69:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   69 | NS_ASSUME_NONNULL_END
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:77:24: error: expected ';' after top level declarator
   77 | NS_ASSUME_NONNULL_BEGIN
      |                        ^
      |                        ;
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:83:1: error: '@end' must appear in an Objective-C context
   83 | @end
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:85:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   85 | NS_ASSUME_NONNULL_END
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:107:24: error: expected ';' after top level declarator
  107 | NS_ASSUME_NONNULL_BEGIN
      |                        ^
      |                        ;
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:113:1: error: '@end' must appear in an Objective-C context
  113 | @end
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:115:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
  115 | NS_ASSUME_NONNULL_END
      | ^
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSPHash.m:10:
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSFastGraphics.h:9:
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:9:2: error: prefix attribute must be followed by an interface, protocol, or implementation
    9 | @import Foundation;
      |  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[0/11] Compiling CocoaImageHashing OSPHash.m
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSTypes.m:9:
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSAHash.h:9:
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSImageHashing.h:9:
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:9:1: error: use of '@import' when modules are disabled
    9 | @import Foundation;
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:28:9: error: unknown type name 'SInt64'
   28 | typedef SInt64 OSHashType;
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:33:9: error: unknown type name 'SInt64'
   33 | typedef SInt64 OSHashDistanceType;
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:38:9: error: unknown type name 'NSString'
   38 | typedef NSString OSImageId;
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:1: error: function definition declared 'typedef'
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      | ^~~~~~~
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: error: parameter 'OSImageHashingProviderId' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:20: error: parameter 'UInt16' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                    ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:9: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      | ~~~~~~~ ^
      | int
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:48:5: error: use of undeclared identifier 'OSImageHashingProviderAHash'; did you mean 'OSImageHashingProviderId'?
   48 |     OSImageHashingProviderAHash = 1 << 0,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:51:35: error: expected ';' after expression
   51 |     OSImageHashingProviderNone = 0
      |                                   ^
      |                                   ;
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:49:5: error: use of undeclared identifier 'OSImageHashingProviderDHash'; did you mean 'OSImageHashingProviderId'?
   49 |     OSImageHashingProviderDHash = 1 << 1,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:50:5: error: use of undeclared identifier 'OSImageHashingProviderPHash'; did you mean 'OSImageHashingProviderId'?
   50 |     OSImageHashingProviderPHash = 1 << 2,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:51:5: error: use of undeclared identifier 'OSImageHashingProviderNone'; did you mean 'OSImageHashingProviderId'?
   51 |     OSImageHashingProviderNone = 0
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:1: error: function definition declared 'typedef'
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      | ^~~~~~~
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:25: error: parameter 'OSImageHashingQuality' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      |                         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:17: error: parameter 'UInt16' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      |                 ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:9: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      | ~~~~~~~ ^
      | int
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:62:5: error: use of undeclared identifier 'OSImageHashingQualityLow'; did you mean 'OSImageHashingQuality'?
   62 |     OSImageHashingQualityLow,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingQuality
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:25: note: 'OSImageHashingQuality' declared here
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      |                         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:65:30: error: expected ';' after expression
   65 |     OSImageHashingQualityNone
      |                              ^
      |                              ;
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.
[0/11] Compiling CocoaImageHashing OSTypes.m
[0/11] Compiling CocoaImageHashing OSDHash.m
[0/11] Compiling CocoaImageHashing OSCategories.m
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSImageHashing.m:9:
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSImageHashing.h:9:
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:9:1: error: use of '@import' when modules are disabled
    9 | @import Foundation;
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:28:9: error: unknown type name 'SInt64'
   28 | typedef SInt64 OSHashType;
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:33:9: error: unknown type name 'SInt64'
   33 | typedef SInt64 OSHashDistanceType;
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:38:9: error: unknown type name 'NSString'
   38 | typedef NSString OSImageId;
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:1: error: function definition declared 'typedef'
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      | ^~~~~~~
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: error: parameter 'OSImageHashingProviderId' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:20: error: parameter 'UInt16' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                    ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:9: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      | ~~~~~~~ ^
      | int
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:48:5: error: use of undeclared identifier 'OSImageHashingProviderAHash'; did you mean 'OSImageHashingProviderId'?
   48 |     OSImageHashingProviderAHash = 1 << 0,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:51:35: error: expected ';' after expression
   51 |     OSImageHashingProviderNone = 0
      |                                   ^
      |                                   ;
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:49:5: error: use of undeclared identifier 'OSImageHashingProviderDHash'; did you mean 'OSImageHashingProviderId'?
   49 |     OSImageHashingProviderDHash = 1 << 1,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:50:5: error: use of undeclared identifier 'OSImageHashingProviderPHash'; did you mean 'OSImageHashingProviderId'?
   50 |     OSImageHashingProviderPHash = 1 << 2,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:51:5: error: use of undeclared identifier 'OSImageHashingProviderNone'; did you mean 'OSImageHashingProviderId'?
   51 |     OSImageHashingProviderNone = 0
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:1: error: function definition declared 'typedef'
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      | ^~~~~~~
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:25: error: parameter 'OSImageHashingQuality' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      |                         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:17: error: parameter 'UInt16' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      |                 ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:9: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      | ~~~~~~~ ^
      | int
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:62:5: error: use of undeclared identifier 'OSImageHashingQualityLow'; did you mean 'OSImageHashingQuality'?
   62 |     OSImageHashingQualityLow,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingQuality
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:25: note: 'OSImageHashingQuality' declared here
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      |                         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:65:30: error: expected ';' after expression
   65 |     OSImageHashingQualityNone
      |                              ^
      |                              ;
fatal error: too many errors emitted, stopping now [-ferror-limit=]
[0/11] Compiling CocoaImageHashing OSImageHashing.m
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSFastGraphics.m:9:
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSFastGraphics.h:9:
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:9:1: error: use of '@import' when modules are disabled
    9 | @import Foundation;
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:28:9: error: unknown type name 'SInt64'
   28 | typedef SInt64 OSHashType;
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:33:9: error: unknown type name 'SInt64'
   33 | typedef SInt64 OSHashDistanceType;
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:38:9: error: unknown type name 'NSString'
   38 | typedef NSString OSImageId;
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:1: error: function definition declared 'typedef'
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      | ^~~~~~~
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: error: parameter 'OSImageHashingProviderId' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:20: error: parameter 'UInt16' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                    ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:9: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      | ~~~~~~~ ^
      | int
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:48:5: error: use of undeclared identifier 'OSImageHashingProviderAHash'; did you mean 'OSImageHashingProviderId'?
   48 |     OSImageHashingProviderAHash = 1 << 0,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:51:35: error: expected ';' after expression
   51 |     OSImageHashingProviderNone = 0
      |                                   ^
      |                                   ;
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:49:5: error: use of undeclared identifier 'OSImageHashingProviderDHash'; did you mean 'OSImageHashingProviderId'?
   49 |     OSImageHashingProviderDHash = 1 << 1,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:50:5: error: use of undeclared identifier 'OSImageHashingProviderPHash'; did you mean 'OSImageHashingProviderId'?
   50 |     OSImageHashingProviderPHash = 1 << 2,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:51:5: error: use of undeclared identifier 'OSImageHashingProviderNone'; did you mean 'OSImageHashingProviderId'?
   51 |     OSImageHashingProviderNone = 0
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:1: error: function definition declared 'typedef'
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      | ^~~~~~~
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:25: error: parameter 'OSImageHashingQuality' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      |                         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:17: error: parameter 'UInt16' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      |                 ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:9: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      | ~~~~~~~ ^
      | int
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:62:5: error: use of undeclared identifier 'OSImageHashingQualityLow'; did you mean 'OSImageHashingQuality'?
   62 |     OSImageHashingQualityLow,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingQuality
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:25: note: 'OSImageHashingQuality' declared here
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      |                         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:65:30: error: expected ';' after expression
   65 |     OSImageHashingQualityNone
      |                              ^
      |                              ;
fatal error: too many errors emitted, stopping now [-ferror-limit=]
[0/11] Compiling CocoaImageHashing OSFastGraphics.m
BUILD FAILURE 6.1 wasm