Closed Bug 257630 Opened 20 years ago Closed 18 years ago

Error in "/xpinstall/src/" when trying to build Firefox with Apple GCC-3.5-tree-ssa

Categories

(Firefox Build System :: General, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: MMx, Unassigned)

References

Details

(Keywords: helpwanted)

As in all bugs tracked by bug 257100, I got an error when trying to compile
Firefox with the Apple gcc-3.5-tree-ssa compiler:

in the directory http://lxr.mozilla.org/mozilla/source/xpinstall/src/ , after
compilation succeeded, ld pumps out the following warnings and one (fatal) error:

-----------------8<----------------------------
c++ -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 -fpascal-strings -no-cpp-precomp
-fno-common -fshort-wchar -I/Developer/Headers/FlatCarbon -pipe  -DNDEBUG
-DTRIMMED -arch ppc -O3 -mcpu=7450 -mtune=7450 -mpowerpc -mpowerpc-gpopt
-mpowerpc-gfxopt -fpermissive -ftree-vectorize -faltivec -fPIC -arch ppc -o
libxpinstall.dylib  CertReader.o nsInstall.o nsInstallTrigger.o
nsInstallVersion.o nsInstallFolder.o nsJSInstall.o nsJSFile.o
nsJSInstallTriggerGlobal.o nsJSInstallVersion.o nsSoftwareUpdate.o
nsSoftwareUpdateRun.o nsInstallFile.o nsInstallExecute.o nsInstallPatch.o
nsInstallUninstall.o nsInstallResources.o nsRegisterItem.o
nsTopProgressNotifier.o nsLoggingProgressNotifier.o ScheduledTasks.o
nsXPIProxy.o nsXPITriggerInfo.o nsXPInstallManager.o nsInstallFileOpItem.o
nsJSFileSpecObj.o nsInstallLogComment.o nsInstallBitwise.o
nsAppleSingleDecoder.o    -multiply_defined warning    -L../../dist/bin
-L../../dist/lib  -L../../dist/bin -lmozjs -L../../dist/bin -lxpcom
-L../../dist/bin
-L/Volumes/FW_Jaguar/TEMP/Builds/Firefox/AVIARY_1_0_20040515_BRANCH/mozilla/dist/lib
-lplds4 -lplc4 -lnspr4 -lpthread  -L../../dist/lib -lxpcom_compat
../../dist/lib/libunicharutil_s.a -L../../dist/lib -lmozz  -framework Carbon
-Wl,-exported_symbols_list
-Wl,../../build/unix/gnu-ld-scripts/components-export-list -bundle -lm    
/usr/bin/ld: warning multiple definitions of symbol ___udivdi3
../../dist/bin/libplds4.dylib(_udivdi3.o) definition of ___udivdi3
../../dist/bin/libnspr4.dylib(_udivdi3.o) definition of ___udivdi3
/usr/bin/ld: warning multiple definitions of symbol ___umoddi3
../../dist/bin/libplds4.dylib(_umoddi3.o) definition of ___umoddi3
../../dist/bin/libnspr4.dylib(_umoddi3.o) definition of ___umoddi3
/usr/bin/ld: warning multiple definitions of symbol ___divdi3
../../dist/bin/libplds4.dylib(_divdi3.o) definition of ___divdi3
../../dist/bin/libnspr4.dylib(_divdi3.o) definition of ___divdi3
/usr/bin/ld: warning multiple definitions of symbol ___moddi3
../../dist/bin/libplds4.dylib(_moddi3.o) definition of ___moddi3
../../dist/bin/libnspr4.dylib(_moddi3.o) definition of ___moddi3
/usr/bin/ld: warning multiple definitions of symbol _PL_ArenaAllocate
../../dist/bin/libplds4.dylib(plarena.o) definition of _PL_ArenaAllocate
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork(plarena.o)
definition of _PL_ArenaAllocate
/usr/bin/ld: warning multiple definitions of symbol _PL_InitArenaPool
../../dist/bin/libplds4.dylib(plarena.o) definition of _PL_InitArenaPool
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork(plarena.o)
definition of _PL_InitArenaPool
/usr/bin/ld: warning multiple definitions of symbol _PL_FreeArenaPool
../../dist/bin/libplds4.dylib(plarena.o) definition of _PL_FreeArenaPool
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork(plarena.o)
definition of _PL_FreeArenaPool
/usr/bin/ld: warning multiple definitions of symbol _PL_FinishArenaPool
../../dist/bin/libplds4.dylib(plarena.o) definition of _PL_FinishArenaPool
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork(plarena.o)
definition of _PL_FinishArenaPool
/usr/bin/ld: warning multiple definitions of symbol _PL_ArenaRelease
../../dist/bin/libplds4.dylib(plarena.o) definition of _PL_ArenaRelease
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork(plarena.o)
definition of _PL_ArenaRelease
/usr/bin/ld: warning multiple definitions of symbol _PL_ArenaGrow
../../dist/bin/libplds4.dylib(plarena.o) definition of _PL_ArenaGrow
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork(plarena.o)
definition of _PL_ArenaGrow
/usr/bin/ld: warning multiple definitions of symbol _PL_ArenaFinish
../../dist/bin/libplds4.dylib(plarena.o) definition of _PL_ArenaFinish
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork(plarena.o)
definition of _PL_ArenaFinish
/usr/bin/ld: warning multiple definitions of symbol _PL_CompactArenaPool
../../dist/bin/libplds4.dylib(plarena.o) definition of _PL_CompactArenaPool
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork(plarena.o)
definition of _PL_CompactArenaPool
/usr/bin/ld: warning multiple definitions of symbol _PR_GetError
../../dist/bin/libnspr4.dylib(prerror.o) definition of _PR_GetError
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork(nsprPortX.o)
definition of _PR_GetError
/usr/bin/ld: warning multiple definitions of symbol _PR_Free
../../dist/bin/libnspr4.dylib(prmem.o) definition of _PR_Free
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork(nsprPortX.o)
definition of _PR_Free
/usr/bin/ld: warning multiple definitions of symbol _PR_DestroyLock
../../dist/bin/libnspr4.dylib(ptsynch.o) definition of _PR_DestroyLock
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork(nsprPortX.o)
definition of _PR_DestroyLock
/usr/bin/ld: warning multiple definitions of symbol _PR_Calloc
../../dist/bin/libnspr4.dylib(prmem.o) definition of _PR_Calloc
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork(nsprPortX.o)
definition of _PR_Calloc
/usr/bin/ld: warning multiple definitions of symbol _PR_Realloc
../../dist/bin/libnspr4.dylib(prmem.o) definition of _PR_Realloc
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork(nsprPortX.o)
definition of _PR_Realloc
/usr/bin/ld: warning multiple definitions of symbol _PR_NewLock
../../dist/bin/libnspr4.dylib(ptsynch.o) definition of _PR_NewLock
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork(nsprPortX.o)
definition of _PR_NewLock
/usr/bin/ld: warning multiple definitions of symbol _PR_Malloc
../../dist/bin/libnspr4.dylib(prmem.o) definition of _PR_Malloc
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork(nsprPortX.o)
definition of _PR_Malloc
/usr/bin/ld: warning multiple definitions of symbol _PR_Lock
../../dist/bin/libnspr4.dylib(ptsynch.o) definition of _PR_Lock
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork(nsprPortX.o)
definition of _PR_Lock
/usr/bin/ld: warning multiple definitions of symbol _PR_CeilingLog2
../../dist/bin/libnspr4.dylib(prlog2.o) definition of _PR_CeilingLog2
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork(nsprPortX.o)
definition of _PR_CeilingLog2
/usr/bin/ld: warning multiple definitions of symbol _PR_GetOSError
../../dist/bin/libnspr4.dylib(prerror.o) definition of _PR_GetOSError
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork(nsprPortX.o)
definition of _PR_GetOSError
/usr/bin/ld: warning multiple definitions of symbol _PR_Unlock
../../dist/bin/libnspr4.dylib(ptsynch.o) definition of _PR_Unlock
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork(nsprPortX.o)
definition of _PR_Unlock
/usr/bin/ld: warning multiple definitions of symbol _PR_SetError
../../dist/bin/libnspr4.dylib(prerror.o) definition of _PR_SetError
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork(nsprPortX.o)
definition of _PR_SetError
/usr/bin/ld: Undefined symbols:
vtable for nsCaseInsensitiveStringComparator
collect2: ld returned 1 exit status
make[4]: *** [libxpinstall.dylib] Error 1
-------------------8<-------------------------

when I try to work around the undefined symbols with "-undefined dynamic_lookup"
(only OS X.3), the resulting binary won't start because it can't find a lot of
symbols:

-------------------8<-------------------------
dyld: Firefox.app/Contents/MacOS/firefox-bin Undefined symbols:
Firefox.app/Contents/MacOS/firefox-bin undefined reference to __ZTV10FilterExpr
expected to be defined in a dynamic image
Firefox.app/Contents/MacOS/firefox-bin undefined reference to __ZTV11BooleanExpr
expected to be defined in a dynamic image
Firefox.app/Contents/MacOS/firefox-bin undefined reference to
__ZTV12AdditiveExpr expected to be defined in a dynamic image
Firefox.app/Contents/MacOS/firefox-bin undefined reference to
__ZTV12LocationStep expected to be defined in a dynamic image
Firefox.app/Contents/MacOS/firefox-bin undefined reference to
__ZTV12nsDownloader expected to be defined in a dynamic image
Firefox.app/Contents/MacOS/firefox-bin undefined reference to
__ZTV13nsMIMEInfoMac expected to be defined in a dynamic image
Firefox.app/Contents/MacOS/firefox-bin undefined reference to
__ZTV14RelationalExpr expected to be defined in a dynamic image
Firefox.app/Contents/MacOS/firefox-bin undefined reference to __ZTVa dynamic image
Firefox.app/Contents/MacOS/firefox-bin undefined reference to
__ZTV14nsStdURLParser expected to be defined in a dynamic image
Firefox.app/Contents/MacOS/firefox-bin undefined reference to
__ZTV15nsAuthURLParser expected to be defined in a dynamic image
Firefox.app/Contents/MacOS/firefox-bin undefined reference to
__ZTV15nsUnicodeToUTF8 expected to be defined in a dynamic image
Firefox.app/Contents/MacOS/firefox-bin undefined reference to
__ZTV16nsUnicodeToTSCII expected to be defined in a dynamic image
Firefox.app/Contents/MacOS/firefox-bin undefined reference to
__ZTV17nsAboutCacheEntry expected to be defined in a dynamic image
Firefox.app/Contents/MacOS/firefox-bin undefined reference to
__ZTV17nsMacShellService expected to be defined in a dynamic image
Firefox.app/Contents/MacOS/firefox-bin undefined reference to
__ZTV17nsNoAuthURLParser expected to be defined in a dynamic image
Firefox.app/Contents/MacOS/firefox-bin undefined reference to
__ZTV17nsProfileMigrator expected to be defined in a dynamic image
Firefox.app/Contents/MacOS/firefox-bin undefined reference to
__ZTV18MultiplicativeExpr expected to be defined in a dynamic image
Firefox.app/Contents/MacOS/firefox-bin undefined reference to
__ZTV18nsUnicodeToUEscape expected to be defined in a dynamic image
Firefox.app/Contents/MacOS/firefox-bin undefined reference to
__ZTV18nsUnicodeToUTF32BE expected to be defined in a dynamic image
Firefox.app/Contents/MacOS/firefox-bin undefined reference to
__ZTV18nsUnicodeToUTF32LE expected to be defined in a dynamic image
Firefox.app/Contents/MacOS/firefox-bin undefined reference to
__ZTV19nsDateTimeFormatMac expected to be defined in a dynamic image
Firefox.app/Contents/MacOS/firefox-bin undefined reference to
__ZTV19nsStreamListenerTee expected to be defined in a dynamic image
Firefox.app/Contents/MacOS/firefox-bin undefined reference to
__ZTV19nsUnicodeToTamilTTF expected to be defined in a dynamic image
Firefox.app/Contents/MacOS/firefox-bin undefined reference to
__ZTV20nsISO2022CNToUnicode expected to be defined in a dynamic image
Firefox.app/Contents/MacOS/firefox-bin undefined reference to
__ZTV20nsISO2022KRToUnicode expected to be defined in a dynamic image
Firefox.app/Contents/MacOS/firefox-bin undefined reference to
__ZTV20nsSingleSignonPrompt expected to be defined in a dynamic image
Firefox.app/Contents/MacOS/firefox-bin undefined reference to
__ZTV21nsMIMEHeaderParamImpl expected to be defined in a dynamic image
Firefox.app/Contents/MacOS/firefox-bin undefined reference to
__ZTV22nsConverterInputStream expected to be defined in a dynamic image
Firefox.app/Contents/MacOS/firefox-bin undefined reference to
__ZTV22nsDocumentStateCommand expected to be defined in a dynamic image
Firefox.app/Contents/MacOS/firefox-bin undefined reference to
__ZTV22nsRequestObserverProxy expected to be defined in a dynamic image
Firefox.app/Contents/MacOS/firefox-bin undefined reference to
__ZTV22nsSimpleStreamListener expected to be defined in a dynamic image
Firefox.app/Contents/MacOS/firefox-bin undefined reference to
__ZTV22nsUTF8ConverterService expected to be defined in a dynamic image
Firefox.app/Contents/MacOS/firefox-bin undefined reference to
__ZTV24nsStreamTransportService expected to be defined in a dynamic image
Firefox.app/Contents/MacOS/firefox-bin undefined reference to
__ZTV25nsSetDocumentStateCommand expected to be defined in a dynamic image
Firefox.app/Contents/MacOS/firefox-bin undefined reference to
__ZTV27nsSetDocumentOptionsCommand expected to be defined in a dynamic image
Firefox.app/Contents/MacOS/firefox-bin undefined reference to __ZTV9UnaryExpr
expected to be defined in a dynamic image
Firefox.app/Contents/MacOS/run-mozilla.sh: line 451: 18268 Trace/BPT trap      
   "$prog" ${1+"$@"}
-----------------8<---------------------

sorry for all the errors, but thats how it is :[
forgot to set severity ... sorry for the bugspam
Severity: normal → blocker
Hi,
This is is not blocking develpoment.
May I quote from http://bugzilla.mozilla.org/bug_status.html#severity :

<quote>
Severity
This field describes the impact of a bug.

Blocker	Blocks development and/or testing work
</quote>

I want to test Firefox with gcc-3.5, as this will be default compiler for MacOS
X 10.4. Therefore it is a blocker for me.
I don't have this compiler, or even a mac: re-assigning to build/config. The
people who care about getting this config working can parcel out the bugs.

"Blocker" status usually applies to the project as a whole, and not working on a
compiler we don't yet support doesn't usually qualify (compare past bugs about
getting MSVC 2003 .NET working on windows, or mingw).  You can still make
progress with Mozilla, on a Mac even, using another compiler. But that's just my
opinion, and I don't really care if the bug's not in my bucket.
Assignee: xpi-engine → nobody
Component: Installer: XPInstall Engine → Build Config
Keywords: helpwanted
QA Contact: core.build-config
Product: Browser → Seamonkey
Assignee: nobody → chase
Product: Mozilla Application Suite → Firefox
QA Contact: build-config → bryner
actually, this is more likely Core then Firefox, but let's see if it even still
exists with the final version of MacOS X 10.4 (shipping with gcc4.0)
Product: Firefox → Core
QA Contact: bryner
Martin, can you reproduce still? GCC 3.5 was only used in development releases
and Tiger shipped with GCC 3.3/GCC 4, both of which shouldn't have any trouble
building Firefox.
Mass reassign of open bugs for chase@mozilla.org to build@mozilla-org.bugs.
Assignee: chase → build
Marking invalid as per mento's comment #7 in bug 257100
Severity: blocker → normal
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → INVALID
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.