Am 04.08.23 um 10:28 schrieb Dominique Leuenberger:
Firefox 116 has just been sent for inclusion into Tumbleweed - with a note that it fails to build on i586.
For those too lazy to click the link, linking libxul.so (the largest binary in the package and maybe the entire distribution) fails with: /usr/i586-suse-linux/bin/ld: can't relax section: memory exhausted collect2: error: ld returned 1 exit status The machine has lots of memory, but i586 only provides a 2GB user virtual address space for every process. We've already reduced debug info to -g1 earlier, and this change reduces it to -g0. But this only applies to C/C++ code, maybe the same should be done for Rust, which is still at -g1 as far as I can see. [1] We could also try -Os instead of -O2 ("-C opt-level=s" for Rust), but I'm afraid that probably won't shave off a lot. (At least not for GCC, which is quite conscious about size even at -O2, for Rust/LLVM it might help a bit.) If that doesn't do it, I would recommend reaching out to the binutils maintainers for help.
Looking into the devel prj, the picture looks even worse, as aarch64 and armv7l are also failing to build.
Can't see the log because they're both building at the moment, but armv7l is likely the same issue. Aaron [1] <https://build.opensuse.org/package/view_file/mozilla:Factory/MozillaFirefox/mozilla-reduce-rust-debuginfo.patch>