The Swift Package Index logo.Swift Package Index

Build Information

Failed to build kineo-endpoint, reference 0.0.12 (1f4f11), with Swift 6.3 for Wasm on 20 Apr 2026 17:43:36 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kasei/kineo-endpoint.git
Reference: 0.0.12
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/kasei/kineo-endpoint
 * tag               0.0.12     -> FETCH_HEAD
HEAD is now at 1f4f114 Performance improvements when operating over datasets with many graphs.
Cloned https://github.com/kasei/kineo-endpoint.git
Revision (git rev-parse @):
1f4f1142176e4d2bd90ec940d822b939ce815522
SUCCESS checkout https://github.com/kasei/kineo-endpoint.git at 0.0.12
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/kasei/kineo-endpoint.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/alexaubry/HTMLString
Fetching https://github.com/kasei/diomede.git
Fetching https://github.com/kasei/kineo.git
Fetching https://github.com/vapor/vapor.git
[1/788] Fetching diomede
[789/2419] Fetching diomede, htmlstring
[838/8659] Fetching diomede, htmlstring, kineo
[8660/86053] Fetching diomede, htmlstring, kineo, vapor
Fetched https://github.com/kasei/diomede.git from cache (0.57s)
Fetched https://github.com/kasei/kineo.git from cache (0.58s)
[7049/79025] Fetching htmlstring, vapor
Fetched https://github.com/alexaubry/HTMLString from cache (2.77s)
Fetched https://github.com/vapor/vapor.git from cache (2.84s)
Computing version for https://github.com/alexaubry/HTMLString
Computed https://github.com/alexaubry/HTMLString at 4.0.2 (5.91s)
Computing version for https://github.com/vapor/vapor.git
Computed https://github.com/vapor/vapor.git at 3.3.3 (0.44s)
Fetching https://github.com/vapor/crypto.git
Fetching https://github.com/vapor/service.git
Fetching https://github.com/vapor/validation.git
Fetching https://github.com/vapor/http.git
Fetching https://github.com/vapor/database-kit.git
Fetching https://github.com/vapor/websocket.git
[1/919] Fetching service
[819/1498] Fetching service, validation
[1499/2679] Fetching service, validation, database-kit
[2680/5337] Fetching service, validation, database-kit, websocket
[2920/8123] Fetching service, validation, database-kit, websocket, crypto
[3947/33590] Fetching service, validation, database-kit, websocket, crypto, http
Fetched https://github.com/vapor/service.git from cache (0.45s)
[13571/32671] Fetching validation, database-kit, websocket, crypto, http
Fetched https://github.com/vapor/database-kit.git from cache (0.45s)
Fetched https://github.com/vapor/websocket.git from cache (0.45s)
[9987/28832] Fetching validation, crypto, http
Fetching https://github.com/vapor/core.git
Fetching https://github.com/vapor/template-kit.git
Fetching https://github.com/vapor/multipart.git
[23740/30114] Fetching validation, crypto, http, template-kit
[23894/33778] Fetching validation, crypto, http, template-kit, multipart
[26451/53921] Fetching validation, crypto, http, template-kit, multipart, core
Fetched https://github.com/vapor/validation.git from cache (2.45s)
Fetched https://github.com/vapor/crypto.git from cache (2.46s)
Fetching https://github.com/vapor/routing.git
Fetching https://github.com/vapor/url-encoded-form.git
Fetched https://github.com/vapor/http.git from cache (2.60s)
Fetching https://github.com/vapor/console.git
[23074/25089] Fetching template-kit, multipart, core
[23075/46498] Fetching template-kit, multipart, core, routing
[25002/46879] Fetching template-kit, multipart, core, routing, url-encoded-form
[26210/53550] Fetching template-kit, multipart, core, routing, url-encoded-form, console
Fetched https://github.com/vapor/url-encoded-form.git from cache (0.79s)
[28049/53169] Fetching template-kit, multipart, core, routing, console
Fetched https://github.com/vapor/console.git from cache (1.07s)
[39131/46498] Fetching template-kit, multipart, core, routing
Fetched https://github.com/vapor/template-kit.git from cache (4.33s)
Fetched https://github.com/vapor/core.git from cache (4.36s)
Fetched https://github.com/vapor/multipart.git from cache (4.55s)
Fetched https://github.com/vapor/routing.git from cache (2.66s)
Computing version for https://github.com/vapor/http.git
Computed https://github.com/vapor/http.git at 3.4.0 (5.94s)
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-nio-ssl.git
[1/15419] Fetching swift-nio-ssl
[2160/98597] Fetching swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-ssl.git from cache (3.88s)
[36599/83178] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (12.50s)
Computing version for https://github.com/vapor/validation.git
Computed https://github.com/vapor/validation.git at 2.1.1 (13.66s)
Computing version for https://github.com/vapor/service.git
Computed https://github.com/vapor/service.git at 1.0.2 (0.89s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 1.14.4 (0.93s)
Fetching https://github.com/apple/swift-nio-zlib-support.git
[1/15] Fetching swift-nio-zlib-support
Fetched https://github.com/apple/swift-nio-zlib-support.git from cache (0.39s)
Computing version for https://github.com/apple/swift-nio-zlib-support.git
Computed https://github.com/apple/swift-nio-zlib-support.git at 1.0.0 (1.33s)
Computing version for https://github.com/vapor/routing.git
Computed https://github.com/vapor/routing.git at 3.1.0 (2.42s)
Computing version for https://github.com/vapor/websocket.git
Computed https://github.com/vapor/websocket.git at 1.1.2 (2.92s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 1.4.0 (1.04s)
Fetching https://github.com/apple/swift-nio-ssl-support.git
[1/16] Fetching swift-nio-ssl-support
Fetched https://github.com/apple/swift-nio-ssl-support.git from cache (0.34s)
Computing version for https://github.com/apple/swift-nio-ssl-support.git
Computed https://github.com/apple/swift-nio-ssl-support.git at 1.0.0 (1.46s)
Computing version for https://github.com/vapor/crypto.git
Computed https://github.com/vapor/crypto.git at 3.4.1 (0.99s)
Computing version for https://github.com/vapor/console.git
Computed https://github.com/vapor/console.git at 3.1.1 (0.95s)
Computing version for https://github.com/kasei/diomede.git
Computed https://github.com/kasei/diomede.git at 0.0.66 (0.85s)
Fetching https://github.com/kasei/swift-sparql-syntax.git
Fetching https://github.com/agisboye/CLMDB.git
[1/2483] Fetching swift-sparql-syntax
[374/2528] Fetching swift-sparql-syntax, clmdb
Fetched https://github.com/agisboye/CLMDB.git from cache (0.48s)
Fetching https://github.com/krzyzanowskim/CryptoSwift.git
Fetched https://github.com/kasei/swift-sparql-syntax.git from cache (0.70s)
[1/13341] Fetching cryptoswift
Fetched https://github.com/krzyzanowskim/CryptoSwift.git from cache (2.12s)
Computing version for https://github.com/krzyzanowskim/CryptoSwift.git
Computed https://github.com/krzyzanowskim/CryptoSwift.git at 1.5.1 (3.78s)
Computing version for https://github.com/agisboye/CLMDB.git
Computed https://github.com/agisboye/CLMDB.git at 0.9.33 (0.74s)
Computing version for https://github.com/vapor/database-kit.git
Computed https://github.com/vapor/database-kit.git at 1.3.3 (0.61s)
Computing version for https://github.com/vapor/url-encoded-form.git
Computed https://github.com/vapor/url-encoded-form.git at 1.1.0 (0.79s)
Computing version for https://github.com/vapor/template-kit.git
Computed https://github.com/vapor/template-kit.git at 1.5.0 (0.93s)
Computing version for https://github.com/vapor/multipart.git
Computed https://github.com/vapor/multipart.git at 3.1.3 (0.84s)
Computing version for https://github.com/kasei/swift-sparql-syntax.git
Computed https://github.com/kasei/swift-sparql-syntax.git at 0.2.11 (2.59s)
Fetching https://github.com/kasei/swift-serd.git
[1/68] Fetching swift-serd
Fetched https://github.com/kasei/swift-serd.git from cache (0.38s)
Computing version for https://github.com/kasei/swift-serd.git
Computed https://github.com/kasei/swift-serd.git at 0.0.4 (1.26s)
Computing version for https://github.com/kasei/kineo.git
Computed https://github.com/kasei/kineo.git at 0.0.108 (1.02s)
Fetching https://github.com/apple/swift-algorithms
Fetching https://github.com/kasei/IDPPlanner.git
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/stephencelis/SQLite.swift.git
Fetching https://github.com/kylef/URITemplate.swift.git
[1/47] Fetching idpplanner
[48/859] Fetching idpplanner, uritemplate.swift
[860/6917] Fetching idpplanner, uritemplate.swift, swift-algorithms
[1224/24446] Fetching idpplanner, uritemplate.swift, swift-algorithms, swift-argument-parser
[3319/35574] Fetching idpplanner, uritemplate.swift, swift-algorithms, swift-argument-parser, sqlite.swift
Fetched https://github.com/apple/swift-algorithms from cache (1.06s)
[26226/29516] Fetching idpplanner, uritemplate.swift, swift-argument-parser, sqlite.swift
Fetched https://github.com/kasei/IDPPlanner.git from cache (1.76s)
[27689/29469] Fetching uritemplate.swift, swift-argument-parser, sqlite.swift
Fetched https://github.com/kylef/URITemplate.swift.git from cache (2.39s)
Fetched https://github.com/apple/swift-argument-parser from cache (2.44s)
Fetched https://github.com/stephencelis/SQLite.swift.git from cache (2.46s)
Computing version for https://github.com/kasei/IDPPlanner.git
Computed https://github.com/kasei/IDPPlanner.git at 0.0.5 (4.19s)
Computing version for https://github.com/kylef/URITemplate.swift.git
Computed https://github.com/kylef/URITemplate.swift.git at 3.0.1 (4.38s)
Fetching https://github.com/kylef/Spectre.git
[1/1021] Fetching spectre
Fetched https://github.com/kylef/Spectre.git from cache (0.78s)
Fetching https://github.com/kylef/PathKit.git
[1/1452] Fetching pathkit
Fetched https://github.com/kylef/PathKit.git from cache (0.51s)
Computing version for https://github.com/kylef/Spectre.git
Computed https://github.com/kylef/Spectre.git at 0.10.1 (2.08s)
Computing version for https://github.com/apple/swift-algorithms
Computed https://github.com/apple/swift-algorithms at 0.1.1 (0.80s)
Fetching https://github.com/apple/swift-numerics
[1/6416] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.68s)
Computing version for https://github.com/stephencelis/SQLite.swift.git
Computed https://github.com/stephencelis/SQLite.swift.git at 0.11.6 (1.48s)
Fetching https://github.com/stephencelis/CSQLite.git
[1/200] Fetching csqlite
Fetched https://github.com/stephencelis/CSQLite.git from cache (1.40s)
Computing version for https://github.com/stephencelis/CSQLite.git
Computed https://github.com/stephencelis/CSQLite.git at 0.0.3 (2.21s)
Computing version for https://github.com/kylef/PathKit.git
Computed https://github.com/kylef/PathKit.git at 1.0.1 (0.87s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 0.1.0 (0.91s)
Computing version for https://github.com/vapor/core.git
Computed https://github.com/vapor/core.git at 3.10.1 (0.93s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.7.1 (0.94s)
Creating working copy for https://github.com/kasei/diomede.git
Working copy of https://github.com/kasei/diomede.git resolved at 0.0.66
Creating working copy for https://github.com/vapor/template-kit.git
Working copy of https://github.com/vapor/template-kit.git resolved at 1.5.0
Creating working copy for https://github.com/apple/swift-nio-zlib-support.git
Working copy of https://github.com/apple/swift-nio-zlib-support.git resolved at 1.0.0
Creating working copy for https://github.com/kasei/kineo.git
Working copy of https://github.com/kasei/kineo.git resolved at 0.0.108
Creating working copy for https://github.com/vapor/console.git
Working copy of https://github.com/vapor/console.git resolved at 3.1.1
Creating working copy for https://github.com/alexaubry/HTMLString
Working copy of https://github.com/alexaubry/HTMLString resolved at 4.0.2
Creating working copy for https://github.com/apple/swift-nio-ssl-support.git
Working copy of https://github.com/apple/swift-nio-ssl-support.git resolved at 1.0.0
Creating working copy for https://github.com/kasei/swift-serd.git
Working copy of https://github.com/kasei/swift-serd.git resolved at 0.0.4
Creating working copy for https://github.com/kasei/IDPPlanner.git
Working copy of https://github.com/kasei/IDPPlanner.git resolved at 0.0.5
Creating working copy for https://github.com/vapor/validation.git
Working copy of https://github.com/vapor/validation.git resolved at 2.1.1
Creating working copy for https://github.com/agisboye/CLMDB.git
Working copy of https://github.com/agisboye/CLMDB.git resolved at 0.9.33
Creating working copy for https://github.com/apple/swift-algorithms
Working copy of https://github.com/apple/swift-algorithms resolved at 0.1.1
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.7.1
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 0.1.0
Creating working copy for https://github.com/vapor/crypto.git
Working copy of https://github.com/vapor/crypto.git resolved at 3.4.1
Creating working copy for https://github.com/krzyzanowskim/CryptoSwift.git
Working copy of https://github.com/krzyzanowskim/CryptoSwift.git resolved at 1.5.1
Creating working copy for https://github.com/vapor/routing.git
Working copy of https://github.com/vapor/routing.git resolved at 3.1.0
Creating working copy for https://github.com/stephencelis/SQLite.swift.git
Working copy of https://github.com/stephencelis/SQLite.swift.git resolved at 0.11.6
Creating working copy for https://github.com/vapor/service.git
Working copy of https://github.com/vapor/service.git resolved at 1.0.2
Creating working copy for https://github.com/kasei/swift-sparql-syntax.git
Working copy of https://github.com/kasei/swift-sparql-syntax.git resolved at 0.2.11
Creating working copy for https://github.com/kylef/PathKit.git
Working copy of https://github.com/kylef/PathKit.git resolved at 1.0.1
Creating working copy for https://github.com/vapor/http.git
Working copy of https://github.com/vapor/http.git resolved at 3.4.0
Creating working copy for https://github.com/kylef/URITemplate.swift.git
Working copy of https://github.com/kylef/URITemplate.swift.git resolved at 3.0.1
Creating working copy for https://github.com/vapor/multipart.git
Working copy of https://github.com/vapor/multipart.git resolved at 3.1.3
Creating working copy for https://github.com/vapor/database-kit.git
Working copy of https://github.com/vapor/database-kit.git resolved at 1.3.3
Creating working copy for https://github.com/vapor/url-encoded-form.git
Working copy of https://github.com/vapor/url-encoded-form.git resolved at 1.1.0
Creating working copy for https://github.com/vapor/core.git
Working copy of https://github.com/vapor/core.git resolved at 3.10.1
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 1.4.0
Creating working copy for https://github.com/vapor/websocket.git
Working copy of https://github.com/vapor/websocket.git resolved at 1.1.2
Creating working copy for https://github.com/stephencelis/CSQLite.git
Working copy of https://github.com/stephencelis/CSQLite.git resolved at 0.0.3
Creating working copy for https://github.com/kylef/Spectre.git
Working copy of https://github.com/kylef/Spectre.git resolved at 0.10.1
Creating working copy for https://github.com/vapor/vapor.git
Working copy of https://github.com/vapor/vapor.git resolved at 3.3.3
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 1.14.4
warning: 'swift-nio-ssl-support': ignoring declared target(s) 'swift-nio-ssl-support' in the system package
warning: 'swift-nio-zlib-support': ignoring declared target(s) 'swift-nio-zlib-support' in the system package
warning: 'csqlite': ignoring declared target(s) 'CSQLite' in the system package
warning: couldn't find pc file for openssl
warning: couldn't find pc file for openssl
warning: 'kineo': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/.build/checkouts/kineo/Sources/Kineo/ext/Heap/LICENSE.txt
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/115] Write sources
[4/115] Compiling serd string.c
[5/115] Compiling serd env.c
[6/115] Compiling serd reader.c
[7/115] Compiling serd node.c
[8/115] Compiling serd uri.c
[9/115] Compiling _NumericsShims _NumericsShims.c
[10/115] Compiling serd byte_source.c
[11/115] Compiling serd writer.c
[12/115] Write sources
[13/115] Write swift-version-24593BA9C3E375BF.txt
[14/115] Write sources
[39/115] Compiling serd n3.c
[40/115] Write sources
[41/137] Compiling LMDB midl.c
In file included from /host/spi-builder-workspace/.build/checkouts/CLMDB/Sources/LMDB/mdb.c:71:
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/mman.h:2:2: error: "WASI lacks a true mmap; to enable minimal mmap emulation, compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
    2 | #error "WASI lacks a true mmap; to enable minimal mmap emulation, \
      |  ^
