Created attachment 1045038 [details] Build log on s390 Description of problem: Even with -g1 flag enabled for GCC, Firefox fails to build because of exhausted memory. Version-Release number of selected component (if applicable): 38.0.5 How reproducible: Steps to Reproduce: 1. Build Firefox for s390 2. 3. Actual results: /usr/bin/ld: can not read symbols: Memory exhausted ../../gfx/skia/SkFontHost_FreeType.o: In function `SkTypeface_FreeType::onGetAdvancedTypefaceMetrics(SkAdvancedTypefaceMetrics::PerGlyphInfo, unsigned int const*, unsigned int) const': /builddir/build/BUILD/firefox-38.0.5/mozilla-release/gfx/skia/trunk/src/ports/SkFontHost_FreeType.cpp:560: undefined reference to `FT_Get_X11_Font_Format' collect2: error: ld returned 1 exit status /builddir/build/BUILD/firefox-38.0.5/mozilla-release/config/rules.mk:812: recipe for target 'libxul.so' failed make[5]: Leaving directory '/builddir/build/BUILD/firefox-38.0.5/mozilla-release/objdir/toolkit/library' /builddir/build/BUILD/firefox-38.0.5/mozilla-release/config/recurse.mk:74: recipe for target 'toolkit/library/target' failed make[5]: *** [libxul.so] Error 1 make[4]: *** [toolkit/library/target] Error 2 make[4]: Leaving directory '/builddir/build/BUILD/firefox-38.0.5/mozilla-release/objdir' /builddir/build/BUILD/firefox-38.0.5/mozilla-release/config/recurse.mk:36: recipe for target 'compile' failed make[3]: *** [compile] Error 2 make[3]: Leaving directory '/builddir/build/BUILD/firefox-38.0.5/mozilla-release/objdir' /builddir/build/BUILD/firefox-38.0.5/mozilla-release/config/rules.mk:541: recipe for target 'default' failed make[2]: *** [default] Error 2 make[2]: Leaving directory '/builddir/build/BUILD/firefox-38.0.5/mozilla-release/objdir' /builddir/build/BUILD/firefox-38.0.5/mozilla-release/client.mk:398: recipe for target 'realbuild' failed make[1]: *** [realbuild] Error 2 make[1]: Leaving directory '/builddir/build/BUILD/firefox-38.0.5/mozilla-release' client.mk:171: recipe for target 'build' failed make: *** [build] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.QCGzFJ (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.QCGzFJ (%build) Child return code was: 1 EXCEPTION: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target s390 --nodeps /builddir/build/SPECS/firefox.spec Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 84, in trace result = func(*args, **kw) File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 504, in do raise exception.Error("Command failed. See logs for output.\n # %s" % (command,), child.returncode) Error: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target s390 --nodeps /builddir/build/SPECS/firefox.spec LEAVE do --> EXCEPTION RAISED Expected results: No build errors. Additional info: the issue happens because probably there are stray -g hard-coded on the Firefox source code.
Created attachment 1045159 [details] Patch for building Firefox on s390
Patch was applied and Firefox is successfully building on s390[x]. So I'm closing this bug.