Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1966949 - [ARM] Firefox 89.0 fails to build on Fedora 35 - LLVM ERROR: out of memory
Summary: [ARM] Firefox 89.0 fails to build on Fedora 35 - LLVM ERROR: out of memory
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: firefox
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gecko Maintainer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: ARMTracker
TreeView+ depends on / blocked
 
Reported: 2021-06-02 08:37 UTC by Martin Stransky
Modified: 2021-06-23 16:53 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Martin Stransky 2021-06-02 08:37:11 UTC
Description of problem:

Build:
https://koji.fedoraproject.org/koji/taskinfo?taskID=69092133
https://kojipkgs.fedoraproject.org//work/tasks/2133/69092133/build.log

Firefox fails to build with:

103:42.99 dom/ipc
104:11.63 LLVM ERROR: out of memory
104:11.63 Allocation failed
104:15.62 error: could not compile `gkrust`
104:15.62 Caused by:
104:15.63   process didn't exit successfully: `/usr/bin/rustc --crate-name gkrust toolkit/library/rust/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type staticlib --emit=dep-info,link -C opt-level=2 -C panic=abort -C embed-bitcode=no -Clto --cfg 'feature="cubeb-remoting"' --cfg 'feature="cubeb_pulse_rust"' --cfg 'feature="gecko_profiler"' --cfg 'feature="gecko_profiler_parse_elf"' --cfg 'feature="glean_with_gecko"' --cfg 'feature="moz_places"' --cfg 'feature="quantum_render"' --cfg 'feature="remote_agent"' --cfg 'feature="webgpu"' --cfg 'feature="webrtc"' --cfg 'feature="with_dbus"' -C metadata=c0b147d28c4ace97 -C extra-filename=-c0b147d28c4ace97 --out-dir /builddir/build/BUILD/firefox-89.0/objdir/armv7-unknown-linux-gnueabihf/release/deps --target armv7-unknown-linux-gnueabihf -C linker=/builddir/build/BUILD/firefox-89.0/build/cargo-linker -L dependency=/builddir/build/BUILD/firefox-89.0/objdir/armv7-unknown-linux-gnueabihf/release/deps -L dependency=/builddir/build/BUILD/firefox-89.0/objdir/release/deps --extern gkrust_shared=/builddir/build/BUILD/firefox-89.0/objdir/armv7-unknown-linux-gnueabihf/release/deps/libgkrust_shared-d951681b639bd5e4.rlib --extern mozglue_static=/builddir/build/BUILD/firefox-89.0/objdir/armv7-unknown-linux-gnueabihf/release/deps/libmozglue_static-020d5466d2f7e4ee.rlib --extern mozilla_central_workspace_hack=/builddir/build/BUILD/firefox-89.0/objdir/armv7-unknown-linux-gnueabihf/release/deps/libmozilla_central_workspace_hack-21cb9fca02dbde25.rlib --extern swgl=/builddir/build/BUILD/firefox-89.0/objdir/armv7-unknown-linux-gnueabihf/release/deps/libswgl-aac97d635dbcee03.rlib -C opt-level=2 -C debuginfo=2 --cap-lints warn -Cdebuginfo=0 -Cembed-bitcode=yes -C codegen-units=1 -L native=/usr/lib -L native=/builddir/build/BUILD/firefox-89.0/objdir/armv7-unknown-linux-gnueabihf/release/build/audioipc-8cf45272393aa1d4/out -L native=/builddir/build/BUILD/firefox-89.0/objdir/armv7-unknown-linux-gnueabihf/release/build/lmdb-rkv-sys-99c5888c13b5a22f/out -L native=/builddir/build/BUILD/firefox-89.0/objdir/armv7-unknown-linux-gnueabihf/release/build/mozglue-static-e3c0bc6e2814bccb/out -L native=/builddir/build/BUILD/firefox-89.0/objdir/dist/bin -L native=/builddir/build/BUILD/firefox-89.0/objdir/security/nss/lib/nss/nss_nss3 -L native=/builddir/build/BUILD/firefox-89.0/objdir/security/nss/lib/ssl/ssl_ssl3 -L native=/builddir/build/BUILD/firefox-89.0/objdir/config/external/nspr/pr -L native=/builddir/build/BUILD/firefox-89.0/objdir/armv7-unknown-linux-gnueabihf/release/build/swgl-e20e1d45acb6765c/out` (signal: 6, SIGABRT: process abort signal)

