Build Information
Failed to build MuJoCo, reference v2.3.1 (ebfd2d), with Swift 6.4 for Android on 18 Sep 2026 21:23:21 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344845-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.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: android
Swift version: 6.4
Building package at path: $PWD
https://github.com/liuliu/swift-mujoco.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:abadcff584c273feba50641b454858d377ba30b35ea7287a94f45ebd8afd0ea0
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.4-latest
Fetching https://github.com/liuliu/mujoco.git
[1/5625] Fetching mujoco
Fetched https://github.com/liuliu/mujoco.git (1.72s)
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/apple/swift-numerics
[1/2345] Fetching swift-docc-plugin
[213/8981] Fetching swift-docc-plugin, swift-numerics
Fetched https://github.com/apple/swift-numerics (0.59s)
Fetched https://github.com/apple/swift-docc-plugin (0.59s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.75s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.5.0 (0.19s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3823] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit (0.57s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.80s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.5.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-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
warning: 'spi-builder-workspace': you may be able to install glfw3 using your system-packager:
apt-get install libglfw3-dev
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 481]
[Planning deferred tasks]
[91 / 217] qhull
[99 / 217] qhull
[102 / 217]
[115 / 220] C_mujoco
[125 / 240] MuJoCo
[125 / 240] lodepng
[136 / 240] C_mujoco
[137 / 240] C_mujoco
[139 / 240] C_mujoco
[1m/host/spi-builder-workspace/.build/checkouts/mujoco/src/render/render_gl3.c:758:3: [0m[0;1;31merror: [0m[1mcall to undeclared function 'qsort_r'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration][0m
758 | mjQUICKSORT(scn->geomorder, nt, [0;34msizeof[0m([0;34mint[0m), geomcompare, scn->geoms);[0m
| [0;1;32m ^
[0mIn file included from /host/spi-builder-workspace/.build/checkouts/mujoco/src/render/render_gl3.c:25:
[1m/host/spi-builder-workspace/.build/checkouts/mujoco/src/engine/engine_crossplatform.h:43:9: [0m[0;1;36mnote: [0mexpanded from macro 'mjQUICKSORT'[0m
43 | qsort_r(buf, elnum, elsz, func, context)[0m
| [0;1;32m ^
[0m[1m/host/spi-builder-workspace/.build/checkouts/mujoco/src/render/render_gl3.c:758:3: [0m[0;1;36mnote: [0mdid you mean 'qsort'?[0m
In file included from /host/spi-builder-workspace/.build/checkouts/mujoco/src/render/render_gl3.c:25:
[1m/host/spi-builder-workspace/.build/checkouts/mujoco/src/engine/engine_crossplatform.h:43:9: [0m[0;1;36mnote: [0mexpanded from macro 'mjQUICKSORT'[0m
43 | qsort_r(buf, elnum, elsz, func, context)[0m
| [0;1;32m ^
[0mIn file included from /host/spi-builder-workspace/.build/checkouts/mujoco/src/render/render_gl3.c:20:
[1m/android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h:126:6: [0m[0;1;36mnote: [0m'qsort' declared here[0m
126 | [0;34mvoid[0m qsort([0;34mvoid[0m* [0;34m_Nullable[0m __base, size_t __nmemb, size_t __size, [0;34mint[0m (* [0;34m_Nonnull[0m __comparator)([0;34mconst[0m [0;34mvoid[0m* [0;34m_Nullable[0m __lhs, [0;34mconst[0m [0;34mvoid[0m* [0;34m_Nullable[0m __rhs));[0m
| [0;1;32m ^
[0m1 error generated.
error: CompileC /host/spi-builder-workspace/.build/out/Intermediates.noindex/C_mujoco.build/Debug-android-aarch64/C_mujoco-t.build/Objects-normal/aarch64/render_gl3.o /host/spi-builder-workspace/.build/checkouts/mujoco/src/render/render_gl3.c normal aarch64 c com.apple.compilers.llvm.clang.1_0.compiler failed with a nonzero exit code. Command line: cd /host
Using response file: /host/spi-builder-workspace/.build/out/Intermediates.noindex/C_mujoco.build/Debug-android-aarch64/C_mujoco-t.build/Objects-normal/aarch64/9f65232cb83f8421e3a495a5062eba382369c975104ee97bafc405ab795bfc5e-common-args.resp
/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/bin/clang -x c -target aarch64-unknown-linux-android28 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fcolor-diagnostics -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -w -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -fstrict-aliasing -Wdeprecated-declarations -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body --sysroot /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot @/host/spi-builder-workspace/.build/out/Intermediates.noindex/C_mujoco.build/Debug-android-aarch64/C_mujoco-t.build/Objects-normal/aarch64/9f65232cb83f8421e3a495a5062eba382369c975104ee97bafc405ab795bfc5e-common-args.resp -MMD -MT dependencies -MF /host/spi-builder-workspace/.build/out/Intermediates.noindex/C_mujoco.build/Debug-android-aarch64/C_mujoco-t.build/Objects-normal/aarch64/render_gl3.d --serialize-diagnostics /host/spi-builder-workspace/.build/out/Intermediates.noindex/C_mujoco.build/Debug-android-aarch64/C_mujoco-t.build/Objects-normal/aarch64/render_gl3.dia -c /host/spi-builder-workspace/.build/checkouts/mujoco/src/render/render_gl3.c -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/C_mujoco.build/Debug-android-aarch64/C_mujoco-t.build/Objects-normal/aarch64/render_gl3.o
error: Build failed
BUILD FAILURE 6.4 android