regxpcom fails to build on sparc64 linux w/ gcc3.3 because of -fkeep-inline-functions

RESOLVED INCOMPLETE

Status

()

P5
normal
RESOLVED INCOMPLETE
16 years ago
6 years ago

People

(Reporter: timeless, Unassigned)

Tracking

Trunk
Sun
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

16 years ago
Linux topaz 2.4.19 #1 Sat Oct 5 15:26:43 EDT 2002 sparc64 GNU/Linux
Reading specs from /usr/lib/gcc-lib/sparc-linux/3.3/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/u
sr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --e
nable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --e
nable-java-awt=xlib --with-cpu=v7 --enable-objc-gc sparc-linux
Thread model: posix
gcc version 3.3 20030509 (Debian prerelease)

Source tarball from this morning.

make[1]: Entering directory `/mnt/2/home/timeless/obj-sparc64-unknown-linux-gnu-gtk/xpcom/tools/registry'
c++  -I/usr/X11R6/include -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual-Wsynth -Wno-ctor-dtor-privacy -pedantic -Wno-long-long -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -O2 -g -fkeep-inline-functions -o regxpcom regxpcom.o    -L../../../dist/bin -L../../../dist/lib ../../../dist/lib/libxpcomglue.a ../../../dist/lib/libembedstring.a -L/mnt/2/home/timeless/obj-sparc64-unknown-linux-gnu-gtk/dist/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl   -ldl -lm
regxpcom.o(.gnu.linkonce.t._ZN24nsGetServiceFromCategoryC2EPKcS1_P11nsISupportsPj+0x10): In function `nsGetServiceFromCategory::nsGetServiceFromCategory[not-in-charge](char const*, char const*, nsISupports*, unsigned*)':
/usr/include/bits/stdio.h:36: undefined reference to `vtable for nsGetServiceFromCategory'
regxpcom.o(.gnu.linkonce.t._ZN24nsGetServiceFromCategoryC2EPKcS1_P11nsISupportsPj+0x18): In function `nsGetServiceFromCategory::nsGetServiceFromCategory[not-in-charge](char const*, char const*, nsISupports*, unsigned*)':
../../../dist/include/xpcom/nsCOMPtr.h:440: undefined reference to `vtable for nsGetServiceFromCategory'
regxpcom.o(.gnu.linkonce.t._ZN24nsGetServiceFromCategoryC1EPKcS1_P11nsISupportsPj+0x10): In function `nsGetServiceFromCategory::nsGetServiceFromCategory[in-charge](char const*, char const*, nsISupports*, unsigned*)':
/usr/include/bits/stdio.h:36: undefined reference to `vtable for nsGetServiceFromCategory'
regxpcom.o(.gnu.linkonce.t._ZN24nsGetServiceFromCategoryC1EPKcS1_P11nsISupportsPj+0x18): In function `nsGetServiceFromCategory::nsGetServiceFromCategory[in-charge](char const*, char const*, nsISupports*, unsigned*)':
../../../dist/include/xpcom/nsCOMPtr.h:440: undefined reference to `vtable for nsGetServiceFromCategory'
regxpcom.o(.gnu.linkonce.t._ZN24nsGetServiceFromCategoryD2Ev+0x10): In function `nsGetServiceFromCategory::~nsGetServiceFromCategory [not-in-charge]()':
/usr/include/bits/stdio.h:36: undefined reference to `vtable for nsGetServiceFromCategory'
regxpcom.o(.gnu.linkonce.t._ZN24nsGetServiceFromCategoryD2Ev+0x14):
../../../dist/include/xpcom/nsISupportsUtils.h:250: more undefined references to `vtable for nsGetServiceFromCategory' follow
collect2: ld returned 1 exit status
make[1]: *** [regxpcom] Error 1
make[1]: Leaving directory `/mnt/2/home/timeless/obj-sparc64-unknown-linux-gnu-gtk/xpcom/tools/registry'
make: *** [all] Error 2
(Reporter)

Comment 1

16 years ago
linking against libxpcom.so in addition to the listed commandline works
(Reporter)

Updated

16 years ago
Summary: regxpcom fails to build on sparc64 linux w/ gcc3.3 → regxpcom fails to build on sparc64 linux w/ gcc3.3 because of -fkeep-inline-functions

Comment 2

15 years ago
except that linking regxpcom against libxpcom.so is just a bad idea, because it
breaks GRE builds and such.

Comment 3

15 years ago
can confirm on x86, Debian/unstable, gcc3.3 w/ distcc: 
distcc -o regxpcom.o -c -DXPCOM_GLUE  -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" 
-I./../../build  -I../../../dist/include/string -I../../../dist/include/xpcom 
-I../../../dist/include -I/usr/local/src/mozilla/dist/include/nspr     
-I/usr/X11R6/include   -fPIC  -I/usr/X11R6/include -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 
-fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -O2  -I/usr/X11R6/include 
-DMOZILLA_CLIENT -include ../../../mozilla-config.h -Wp,-MD,.deps/regxpcom.pp 
regxpcom.cpp 
distcc  -I/usr/X11R6/include -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 
-fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -O2 -o regxpcom regxpcom.o    
-L../../../dist/bin -L../../../dist/lib ../../../dist/lib/libxpcomglue.a 
-L/usr/local/src/mozilla/dist/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl   -ldl 
-lm 
regxpcom.o(.text+0x4c): In function `DirectoryServiceProvider::Release()': 
: undefined reference to `operator delete(void*)' 
regxpcom.o(.text+0x313): In function `startup_xpcom()': 
: undefined reference to `operator new(unsigned)' 
../../../dist/lib/libxpcomglue.a(nsXPCOMGlue.o)(.text+0xa4d): In function 
`GRE_Startup': 
: undefined reference to `operator new(unsigned)' 
../../../dist/lib/libxpcomglue.a(nsGREDirServiceProvider.o)(.text+0x4c): In 
function `nsGREDirServiceProvider::Release()': 
: undefined reference to `operator delete(void*)' 
collect2: ld returned 1 exit status 
distcc[13175] ERROR: compile on localhost failed 
make[4]: *** [regxpcom] Error 1 
make[4]: Leaving directory `/usr/local/src/mozilla/xpcom/tools/registry' 
make[3]: *** [libs] Error 2 
make[3]: Leaving directory `/usr/local/src/mozilla/xpcom/tools' 
make[2]: *** [libs] Error 2 
make[2]: Leaving directory `/usr/local/src/mozilla/xpcom' 
make[1]: *** [tier_2] Error 2 
make[1]: Leaving directory `/usr/local/src/mozilla' 
make: *** [default] Error 2 
 
 
 

Comment 4

15 years ago
whoops, that ain't the same thing. Ignore my false confirm and mail spam :( 
(Reporter)

Updated

13 years ago
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P5
Assignee: dougt → nobody
QA Contact: scc → xpcom

Updated

6 years ago
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.