Skip to content

cef: Build CEF 8078 for Linux aarch64 (part of #1864) #3062

Open

Description

@zackees

Part of #1864, the same shape as #2417 (Windows) and #2418 (macOS). obs-rust/cef release 8078 now carries linux_x86_64, macos_arm64 and macos_x86_64; Ubuntu aarch64 still pins 7871, so the CEF guard in the nightly Scheduled run fails on it every day:

ubuntu-aarch64: CEF 7871 is older than Chrome's extended stable (Chromium 156, branch 8078)

(Run 41010694789, 2026-10-30. The same job also lists windows-arm64 and windows-x64, which #2417 covers.)

Scope

  • recipes/cef/linux in obs-rust/obs-studio-libs: the same CEF branch 8078, at the same commit as the Linux x86_64 recipe, with target_cpu="arm64" and the arm64 sysroot (use_sysroot=true, target_sysroot), and the same GN defines: is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome symbol_level=1 chrome_pgo_phase=0.
  • Cross-build from this Linux x86_64 host if the arm sysroot is enough, otherwise a native arm64 host. Record which one in the issue, as browser: Upgrade the bundled CEF from 7871 (Chromium 150, end of life) to a supported Chromium #1864 did for the other platforms.
  • A recipe test like tests/test_cef_recipe.py that checks the codec and symbol flags and target_cpu.
  • cef_binary_8078_linux_aarch64.tar.xz with its SHA-256 in the obs-rust/cef 8078 release, then the CMakePresets.json hash in obs-studio.

Acceptance criteria

  • The recipe test fails on a missing codec flag or the wrong target_cpu, and passes with them.
  • The archives satisfy ci/test_cef_archive_root.py (flat payload, include/cef_version.h at the archive root), as the macOS ones now do after build(cef): strip the top-level directory from the 8078 macOS archives (#2418) #3016.
  • The Ubuntu aarch64 build lane with -DENABLE_BROWSER=ON configures and builds against the archive.
  • uv run --no-project ci/cef_support.py no longer reports ubuntu-aarch64.

Notes

  • The 7871 aarch64 archive exists, so the layout and the packaging side has a worked example to copy.
  • Disk: the x86_64 recipe needs roughly 150 GB under bosn; a separate arm64 output directory needs room beside it.

Activity

  1. zackees commented on Oct 30, 2026

    @zackees
    MemberAuthor

    /ready

    Triage: meets Ready. The scope follows the worked macOS path (#2418/#3016): recipe in obs-studio-libs, release asset, then the pin. Acceptance criteria are testable: the recipe test with RED on a wrong flag or target_cpu, ci/test_cef_archive_root.py, the aarch64 browser build, and cef_support.py. No open dependency. P2 (clears one of the three stale pins that red the nightly CEF Chromium Support job), size:L (a full Chromium build). Record cross versus native arm64 here when decided.

  2. added
    ready
    P2
    size:L
    on Oct 30, 2026
  3. zackees commented on Oct 30, 2026

    @zackees
    MemberAuthor

    Claiming: linux aarch64 CEF 8078 (recipe, release asset, pin)

    Plan:

    1. recipes/cef/linux/build.sh + Dockerfile: take arm64|x86_64 (default x86_64, unchanged), --arm64-build, target_cpu="arm64" in GN_DEFINES, its own out directory and cef_binary_8078_linux_aarch64 pack name; a recipe test that fails on the missing arm64 flags (RED) and passes with them (GREEN).
    2. sync + build under bosn on this Linux x86_64 host (re-run to the 4 h cap until ninja finishes), then pack with the glibc floor and codec guards.
    3. Upload cef_binary_8078_linux_aarch64.tar.xz + SHA-256 to the obs-rust/cef 8078 release, then the CMakePresets.json pin in obs-studio and the ubuntu-aarch64 line of the CEF guard.

    First PR: step 1 (recipe + test) within a day; the archive needs the build host, so the pin follows separately.

    Checked before claiming: CEF's pinned automate-git.py (8078) accepts --arm64-build on Linux (build_dir -> Release_GN_arm64), and this host has 344 GB free / 16 cores for the checkout, which the x86_64 recipe puts at ~150 GB.

    Disk check first: out/cef is empty here, so the arm64 build needs a fresh Chromium sync; I will report the free-space figure on the PR rather than fill the box.

  4. zackees commented on Oct 30, 2026

    @zackees
    MemberAuthor

    Design note from reading the existing recipe before starting the edit (so the next tick does not have to rediscover it):

    • recipes/cef/linux/build.sh hardcodes --x64-build, Release_GN_x64, linux64 and the archive name; it needs an arm64|x86_64 argument like recipes/cef/macos/build.sh already has (default x86_64, so the current archive is unchanged).
    • The arm64 run also needs target_cpu="arm64" in GN_DEFINES (the Linux recipe never sets target_cpu, so it follows the host) and the linuxarm64 minimal distribution; the pin name on the obs-studio side is cef_binary_8078_linux_aarch64.tar.xz (ci/test_cef_pin.py).
    • The pack step runs cmake + ninja libcef_dll_wrapper against the distribution, which builds for the host by default. For arm64 that wrapper must be arm64, so pack needs the same clang target + Chromium arm64 sysroot as the build, or the wrapper has to come from the build tree; I will settle that against the real build tree rather than guess.
    • install-build-deps.sh is called with --no-arm today; that flag is the 32-bit ARM host set, not arm64, so the arm64 sysroot is expected to come from the depot_tools sysroot hook for target_cpu="arm64". Also to confirm on the real sync.

    Next: branch infra/3062-cef-linux-arm64 in obs-studio-libs with the RED recipe test, then the build itself.

  5. zackees commented on Oct 30, 2026

    @zackees
    MemberAuthor

    First PR (draft, recipe only): obs-rust/obs-studio-libs#26 — recipes/cef/linux takes x86_64|arm64 (default x86_64), uses --arm64-build + target_cpu=arm64, packs cef_binary_8078_linux_aarch64.tar.xz, and pack refuses an args.gn built for the wrong arch. RED 3194d0a, GREEN 86b35cb, uv run pytest -q 47 passed.

    Still open on this issue: the real sync/build/pack arm64 on the build host (~150 GB checkout; 344 GB free here, out/cef empty), then the archive + SHA-256, then the obs-studio pin and the guard line.

  6. zackees commented on Oct 30, 2026

    @zackees
    MemberAuthor

    Tick progress (worker, obs-studio4):

    • The recipe half is merged: recipe(cef): build Linux arm64 from the x86_64 host (#3062) obs-studio-libs#26 → 09dd939 on main ("recipe(cef): build Linux arm64 from the x86_64 host"). Marked ready after re-running the branch suite here: uv run --project . pytest -q → 47 passed on 86b35cb; the arm64 flag tests are RED on 3194d0a and GREEN on 86b35cb.
    • Started the real ARM64 host step from that main: bosn run --task cef-linux-sync (log ~/dev/obs-rust/cef-sync-3062.log, out/cef on the host, 1.2 GB of the checkout after 2 min, 300 GB free before the run). Sync is hours; build then resumes under bosn's 4 h cap until ninja finishes, then pack arm64.
    • Still open here: the cef_binary_8078_linux_aarch64.tar.xz + SHA-256 upload to the obs-rust/cef 8078 release, the CMakePresets.json ubuntu-aarch64 pin, and the browser: Upgrade the bundled CEF from 7871 (Chromium 150, end of life) to a supported Chromium #1864 version-floor guard line.
  7. zackees commented on Oct 30, 2026

    @zackees
    MemberAuthor

    Tick progress (worker, obs-studio4) — the arm64 half could not actually be launched, and now can.

    Two recipe bugs found by trying to run it, both fixed in obs-rust/obs-studio-libs#27:

    1. bosn run --task takes no arguments. The merged recipe reads the architecture as $2, but the three cef-linux tasks call build.sh <step> with no architecture, so every launch built the x86_64 default. obs-ffmpeg: Fix SVT-AV1 rate-control options #27 adds cef-linux-{sync,build,pack}-arm64 (build.sh <step> arm64) on the same stack. Verified in the container: cef-linux-pack-arm64 now reaches build.sh and reports no linuxarm64 minimal distribution, which is the correct pre-build state.
    2. No arm64 sysroot. The first real cef-linux-build-arm64 got through install-build-deps and all 117 CEF patches, then died: Path does not exist: /cef/work/chromium/src/out/Release_GN_arm64/args.gn. cef/tools/gn_args.py only generates a cpu's configuration when build/linux/debian_bullseye_<cpu>-sysroot exists, and the gclient hook installs only the architecture it synced. build_deps now runs Chromium's own sysroot_scripts/install-sysroot.py --arch=arm64 for arm64 (confirmed: it downloaded and installed debian_bullseye_arm64-sysroot).

    Blocker on the actual build, upstream: branch 8078's CHROMIUM_BUILD_COMPATIBILITY.txt moved from refs/tags/156.0.8078.48 to .80 between the sync and the next run, and --no-chromium-history refuses a tree at the old tag (Current Chromium checkout with --no-chromium-history is incorrect ... Add --force-clean or --force-update). #27 also lets sync forward flags to automate-git.py and adds cef-linux-sync-arm64-force. That forced sync is running now (~/dev/obs-rust/cef-sync-arm64-force-3062.log): it re-clones chromium/src at 156.0.8078.80, then build_deps reinstalls the arm64 sysroot under the new tree.

    Still open on this issue: the arm64 cef-linux-build (hours, bosn's 4 h cap per run, resume until ninja finishes), then cef-linux-pack-arm64 → cef_binary_8078_linux_aarch64.tar.xz, the SHA-256 upload to obs-rust/cef release 8078, and the obs-studio pin bump for ubuntu-aarch64 (that half stays in #1864/#3062 and needs the archive first).

    Note for the record: the archive will now be Chromium 156.0.8078.80, not .48 like the existing x86_64 archive. If the pins must match exactly, the x86_64 archive has to be rebuilt on the same tag — say so and I will queue that instead of uploading.

  8. zackees commented on Oct 30, 2026

    @zackees
    MemberAuthor

    Correction to the comment above: #27 merged the arm64 tasks and the arm64 sysroot only — it landed at 21:29Z, before the --force-update pair existed. That pair is obs-rust/obs-studio-libs#28 (sync forwards flags to automate-git.py + cef-linux-sync-arm64-force), and the forced sync now running uses that recipe from the working tree, not from main.

    Status of the run: bosn run --task cef-linux-sync-arm64-force is at the gclient sync re-clone of chromium/src at 156.0.8078.80 (log ~/dev/obs-rust/cef-sync-arm64-force-3062.log), 316 GB free. Nothing to upload yet; the arm64 build follows in a later run because it outlives one bosn 4 h cap.

  9. zackees commented on Oct 31, 2026

    @zackees
    MemberAuthor

    Worker tick status (2026-10-31 04:50Z, obs-studio4): the arm64 sync from the last tick did not die of a gclient fault, and the next attempt has one concrete prerequisite.

    Why the run ended. bosn run --task cef-linux-sync-arm64-force (job 34) was cancelled by bosn, not by gclient: the run record is ~/.local/state/bosn/runs/65cb5f31-…/end.json → {"state":"cancelled"}, and the log's tail is bosn run: stopping; cancelling job 34 / manifest app task ended early: setup task was cancelled. A foreground bosn run lives only as long as the command that started it, so the job died when the tick that launched it ended — five minutes in.

    The STALL DETECTED: gclient has been silent for 5 minutes line is not the failure. That string comes from depot_tools' gclient_utils.py (_print_stall_diagnostics, stall_timeout = 300 s): it prints the diagnostics and then keeps waiting. A fresh chromium/src clone is exactly that quiet, so it does not mean the sync wedged and it is not a reason to change the recipe.

    What the next attempt needs. --detach (bosn run --task cef-linux-sync-arm64-force --detach), so the sync outlives the tick, then poll the run. Disk is the other half: 229 GB free (87 % used) right now; the earlier arm64 attempts started at 300–316 GB, and a sync plus arm64 build of 156.0.8078.80 needs that headroom. soldr cache prune-target target --force in obs-studio4 recovered only 3 GB this tick. So the job should start once the box is back above ~300 GB free — I am not starting a multi-hour 100 GB+ sync into 229 GB unattended.

    Still to do after the sync: cef-linux-build-arm64, then cef-linux-pack-arm64, then upload linux_aarch64 to the 8078 release. No tree change was made for this comment.

  10. zackees commented on Oct 31, 2026

    @zackees
    MemberAuthor

    Worker tick status (2026-10-31 ~06:20Z, obs-studio5): the arm64 sync is still disk-blocked, and I reclaimed what was safe.

    • Free space at the start of this tick: 237 GB (87 % used). The recipe is unchanged and the last forced sync (job 34) still ended as a bosn cancelled, not a gclient fault.
    • Reclaimed, safely and inside the rules: docker builder prune -f → 7.1 GB, soldr cache prune-target target --force in this checkout → 0 B (nothing stale), uv cache prune timed out at 180 s and is not counted. Free space is 241–246 GB now.
    • Not reclaimed on purpose: bosn gc/volume-gc report "daemon unavailable", the 83 GB of reclaimable volumes and 50 GB of images belong to live bosn stacks and the other three worker slots, and docker system prune is forbidden.
    • Nothing launched: a chromium/src sync at 156.0.8078.80 plus the arm64 out/Release_GN_arm64 needs on the order of 100 GB, and the previous attempts on this issue started with 300–316 GB free. Starting it at 241 GB unattended risks filling a shared box that runs four workers.

    Next step is unchanged: once free space is back above ~300 GB, run bosn run --task cef-linux-sync-arm64-force --detach (so the sync outlives the tick), then cef-linux-build-arm64, cef-linux-pack-arm64, and the linux_aarch64 upload to the 8078 release.

    For the maintainer: the disk pressure is the only thing in the way of this issue; the recipe half (#26, #27, #28 in obs-rust/obs-studio-libs) is already merged.

  11. zackees commented on Oct 31, 2026

    @zackees
    MemberAuthor

    Worker tick status (2026-10-31 ~14:00Z, obs-studio4): the arm64 sync is running, and the first attempt exposed a recipe bug that is now fixed.

    Disk cleared the bar. 314 GB free at the start of the tick (the earlier ticks were blocked at 229–246 GB), so the previously documented next step ran.

    First run (job 56) died in one second, and not of disk: it was the leftover of the cancelled attempt, whose killed clone left /cef/work/chromium/src with only .git:

    Traceback (most recent call last):
      File "/cef/work/automate-git.py", line 1485, in <module>
        current_version = read_chrome_version_file(chromium_src_dir)
    Exception: Path does not exist: /cef/work/chromium/src/chrome/VERSION
    

    automate-git.py reads the existing tree's version for the --no-chromium-history check before it reaches the --force-update branch that would delete and re-clone chromium/src, so --force-update could never do its job on a half-cloned tree.

    Fix merged: obs-rust/obs-studio-libs#29 (squash 95baaf5). recipes/cef/linux/build.sh sync now removes $WORK/chromium when chromium/src exists without chrome/VERSION and --force-update was passed; without the flag a partial tree is still an error, so a normal sync does not discard a checkout it did not ask to replace. RED test first, then the guard; pytest 51 passed, ruff check/format --check clean, bash -n clean.

    Re-synced for real. With the 387 MB partial tree removed, bosn run --task cef-linux-sync-arm64-force --detach is job 58, running under the bosn daemon (so it outlives this tick) and fetching src at 156.0.8078.80: chromium/ went 183 MB → 1.3 GB in three minutes, no stall, 314 GB free.

    Next: poll job 58 (bosn job logs --job-id 58), then cef-linux-build-arm64, cef-linux-pack-arm64, and the linux_aarch64 upload to the 8078 release. Acceptance criteria in this issue are unchanged and still unmet.

  12. zackees commented on Oct 31, 2026

    @zackees
    MemberAuthor

    Worker tick status (2026-10-31 ~14:15Z, obs-studio4): the arm64 sync finished green, and the arm64 build is running as job 60.

    • cef-linux-sync-arm64-force (job 58) ended success after ~12 min on the fixed recipe (ci: adopt zackees/ci.yml cpp ecosystem; bump ci-lint pin to 1a970f0 #29): gclient sync --nohooks --no-history at Chromium 156.0.8078.80, CEF cf671c072 (origin/8078), gclient runhooks clean, and install-sysroot.py --arch=arm64 installed debian_bullseye_arm64-sysroot. The checkout is 29 GB under out/cef; the host has 284 GB free.
    • Started bosn run --task cef-linux-build-arm64 --detach = job 60. It is the --arm64-build cross build (target_cpu=arm64, use_sysroot=true, Release_GN_arm64), so it is the long leg; bosn's per-run cap means it will likely need a re-run to resume (ninja resumes).
    • Next in this tick: poll job 60 for the first ninja compile output (an early GN/sysroot failure would show in minutes), then cef-linux-pack-arm64 and the linux_aarch64 upload to the 8078 release.

    Acceptance criteria on this issue are unchanged and still unmet.

  13. zackees commented on Oct 31, 2026

    @zackees
    MemberAuthor

    Build confirmed compiling (job 60, ~14:32Z): [4591/136091] targets, both toolchains active — clang_arm64 for the target and clang_x64_v8_arm64 for the host tools, e.g. clang_x64/obj/third_party/icu/icui18n/number_modifiers.o and obj/third_party/boringssl/boringssl/p_dsa.o. No GN or sysroot error: the arm64 sysroot installed by the sync is the one use_sysroot=true resolves.

    At that rate the 136k-target build exceeds one bosn run, so expect to re-run cef-linux-build-arm64 to resume; pack refuses until the Release_GN_arm64/libcef_dll_wrapper/libcef_dll_wrapper.a exists.

  14. zackees commented on Oct 31, 2026

    @zackees
    MemberAuthor

    Worker tick (2026-10-31 ~15:20Z, obs-studio5): the arm64 build is still running and healthy.

    • bosn jobs shows job 60 cef-linux-build-arm64 (manifest-app-task:cef-linux, workspace ~/dev/obs-rust/obs-studio-libs) running, age 1h15m, not idle.
    • Inside the build tree (out/cef/work/chromium/src/out/Release_GN_arm64) siso ninja --offline -C out/Release_GN_arm64 cefsimple chrome_sandbox is alive (pid 2686627) and .ninja_log is still being appended (52,799 edges, 12,385 .o on disk, 5.1 GB in the out dir).
    • No GN, sysroot or toolchain error in the tree; libcef_dll_wrapper/libcef_dll_wrapper.a does not exist yet, so pack still refuses.

    No action needed from the maintainer. Next tick: if job 60 has ended, re-run bosn run --task cef-linux-build-arm64 --detach to resume the remaining edges, and pack only once Release_GN_arm64/libcef_dll_wrapper/libcef_dll_wrapper.a is present.

  15. zackees commented on Oct 31, 2026

    @zackees
    MemberAuthor

    Worker tick (2026-10-31 ~15:37Z, obs-studio5): job 60 cef-linux-build-arm64 is still running and advancing.

    • bosn jobs: job 60 manifest-app-task:cef-linux, workspace ~/dev/obs-rust/obs-studio-libs, running, age 1h30m, idle 0s.
    • out/cef/work/chromium/src/out/Release_GN_arm64: .ninja_log grew 64,477 → 66,750 edges in 45 s (+2,273, ~50 edges/s) and the object count 26,437 → 27,105, so the remaining edges are being compiled, not stalled. Out dir 6.0 GB.
    • autoninja -C out/Release_GN_arm64 cefsimple chrome_sandbox (pid 2686560) alive; both toolchains still present (clang_arm64 target, clang_x64_v8_arm64 host), no GN/sysroot/toolchain error in the tree.
    • libcef_dll_wrapper/libcef_dll_wrapper.a still absent, so packing still refuses.

    No action needed from the maintainer. Next tick: if job 60 has ended, resume with bosn run --task cef-linux-build-arm64 --detach; pack only once Release_GN_arm64/libcef_dll_wrapper/libcef_dll_wrapper.a exists.

  16. removed their assignment
    on Nov 1, 2026
  17. moved this from In progress to Ready in obs-rust Multiviewon Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2readysize:L

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions