Skip to content

Install CBMC from the Sonoma bottle on Intel macOS - #5213

Closed
feliperodri wants to merge 1 commit into
model-checking:mainfrom
feliperodri:fix-macos-intel-cbmc
Closed

feliperodri wants to merge 1 commit into
model-checking:mainfrom
feliperodri:fix-macos-intel-cbmc

Conversation

@feliperodri

Copy link
Copy Markdown
Member

Kani CI has failed on every run since 2026-11-20, on main and on PRs. The macos-15-intel jobs fail while installing CBMC:

openjdk: The arm64 architecture is required for this software.
Error: An unsatisfied requirement failed this build.

Fail-fast then cancels the other regression jobs, and BuildBundle-MacOs-x86_64 fails the same way.

Cause

The diffblue/cbmc tap only has an Intel bottle for macOS 14 (Sonoma). On the macOS 15 Intel runners, brew install therefore builds CBMC from source. Homebrew moved Intel Macs to Tier 3, and the formula's openjdk@21 build dependency now requires arm64, so that build fails before it starts.

Change

On Intel Macs, scripts/setup/macos/install_cbmc.sh now:

  1. downloads the Sonoma bottle from the tap's release;
  2. checks its SHA-256 against the sonoma: entry in the tap's formula;
  3. installs its binaries into /usr/local/bin.

The bottle is built with cellar: :any_skip_relocation, so its binaries do not depend on their install location, and binaries built for macOS 14 run on later versions. Arm Macs keep using brew install. The script now also prints cbmc --version.

Testing

I checked locally that the bottle's checksum matches the formula, that the formula parsing picks the Intel Sonoma hash and not the arm64_sonoma one, and the bottle's layout. The macOS jobs of this PR's CI are the end-to-end test.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

Homebrew moved Intel Macs to Tier 3, and the openjdk@21 build dependency of the CBMC formula now requires arm64. The tap only has an Intel bottle for macOS 14, so on the macos-15-intel runners brew builds CBMC from source and fails, which fails every Kani CI run on main since 2026-11-20. Install the binaries of the Sonoma bottle instead, after checking its checksum against the tap's formula.

Signed-off-by: Felipe R. Monteiro <[email protected]>
@feliperodri
feliperodri requested review from a team as code owners November 20, 2026 23:35
@feliperodri feliperodri added the [C] Bug This is a bug. Something isn't working. label Nov 20, 2026
@feliperodri

Copy link
Copy Markdown
Member Author

Closing as completed: this fix was merged as part of #5214 to unblock CI.

auto-merge was automatically disabled November 21, 2026 18:25

Pull request was closed

feliperodri added a commit to tautschnig/kani that referenced this pull request Nov 21, 2026
Update Rust toolchain from nightly-2026-11-19 to nightly-2026-11-20.

This PR also carries two fixes needed to get CI green on this toolchain:
- **Install CBMC from the Sonoma bottle on Intel macOS** (from model-checking#5213).
Homebrew moved Intel Macs to Tier 3, and the CBMC formula's `openjdk@21`
build dependency now requires arm64. Without a macOS 15 Intel bottle,
brew built CBMC from source and failed, so every `macos-15-intel` job
failed, and fail-fast cancelled the other regression jobs.
- **Fix the Cargo and rustc warnings printed on every build** (from
model-checking#5207):
  - inherit `[workspace.lints]` in the six manifests that did not;
  - drop the `homepage` keys that repeat `repository`;
- remove the unused `strum` (`kani_macros`) and `lazy_static`
(`cprover_bindings`) dependencies;
  - mark `std`'s `kani` dependency as used;
  - drop the `layout_for_ptr` feature gates, which are stable now.

The only warning left is the `generic_const_exprs` note tracked in
model-checking#4832.

---------

Signed-off-by: Felipe R. Monteiro <[email protected]>
Co-authored-by: celinval <[email protected]>
Co-authored-by: Felipe R. Monteiro <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[C] Bug This is a bug. Something isn't working.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants