Closed Bug 1690937 Opened 3 years ago Closed 3 years ago

Build local-toolchains with a sysroot

Categories

(Firefox Build System :: Toolchains, task)

task

Tracking

(firefox87 fixed)

RESOLVED FIXED
87 Branch
Tracking Status
firefox87 --- fixed

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(7 files)

There are two main kinds of toolchain tasks: those used internally on CI, and those used by bootstrap (local-toolchains). For the former, we don't really care that they're compatible with the largest number of systems. For the latter, it's kind of like Firefox, we want them to run on as many systems it's reasonable to support. So similarly to what we're going to do with Firefox, we'll build the local-toolchains with a sysroot, while upgrading the system version they're built from, without affecting their runtime compatibility.

Depends on: 1690934

We can't use the system compiler (gcc) because of
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=786883
(which despite being closed, still is a problem)
We could use the linux64-gcc toolchain, but since we're using clang
on other platforms, we might as well do the same.

For the same reason we used clang for sccache, we use clang here.

Similarly to sccache, we need to use clang.

Attachment #9201296 - Attachment description: Bug 1690937 - Build fix-stacks with a sysroot. ?rbuild → Bug 1690937 - Build fix-stacks with a sysroot.
Attachment #9201297 - Attachment description: Bug 1690937 - Build cbindgen with a sysroot. ?rbuild → Bug 1690937 - Build cbindgen with a sysroot.
See Also: → 1691523
Pushed by mh@glandium.org:
https://hg.mozilla.org/integration/autoland/rev/85b570ccc47a
Build clang itself using a sysroot. r=firefox-build-system-reviewers,sheehan,mhentges
https://hg.mozilla.org/integration/autoland/rev/42d909d8d162
Build sccache with a sysroot. r=firefox-build-system-reviewers,sheehan,mhentges
https://hg.mozilla.org/integration/autoland/rev/65e057c86936
Build nasm with a sysroot. r=firefox-build-system-reviewers,sheehan,mhentges
https://hg.mozilla.org/integration/autoland/rev/79c22334b6bb
Build lucetc with a sysroot. r=firefox-build-system-reviewers,sheehan,mhentges
https://hg.mozilla.org/integration/autoland/rev/e5a8c52b96cc
Build minidump-stackwalk with a sysroot. r=firefox-build-system-reviewers,sheehan,mhentges
https://hg.mozilla.org/integration/autoland/rev/09bd1acd6192
Build fix-stacks with a sysroot. r=firefox-build-system-reviewers,sheehan,mhentges
https://hg.mozilla.org/integration/autoland/rev/9929f86bcd88
Build cbindgen with a sysroot. r=firefox-build-system-reviewers,sheehan,mhentges
Regressions: 1693242
Blocks: 1694775
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: