Bug 1238225 - Firefox build fails on s390 due to exhausted memory
Summary: Firefox build fails on s390 due to exhausted memory
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: firefox
Version: 23
Hardware: s390
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Gecko Maintainer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: ZedoraTracker
TreeView+ depends on / blocked
 
Reported: 2015-07-01 12:32 UTC by Rafael Fonseca
Modified: 2015-08-11 09:17 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-08-11 09:17:38 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Build log on s390 (2.99 MB, text/plain)
2015-07-01 12:32 UTC, Rafael Fonseca
no flags Details
Patch for building Firefox on s390 (793 bytes, patch)
2015-07-01 16:12 UTC, Rafael Fonseca
no flags Details | Diff

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.


Note You need to log in before you can comment on or make changes to this bug.