gcc 4.2.2 x Firefox 3.0b1: 64 bit relocation issue

RESOLVED DUPLICATE of bug 384579

Status

()

Firefox
Build Config
RESOLVED DUPLICATE of bug 384579
11 years ago
11 years ago

People

(Reporter: Dâniel Fraga, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

11 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.9) Gecko/20071114 BonEcho/2.0.0.9
Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.9) Gecko/20071114 BonEcho/2.0.0.9

Linux 2.6.23
gcc 4.2.2
glibc 2.6
Firefox 3.0b1

make[3]: Entering directory `/home/fraga/src/firefox/toolkit/library'
rm -f libxul.so
c++ -I/usr/X11/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 -O2 -march=athlon64 -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -O2 -march=athlon64 -fPIC -shared -Wl,-z,defs -Wl,-h,libxul.so -o libxul.so  nsStaticXULComponents.o nsUnicharUtils.o nsCompressedCharMap.o nsBidiUtils.o nsRDFResource.o     -lpthread -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB/lib  -Wl,-rpath-link,../../dist/bin  -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/libxmlextras.a ../../staticlib/components/libgkplugin.a ../../staticlib/components/libmozfind.a ../../staticlib/components/libappcomps.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/liboji.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/libgfxshared_s.a ../../staticlib/libmozreg_s.a ../../staticlib/libmorkreader_s.a ../../staticlib/libgtkxtbin.a ../../staticlib/libgfxpsshar.a ../../staticlib/libthebes.a ../../staticlib/libjsj.a  -Wl,--no-whole-archive  -L../../dist/bin -L../../dist/lib -lsqlite3 -L../../dist/bin -L../../dist/lib -L../../jpeg -lmozjpeg -L../../modules/libimg/png -lmozpng -L../../dist/bin -lmozlcms -L../../dist/bin -lmozjs -L../../dist/bin -L../../dist/lib -lcrmf -lsmime3 -lssl3 -lnss3 -lsoftokn3  -L../../modules/zlib/src -lmozz -L/usr/local/lib -lpangocairo-1.0 -lcairo -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0   ../../gfx/cairo/cairo/src/libmozcairo.a ../../gfx/cairo/libpixman/src/libmozlibpixman.a   -L/usr/X11/lib64 -lXrender -lfreetype -lfontconfig -L../../dist/lib -lplds4 -lplc4 -lnspr4 -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB/lib -lpthread -ldl -L/usr/X11/lib64 -lX11  -L/usr/X11/lib -L/usr/X11R6/lib64 -L/usr/local/lib -lXft -lXrender -lfontconfig -lfreetype -lz -lX11   -L/usr/local/lib -lgtk-x11-2.0 -latk-1.0 -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgmodule-2.0 -ldl -lgobject-2.0 -lglib-2.0   -lXt -lgthread-2.0 -L/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib -lfreetype -lz -ldl -lm     
/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.2.2/../../../../x86_64-unknown-linux-gnu/bin/ld: ../../staticlib/components/libgklayout.a(nsCanvasRenderingContext2D.o): relocation R_X86_64_PC32 against `_moz_cairo_new_path' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.2.2/../../../../x86_64-unknown-linux-gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[3]: *** [libxul.so] Error 1
make[3]: Leaving directory `/home/fraga/src/firefox/toolkit/library'
make[2]: *** [libs_tier_toolkit] Error 2
make[2]: Leaving directory `/home/fraga/src/firefox'
make[1]: *** [tier_toolkit] Error 2
make[1]: Leaving directory `/home/fraga/src/firefox'
make: *** [default] Error 2

Obs.: with Firefox 2.0.0.9 it compiles fine...

Obs.2: ~/.mozconfig:

. /home/fraga/src/mozilla/browser/config/mozconfig
mk_add_options LDFLAGS="-L/usr/X11/lib64" 
mk_add_options CPPFLAGS="-I/usr/X11/include"
mk_add_options MOZ_CO_PROJECT=browser
mk_add_options MOZ_OBJDIR=/home/fraga/src/firefox
ac_add_options --enable-optimize="-O2 -march=athlon64"
ac_add_options --disable-debug
ac_add_options --disable-tests
ac_add_options --enable-svg
ac_add_options --enable-safe-browsing
ac_add_options --enable-update-packaging
ac_add_options --x-libraries=/usr/X11/lib64
ac_cv_visibility_pragma=no

Thank you!

Reproducible: Always

Steps to Reproduce:
1. 
2.
3.
(Reporter)

Comment 1

11 years ago
Plataform: AMD64 (x86-64). Athlon64-x2 
(Reporter)

Updated

11 years ago
Summary: ../../staticlib/components/libgklayout.a(nsCanvasRenderingContext2D.o): relocation R_X86_64_PC32 against `_moz_cairo_new_path' can not be used when making a shared object; recompile with -fPIC → gcc 4.2.2 x Firefox 3.0b1: 64 bit relocation issue
(Reporter)

Comment 3

11 years ago
Well, it seems, but I couldn't find the bug 384579 on my initial search. So, it seems nothing was done to fix this, right?
(Reporter)

Updated

11 years ago
Status: UNCONFIRMED → RESOLVED
Last Resolved: 11 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 384579
You need to log in before you can comment on or make changes to this bug.