Build 7-zip, cabextract, wine, hfsplus, mar-tools and zucchini against the sysroot
Categories
(Firefox Build System :: Toolchains, task)
Tracking
(firefox158 fixed)
| Tracking | Status | |
|---|---|---|
| firefox158 | --- | fixed |
People
(Reporter: RyanVM, Assigned: RyanVM)
References
Details
Attachments
(6 external files, 1 obsolete file)
Bug 2010489 moved toolchain tasks to the Debian 13 image. The Linux host tools whose build scripts do not use a sysroot now pick up that image's glibc 2.41 and libstdc++ 14, so they only run on hosts at least as new as the image that built them. Bug 2067940 hit this first: the rebuilt 7zz failed on the system-symbols-linux-scraper image (debian12-base) with CXXABI_1.3.15 not found, and was worked around by linking it statically.
The same exposure exists for the other tools built without a sysroot:
cabextract: fetches clang and the sysroot but the script ignores both; its only consumer,system-symbols-win, runs on a debian12-base image.wine:wineserver,widl,wrcandwmcnow requireGLIBC_2.38. CI consumers run on Debian 13 so this only affects local use viamach artifact toolchain, but the task is markedlocal-toolchain.zucchini: dynamically linked against libstdc++ 14 (GLIBCXX_3.4.32).mar-toolsandhfsplus: glibc 2.34 today; they break the next time a consumer image lags the toolchain image.
This builds all six against a sysroot, the way bug 2070120 did for upx, mkbom, xar, gn and winchecksec, and drops the static link for 7-zip. Wine builds with the gcc toolchain because its non-PE build needs -mabi=ms, which clang lacks; wine and hfsplus use the gcc11 toolchain sysroot for its 32-bit libc and, newly, uuid-dev. mar-tools needs --with-host-sysroot since mar and mbsdiff are host programs.
Try push: https://treeherder.mozilla.org/jobs?repo=try&revision=bd9c318882ed1d9b10804453ae5806034c258fdc
| Assignee | ||
Comment 1•2 months ago
|
||
The task already fetched clang and the sysroot but the build used the docker image's g++, which is what
made the binary depend on Debian 13's libstdc++. Building against the sysroot makes the static link
unnecessary.
| Assignee | ||
Comment 2•2 months ago
|
||
The task fetches clang and the sysroot but the script ignored both and built with the docker image's gcc.
| Assignee | ||
Comment 3•2 months ago
|
||
The current binaries require glibc 2.38 symbols, so they only run on hosts at least as new as the docker
image that built them. The non-PE build needs -mabi=ms, which clang does not support, so this uses the
gcc toolchain the way the node build does.
| Assignee | ||
Comment 4•2 months ago
|
||
The toolchain sysroot is the one with libssl-dev for the static libcrypto link, which is why it gains
uuid-dev here. That libcrypto is not PIE, hence -no-pie.
| Assignee | ||
Comment 5•2 months ago
|
||
mar and mbsdiff are host programs, so the host sysroot is the one that applies.
| Assignee | ||
Comment 6•2 months ago
|
||
| Assignee | ||
Comment 7•2 months ago
|
||
Updated•2 months ago
|
Comment 9•2 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/81d9858e19ea
https://hg.mozilla.org/mozilla-central/rev/37bbb0f0a355
https://hg.mozilla.org/mozilla-central/rev/77444a5caf91
https://hg.mozilla.org/mozilla-central/rev/d964414e48e7
https://hg.mozilla.org/mozilla-central/rev/6847eae6661d
https://hg.mozilla.org/mozilla-central/rev/a6d0ed939511
Description
•