Article View: linux.debian.bugs.dist
Article #594Bug#1150706: chromium: FTBFS on armhf, the chrome link exceeds the 32-bit address space
From: Juan M. Méndez Rey
Date: Mon, 12 Oct 2026 17:20
Date: Mon, 12 Oct 2026 17:20
103 lines
6121 bytes
6121 bytes
Source: chromium Version: 155.0.8059.39-1 Severity: important Tags: ftbfs patch chromium has not built on armhf since 150.0.7871.181-1 on July. The nine builds attempted since have all failed, each after 17 to 19 hours of buildd time, always at the final link of chrome: ld.lld-22: error: failed to open ./chrome: Cannot allocate memory https://buildd.debian.org/status/logs.php?pkg=chromium&arch=armhf Cause ----- The final link does not fit in a 32-bit address space. Measured by bisecting RLIMIT_AS on a replayed link of v8_context_snapshot_generator, a target that carries about half of chrome's input: needs 3.25 GB available to an AArch32 process on an arm64 kernel about 4 GiB Peak RSS for the same link is 2.30 GB. Watching RSS is misleading here: address space runs about 40% higher, and it is the address space that the allocation fails on. What I have tried and did not work: ld.bfd 2.47 --no-keep-memory --reduce-memory-overheads 6.04 GB RSS ld.bfd 2.47 plain 6.69 GB RSS ld.gold 2.44 11.32 GB RSS, then an internal error mold maps every input and the output optimize_for_size=true object files grow 19% --icf=all shrinks only the output, the small term -fno-function-sections saves 97 bytes per input section, costs more staged partial linking higher than the direct link mold's author reached the same conclusion for a program this size in https://github.com/rui314/mold/issues/1701 : cross building on a 64-bit host is the only option. We tried this approach previously: Cross hosting the linker, an arm64 lld or mold against armhf objects. it does work: https://salsa.debian.org/chromium-team/chromium/-/merge_requests/44 https://salsa.debian.org/chromium-team/chromium/-/merge_requests/45 Both need a build dependency from a foreign architecture, which wanna-build infrastructure from the buildd team does not suppor. That is https://bugs.debian.org/770925 , open since 2014. A patch for it with tests is at https://salsa.debian.org/mendezr/wanna-build/-/merge_requests/1 and it was declined at the beginning of Octuber 2026. Hence, a proposal to fix it: --- Building chrome as a component build on armhf. The code then lives in about 540 shared libraries that link one at a time, chrome's own link inputs drop from over 2 GB to 569 MB, and the largest remaining link is 434 MB. https://salsa.debian.org/chromium-team/chromium/-/merge_requests/49 The packages install and the browser runs, although so far I have tested it only under qemu-user. If anyone has armhf hardware, a native check would be welcome. The merge request needs two patches that are also upstream: https://chromium-review.googlesource.com/c/chromium/src/+/8545999 https://chromium-review.googlesource.com/c/chromium/src/+/8549218 The reasoning and the measurements are in debian/README.armhf in that branch, so this does not have to be worked out again. Again, the MR for this approach is in: https://salsa.debian.org/chromium-team/chromium/-/merge_requests/49
Technical Details
Message-ID:
<NNrQS-5704-19@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Juan M. Méndez Rey <juan.mendezr@proton.me> Newsgroups: linux.debian.bugs.dist Subject: Bug#1150706: chromium: FTBFS on armhf, the chrome link exceeds the 32-bit address space Date: Mon, 12 Oct 2026 19:20:02 +0200 Message-ID: <NNrQS-5704-19@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Mon Oct 12 17:11:26 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.451 Reply-To: Juan M. Méndez Rey <juan.mendezr@proton.me>, 1150706@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: chromium@packages.debian.org X-Debian-Pr-Message: report 1150706 X-Debian-Pr-Package: src:chromium X-Debian-Pr-Keywords: ftbfs patch X-Debian-Pr-Source: chromium Feedback-ID: 176548819:user:proton X-Pm-Message-ID: 7666f048f9315fe7c847f216dd3dc408b6011d47 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1996412 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 103 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 12 Oct 2026 13:21:37 +0000 X-Original-Message-ID: <UbT08HrSZBeaRqkmYoQ66y14ZuRUJYbaMAxPmX5bDmeLqBeCTU1AIB6Pa2nd4iWhO4-8uGIM3pI1IBT-Lj7Tti7DAHYAPS1tdKUFm0UULbk=@proton.me>