Comment 1 Martin Stransky 2021-06-15 12:32:48 UTC
Seems to affect Fedora 33 too:
https://koji.fedoraproject.org/koji/taskinfo?taskID=70087596

115:04.49 error: could not compile `gkrust`
115:04.49 Caused by:
115:04.50   process didn't exit successfully: `/usr/bin/rustc --crate-name gkrust toolkit/library/rust/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type staticlib --emit=dep-info,link -C opt-level=2 -C panic=abort -C embed-bitcode=no -Clto --cfg 'feature="cubeb-remoting"' --cfg 'feature="cubeb_pulse_rust"' --cfg 'feature="gecko_profiler"' --cfg 'feature="gecko_profiler_parse_elf"' --cfg 'feature="glean_with_gecko"' --cfg 'feature="moz_places"' --cfg 'feature="quantum_render"' --cfg 'feature="remote_agent"' --cfg 'feature="webgpu"' --cfg 'feature="webrtc"' --cfg 'feature="with_dbus"' -C metadata=ce222c28831dfa5e -C extra-filename=-ce222c28831dfa5e --out-dir /builddir/build/BUILD/firefox-89.0/objdir/armv7-unknown-linux-gnueabihf/release/deps --target armv7-unknown-linux-gnueabihf -C linker=/builddir/build/BUILD/firefox-89.0/build/cargo-linker -L dependency=/builddir/build/BUILD/firefox-89.0/objdir/armv7-unknown-linux-gnueabihf/release/deps -L dependency=/builddir/build/BUILD/firefox-89.0/objdir/release/deps --extern gkrust_shared=/builddir/build/BUILD/firefox-89.0/objdir/armv7-unknown-linux-gnueabihf/release/deps/libgkrust_shared-082ada2f97e246d5.rlib --extern mozglue_static=/builddir/build/BUILD/firefox-89.0/objdir/armv7-unknown-linux-gnueabihf/release/deps/libmozglue_static-8c174eaba6ce51a8.rlib --extern mozilla_central_workspace_hack=/builddir/build/BUILD/firefox-89.0/objdir/armv7-unknown-linux-gnueabihf/release/deps/libmozilla_central_workspace_hack-75a9b878fa4c8b97.rlib --extern swgl=/builddir/build/BUILD/firefox-89.0/objdir/armv7-unknown-linux-gnueabihf/release/deps/libswgl-cd33e3d774f56c81.rlib -C opt-level=2 -C debuginfo=2 --cap-lints warn -Cdebuginfo=0 -Cembed-bitcode=yes -C codegen-units=1 -L native=/usr/lib -L native=/builddir/build/BUILD/firefox-89.0/objdir/armv7-unknown-linux-gnueabihf/release/build/audioipc-7d647f2ece361a8d/out -L native=/builddir/build/BUILD/firefox-89.0/objdir/armv7-unknown-linux-gnueabihf/release/build/lmdb-rkv-sys-a07f6f4b8ab8844d/out -L native=/builddir/build/BUILD/firefox-89.0/objdir/armv7-unknown-linux-gnueabihf/release/build/mozglue-static-4c867aecd03810cf/out -L native=/builddir/build/BUILD/firefox-89.0/objdir/dist/bin -L native=/builddir/build/BUILD/firefox-89.0/objdir/security/nss/lib/nss/nss_nss3 -L native=/builddir/build/BUILD/firefox-89.0/objdir/security/nss/lib/ssl/ssl_ssl3 -L native=/builddir/build/BUILD/firefox-89.0/objdir/config/external/nspr/pr -L native=/builddir/build/BUILD/firefox-89.0/objdir/armv7-unknown-linux-gnueabihf/release/build/swgl-e23eb6fa440033ed/out` (signal: 6, SIGABRT: process abort signal)

Comment 2 Colin Walters 2021-06-23 16:53:33 UTC
xref https://bugzilla.redhat.com/show_bug.cgi?id=1974927

I think the current situation is long term not sustainable.  No one cares about 32 bit x86, and most people targeting 32 bit ARM cross compile.

You might try matching my approach there of disabling LTO.  Or, perhaps we just say that no one should run Firefox on 32 bit hardware in 2021.


Note You need to log in before you can comment on or make changes to this bug.