Hilfe durchsuchen

Vorsicht vor Support-Betrug: Wir fordern Sie niemals auf, eine Telefonnummer anzurufen, eine SMS an eine Telefonnummer zu senden oder persönliche Daten preiszugeben. Bitte melden Sie verdächtige Aktivitäten über die Funktion „Missbrauch melden“.

Weitere Informationen

Out of memory issue with Mozilla firefox v139 on riscv64

  • Keine Antworten
  • 0 haben dieses Problem
  • 26 Aufrufe
more options

Hello Team,

I'm working on building Mozilla FireFox on my riscv64 development platform on Ubuntu-22.04, Below is the source and branch from where i'm using the sources.

https://github.com/mozilla-firefox/firefox.git (Branch: FIREFOX_139_0b10_RELEASE)

I'm following the below steps for build firefox:

Created a mozconfig file with the following contents:

mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/objdir mk_add_options AUTOCLOBBER=1

ac_add_options --enable-application=browser ac_add_options --disable-debug ac_add_options --enable-optimize ac_add_options --disable-tests ac_add_options --without-wasm-sandboxed-libraries

Installed dependencies:

apt-get install -y python3-dev curl curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh pip install -U pip ./mach bootstrap cargo install cbindgen apt-get install -y nodejs apt-get install -y llvm-14 llvm-dev clang libclang-dev libpango1.0-dev libx11-xcb-dev libxcomposite-dev libxdamage-dev libgtk-3-dev

Configured the build:

./mach configure

During the build, I encountered an error with Cairo version 1.16.0, so I updated Cairo to the latest version by doing the following:

tar -xvf cairo-1.18.4.tar.xz apt-get install -y meson mkdir build && cd build pip3 install --upgrade meson meson .. --prefix=/usr/local ninja sudo ninja install pkg-config --modversion cairo

After which I executed build:

./mach build

The build took ~14 hours and reached this step:

892:50.50 Compiling gkrust v0.1.0 (/root/firefox/toolkit/library/rust)

However, after about 30 hours, I ran into an Out of Memory issue. I am using a 64GB SD card for the build and have created a 10GB of swap space within the 64GB, but still encountered this error:

[189659.052881] Out of memory: Killed process 52440 (rustc) total-vm:14996824kB, anon-rss:5113116kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtab0 2811:13.62 error: could not compile gkrust (lib) 2811:14.39 Caused by: 2811:14.50 process didn't exit successfully: `/root/.rustup/toolchains/stable-riscv64gc-unknown-linux-gnu/bin/rustc --crate-name gkrust --e) 2813:03.10 gmake[4]: *** force-cargo-library-build Error 101 2813:03.15 gmake[3]: *** toolkit/library/rust/target-objects Error 2 2813:03.44 gmake[2]: *** compile Error 2 2813:03.70 gmake[1]: *** default Error 2 2813:03.90 gmake: *** [client.mk:60: build] Error 2 2813:04.19 W 271 compiler warnings present.

Could you please help me troubleshoot or suggest how to resolve the memory issue?

Any help & support is greatly appreciated!

Regards, saiteja

Hello Team, I'm working on building Mozilla FireFox on my riscv64 development platform on Ubuntu-22.04, Below is the source and branch from where i'm using the sources. https://github.com/mozilla-firefox/firefox.git (Branch: FIREFOX_139_0b10_RELEASE) I'm following the below steps for build firefox: Created a mozconfig file with the following contents: mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/objdir mk_add_options AUTOCLOBBER=1 ac_add_options --enable-application=browser ac_add_options --disable-debug ac_add_options --enable-optimize ac_add_options --disable-tests ac_add_options --without-wasm-sandboxed-libraries Installed dependencies: apt-get install -y python3-dev curl curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh pip install -U pip ./mach bootstrap cargo install cbindgen apt-get install -y nodejs apt-get install -y llvm-14 llvm-dev clang libclang-dev libpango1.0-dev libx11-xcb-dev libxcomposite-dev libxdamage-dev libgtk-3-dev Configured the build: ./mach configure During the build, I encountered an error with Cairo version 1.16.0, so I updated Cairo to the latest version by doing the following: tar -xvf cairo-1.18.4.tar.xz apt-get install -y meson mkdir build && cd build pip3 install --upgrade meson meson .. --prefix=/usr/local ninja sudo ninja install pkg-config --modversion cairo After which I executed build: ./mach build The build took ~14 hours and reached this step: 892:50.50 Compiling gkrust v0.1.0 (/root/firefox/toolkit/library/rust) However, after about 30 hours, I ran into an Out of Memory issue. I am using a 64GB SD card for the build and have created a 10GB of swap space within the 64GB, but still encountered this error: '''[189659.052881] Out of memory: Killed process 52440 (rustc) total-vm:14996824kB, anon-rss:5113116kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtab0 2811:13.62 error: could not compile gkrust (lib) 2811:14.39 Caused by: 2811:14.50 process didn't exit successfully: `/root/.rustup/toolchains/stable-riscv64gc-unknown-linux-gnu/bin/rustc --crate-name gkrust --e) 2813:03.10 gmake[4]: *** [/root/firefox/config/makefiles/rust.mk:524: force-cargo-library-build] Error 101 2813:03.15 gmake[3]: *** [/root/firefox/config/recurse.mk:72: toolkit/library/rust/target-objects] Error 2 2813:03.44 gmake[2]: *** [/root/firefox/config/recurse.mk:34: compile] Error 2 2813:03.70 gmake[1]: *** [/root/firefox/config/rules.mk:359: default] Error 2 2813:03.90 gmake: *** [client.mk:60: build] Error 2 2813:04.19 W 271 compiler warnings present.''' Could you please help me troubleshoot or suggest how to resolve the memory issue? Any help & support is greatly appreciated! Regards, saiteja

Geändert am von Sai Teja

Sie müssen sich mit Ihrem Benutzerkonto anmelden, um auf Beiträge zu antworten. Bitte stellen Sie eine neue Frage, wenn Sie noch kein Benutzerkonto haben.