Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1219542

Summary: Firefox fails to build on s390
Product: [Fedora] Fedora Reporter: Jakub Čajka <jcajka>
Component: firefoxAssignee: Martin Stransky <stransky>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: gecko-bugs-nobody, stransky
Target Milestone: ---   
Target Release: ---   
Hardware: s390   
OS: Linux   
Whiteboard:
Fixed In Version: firefox-38.0-4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-11 09:04:16 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
Workaround none

Description Jakub Čajka 2015-05-07 14:39:52 UTC
Created attachment 1023175 [details]
Workaround

Description of problem:
firefox fails to build on s390

Version-Release number of selected component (if applicable):
firefox-38.0-1.fc22/firefox-37.0.2-2.fc22

How reproducible:
Always

Steps to Reproduce:
1.build firefox

Actual results:
.
.
.
/builddir/build/BUILD/firefox-38.0/mozilla-release/objdir/_virtualenv/bin/python /builddir/build/BUILD/firefox-38.0/mozilla-release/toolkit/mozapps/installer/packager.py -DMOZ_GLUE_IN_PROGRAM -DAB_CD=en-US -DNO_NSPR_10_SUPPORT -DMOZ_APP_NAME=firefox -DPREF_DIR=defaults/preferences -DMOZ_ENABLE_GNOME_COMPONENT=1 -DMOZ_GTK=1 -DMOZ_GTK3=1 -DMOZ_NATIVE_NSPR=1 -DMOZ_NATIVE_NSS=1 -DJAREXT= -DMOZ_CHILD_PROCESS_NAME=plugin-container -DNECKO_WIFI -DDLL_PREFIX=lib -DDLL_SUFFIX=.so -DBIN_SUFFIX= -DDIR_MACOS= -DDIR_RESOURCES= -DBINPATH=bin -DRESPATH=bin -DAB=en -DMOZ_ICU_VERSION=52 -DMOZ_NATIVE_ICU -DMOZ_SHARED_ICU -DMOZ_ICU_DBG_SUFFIX= \
	--format omni \
	--removals /builddir/build/BUILD/firefox-38.0/mozilla-release/browser/installer/removed-files.in \
	 \
	 \
	 \
	 \
	--optimizejars \
	 \
	package-manifest ../../dist ../../dist/firefox \
	
Executing /builddir/build/BUILD/firefox-38.0/mozilla-release/objdir/dist/bin/xpcshell -g /builddir/build/BUILD/firefox-38.0/mozilla-release/objdir/dist/bin/ -a /builddir/build/BUILD/firefox-38.0/mozilla-release/objdir/dist/bin/ -f /builddir/build/BUILD/firefox-38.0/mozilla-release/toolkit/mozapps/installer/precompile_cache.js -e precompile_startupcache("resource://gre/");
self-hosted:16:0 InternalError: function nested too deeply:
self-hosted:16:0 }
self-hosted:16:0 ^
Traceback (most recent call last):
  File "/builddir/build/BUILD/firefox-38.0/mozilla-release/toolkit/mozapps/installer/packager.py", line 403, in <module>
    main()
  File "/builddir/build/BUILD/firefox-38.0/mozilla-release/toolkit/mozapps/installer/packager.py", line 397, in main
    args.source, gre_path, base)
  File "/builddir/build/BUILD/firefox-38.0/mozilla-release/toolkit/mozapps/installer/packager.py", line 156, in precompile_cache
    errors.fatal('Error while running startup cache precompilation')
  File "/builddir/build/BUILD/firefox-38.0/mozilla-release/python/mozbuild/mozpack/errors.py", line 101, in fatal
    self._handle(self.FATAL, msg)
  File "/builddir/build/BUILD/firefox-38.0/mozilla-release/python/mozbuild/mozpack/errors.py", line 96, in _handle
    raise ErrorMessage(msg)
mozpack.errors.ErrorMessage: Error: Error while running startup cache precompilation
/builddir/build/BUILD/firefox-38.0/mozilla-release/toolkit/mozapps/installer/packager.mk:36: recipe for target 'stage-package' failed
make[1]: *** [stage-package] Error 1
make[1]: Leaving directory '/builddir/build/BUILD/firefox-38.0/mozilla-release/objdir/browser/installer'
/builddir/build/BUILD/firefox-38.0/mozilla-release/browser/build.mk:21: recipe for target 'install' failed
make: *** [install] Error 2
make: Leaving directory '/builddir/build/BUILD/firefox-38.0/mozilla-release/objdir'
error: Bad exit status from /var/tmp/rpm-tmp.L84W0m (%install)
RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.L84W0m (%install)
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

failed build: http://s390.koji.fedoraproject.org/koji/buildinfo?buildID=313918

Expected results:
firefox builds

Additional info:
Lowering -O level in js seems to workaround this bug(scratch build http://s390.koji.fedoraproject.org/koji/taskinfo?taskID=1788785 with patch in attachment). Seems as it could be gcc related(FF37 builds for f21). Will investigate further.

Comment 1 Martin Stransky 2015-05-11 09:04:16 UTC
Added to firefox-38.0-4