In file included from /host/spi-builder-workspace/.build/checkouts/CLMDB/Sources/LMDB/mdb.c:138:
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/signal.h:2:2: error: "wasm lacks signal support; to enable minimal signal emulation, compile with -D_WASI_EMULATED_SIGNAL and link with -lwasi-emulated-signal"
    2 | #error "wasm lacks signal support; to enable minimal signal emulation, \
      |  ^
/host/spi-builder-workspace/.build/checkouts/CLMDB/Sources/LMDB/mdb.c:2574:8: error: call to undeclared function 'msync'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 2574 |                         if (MDB_MSYNC(env->me_map, env->me_mapsize, flags))
      |                             ^
/host/spi-builder-workspace/.build/checkouts/CLMDB/Sources/LMDB/mdb.c:447:36: note: expanded from macro 'MDB_MSYNC'
  447 | # define MDB_MSYNC(addr,len,flags)      msync(addr,len,flags)
      |                                         ^
/host/spi-builder-workspace/.build/checkouts/CLMDB/Sources/LMDB/mdb.c:2574:8: note: did you mean 'fsync'?
/host/spi-builder-workspace/.build/checkouts/CLMDB/Sources/LMDB/mdb.c:447:36: note: expanded from macro 'MDB_MSYNC'
  447 | # define MDB_MSYNC(addr,len,flags)      msync(addr,len,flags)
      |                                         ^
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/unistd.h:88:5: note: 'fsync' declared here
   88 | int fsync(int);
      |     ^
