The Swift Package Index logo.Swift Package Index

Build Information

Failed to build MuJoCo, reference v2.3.1 (ebfd2d), with Swift 6.3 for Wasm on 13 Apr 2026 11:28:10 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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/liuliu/swift-mujoco.git
Reference: v2.3.1
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/liuliu/swift-mujoco
 * tag               v2.3.1     -> FETCH_HEAD
HEAD is now at ebfd2d1 Update to 2.3.1
Cloned https://github.com/liuliu/swift-mujoco.git
Revision (git rev-parse @):
ebfd2d198baca173239e43af3336cab6b1498042
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/liuliu/swift-mujoco.git at v2.3.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/liuliu/swift-mujoco.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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/liuliu/mujoco.git
[1/5625] Fetching mujoco
Fetched https://github.com/liuliu/mujoco.git from cache (2.36s)
Fetching https://github.com/apple/swift-numerics
Fetching https://github.com/apple/swift-docc-plugin
[1/2271] Fetching swift-docc-plugin
[478/8687] Fetching swift-docc-plugin, swift-numerics
Fetched https://github.com/apple/swift-docc-plugin from cache (0.40s)
Fetched https://github.com/apple/swift-numerics from cache (0.47s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (1.22s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.6 (0.85s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3672] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.43s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.91s)
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.1
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/liuliu/mujoco.git
Working copy of https://github.com/liuliu/mujoco.git resolved at efd310e00b1766b45e234952b60f6a2291cc90b0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.6
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/103] Write sources
[3/103] Compiling engine_callback.c
In file included from /host/spi-builder-workspace/.build/checkouts/mujoco/external/qhull/src/libqhull_r/userprintf_r.c:23:
In file included from /host/spi-builder-workspace/.build/checkouts/mujoco/external/qhull/src/libqhull_r/libqhull_r.h:35:
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/setjmp.h:13:2: error: Setjmp/longjmp support requires Exception handling support, which is [not yet standardized](https://github.com/WebAssembly/proposals?tab=readme-ov-file#phase-3---implementation-phase-cg--wg). To enable it, compile with `-mllvm -wasm-enable-sjlj` and use an engine that implements the Exception handling proposal.
   13 | #error Setjmp/longjmp support requires Exception handling support, which is [not yet standardized](https://github.com/WebAssembly/proposals?tab=readme-ov-file#phase-3---implementation-phase-cg--wg). To enable it, compile with `-mllvm -wasm-enable-sjlj` and use an engine that implements the Exception handling proposal.
      |  ^
1 error generated.
[4/103] Compiling qhull userprintf_r.c
In file included from /host/spi-builder-workspace/.build/checkouts/mujoco/external/qhull/src/libqhull_r/userprintf_rbox_r.c:21:
In file included from /host/spi-builder-workspace/.build/checkouts/mujoco/external/qhull/src/libqhull_r/libqhull_r.h:35:
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/setjmp.h:13:2: error: Setjmp/longjmp support requires Exception handling support, which is [not yet standardized](https://github.com/WebAssembly/proposals?tab=readme-ov-file#phase-3---implementation-phase-cg--wg). To enable it, compile with `-mllvm -wasm-enable-sjlj` and use an engine that implements the Exception handling proposal.
   13 | #error Setjmp/longjmp support requires Exception handling support, which is [not yet standardized](https://github.com/WebAssembly/proposals?tab=readme-ov-file#phase-3---implementation-phase-cg--wg). To enable it, compile with `-mllvm -wasm-enable-sjlj` and use an engine that implements the Exception handling proposal.
      |  ^
1 error generated.
[4/103] Compiling qhull userprintf_rbox_r.c
[4/103] Compiling qhull usermem_r.c
[4/103] Compiling engine_collision_box.c
/host/spi-builder-workspace/.build/checkouts/mujoco/src/engine/engine_collision_driver.c:426:3: error: call to undeclared function 'qsort_r'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  426 |   mjQUICKSORT(sortbuf, 2*bufcnt, sizeof(mjtBroadphase), broadcompare, 0);
      |   ^
/host/spi-builder-workspace/.build/checkouts/mujoco/src/engine/engine_crossplatform.h:43:9: note: expanded from macro 'mjQUICKSORT'
   43 |         qsort_r(buf, elnum, elsz, func, context)
      |         ^
/host/spi-builder-workspace/.build/checkouts/mujoco/src/engine/engine_collision_driver.c:426:3: note: did you mean 'qsort'?
/host/spi-builder-workspace/.build/checkouts/mujoco/src/engine/engine_crossplatform.h:43:9: note: expanded from macro 'mjQUICKSORT'
   43 |         qsort_r(buf, elnum, elsz, func, context)
      |         ^
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/stdlib.h:70:6: note: 'qsort' declared here
   70 | void qsort (void *, size_t, size_t, int (*)(const void *, const void *));
      |      ^
[4/103] Compiling engine_collision_driver.c
[4/103] Compiling tinyxml2 tinyxml2.cpp
[4/103] Compiling engine_collision_convex.c
[4/103] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.3 wasm