Closed Bug 2072487 Opened 2 months ago Closed 2 months ago

Build 7-zip, cabextract, wine, hfsplus, mar-tools and zucchini against the sysroot

Categories

(Firefox Build System :: Toolchains, task)

task

Tracking

(firefox158 fixed)

RESOLVED FIXED
158 Branch
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, wrc and wmc now require GLIBC_2.38. CI consumers run on Debian 13 so this only affects local use via mach artifact toolchain, but the task is marked local-toolchain.
  • zucchini: dynamically linked against libstdc++ 14 (GLIBCXX_3.4.32).
  • mar-tools and hfsplus: 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

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.

The task fetches clang and the sysroot but the script ignored both and built with the docker image's gcc.

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.

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.

mar and mbsdiff are host programs, so the host sysroot is the one that applies.

Attachment #9643097 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: