Repository navigation
recipe(cef): build Linux arm64 from the x86_64 host (#3062) - #26
Merged
Merged
Conversation
obs-rust/obs-studio#3062: the recipe only ever builds x86_64 (--x64-build, Release_GN_x64, the linux64 distribution), so ubuntu-aarch64 stays on CEF 7871 and the nightly version guard fails on it. The test fails on the current recipe.
obs-rust/obs-studio#3062. recipes/cef/linux/build.sh takes an optional x86_64|arm64 argument (default x86_64, so the existing archive is unchanged): - arm64: --arm64-build, Release_GN_arm64, the linuxarm64 minimal distribution, target_cpu=arm64 in GN_DEFINES so the x86_64 host does not build x86_64 silently, and the archive name obs-studio pins, _linux_aarch64. - pack refuses an args.gn that was not built for the requested target_cpu. - pack takes the arm64 libcef_dll_wrapper.a the CEF build made, since the distribution's cmake build would compile it for this host. tests/test_cef_recipe.py covers the flags and names (RED in 3194d0a).
Member
Author
|
Recipe-only evidence, so this half can land before the host build:
The real |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs obs-rust/obs-studio#3062
recipes/cef/linuxcould only ever produce x86_64: the automated build was pinned to--x64-build,Release_GN_x64and thelinux64minimal distribution. That is why ubuntu-aarch64 still pins CEF 7871 and the nightly CEF version guard fails on it every day (obs-rust/obs-studio actions run 41010694789).RED —
3194d0atests/test_cef_recipe.py::test_linux_recipe_builds_arm64fails on the old recipe:GREEN —
86b35cbbuild.shtakessync|build|pack [x86_64|arm64]; the argument defaults tox86_64, so the existing invocation and archive are unchanged.--arm64-build,Release_GN_arm64, thelinuxarm64minimal distribution, andtarget_cpu=arm64appended toGN_DEFINES— without it the x86_64 host builds x86_64 silently.cef_binary_8078_linux_aarch64.tar.xz, which is whatobs-studio's pin expects (ci/test_cef_pin.py).packrefuses anargs.gnwhosetarget_cpuis not the one asked for, so a mis-built tree cannot be published under the arm64 name.packcopies the arm64libcef_dll_wrapper.afrom the CEF build tree: the distribution's own cmake build compiles the wrapper for this host.Local:
uv run --project . pytest -q→ 47 passed;ruff check .clean;bash -nclean.Not yet verified (why this is a draft)
No Chromium build has run against this script yet.
sync/build/pack arm64on the x86_64 build host is the next step, and it needs a fresh Chromium checkout (~150 GB; the host has 344 GB free and itsout/cefis empty). That run decides three things this PR assumes:automate-git.py8078 accepts--arm64-buildfor a Linux target (its--armflag is 32-bit only; arm64 goes throughtarget_cpu).target_cpu=arm64(install-build-deps.sh --no-armis the 32-bit ARM set, so that flag stays).out/Release_GN_arm64/libcef_dll_wrapper/libcef_dll_wrapper.a, and the minimal distribution islinuxarm64.Once the archive exists I will post its SHA-256 and the pin change in obs-studio separately.