Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 170289

Summary: net-libs/xulrunner compile fails due to gcc bug
Product: Gentoo Linux Reporter: Jan Kuemmel <gentoo-bugz>
Component: [OLD] Core systemAssignee: Please assign to toolchain <gcc-porting>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
URL: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26905
Whiteboard:
Package list:
Runtime testing required: ---

Description Jan Kuemmel 2007-03-10 17:22:57 UTC
the cvs head revision of mozilla xulrunner does not compile due to a gcc bug which is fixed in the gcc redhat branch since june 2006. 
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26905 
Thus, the people using Fedora core 5 say they can compile xulrunner.
I had no success with the following gentoo gcc versions:
4.1.2 
3.4.6
3.3.4

Please provide an ebuild for at least one gcc version with which xulrunner compiles.

Reproducible: Always

Steps to Reproduce:
1. checkout the head revision of xulrunner following the mozilla build instructions
2. try to compile it on a gentoo amd64 machine 


Actual Results:  
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-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/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value


Expected Results:  
it should compile

with gcc 3.3.4:
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: ../../staticlib/components/libgklayout.a(nsCanvasRenderingContext2D.o): relocation R_X86_64_PC32 against `_moz_cairo_destroy' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value

with gcc 3.4.6:
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: ../../staticlib/components/libgklayout.a(nsCanvasRenderingContext2D.o): relocation R_X86_64_PC32 against `_moz_cairo_destroy' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-03-10 17:54:29 UTC

*** This bug has been marked as a duplicate of bug 134162 ***