Packaging¶
Version 1.4.1.0 is published in the modular-community conda channel for linux-64, linux-aarch64, and osx-arm64; see publication.
The recipe targets source release 1.4.1.1 with Mojo 1.2.0 and the published APN Mojo 1.0.2 channel package. Channel publication is pending recipe CI and maintainer approval. The 1.4.1.0 platform results below describe the earlier release.
Channel and recipe¶
recipes/cvc5_mojo/recipe.yaml targets linux-64, linux-aarch64, and osx-arm64. It
downloads the matching official shared build and checksum for each
platform. The macOS package is for Apple Silicon.
Intel Macs and 32-bit ARM builds are skipped.
The installation guide
lists the consumer commands.
- Compiler. Build and host environments use Mojo 1.2.0. The run
requirement,
pin_compatible('mojo-compiler', upper_bound='x.x'), renders as>=1.2.0,<1.3.0a0: any Mojo 1.2 patch release. A precompiled.mojocis tied to its compiler's minor version, so a new Mojo minor needs a new build. - Package format. The precompiled module is installed at
$PREFIX/lib/mojo/cvc5_mojo.mojoc. - Tests. The recipe runs five programs from the tagged source against
the installed packages, without
-I:tests/smoke/test_smoke.mojo,test_lifetimes.mojo, andtest_api.mojo(APN values, statistics, and the parser), anddocs/examples/plugins.mojoandoracles.mojo(callbacks). Native libraries are found through$CONDA_PREFIX; see loading the library. - Build tools. Python and LLVM's tools stage and inspect the native libraries. They are build dependencies, not new binding runtime APIs.
Version and source¶
The version is cvc5's version followed by a bindings revision:
1.4.1.0 binds cvc5 1.4.1; 1.4.1.1 would change only the bindings.
pixi.toml and the recipe use the same version. An upstream bump moves
both to the new cvc5 version with revision zero.
The recipe builds from the tag v${{ version }}, for the v1.4.1.1 release, of
Spellbound-Mojo/cvc5_mojo.
For each release, before submitting the recipe:
- Review and commit the release contents, including generated files.
- Push the release commit to the public repository and tag it
v<version>; keep published release tags fixed. - Build the recipe from that tag, on an ARM runner too (the
Linux ARM64workflow withsource: tag), and record the resolved commit in the release notes or channel PR.
For local recipe validation before publication, use a temporary recipe
whose first source is the working tree, with path and
use_gitignore: true. Preserve the checked upstream archive URL and hash.
Do not submit that local-source recipe to the channel.
apn_mojo¶
The base API takes and returns apn_mojo's Integer
and Rational. The recipe requires version 1.0.2 in build, host, and run
environments. Version 1.0.2 is published for linux-64, linux-aarch64, and
osx-arm64 with a mojo-compiler >=1.2.0,<1.3.0a0 dependency. Local builds and
ARM CI resolve it directly from modular-community. The checkout uses the
same version through pixi.toml and pixi.lock; no APN source build or local
channel is needed.
Bundling libcvc5¶
The native libraries live in $PREFIX/lib/cvc5_mojo/lib, separate from
other packages' libraries. The staging command is shared by local checks
and the recipe:
pixi run --locked python -m bindgen.package_native \
--release third_party/cvc5 --prefix build/native-package-check
Use a fresh destination for each run. The staging tool refuses to merge with an existing native-library or license directory.
bindgen.c_library extracts each library's checksum, byte size, aliases,
SONAME or Mach-O install name, dependencies, search paths, ELF symbol
versions, and Mach-O deployment targets into the
API snapshot, keyed by conda platform. Staging verifies those facts against
the supplied release and rejects a library from the wrong architecture.
C API exports must agree across all pinned archives. Their shared library
stems receive .so on Linux and .dylib on macOS. Starting with these
C API libraries, staging
follows dependencies within the archive. Unused JNI and C++ convenience
libraries, CMake files, libtool metadata, and pkg-config files are omitted.
The release zip stores library aliases as full copies. Staging keeps the
most specific filename for each byte-identical library family and makes
relative symlinks for its aliases. Different bytes are never deduplicated.
The libraries themselves are unchanged, and binary relocation stays
disabled. Linux uses upstream relative RUNPATHs. macOS uses @rpath
install names with @loader_path search paths, preserving the upstream
code signatures as well as the library bytes. These paths are recorded in
the inventory. Missing loader-relative dependencies fail staging; absolute
system-library references remain external.
$PREFIX/lib/cvc5_mojo/native-libraries.json records the shipped libraries,
aliases, external dependency names, and installed license paths. System
dependencies stay external:
- Linux. The shipped libraries need glibc 2.33, below the 2.34 that
Mojo itself needs, and libstdc++ symbols up to
GLIBCXX_3.4.29, from GCC 11. The recipe requireslibstdcxx >=11on Linux.tests/bindgen/test_packaging.pychecks that bound against the symbol versions in the snapshot, so a bump that needs a newer libstdc++ fails until the bound rises. - macOS. The shipped libraries target macOS 11 and link only the
system
libc++andlibSystem. The package declares no minimum macOS version; Mojo's own requirement, macOS 15, applies.
The recipe removes Mojo's share/max/firstActivation marker after
compilation so it is not distributed as package content.
Platform validation¶
| Target | Package build and recipe tests | Native execution |
|---|---|---|
linux-64 |
Built and tested locally with rattler-build 0.30.0 |
The full test gate, docs-test, and a fresh consumer installation |
linux-aarch64 |
Built from the release tag and tested by the Linux ARM64 workflow on an ARM runner |
The recipe's tests: smoke, lifetime, and API tests, and the plugin and oracle examples |
osx-arm64 |
Built and tested locally with rattler-build 0.30.0 on macOS 26.6.2 (M2 Max) |
cvc5's translated tests and examples, the smoke tests other than test_threads.mojo, and a fresh consumer installation; see development for the Linux-only gates |
All targets use cvc5 1.4.1, Mojo 1.1.0, and apn_mojo 1.0.1. fetch places
the host’s solver at third_party/cvc5 and the other builds at
third_party/cvc5-<platform>. LLVM inspects their exported symbols and
native dependencies without executing foreign binaries. The C ABI checks
and Mojo compilation still use the host toolchain.
For the Linux x86-64 archive, staging reduces 113,780,200 bytes of shared library files to 37,661,432 bytes: six libraries and twelve relative symlinks. This preserves the library bytes and all eight license files. These measurements describe that archive, not every platform.
On 2026-10-13 both local package builds passed the recipe tests. In a
fresh Pixi project with only the three channels,
pixi add "mojo==1.1.0" "cvc5_mojo==1.4.1.0" resolved apn_mojo 1.0.1, and
the quickstart, integer, plugin, and oracle examples ran with mojo run
and as a built executable, without -I or CVC5_MOJO_LIBRARY. In the
macOS package the aliases are symlinks and the upstream code signatures
verify. The Linux ARM64 workflow builds the recipe and runs its tests
on an ARM runner, the way the channel's CI does: from the checkout on each
push, and from the release tag on demand.
Licenses¶
NOTICE records the project's provenance and the upstream components.
Staging copies the project LICENSE and NOTICE, upstream COPYING, and
the complete upstream licenses/ directory into
$PREFIX/share/licenses/cvc5_mojo. The recipe also includes those notices
in its package license metadata. The native inventory lists their paths
so the staged files can be checked against the source archive.
Publication¶
modular/modular-community#399 added the recipe and was merged on 2026-10-14. The channel's CI built and tested the package on all three platforms before uploading it:
| Platform | Build |
|---|---|
linux-64 |
cvc5_mojo-1.4.1.0-hb0f4dca_0 |
linux-aarch64 |
cvc5_mojo-1.4.1.0-he8cfe8b_0 |
osx-arm64 |
cvc5_mojo-1.4.1.0-h60d57d3_0 |
A fresh Pixi project with only the three channels installed the published
package with pixi add cvc5_mojo and ran the quickstart on Linux x86-64. A
later version needs a new tag and a pull request that updates the recipe in
modular-community; see version and source.