Closed Bug 363745 Opened 18 years ago Closed 18 years ago

3.0 Alpha fails to compile on linux/ppc

Categories

(Firefox :: General, defect)

PowerPC
Linux
defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 361415

People

(Reporter: phriedrich, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux ppc; de-DE; rv:1.8.1) Gecko/20061204 BonEcho/2.0
Build Identifier: Mozilla/5.0 (X11; U; Linux ppc; de-DE; rv:1.8.1) Gecko/20061204 BonEcho/2.0

I can't compile the 3.0 Alpha on  LinuxPPC, the bug is clearly PPC specific, as you can see below.


Reproducible: Always

Steps to Reproduce:
1. tar -xjvf granparadiso-alpha1-source.tar.bz2
2. cd mozilla/
3. ./configure --enable-extensions --enable-glitz --enable-image-decoders --enable-image-encoders --enable-pango --enable-strip --enable-xinerama --enable-application=browser --enable-native-uconv --disable-svg
4. make

Actual Results:  

gmake[7]: Entering directory `/home/phriedrich/Daten/mozilla/xpcom/reflect/xptcall/src/md'
gmake[8]: Entering directory `/home/phriedrich/Daten/mozilla/xpcom/reflect/xptcall/src/md/unix'
xptcinvoke_ppc_linux.cpp
c++ -o xptcinvoke_ppc_linux.o -c -fvisibility=hidden -DMOZILLA_INTERNAL_API -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -DBUILD_ID=0000000000 -DEXPORT_XPTC_API -D_IMPL_NS_COM -I./../.. -I./../../../../xptinfo/src  -I../../../../../../dist/include/string -I../../../../../../dist/include   -I../../../../../../dist/include/xpcom -I../../../../../../dist/include/nspr  -DMOZ_PNG_READ -DMOZ_PNG_WRITE     -fPIC  -O2 -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt -fno-strict-aliasing -mtune=G4  -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -pedantic -O2 -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt -fno-strict-aliasing -mtune=G4 -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -O  -O2 -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt -fno-strict-aliasing -mtune=G4  -DMOZILLA_CLIENT -include ../../../../../../mozilla-config.h -Wp,-MD,.deps/xptcinvoke_ppc_linux.pp xptcinvoke_ppc_linux.cpp
xptcinvoke_ppc_linux.cpp:140: Fehler: expected constructor, destructor, or type conversion before »XPTC_InvokeByIndex«


[phriedrich]$ gcc --version
gcc (GCC) 4.1.1 (Gentoo 4.1.1-r3)
[phriedrich]$ echo $CFLAGS 
-O2 -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt -fno-strict-aliasing -mtune=G4
It's not overly clear how the xptcall thing got adopted by a PPC64 bug, but, see bug 361415 comment 2 on - that's apparently where it's going to be fixed.

*** This bug has been marked as a duplicate of 361415 ***
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
(In reply to comment #1)
> It's not overly clear how the xptcall thing got adopted by a PPC64 bug,

I thought it was obvious -- when asked to update the PPC64 support I'd submitted to account for the recent changes I noticed that the PPC32 version needed it too, and did both.

I'd say "feel free to split my patch into two parts" but I see no need for that -- the whole of the patch attached to bug 361415 should just be applied now:
https://bugzilla.mozilla.org/attachment.cgi?id=247694
You need to log in before you can comment on or make changes to this bug.