firefox fails to build with -Os on powerpc

Bug #435560 reported by Alexander Sack
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc-4.4 (Ubuntu)
Fix Released
Undecided
Unassigned
xulrunner-1.9.1 (Ubuntu)
Won't Fix
Low
Alexander Sack

Bug Description

Binary package hint: xulrunner-1.9.1

gcc produces a crashing xpidl when building firefox on powerpc with -Os

http://launchpadlibrarian.net/31844166/buildlog_ubuntu-karmic-powerpc.xulrunner-1.9.1_1.9.1.3%2Bbuild1%2Bnobinonly-0ubuntu2_FAILEDTOBUILD

Creating _xpidlgen/.done
nsIConsoleListener.idl
/build/buildd/xulrunner-1.9.1-1.9.1.3+build1+nobinonly/build-tree/mozilla/dist/bin/xpidl -m header -w -I. -I../../dist/idl -o _xpidlgen/nsIConsoleListener nsIConsoleListener.idl
make[5]: *** [_xpidlgen/nsIConsoleListener.h] Segmentation fault
make[5]: Leaving directory `/build/buildd/xulrunner-1.9.1-1.9.1.3+build1+nobinonly/build-tree/mozilla/xpcom/base'
make[4]: *** [export] Error 2

with -O2 this doesn't happen as it seems.

Revision history for this message
Alexander Sack (asac) wrote :
Download full text (7.0 KiB)

when using -O2 the build fails later like:

g++ -o xptcinvoke_ppc64_linux.o -c -fvisibility=hidden -DMOZILLA_INTERNAL_API -DOSTYPE=\"Linux2.6\" -DOSARCH=Linux -DEXPORT_XPTC_API -D_IMPL_NS_COM -I./../.. -I./../../..
/../xptinfo/src -I. -I. -I../../../../../../dist/include/string -I../../../../../../dist/include -I../../../../../../dist/include/xpcom -I/usr/include/nspr -I/usr/in
clude -fPIC -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offse
tof -Wno-long-long -pedantic -g -fno-strict-aliasing -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -O2 -DMOZILLA_CLIENT -include ../../../../../../mozilla-config.h -
Wp,-MD,.deps/xptcinvoke_ppc64_linux.pp xptcinvoke_ppc64_linux.cpp
xptcinvoke_ppc64_linux.cpp: In function 'void invoke_copy_to_stack(PRUint64*, double*, PRUint32, nsXPTCVariant*, PRUint64*)':
xptcinvoke_ppc64_linux.cpp:78: warning: 'tempu64' may be used uninitialized in this function
xptcstubs_ppc64_linux.cpp
g++ -o xptcstubs_ppc64_linux.o -c -fvisibility=hidden -DMOZILLA_INTERNAL_API -DOSTYPE=\"Linux2.6\" -DOSARCH=Linux -DEXPORT_XPTC_API -D_IMPL_NS_COM -I./../.. -I./../../../
../xptinfo/src -I. -I. -I../../../../../../dist/include/string -I../../../../../../dist/include -I../../../../../../dist/include/xpcom -I/usr/include/nspr -I/usr/inc
lude -fPIC -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offset
of -Wno-long-long -pedantic -g -fno-strict-aliasing -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -O2 -DMOZILLA_CLIENT -include ../../../../../../mozilla-config.h -Wp,-MD,.deps/xptcstubs_ppc64_linux.pp xptcstubs_ppc64_linux.cpp
{standard input}: Assembler messages:
{standard input}:25: Error: junk at end of line, first unrecognized character is `@'
{standard input}:64: Error: junk at end of line, first unrecognized character is `@'
{standard input}:103: Error: junk at end of line, first unrecognized character is `@'
{standard input}:142: Error: junk at end of line, first unrecognized character is `@'
{standard input}:181: Error: junk at end of line, first unrecognized character is `@'
{standard input}:220: Error: junk at end of line, first unrecognized character is `@'
{standard input}:259: Error: junk at end of line, first unrecognized character is `@'
{standard input}:308: Error: junk at end of line, first unrecognized character is `@'
{standard input}:347: Error: junk at end of line, first unrecognized character is `@'
{standard input}:386: Error: junk at end of line, first unrecognized character is `@'
{standard input}:425: Error: junk at end of line, first unrecognized character is `@'
{standard input}:464: Error: junk at end of line, first unrecognized character is `@'
{standard input}:503: Error: junk at end of line, first unrecognized character is `@'
{standard input}:542: Error: junk at end of line, first unrecognized character is `@'
{standard input}:581: Error: junk at end of line, first unrecognized character is `@'
{standard input}:620: Error: junk at end of line, first unrecognized character is `@'
{st...

Read more...

Revision history for this message
Matthias Klose (doko) wrote :

this looks like 64bit user land

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xulrunner-1.9.1 - 1.9.1.3+build1+nobinonly-0ubuntu3

---------------
xulrunner-1.9.1 (1.9.1.3+build1+nobinonly-0ubuntu3) karmic; urgency=low

  * workaround LP: #411439 - build failure on sparc; we disable jit on sparc until
    bmo 502369 is really fixed for us
    - update debian/rules
  * workaround LP: #435560 - xpidl binary produced by gcc 4.4 crashes on
    powerpc if built using -Os optimization; we force -O2 on powerpc to
    workaround this
    - update debian/rules
  * require libwi-dev >= 29-2ubuntu6 for powerpc and sparc as it contains fixes
    for such long double 128 support archs. See LP: #435793
    - update debian/control

 -- Alexander Sack <email address hidden> Thu, 24 Sep 2009 14:03:12 +0200

Changed in xulrunner-1.9.1 (Ubuntu):
status: New → Fix Released
Revision history for this message
Matthias Klose (doko) wrote :

fixed in 4.4.2-8ubuntu1

Changed in gcc-4.4 (Ubuntu):
status: New → Fix Released
Revision history for this message
Matthias Klose (doko) wrote :

reopen the xulrunner task to revert the workaround

Changed in xulrunner-1.9.1 (Ubuntu):
status: Fix Released → New
Micah Gersten (micahg)
Changed in xulrunner-1.9.1 (Ubuntu):
assignee: nobody → Alexander Sack (asac)
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Alexander Sack (asac) wrote :

powerpc is not supported anymore ... hence wont fix.

Changed in xulrunner-1.9.1 (Ubuntu):
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.