Skip to content

ci: fix three CI failures from 2026-07-05 - #47

Closed
r-barnes wants to merge 3 commits into
mainfrom
ci/fix-july-5-failures
Closed

r-barnes wants to merge 3 commits into
mainfrom
ci/fix-july-5-failures

Conversation

@r-barnes

@r-barnes r-barnes commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Three independent CI failures broke main on 2026-07-05:

  • Linux build: NativeOperatorGurobiTests.cpp was added using the old operator API. The recent "Derive universe" commit series changed const_expr/variable to take const Universe& (not shared_ptr) and dropped the universe arg from square, power, piecewise, and step entirely. Updated the test to dereference *uni where needed and remove the now-redundant args. For NativeMax, switched from the nonexistent 3-arg max(ExprPtr, ExprPtr, universe) to max({e1, e2}, *uni) (initializer_list overload) to keep the native-Gurobi code path exercised.

  • Mac/wheels build: Homebrew pushed LLVM 22.1.8 on 2026-07-05. Its libc++ now fully implements std::format, breaking fmt::format visibility in several fbthrift compiler source files. Pinned to llvm@20 (matching the Linux CI LLVM version) in getdeps_mac.yml, before_all_macos.sh, and wheels.yml.

  • docker-explorer: No code change — reverted after user review.

The release/TestPyPI failure (OIDC trusted publisher claim mismatch due to repo move from facebookincubator/ to facebook/) was fixed on the PyPI side, no code change needed.

Test plan

  • Linux build passes (linux workflow)
  • Mac build passes (mac workflow)
  • Wheels build passes (wheels workflow)
  • Release workflow passes once a version tag is cut

r-barnes added 2 commits July 5, 2026 10:46
Linux build: NativeOperatorGurobiTests.cpp was added using the old
operator API where functions like const_expr, variable, square, power,
piecewise, step, and max took a shared_ptr<Universe> (or an extra
universe arg). The recent "Derive universe" commit series changed them
to take const Universe& and dropped the universe arg from square, power,
piecewise, and step entirely. Updated the test to dereference uni
(*uni) where a reference is needed and remove the now-redundant universe
args. For max({e1,e2}, *uni) used the initializer_list overload to keep
the native-Gurobi path working (max(ExprPtr,ExprPtr) exists but goes
through a different code path that doesn't exercise useGurobiNativeMax).

Mac/wheels build: Homebrew updated llvm to 22.1.8 on 2026-07-05. Its
libc++ now fully implements std::format, which interacts with Homebrew's
fmt library in a way that makes fmt::format invisible in several fbthrift
compiler source files (scope_identifier.cc, token.cc, print_ast.cc).
Pinned to llvm@20 to match the Linux CI LLVM version (clang 20, set in
before_all_linux.sh). Rejected patching fbthrift sources or pinning fmt
because the breakage is in the LLVM/libc++/fmt interaction, not in fmt
or fbthrift individually, and llvm@20 is proven-stable. Updated
CC/CXX paths in getdeps_mac.yml, before_all_macos.sh, and wheels.yml.

docker-explorer build: docker compose validation rejected provenance and
sbom keys in services.app.build. These are BuildKit-level flags, not
Compose spec properties, so they don't belong in docker-compose.yml.
Removed them; BuildKit provenance/SBOM attestation defaults are fine
for our CI builds.
Restores the provenance: false and sbom: false fields in
services.app.build. These were removed in the previous commit due to a
docker compose schema validation error, but the user wants them retained.
@meta-cla meta-cla Bot added the cla signed label Jul 5, 2026
@meta-codesync

meta-codesync Bot commented Jul 5, 2026

Copy link
Copy Markdown

@r-barnes has imported this pull request. If you are a Meta employee, you can view this in D110694730.

The previous attempt pinned llvm@20 to avoid fmt::format disappearing in
fbthrift sources with LLVM 22.1.8. That broke folly linking: Homebrew's
folly bottles are compiled against LLVM 22's libc++, so mixing with
LLVM 20 produces arm64 symbol-not-found linker errors.

Root cause: Homebrew's system fmt (v11/v12, shared library) sets
-DFMT_SHARED in fbthrift's compile flags. With LLVM 22.1.8's libc++
(which now fully implements std::format), fmt@11/12 compiled as a shared
lib makes fmt::format invisible in fbthrift's compiler sources.

Fix: Remove fmt from the [homebrew] section of manifests/fmt so getdeps
builds fmt 12.1.0 from source on Mac, as it already does on Linux. The
source build produces a static library (BUILD_SHARED_LIBS is off by
default), which means -DFMT_SHARED is not set and fmt::format is fully
header-inline — compatible with LLVM 22's libc++.

Reverted the llvm@20 pin; Mac stays on brew install llvm (LLVM 22)
to keep ABI compatibility with Homebrew's folly/boost/openssl bottles.

Rejected: patching fbthrift source files to #include <fmt/format.h>
or replace fmt::format with std::format — fragile across fbthrift HEAD
updates. The manifest change is robust and matches Linux behavior.
@meta-codesync meta-codesync Bot closed this in 4a953d4 Jul 6, 2026
@meta-codesync meta-codesync Bot added the Merged label Jul 6, 2026
@meta-codesync

meta-codesync Bot commented Jul 6, 2026

Copy link
Copy Markdown

@r-barnes merged this pull request in 4a953d4.

r-barnes added a commit that referenced this pull request Jul 7, 2026
#47 pinned llvm@20 as the Mac fmt::format fix, but that broke folly
linking because Homebrew's folly bottles are compiled against LLVM 22's
libc++. Revert to brew install llvm (LLVM 22) in getdeps_mac.yml,
before_all_macos.sh, and wheels.yml.
meta-codesync Bot pushed a commit to meta/folly that referenced this pull request Jul 7, 2026
Summary:
The `llvm@20` pin that landed in meta/rebalancer#47 breaks Mac builds. Homebrew's folly bottles are compiled against LLVM 22's libc++; linking against LLVM 20 produces `ld: symbol(s) not found for architecture arm64` on libfolly.

The correct fix (which was developed but didn't make it into the meta/rebalancer#47 squash merge) is to:
1. Revert the `llvm@20` pin back to `brew install llvm` (LLVM 22) in `getdeps_mac.yml`, `before_all_macos.sh`, and `wheels.yml`
2. Remove `fmt` from `[homebrew]` in `manifests/fmt` so getdeps builds fmt 12.1.0 from source as a static library — no `-DFMT_SHARED`, so `fmt::format` stays header-inline and visible under LLVM 22's libc++

This matches Linux behavior (getdeps already builds fmt from source there).

X-link: meta/rebalancer#48

Reviewed By: yangneu2015

Differential Revision: D110918926

Pulled By: r-barnes

fbshipit-source-id: fd15b2f83f14bd8c6077a6ecf210eeebf106e459
meta-codesync Bot pushed a commit to meta/fboss that referenced this pull request Jul 7, 2026
Summary:
The `llvm@20` pin that landed in meta/rebalancer#47 breaks Mac builds. Homebrew's folly bottles are compiled against LLVM 22's libc++; linking against LLVM 20 produces `ld: symbol(s) not found for architecture arm64` on libfolly.

The correct fix (which was developed but didn't make it into the meta/rebalancer#47 squash merge) is to:
1. Revert the `llvm@20` pin back to `brew install llvm` (LLVM 22) in `getdeps_mac.yml`, `before_all_macos.sh`, and `wheels.yml`
2. Remove `fmt` from `[homebrew]` in `manifests/fmt` so getdeps builds fmt 12.1.0 from source as a static library — no `-DFMT_SHARED`, so `fmt::format` stays header-inline and visible under LLVM 22's libc++

This matches Linux behavior (getdeps already builds fmt from source there).

X-link: meta/rebalancer#48

Reviewed By: yangneu2015

Differential Revision: D110918926

Pulled By: r-barnes

fbshipit-source-id: fd15b2f83f14bd8c6077a6ecf210eeebf106e459
meta-codesync Bot pushed a commit to meta/CacheLib that referenced this pull request Jul 7, 2026
Summary:
The `llvm@20` pin that landed in meta/rebalancer#47 breaks Mac builds. Homebrew's folly bottles are compiled against LLVM 22's libc++; linking against LLVM 20 produces `ld: symbol(s) not found for architecture arm64` on libfolly.

The correct fix (which was developed but didn't make it into the meta/rebalancer#47 squash merge) is to:
1. Revert the `llvm@20` pin back to `brew install llvm` (LLVM 22) in `getdeps_mac.yml`, `before_all_macos.sh`, and `wheels.yml`
2. Remove `fmt` from `[homebrew]` in `manifests/fmt` so getdeps builds fmt 12.1.0 from source as a static library — no `-DFMT_SHARED`, so `fmt::format` stays header-inline and visible under LLVM 22's libc++

This matches Linux behavior (getdeps already builds fmt from source there).

X-link: meta/rebalancer#48

Reviewed By: yangneu2015

Differential Revision: D110918926

Pulled By: r-barnes

fbshipit-source-id: fd15b2f83f14bd8c6077a6ecf210eeebf106e459
meta-codesync Bot pushed a commit to facebookexperimental/edencommon that referenced this pull request Jul 7, 2026
Summary:
The `llvm@20` pin that landed in meta/rebalancer#47 breaks Mac builds. Homebrew's folly bottles are compiled against LLVM 22's libc++; linking against LLVM 20 produces `ld: symbol(s) not found for architecture arm64` on libfolly.

The correct fix (which was developed but didn't make it into the meta/rebalancer#47 squash merge) is to:
1. Revert the `llvm@20` pin back to `brew install llvm` (LLVM 22) in `getdeps_mac.yml`, `before_all_macos.sh`, and `wheels.yml`
2. Remove `fmt` from `[homebrew]` in `manifests/fmt` so getdeps builds fmt 12.1.0 from source as a static library — no `-DFMT_SHARED`, so `fmt::format` stays header-inline and visible under LLVM 22's libc++

This matches Linux behavior (getdeps already builds fmt from source there).

X-link: meta/rebalancer#48

Reviewed By: yangneu2015

Differential Revision: D110918926

Pulled By: r-barnes

fbshipit-source-id: fd15b2f83f14bd8c6077a6ecf210eeebf106e459
meta-codesync Bot pushed a commit to meta/mvfst that referenced this pull request Jul 7, 2026
Summary:
The `llvm@20` pin that landed in meta/rebalancer#47 breaks Mac builds. Homebrew's folly bottles are compiled against LLVM 22's libc++; linking against LLVM 20 produces `ld: symbol(s) not found for architecture arm64` on libfolly.

The correct fix (which was developed but didn't make it into the meta/rebalancer#47 squash merge) is to:
1. Revert the `llvm@20` pin back to `brew install llvm` (LLVM 22) in `getdeps_mac.yml`, `before_all_macos.sh`, and `wheels.yml`
2. Remove `fmt` from `[homebrew]` in `manifests/fmt` so getdeps builds fmt 12.1.0 from source as a static library — no `-DFMT_SHARED`, so `fmt::format` stays header-inline and visible under LLVM 22's libc++

This matches Linux behavior (getdeps already builds fmt from source there).

X-link: meta/rebalancer#48

Reviewed By: yangneu2015

Differential Revision: D110918926

Pulled By: r-barnes

fbshipit-source-id: fd15b2f83f14bd8c6077a6ecf210eeebf106e459
meta-codesync Bot pushed a commit to facebookexperimental/moxygen that referenced this pull request Jul 7, 2026
Summary:
The `llvm@20` pin that landed in meta/rebalancer#47 breaks Mac builds. Homebrew's folly bottles are compiled against LLVM 22's libc++; linking against LLVM 20 produces `ld: symbol(s) not found for architecture arm64` on libfolly.

The correct fix (which was developed but didn't make it into the meta/rebalancer#47 squash merge) is to:
1. Revert the `llvm@20` pin back to `brew install llvm` (LLVM 22) in `getdeps_mac.yml`, `before_all_macos.sh`, and `wheels.yml`
2. Remove `fmt` from `[homebrew]` in `manifests/fmt` so getdeps builds fmt 12.1.0 from source as a static library — no `-DFMT_SHARED`, so `fmt::format` stays header-inline and visible under LLVM 22's libc++

This matches Linux behavior (getdeps already builds fmt from source there).

X-link: meta/rebalancer#48

Reviewed By: yangneu2015

Differential Revision: D110918926

Pulled By: r-barnes

fbshipit-source-id: fd15b2f83f14bd8c6077a6ecf210eeebf106e459
meta-codesync Bot pushed a commit that referenced this pull request Jul 7, 2026
Summary:
The `llvm@20` pin that landed in #47 breaks Mac builds. Homebrew's folly bottles are compiled against LLVM 22's libc++; linking against LLVM 20 produces `ld: symbol(s) not found for architecture arm64` on libfolly.

The correct fix (which was developed but didn't make it into the #47 squash merge) is to:
1. Revert the `llvm@20` pin back to `brew install llvm` (LLVM 22) in `getdeps_mac.yml`, `before_all_macos.sh`, and `wheels.yml`
2. Remove `fmt` from `[homebrew]` in `manifests/fmt` so getdeps builds fmt 12.1.0 from source as a static library — no `-DFMT_SHARED`, so `fmt::format` stays header-inline and visible under LLVM 22's libc++

This matches Linux behavior (getdeps already builds fmt from source there).

Pull Request resolved: #48

Test Plan:
- [ ] Mac build passes
- [ ] All wheels-macos passes

Reviewed By: yangneu2015

Differential Revision: D110918926

Pulled By: r-barnes

fbshipit-source-id: fd15b2f83f14bd8c6077a6ecf210eeebf106e459
meta-codesync Bot pushed a commit to meta/sapling that referenced this pull request Jul 7, 2026
Summary:
The `llvm@20` pin that landed in meta/rebalancer#47 breaks Mac builds. Homebrew's folly bottles are compiled against LLVM 22's libc++; linking against LLVM 20 produces `ld: symbol(s) not found for architecture arm64` on libfolly.

The correct fix (which was developed but didn't make it into the meta/rebalancer#47 squash merge) is to:
1. Revert the `llvm@20` pin back to `brew install llvm` (LLVM 22) in `getdeps_mac.yml`, `before_all_macos.sh`, and `wheels.yml`
2. Remove `fmt` from `[homebrew]` in `manifests/fmt` so getdeps builds fmt 12.1.0 from source as a static library — no `-DFMT_SHARED`, so `fmt::format` stays header-inline and visible under LLVM 22's libc++

This matches Linux behavior (getdeps already builds fmt from source there).

X-link: meta/rebalancer#48

Reviewed By: yangneu2015

Differential Revision: D110918926

Pulled By: r-barnes

fbshipit-source-id: fd15b2f83f14bd8c6077a6ecf210eeebf106e459
meta-codesync Bot pushed a commit to meta/BGP that referenced this pull request Jul 7, 2026
Summary:
The `llvm@20` pin that landed in meta/rebalancer#47 breaks Mac builds. Homebrew's folly bottles are compiled against LLVM 22's libc++; linking against LLVM 20 produces `ld: symbol(s) not found for architecture arm64` on libfolly.

The correct fix (which was developed but didn't make it into the meta/rebalancer#47 squash merge) is to:
1. Revert the `llvm@20` pin back to `brew install llvm` (LLVM 22) in `getdeps_mac.yml`, `before_all_macos.sh`, and `wheels.yml`
2. Remove `fmt` from `[homebrew]` in `manifests/fmt` so getdeps builds fmt 12.1.0 from source as a static library — no `-DFMT_SHARED`, so `fmt::format` stays header-inline and visible under LLVM 22's libc++

This matches Linux behavior (getdeps already builds fmt from source there).

X-link: meta/rebalancer#48

Reviewed By: yangneu2015

Differential Revision: D110918926

Pulled By: r-barnes

fbshipit-source-id: fd15b2f83f14bd8c6077a6ecf210eeebf106e459
meta-codesync Bot pushed a commit to meta/fbthrift that referenced this pull request Jul 7, 2026
Summary:
The `llvm@20` pin that landed in meta/rebalancer#47 breaks Mac builds. Homebrew's folly bottles are compiled against LLVM 22's libc++; linking against LLVM 20 produces `ld: symbol(s) not found for architecture arm64` on libfolly.

The correct fix (which was developed but didn't make it into the meta/rebalancer#47 squash merge) is to:
1. Revert the `llvm@20` pin back to `brew install llvm` (LLVM 22) in `getdeps_mac.yml`, `before_all_macos.sh`, and `wheels.yml`
2. Remove `fmt` from `[homebrew]` in `manifests/fmt` so getdeps builds fmt 12.1.0 from source as a static library — no `-DFMT_SHARED`, so `fmt::format` stays header-inline and visible under LLVM 22's libc++

This matches Linux behavior (getdeps already builds fmt from source there).

X-link: meta/rebalancer#48

Reviewed By: yangneu2015

Differential Revision: D110918926

Pulled By: r-barnes

fbshipit-source-id: fd15b2f83f14bd8c6077a6ecf210eeebf106e459
meta-codesync Bot pushed a commit to facebookexperimental/rust-shed that referenced this pull request Jul 7, 2026
Summary:
The `llvm@20` pin that landed in meta/rebalancer#47 breaks Mac builds. Homebrew's folly bottles are compiled against LLVM 22's libc++; linking against LLVM 20 produces `ld: symbol(s) not found for architecture arm64` on libfolly.

The correct fix (which was developed but didn't make it into the meta/rebalancer#47 squash merge) is to:
1. Revert the `llvm@20` pin back to `brew install llvm` (LLVM 22) in `getdeps_mac.yml`, `before_all_macos.sh`, and `wheels.yml`
2. Remove `fmt` from `[homebrew]` in `manifests/fmt` so getdeps builds fmt 12.1.0 from source as a static library — no `-DFMT_SHARED`, so `fmt::format` stays header-inline and visible under LLVM 22's libc++

This matches Linux behavior (getdeps already builds fmt from source there).

X-link: meta/rebalancer#48

Reviewed By: yangneu2015

Differential Revision: D110918926

Pulled By: r-barnes

fbshipit-source-id: fd15b2f83f14bd8c6077a6ecf210eeebf106e459
meta-codesync Bot pushed a commit to facebookincubator/fizz that referenced this pull request Jul 7, 2026
Summary:
The `llvm@20` pin that landed in meta/rebalancer#47 breaks Mac builds. Homebrew's folly bottles are compiled against LLVM 22's libc++; linking against LLVM 20 produces `ld: symbol(s) not found for architecture arm64` on libfolly.

The correct fix (which was developed but didn't make it into the meta/rebalancer#47 squash merge) is to:
1. Revert the `llvm@20` pin back to `brew install llvm` (LLVM 22) in `getdeps_mac.yml`, `before_all_macos.sh`, and `wheels.yml`
2. Remove `fmt` from `[homebrew]` in `manifests/fmt` so getdeps builds fmt 12.1.0 from source as a static library — no `-DFMT_SHARED`, so `fmt::format` stays header-inline and visible under LLVM 22's libc++

This matches Linux behavior (getdeps already builds fmt from source there).

X-link: meta/rebalancer#48

Reviewed By: yangneu2015

Differential Revision: D110918926

Pulled By: r-barnes

fbshipit-source-id: fd15b2f83f14bd8c6077a6ecf210eeebf106e459
meta-codesync Bot pushed a commit to facebookincubator/hsthrift that referenced this pull request Jul 7, 2026
Summary:
The `llvm@20` pin that landed in meta/rebalancer#47 breaks Mac builds. Homebrew's folly bottles are compiled against LLVM 22's libc++; linking against LLVM 20 produces `ld: symbol(s) not found for architecture arm64` on libfolly.

The correct fix (which was developed but didn't make it into the meta/rebalancer#47 squash merge) is to:
1. Revert the `llvm@20` pin back to `brew install llvm` (LLVM 22) in `getdeps_mac.yml`, `before_all_macos.sh`, and `wheels.yml`
2. Remove `fmt` from `[homebrew]` in `manifests/fmt` so getdeps builds fmt 12.1.0 from source as a static library — no `-DFMT_SHARED`, so `fmt::format` stays header-inline and visible under LLVM 22's libc++

This matches Linux behavior (getdeps already builds fmt from source there).

X-link: meta/rebalancer#48

Reviewed By: yangneu2015

Differential Revision: D110918926

Pulled By: r-barnes

fbshipit-source-id: fd15b2f83f14bd8c6077a6ecf210eeebf106e459
meta-codesync Bot pushed a commit to meta/openr that referenced this pull request Jul 7, 2026
Summary:
The `llvm@20` pin that landed in meta/rebalancer#47 breaks Mac builds. Homebrew's folly bottles are compiled against LLVM 22's libc++; linking against LLVM 20 produces `ld: symbol(s) not found for architecture arm64` on libfolly.

The correct fix (which was developed but didn't make it into the meta/rebalancer#47 squash merge) is to:
1. Revert the `llvm@20` pin back to `brew install llvm` (LLVM 22) in `getdeps_mac.yml`, `before_all_macos.sh`, and `wheels.yml`
2. Remove `fmt` from `[homebrew]` in `manifests/fmt` so getdeps builds fmt 12.1.0 from source as a static library — no `-DFMT_SHARED`, so `fmt::format` stays header-inline and visible under LLVM 22's libc++

This matches Linux behavior (getdeps already builds fmt from source there).

X-link: meta/rebalancer#48

Reviewed By: yangneu2015

Differential Revision: D110918926

Pulled By: r-barnes

fbshipit-source-id: fd15b2f83f14bd8c6077a6ecf210eeebf106e459
meta-codesync Bot pushed a commit to facebookincubator/katran that referenced this pull request Jul 7, 2026
Summary:
The `llvm@20` pin that landed in meta/rebalancer#47 breaks Mac builds. Homebrew's folly bottles are compiled against LLVM 22's libc++; linking against LLVM 20 produces `ld: symbol(s) not found for architecture arm64` on libfolly.

The correct fix (which was developed but didn't make it into the meta/rebalancer#47 squash merge) is to:
1. Revert the `llvm@20` pin back to `brew install llvm` (LLVM 22) in `getdeps_mac.yml`, `before_all_macos.sh`, and `wheels.yml`
2. Remove `fmt` from `[homebrew]` in `manifests/fmt` so getdeps builds fmt 12.1.0 from source as a static library — no `-DFMT_SHARED`, so `fmt::format` stays header-inline and visible under LLVM 22's libc++

This matches Linux behavior (getdeps already builds fmt from source there).

X-link: meta/rebalancer#48

Reviewed By: yangneu2015

Differential Revision: D110918926

Pulled By: r-barnes

fbshipit-source-id: fd15b2f83f14bd8c6077a6ecf210eeebf106e459
meta-codesync Bot pushed a commit to meta/proxygen that referenced this pull request Jul 7, 2026
Summary:
The `llvm@20` pin that landed in meta/rebalancer#47 breaks Mac builds. Homebrew's folly bottles are compiled against LLVM 22's libc++; linking against LLVM 20 produces `ld: symbol(s) not found for architecture arm64` on libfolly.

The correct fix (which was developed but didn't make it into the meta/rebalancer#47 squash merge) is to:
1. Revert the `llvm@20` pin back to `brew install llvm` (LLVM 22) in `getdeps_mac.yml`, `before_all_macos.sh`, and `wheels.yml`
2. Remove `fmt` from `[homebrew]` in `manifests/fmt` so getdeps builds fmt 12.1.0 from source as a static library — no `-DFMT_SHARED`, so `fmt::format` stays header-inline and visible under LLVM 22's libc++

This matches Linux behavior (getdeps already builds fmt from source there).

X-link: meta/rebalancer#48

Reviewed By: yangneu2015

Differential Revision: D110918926

Pulled By: r-barnes

fbshipit-source-id: fd15b2f83f14bd8c6077a6ecf210eeebf106e459
meta-codesync Bot pushed a commit to meta/fb303 that referenced this pull request Jul 7, 2026
Summary:
The `llvm@20` pin that landed in meta/rebalancer#47 breaks Mac builds. Homebrew's folly bottles are compiled against LLVM 22's libc++; linking against LLVM 20 produces `ld: symbol(s) not found for architecture arm64` on libfolly.

The correct fix (which was developed but didn't make it into the meta/rebalancer#47 squash merge) is to:
1. Revert the `llvm@20` pin back to `brew install llvm` (LLVM 22) in `getdeps_mac.yml`, `before_all_macos.sh`, and `wheels.yml`
2. Remove `fmt` from `[homebrew]` in `manifests/fmt` so getdeps builds fmt 12.1.0 from source as a static library — no `-DFMT_SHARED`, so `fmt::format` stays header-inline and visible under LLVM 22's libc++

This matches Linux behavior (getdeps already builds fmt from source there).

X-link: meta/rebalancer#48

Reviewed By: yangneu2015

Differential Revision: D110918926

Pulled By: r-barnes

fbshipit-source-id: fd15b2f83f14bd8c6077a6ecf210eeebf106e459
meta-codesync Bot pushed a commit to meta/wangle that referenced this pull request Jul 7, 2026
Summary:
The `llvm@20` pin that landed in meta/rebalancer#47 breaks Mac builds. Homebrew's folly bottles are compiled against LLVM 22's libc++; linking against LLVM 20 produces `ld: symbol(s) not found for architecture arm64` on libfolly.

The correct fix (which was developed but didn't make it into the meta/rebalancer#47 squash merge) is to:
1. Revert the `llvm@20` pin back to `brew install llvm` (LLVM 22) in `getdeps_mac.yml`, `before_all_macos.sh`, and `wheels.yml`
2. Remove `fmt` from `[homebrew]` in `manifests/fmt` so getdeps builds fmt 12.1.0 from source as a static library — no `-DFMT_SHARED`, so `fmt::format` stays header-inline and visible under LLVM 22's libc++

This matches Linux behavior (getdeps already builds fmt from source there).

X-link: meta/rebalancer#48

Reviewed By: yangneu2015

Differential Revision: D110918926

Pulled By: r-barnes

fbshipit-source-id: fd15b2f83f14bd8c6077a6ecf210eeebf106e459
meta-codesync Bot pushed a commit to meta/hhvm that referenced this pull request Jul 7, 2026
Summary:
The `llvm@20` pin that landed in meta/rebalancer#47 breaks Mac builds. Homebrew's folly bottles are compiled against LLVM 22's libc++; linking against LLVM 20 produces `ld: symbol(s) not found for architecture arm64` on libfolly.

The correct fix (which was developed but didn't make it into the meta/rebalancer#47 squash merge) is to:
1. Revert the `llvm@20` pin back to `brew install llvm` (LLVM 22) in `getdeps_mac.yml`, `before_all_macos.sh`, and `wheels.yml`
2. Remove `fmt` from `[homebrew]` in `manifests/fmt` so getdeps builds fmt 12.1.0 from source as a static library — no `-DFMT_SHARED`, so `fmt::format` stays header-inline and visible under LLVM 22's libc++

This matches Linux behavior (getdeps already builds fmt from source there).

X-link: meta/rebalancer#48

Reviewed By: yangneu2015

Differential Revision: D110918926

Pulled By: r-barnes

fbshipit-source-id: fd15b2f83f14bd8c6077a6ecf210eeebf106e459
meta-codesync Bot pushed a commit to meta/watchman that referenced this pull request Jul 7, 2026
Summary:
The `llvm@20` pin that landed in meta/rebalancer#47 breaks Mac builds. Homebrew's folly bottles are compiled against LLVM 22's libc++; linking against LLVM 20 produces `ld: symbol(s) not found for architecture arm64` on libfolly.

The correct fix (which was developed but didn't make it into the meta/rebalancer#47 squash merge) is to:
1. Revert the `llvm@20` pin back to `brew install llvm` (LLVM 22) in `getdeps_mac.yml`, `before_all_macos.sh`, and `wheels.yml`
2. Remove `fmt` from `[homebrew]` in `manifests/fmt` so getdeps builds fmt 12.1.0 from source as a static library — no `-DFMT_SHARED`, so `fmt::format` stays header-inline and visible under LLVM 22's libc++

This matches Linux behavior (getdeps already builds fmt from source there).

X-link: meta/rebalancer#48

Reviewed By: yangneu2015

Differential Revision: D110918926

Pulled By: r-barnes

fbshipit-source-id: fd15b2f83f14bd8c6077a6ecf210eeebf106e459
zerox80 pushed a commit to zerox80/mvfst that referenced this pull request Oct 16, 2026
Summary:
The `llvm@20` pin that landed in meta/rebalancer#47 breaks Mac builds. Homebrew's folly bottles are compiled against LLVM 22's libc++; linking against LLVM 20 produces `ld: symbol(s) not found for architecture arm64` on libfolly.

The correct fix (which was developed but didn't make it into the meta/rebalancer#47 squash merge) is to:
1. Revert the `llvm@20` pin back to `brew install llvm` (LLVM 22) in `getdeps_mac.yml`, `before_all_macos.sh`, and `wheels.yml`
2. Remove `fmt` from `[homebrew]` in `manifests/fmt` so getdeps builds fmt 12.1.0 from source as a static library — no `-DFMT_SHARED`, so `fmt::format` stays header-inline and visible under LLVM 22's libc++

This matches Linux behavior (getdeps already builds fmt from source there).

X-link: meta/rebalancer#48

Reviewed By: yangneu2015

Differential Revision: D110918926

Pulled By: r-barnes

fbshipit-source-id: fd15b2f83f14bd8c6077a6ecf210eeebf106e459
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant