[Bug c++/42171] New: Link error building mozilla with 4.5
ehren dot m at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Nov 25 02:56:00 GMT 2009
I get a link error building firefox trunk with 4.5 (I've tried with many
revisions of mozilla-central). I've encountered the issue with 'GNU ld version
2.18.50.0.9-8.fc10 20080822', the latest release 'GNU ld (GNU Binutils) 2.20',
and also the current development version 'GNU ld (GNU Binutils)
2.20.51.20091122'. I filed this here because Mozilla builds fine on a number of
different platforms with the same ld using 4.3 (and probably 4.4).
Preprocessed sources via -save-temps on this one invocation of the compiler are
not possible here but I've included the full output of -v in an attachment.
Please let me know if more info is required.
Here's the error during compilation:
/home/ehren/gcc/dist/bin/g++ -fno-rtti -fno-exceptions -Wall -Wpointer-arith
-Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor
-Wcast-align -Wno-invalid-offsetof -Wno-long-long -pedantic
-fno-strict-aliasing -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -Os
-freorder-blocks -fno-reorder-functions -fPIC -shared -Wl,-z,defs
-Wl,-h,libxul.so -o libxul.so nsStaticXULComponents.o nsUnicharUtils.o
nsCompressedCharMap.o nsBidiUtils.o nsRDFResource.o -lpthread
-Wl,-rpath-link,/home/ehren/tools/mozilla-central/objdir/dist/bin
-Wl,-rpath-link,/usr/local/lib -Wl,--whole-archive
../../embedding/browser/gtk/src/libgtkembedmoz.a
../../toolkit/xre/libxulapp_s.a ../../staticlib/components/libxpconnect.a
../../staticlib/components/libnecko.a ../../staticlib/components/libuconv.a
../../staticlib/components/libi18n.a ../../staticlib/components/libchardet.a
../../staticlib/components/libjar50.a ../../staticlib/components/libpref.a
../../staticlib/components/libcaps.a ../../staticlib/components/libhtmlpars.a
../../staticlib/components/libimglib2.a
../../staticlib/components/libgklayout.a
../../staticlib/components/libdocshell.a
../../staticlib/components/libembedcomponents.a
../../staticlib/components/libwebbrwsr.a
../../staticlib/components/libnsappshell.a
../../staticlib/components/libtxmgr.a ../../staticlib/components/libchrome.a
../../staticlib/components/libcommandlines.a
../../staticlib/components/libtoolkitcomps.a
../../staticlib/components/libpipboot.a ../../staticlib/components/libpipnss.a
../../staticlib/components/libjsctypes.a
../../staticlib/components/libgkplugin.a
../../staticlib/components/libmozfind.a
../../staticlib/components/libappcomps.a
../../staticlib/components/libunixproxy.a
../../staticlib/components/libxpinstall.a ../../staticlib/components/libjsd.a
../../staticlib/components/libautoconfig.a ../../staticlib/components/libauth.a
../../staticlib/components/libcookie.a
../../staticlib/components/libpermissions.a
../../staticlib/components/libuniversalchardet.a
../../staticlib/components/libcomposer.a ../../staticlib/components/librdf.a
../../staticlib/components/libwindowds.a
../../staticlib/components/libintlapp.a
../../staticlib/components/libfileview.a
../../staticlib/components/libstoragecomps.a
../../staticlib/components/libplaces.a
../../staticlib/components/libtkautocomplete.a
../../staticlib/components/libsatchel.a ../../staticlib/components/libpippki.a
../../staticlib/components/libucvmath.a
../../staticlib/components/libwidget_gtk2.a
../../staticlib/components/libsystem-pref.a
../../staticlib/components/libgkgfxthebes.a
../../staticlib/components/libaccessibility.a
../../staticlib/components/libremoteservice.a
../../staticlib/components/libspellchecker.a
../../staticlib/components/libzipwriter.a ../../staticlib/libxpcom_core.a
../../staticlib/libucvutil_s.a ../../staticlib/libgkgfx.a
../../staticlib/libmozreg_s.a ../../staticlib/libmorkreader_s.a
../../staticlib/libgtkxtbin.a ../../staticlib/libgfxpsshar.a
../../staticlib/libthebes.a -Wl,--no-whole-archive -L../../dist/lib -lsqlite3
-L../../dist/bin -L../../dist/lib -L../../dist/bin -L../../dist/lib
-L../../jpeg -lmozjpeg -L../../modules/libimg/png -lmozpng
../../gfx/qcms/libmozqcms.a -L/home/ehren/tools/mozilla-central/objdir/dist/bin
-lmozjs -L../../dist/bin -L../../dist/lib -lcrmf -lsmime3 -lssl3 -lnss3
-lnssutil3 ../../gfx/cairo/cairo/src/libmozcairo.a
../../gfx/cairo/libpixman/src/libmozlibpixman.a -lXrender -lfreetype
-lfontconfig -L../../modules/zlib/src -lmozz -lasound
-L/home/ehren/tools/mozilla-central/objdir/dist/lib -lplds4 -lplc4 -lnspr4
-lpthread -ldl -L/lib -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0 -lX11
-lXext -lpangoft2-1.0 -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0
-lgmodule-2.0 -lglib-2.0 -lgtk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0
-lfreetype -lfontconfig -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0
-lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lXt -lgthread-2.0
-lfreetype -ldl -lm
/usr/bin/ld:
../../staticlib/components/libaccessibility.a(nsMaiInterfaceAction.o):
relocation R_386_GOTOFF against undefined hidden symbol
`nsAccessibleWrap::ReturnString(nsAString_internal&)::returnedString' can not
be used when making a shared object
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[4]: *** [libxul.so] Error 1
make[4]: Leaving directory
`/home/ehren/tools/mozilla-central/objdir/toolkit/library'
make[3]: *** [libs_tier_toolkit] Error 2
make[3]: Leaving directory `/home/ehren/tools/mozilla-central/objdir'
make[2]: *** [tier_toolkit] Error 2
make[2]: Leaving directory `/home/ehren/tools/mozilla-central/objdir'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/ehren/tools/mozilla-central/objdir'
make: *** [build] Error 2
(see attachement for more info)
--
Summary: Link error building mozilla with 4.5
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ehren dot m at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42171
More information about the Gcc-bugs
mailing list