72
« Last post by polikuo on January 08, 2025, 10:59:29 PM »
Hi.
I'm trying to compile firefox for armhf.
I'm having memory problem even though I'm using 64-bit kernel.
tc@pi4-1:/mnt/mmcblk0p5/compile/firefox-128.6.0$ getBuild
armhf
tc@pi4-1:/mnt/mmcblk0p5/compile/firefox-128.6.0$ uname -m
aarch64
I've tried limiting the job count to 1, but I'm still out of memory.
on idle:
tc@pi4-1:/mnt/mmcblk0p5/compile/firefox-128.6.0$ free -m
total used free shared buff/cache available
Mem: 7809 1686 4016 79 2333 6123
Swap: 11046 2439 8606
1:23.70 Compiling gkrust v0.1.0 (/mnt/mmcblk0p5/compile/firefox-128.6.0/toolkit/library/rust)
3:13.96 rustc-LLVM ERROR: out of memory
3:13.97 Allocation failed
3:14.37 error: could not compile `gkrust` (lib)
3:14.37 Caused by:
3:14.44 process didn't exit successfully: `/usr/local/bin/rustc --crate-name gkrust --edition=2015 toolkit/library/rust/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type staticlib --emit=dep-info,link -C opt-level=3 -C panic=abort -C embed-bitcode=no -Clto --cfg 'feature="mozilla-central-workspace-hack"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("mozilla-central-workspace-hack"))' -C metadata=dcae7df97c342de5 -C extra-filename=-dcae7df97c342de5 --out-dir /mnt/mmcblk0p5/compile/firefox-128.6.0/firefox-build-dir/instrumented/armv7-unknown-linux-gnueabihf/release/deps --target armv7-unknown-linux-gnueabihf -C linker=/mnt/mmcblk0p5/compile/firefox-128.6.0/build/cargo-linker -C strip=debuginfo -L dependency=/mnt/mmcblk0p5/compile/firefox-128.6.0/firefox-build-dir/instrumented/armv7-unknown-linux-gnueabihf/release/deps -L dependency=/mnt/mmcblk0p5/compile/firefox-128.6.0/firefox-build-dir/instrumented/release/deps --extern gkrust_shared=/mnt/mmcblk0p5/compile/firefox-128.6.0/firefox-build-dir/instrumented/armv7-unknown-linux-gnueabihf/release/deps/libgkrust_shared-03860171d9b6272f.rlib --extern lmdb_sys=/mnt/mmcblk0p5/compile/firefox-128.6.0/firefox-build-dir/instrumented/armv7-unknown-linux-gnueabihf/release/deps/liblmdb_sys-0395da53f835fe73.rlib --extern mozglue_static=/mnt/mmcblk0p5/compile/firefox-128.6.0/firefox-build-dir/instrumented/armv7-unknown-linux-gnueabihf/release/deps/libmozglue_static-e4a69114f4610c84.rlib --extern mozilla_central_workspace_hack=/mnt/mmcblk0p5/compile/firefox-128.6.0/firefox-build-dir/instrumented/armv7-unknown-linux-gnueabihf/release/deps/libmozilla_central_workspace_hack-b09b73a3edf9b377.rlib --extern swgl=/mnt/mmcblk0p5/compile/firefox-128.6.0/firefox-build-dir/instrumented/armv7-unknown-linux-gnueabihf/release/deps/libswgl-8d17479a0a1fe4f5.rlib -C debuginfo=2 --cap-lints warn -C linker-plugin-lto -C linker=clang -C link-arg=-fuse-ld=lld -Cembed-bitcode=yes -C codegen-units=1 -L native=/usr/local/lib -L native=/mnt/mmcblk0p5/compile/firefox-128.6.0/firefox-build-dir/instrumented/armv7-unknown-linux-gnueabihf/release/build/audioipc2-780fd2aa325a06f5/out -L native=/mnt/mmcblk0p5/compile/firefox-128.6.0/firefox-build-dir/instrumented/dist/bin -L native=/mnt/mmcblk0p5/compile/firefox-128.6.0/firefox-build-dir/instrumented/security/nss/lib/nss/nss_nss3 -L native=/mnt/mmcblk0p5/compile/firefox-128.6.0/firefox-build-dir/instrumented/security/nss/lib/ssl/ssl_ssl3 -L native=/mnt/mmcblk0p5/compile/firefox-128.6.0/firefox-build-dir/instrumented/config/external/nspr/pr -L native=/mnt/mmcblk0p5/compile/firefox-128.6.0/firefox-build-dir/instrumented/armv7-unknown-linux-gnueabihf/release/build/lmdb-rkv-sys-1424ee2c80c44647/out -L native=/mnt/mmcblk0p5/compile/firefox-128.6.0/firefox-build-dir/instrumented/dist/bin -L native=/mnt/mmcblk0p5/compile/firefox-128.6.0/firefox-build-dir/instrumented/security/nss/lib/nss/nss_nss3 -L native=/mnt/mmcblk0p5/compile/firefox-128.6.0/firefox-build-dir/instrumented/security/nss/lib/ssl/ssl_ssl3 -L native=/mnt/mmcblk0p5/compile/firefox-128.6.0/firefox-build-dir/instrumented/config/external/nspr/pr -L native=/mnt/mmcblk0p5/compile/firefox-128.6.0/firefox-build-dir/instrumented/armv7-unknown-linux-gnueabihf/release/build/mozglue-static-c9c623b696a7a154/out -L native=/usr/local/lib -L native=/mnt/mmcblk0p5/compile/firefox-128.6.0/firefox-build-dir/instrumented/dist/bin -L native=/mnt/mmcblk0p5/compile/firefox-128.6.0/firefox-build-dir/instrumented/security/nss/lib/nss/nss_nss3 -L native=/mnt/mmcblk0p5/compile/firefox-128.6.0/firefox-build-dir/instrumented/security/nss/lib/ssl/ssl_ssl3 -L native=/mnt/mmcblk0p5/compile/firefox-128.6.0/firefox-build-dir/instrumented/config/external/nspr/pr -L native=/mnt/mmcblk0p5/compile/firefox-128.6.0/firefox-build-dir/instrumented/armv7-unknown-linux-gnueabihf/release/build/swgl-a2e1df84fb653dc0/out` (signal: 6, SIGABRT: process abort signal)
3:15.50 make[4]: *** [/mnt/mmcblk0p5/compile/firefox-128.6.0/config/makefiles/rust.mk:498: force-cargo-library-build] Error 101
3:15.50 make[3]: *** [/mnt/mmcblk0p5/compile/firefox-128.6.0/config/recurse.mk:72: toolkit/library/rust/target-objects] Error 2
3:15.50 make[2]: *** [/mnt/mmcblk0p5/compile/firefox-128.6.0/config/recurse.mk:34: compile] Error 2
3:15.51 make[1]: *** [/mnt/mmcblk0p5/compile/firefox-128.6.0/config/rules.mk:361: default] Error 2
3:15.51 make: *** [client.mk:60: build] Error 2
3:15.70 W 25 compiler warnings present.
Command exited with non-zero status 2
real 3m 21.20s
user 3m 29.33s
sys 0m 32.07s