The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build MuJoCo, reference main (a37f3b), with Swift 6.1 for Android on 25 Jul 2025 00:12:11 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/liuliu/swift-mujoco.git
Reference: main
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
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at a37f3ba Update to 3.x rules_swift.
Cloned https://github.com/liuliu/swift-mujoco.git
Revision (git rev-parse @):
a37f3ba8e7a245a229c2372cf8eee492800d328a
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/liuliu/swift-mujoco.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/liuliu/swift-mujoco.git
https://github.com/liuliu/swift-mujoco.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "mujoco",
      "requirement" : {
        "revision" : [
          "7723882b073b2fa009a20a899883d785318d465e"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/liuliu/mujoco.git"
    },
    {
      "identity" : "swift-numerics",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-numerics"
    },
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    }
  ],
  "manifest_display_name" : "MuJoCo",
  "name" : "MuJoCo",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.14"
    },
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "watchos",
      "version" : "3.0"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    }
  ],
  "products" : [
    {
      "name" : "MuJoCo",
      "targets" : [
        "MuJoCo"
      ],
      "type" : {
        "library" : [
          "static"
        ]
      }
    },
    {
      "name" : "simulate",
      "targets" : [
        "simulate"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "codegen",
      "targets" : [
        "codegen"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "simulate",
      "module_type" : "SwiftTarget",
      "name" : "simulate",
      "path" : "Examples/simulate",
      "product_dependencies" : [
        "Numerics"
      ],
      "product_memberships" : [
        "simulate"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "MuJoCo"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "codegen",
      "module_type" : "SwiftTarget",
      "name" : "codegen",
      "path" : "Sources/codegen",
      "product_memberships" : [
        "codegen"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "MuJoCoCSyntax"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "Tests",
      "module_type" : "SwiftTarget",
      "name" : "Tests",
      "path" : "Tests",
      "sources" : [
        "tuple.swift",
        "xml.swift"
      ],
      "target_dependencies" : [
        "MuJoCo"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MuJoCoCSyntax",
      "module_type" : "SwiftTarget",
      "name" : "MuJoCoCSyntax",
      "path" : "Sources/codegen",
      "product_memberships" : [
        "codegen"
      ],
      "sources" : [
        "enumDecl.swift",
        "functionExtension.swift",
        "parseHeaders.swift",
        "structExtension.swift"
      ],
      "target_dependencies" : [
        "ChangeCases"
      ],
      "type" : "library"
    },
    {
      "c99name" : "MuJoCo",
      "module_type" : "SwiftTarget",
      "name" : "MuJoCo",
      "path" : "Sources",
      "product_dependencies" : [
        "C_mujoco"
      ],
      "product_memberships" : [
        "MuJoCo",
        "simulate"
      ],
      "sources" : [
        "GLContext.swift",
        "Mj+Functions.swift",
        "Mj.swift",
        "MjArray.swift",
        "MjContact+Extensions.swift",
        "MjContact.swift",
        "MjData+Extensions.swift",
        "MjData+Functions.swift",
        "MjData.swift",
        "MjLROpt+Extensions.swift",
        "MjLROpt.swift",
        "MjModel+Extensions.swift",
        "MjModel+Functions.swift",
        "MjModel.swift",
        "MjObject+Extensions.swift",
        "MjObject.swift",
        "MjOption+Extensions.swift",
        "MjOption.swift",
        "MjSolverStat.swift",
        "MjStatistic.swift",
        "MjTimerStat.swift",
        "MjUI+Extensions.swift",
        "MjUI+Functions.swift",
        "MjUI.swift",
        "MjVFS.swift",
        "MjVisual+Extensions.swift",
        "MjVisual.swift",
        "MjWarningStat.swift",
        "Mjcb.swift",
        "MjrContext+Extensions.swift",
        "MjrContext+Functions.swift",
        "MjrContext.swift",
        "MjrRect.swift",
        "Mjt.swift",
        "MjuiDef+Extensions.swift",
        "MjuiDef.swift",
        "MjuiDefObjectMapper.swift",
        "MjuiDefState.swift",
        "MjuiItem+Extensions.swift",
        "MjuiItem.swift",
        "MjuiItemEdit+Extensions.swift",
        "MjuiItemEdit.swift",
        "MjuiItemMulti+Extensions.swift",
        "MjuiItemMulti.swift",
        "MjuiItemSingle+Extensions.swift",
        "MjuiItemSingle.swift",
        "MjuiItemSlider+Extensions.swift",
        "MjuiItemSlider.swift",
        "MjuiSection+Extensions.swift",
        "MjuiSection.swift",
        "MjuiState+Extensions.swift",
        "MjuiState+Functions.swift",
        "MjuiState.swift",
        "MjuiThemeColor+Extensions.swift",
        "MjuiThemeColor.swift",
        "MjuiThemeSpacing+Extensions.swift",
        "MjuiThemeSpacing.swift",
        "MjvCamera+Extensions.swift",
        "MjvCamera+Functions.swift",
        "MjvCamera.swift",
        "MjvFigure+Extensions.swift",
        "MjvFigure.swift",
        "MjvGLCamera+Extensions.swift",
        "MjvGLCamera+Functions.swift",
        "MjvGLCamera.swift",
        "MjvGeom+Extensions.swift",
        "MjvGeom+Functions.swift",
        "MjvGeom.swift",
        "MjvLight.swift",
        "MjvOption+Extensions.swift",
        "MjvOption.swift",
        "MjvPerturb+Extensions.swift",
        "MjvPerturb+Functions.swift",
        "MjvPerturb.swift",
        "MjvScene+Extensions.swift",
        "MjvScene+Functions.swift",
        "MjvScene.swift",
        "OSShim.swift",
        "Simulate.swift"
      ],
      "target_dependencies" : [
        "CShim_mujoco",
        "C_glfw"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ChangeCases",
      "module_type" : "SwiftTarget",
      "name" : "ChangeCases",
      "path" : "Sources/codegen",
      "product_memberships" : [
        "codegen"
      ],
      "sources" : [
        "changeCases.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "C_glfw",
      "module_type" : "SystemLibraryTarget",
      "name" : "C_glfw",
      "path" : "Sources/C_glfw",
      "product_memberships" : [
        "MuJoCo",
        "simulate"
      ],
      "sources" : [
      ],
      "type" : "system-target"
    },
    {
      "c99name" : "CShim_mujoco",
      "module_type" : "ClangTarget",
      "name" : "CShim_mujoco",
      "path" : "Sources/CShim",
      "product_dependencies" : [
        "C_mujoco"
      ],
      "product_memberships" : [
        "MuJoCo",
        "simulate"
      ],
      "sources" : [
        "CShim.c"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:873b43b7be6289c04a5a3fd4b2c372c2a5abf90643451079297d3dc6dc0b7d36
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/liuliu/mujoco.git
[1/5625] Fetching mujoco
Fetched https://github.com/liuliu/mujoco.git from cache (1.64s)
Fetching https://github.com/apple/swift-numerics
Fetching https://github.com/apple/swift-docc-plugin
[1/2094] Fetching swift-docc-plugin
[211/7863] Fetching swift-docc-plugin, swift-numerics
Fetched https://github.com/apple/swift-docc-plugin from cache (0.45s)
Fetched https://github.com/apple/swift-numerics from cache (0.49s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.0.3 (1.41s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.5 (0.67s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3433] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.57s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.24s)
Creating working copy for https://github.com/liuliu/mujoco.git
Working copy of https://github.com/liuliu/mujoco.git resolved at 7723882b073b2fa009a20a899883d785318d465e
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/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.0.3
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.5
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/103] Compiling engine_inverse.c
[3/103] Compiling engine_sensor.c
[4/103] Compiling engine_setconst.c
[5/103] Write sources
[6/103] Compiling engine_ray.c
[7/103] Compiling engine_solver.c
[8/103] Compiling qhull userprintf_rbox_r.c
[9/103] Compiling qhull usermem_r.c
[10/103] Compiling qhull userprintf_r.c
[11/103] Write swift-version-24593BA9C3E375BF.txt
[12/103] Compiling qhull user_r.c
[13/103] Compiling qhull random_r.c
[14/103] Compiling qhull rboxlib_r.c
[15/103] Compiling qhull qset_r.c
[16/103] Compiling qhull stat_r.c
[17/103] Compiling qhull mem_r.c
[18/103] Compiling qhull poly_r.c
[19/103] Compiling tinyxml2 tinyxml2.cpp
[20/103] Compiling qhull poly2_r.c
[21/103] Compiling qhull libqhull_r.c
[22/103] Compiling qhull merge_r.c
[23/103] Compiling engine_io.c
[24/103] Compiling qhull global_r.c
[24/103] Write sources
[26/103] Compiling qhull geom_r.c
[27/103] Compiling qhull accessors_r.c
[28/103] Compiling qhull io_r.c
[29/103] Compiling qhull geom2_r.c
[30/103] Compiling ccd support.c
[31/103] Compiling ccd vec3.c
[31/103] Write sources
[38/103] Compiling _NumericsShims _NumericsShims.c
[39/103] Compiling ccd polytope.c
[40/103] Compiling ccd mpr.c
[41/103] Compiling ccd ccd.c
[42/103] Compiling xml_numeric_format.cc
[43/115] Compiling engine_plugin.cc
[44/115] Compiling xml_util.cc
[45/115] Compiling lodepng lodepng.cpp
[46/115] Compiling xml_urdf.cc
[47/115] Compiling xml_native_writer.cc
[48/115] Compiling xml_native_reader.cc
[50/115] Compiling RealModule AugmentedArithmetic.swift
[51/115] Compiling RealModule Double+Real.swift
[52/115] Compiling RealModule ElementaryFunctions.swift
[53/115] Compiling RealModule AlgebraicField.swift
[54/115] Compiling RealModule ApproximateEquality.swift
[55/115] Emitting module RealModule
[56/116] Compiling RealModule Real.swift
[57/116] Compiling RealModule Float80+Real.swift
[58/116] Compiling RealModule Float16+Real.swift
[59/116] Compiling RealModule Float+Real.swift
[60/116] Compiling RealModule RealFunctions.swift
[61/117] Compiling xml_base.cc
[62/117] Compiling user_util.cc
[63/122] Wrapping AST for RealModule for debugging
[64/122] Compiling xml.cc
[66/122] Compiling ComplexModule Arithmetic.swift
[66/122] Compiling xml_api.cc
[68/122] Emitting module ComplexModule
[68/122] Compiling ui_main.c
[70/122] Compiling ComplexModule ElementaryFunctions.swift
[70/122] Compiling render_util.c
/host/spi-builder-workspace/.build/checkouts/mujoco/src/render/render_gl3.c:758:3: error: call to undeclared function 'qsort_r'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  758 |   mjQUICKSORT(scn->geomorder, nt, sizeof(int), geomcompare, scn->geoms);
      |   ^
/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/render/render_gl3.c:758: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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdlib.h:126:6: note: 'qsort' declared here
  126 | void qsort(void* _Nullable __base, size_t __nmemb, size_t __size, int (* _Nonnull __comparator)(const void* _Nullable __lhs, const void* _Nullable __rhs));
      |      ^
1 error generated.
[71/122] Compiling render_gl3.c
[71/122] Compiling user_mesh.cc
[71/122] Compiling user_model.cc
[71/122] Compiling user_composite.cc
[72/122] Compiling ComplexModule Complex.swift
[73/122] Emitting module ChangeCases
[73/122] Compiling user_objects.cc
[73/122] Compiling engine_print.c
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:873b43b7be6289c04a5a3fd4b2c372c2a5abf90643451079297d3dc6dc0b7d36
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/51] Compiling loader.cc
/host/spi-builder-workspace/.build/checkouts/mujoco/src/render/render_gl3.c:758:3: error: call to undeclared function 'qsort_r'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  758 |   mjQUICKSORT(scn->geomorder, nt, sizeof(int), geomcompare, scn->geoms);
      |   ^
/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/render/render_gl3.c:758: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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdlib.h:126:6: note: 'qsort' declared here
  126 | void qsort(void* _Nullable __base, size_t __nmemb, size_t __size, int (* _Nonnull __comparator)(const void* _Nullable __lhs, const void* _Nullable __rhs));
      |      ^
1 error generated.
[3/51] Compiling render_gl3.c
[3/51] Compiling render_gl2.c
[3/51] Compiling user_model.cc
[3/51] Compiling user_composite.cc
[3/51] Compiling user_objects.cc
[3/51] Compiling render_context.c
[3/51] Compiling user_mesh.cc
[3/51] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.1 android