Bug 1238225

Summary: Firefox build fails on s390 due to exhausted memory
Product: [Fedora] Fedora Reporter: Rafael Fonseca <rdossant>
Component: firefoxAssignee: Gecko Maintainer <gecko-bugs-nobody>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: dan, gecko-bugs-nobody, jhorak
Target Milestone: ---   
Target Release: ---   
Hardware: s390   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-11 09:17:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 467765    
Attachments:
Description Flags
Build log on s390
none
Patch for building Firefox on s390 none

Description Rafael Fonseca 2015-07-01 12:32:26 UTC
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.

Comment 1 Rafael Fonseca 2015-07-01 16:12:24 UTC
Created attachment 1045159 [details]
Patch for building Firefox on s390

Comment 2 Rafael Fonseca 2015-08-11 09:17:38 UTC
Patch was applied and Firefox is successfully building on s390[x]. So I'm closing this bug.