/host/spi-builder-workspace/.build/checkouts/CLMDB/Sources/LMDB/mdb.c:2679:11: error: use of undeclared identifier 'F_SETLK'
 2679 |         Pidset = F_SETLK, Pidcheck = F_GETLK
      |                  ^~~~~~~
/host/spi-builder-workspace/.build/checkouts/CLMDB/Sources/LMDB/mdb.c:2679:31: error: use of undeclared identifier 'F_GETLK'
 2679 |         Pidset = F_SETLK, Pidcheck = F_GETLK
      |                                      ^~~~~~~
/host/spi-builder-workspace/.build/checkouts/CLMDB/Sources/LMDB/mdb.c:2712:22: error: use of undeclared identifier 'F_WRLCK'
 2712 |                 lock_info.l_type = F_WRLCK;
      |                                    ^~~~~~~
/host/spi-builder-workspace/.build/checkouts/CLMDB/Sources/LMDB/mdb.c:2717:14: error: use of undeclared identifier 'F_GETLK'
 2717 |                         if (op == F_GETLK && lock_info.l_type != F_UNLCK)
      |                                   ^~~~~~~
/host/spi-builder-workspace/.build/checkouts/CLMDB/Sources/LMDB/mdb.c:2717:45: error: use of undeclared identifier 'F_UNLCK'
 2717 |                         if (op == F_GETLK && lock_info.l_type != F_UNLCK)
      |                                                                  ^~~~~~~
/host/spi-builder-workspace/.build/checkouts/CLMDB/Sources/LMDB/mdb.c:3934:8: error: call to undeclared function 'msync'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 3934 |                         if (MDB_MSYNC(ptr, meta_size, rc)) {
      |                             ^
/host/spi-builder-workspace/.build/checkouts/CLMDB/Sources/LMDB/mdb.c:447:36: note: expanded from macro 'MDB_MSYNC'
  447 | # define MDB_MSYNC(addr,len,flags)      msync(addr,len,flags)
      |                                         ^
/host/spi-builder-workspace/.build/checkouts/CLMDB/Sources/LMDB/mdb.c:4092:19: error: use of undeclared identifier 'MAP_SHARED'
 4092 |         int mmap_flags = MAP_SHARED;
      |                          ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/CLMDB/Sources/LMDB/mdb.c:4093:13: error: use of undeclared identifier 'PROT_READ'
 4093 |         int prot = PROT_READ;
      |                    ^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/CLMDB/Sources/LMDB/mdb.c:4099:11: error: use of undeclared identifier 'PROT_WRITE'
 4099 |                 prot |= PROT_WRITE;
      |                         ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/CLMDB/Sources/LMDB/mdb.c:4103:16: error: call to undeclared function 'mmap'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 4103 |         env->me_map = mmap(addr, env->me_mapsize, prot, mmap_flags,
      |                       ^
/host/spi-builder-workspace/.build/checkouts/CLMDB/Sources/LMDB/mdb.c:4103:14: error: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion]
 4103 |         env->me_map = mmap(addr, env->me_mapsize, prot, mmap_flags,
      |                     ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 4104 |                 env->me_fd, 0);
      |                 ~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/CLMDB/Sources/LMDB/mdb.c:4105:21: error: use of undeclared identifier 'MAP_FAILED'
 4105 |         if (env->me_map == MAP_FAILED) {
      |                            ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/CLMDB/Sources/LMDB/mdb.c:4158:3: error: call to undeclared function 'munmap'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 4158 |                 munmap(env->me_map, env->me_mapsize);
      |                 ^
/host/spi-builder-workspace/.build/checkouts/CLMDB/Sources/LMDB/mdb.c:4662:22: error: use of undeclared identifier 'F_RDLCK'
 4662 |                 lock_info.l_type = F_RDLCK;
      |                                    ^~~~~~~
/host/spi-builder-workspace/.build/checkouts/CLMDB/Sources/LMDB/mdb.c:4666:35: error: use of undeclared identifier 'F_SETLK'
 4666 |                 while ((rc = fcntl(env->me_lfd, F_SETLK, &lock_info)) &&
      |                                                 ^~~~~~~
/host/spi-builder-workspace/.build/checkouts/CLMDB/Sources/LMDB/mdb.c:4697:21: error: use of undeclared identifier 'F_WRLCK'
 4697 |         lock_info.l_type = F_WRLCK;
      |                            ^~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[42/172] Compiling LMDB mdb.c
BUILD FAILURE 6.3 wasm