x86_64-pc-linux-gnu-g++ -DGENTOO_NSPLUGINS_DIR=\"/usr/lib64/nsplugins\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\"/usr/lib64/nsbrowser/plugins\" -fno-rtti -fno-handle-exceptions -Wconversion -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-long-long -march=athlon64 -pipe -fPIC -Wno-return-type -w -fno-strict-aliasing -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -O2 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-unix-print-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -fPIC -shared -Wl,-z,defs -Wl,-rpath,'$ORIGIN' -Wl,-h,libthebes.so -o libthebes.so cairo-xlib-utils.o gfxASurface.o gfxAlphaRecovery.o gfxContext.o gfxImageSurface.o gfxFont.o gfxFontMissingGlyphs.o gfxFontTest.o gfxFontUtils.o gfxMatrix.o gfxPath.o gfxPattern.o gfxPlatform.o gfxRect.o gfxSkipChars.o gfxTextRunCache.o gfxTextRunWordCache.o gfxXlibSurface.o gfxPlatformGtk.o gfxXlibNativeRenderer.o gfxPangoFonts.o gfxPDFSurface.o gfxPSSurface.o gfxFontconfigUtils.o nsUnicodeRange.o -lpthread -Wl,-rpath,'$ORIGIN' -Wl,-rpath-link,../../../dist/bin -lcairo -lfreetype -lz -lfontconfig -L/usr/lib64 -lXrender -lcairo -lX11 ../../../dist/lib/libunicharutil_s.a -L../../../dist/bin -lxpcom -lxpcom_core -Wl,-R/usr/lib64/nspr -L/usr/lib64/nspr -lplds4 -lplc4 -lnspr4 -lpthread -ldl -lz -llcms -lpangocairo-1.0 -lcairo -lpangoft2-1.0 -lpango-1.0 -lfreetype -lz -lfontconfig -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lz -lXft -lXrender -lfontconfig -lfreetype -lz -lX11 -L/usr/lib64 -lX11 -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 -lstartup-notification-1 -ldl -lm /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.3/../../../../x86_64-pc-linux-gnu/bin/ld: gfxPlatform.o: relocation R_X86_64_PC32 against `nsIPrefBranch::COMTypeInfo<int>::kIID' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.3/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status distcc[29748] ERROR: compile (null) on localhost failed gmake[5]: *** [libthebes.so] Error 1 gmake[5]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-1.9-r2/work/mozilla/gfx/thebes/src' gmake[4]: *** [libs] Error 2 gmake[4]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-1.9-r2/work/mozilla/gfx/thebes' gmake[3]: *** [libs] Error 2 gmake[3]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-1.9-r2/work/mozilla/gfx' gmake[2]: *** [libs_tier_gecko] Error 2 gmake[2]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-1.9-r2/work/mozilla' gmake[1]: *** [tier_gecko] Error 2 gmake[1]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-1.9-r2/work/mozilla' make: *** [default] Error 2 [31;01m* [0m [31;01m* [0m ERROR: net-libs/xulrunner-1.9-r2 failed. [31;01m* [0m Call stack: [31;01m* [0m ebuild.sh, line 49: Called src_compile [31;01m* [0m environment, line 5014: Called die [31;01m* [0m The specific snippet of code: [31;01m* [0m emake || die "emake failed" [31;01m* [0m The die message: [31;01m* [0m emake failed [31;01m* [0m [31;01m* [0m If you need support, post the topmost build error, and the call stack if relevant. [31;01m* [0m A complete build log is located at '/var/tmp/portage/net-libs/xulrunner-1.9-r2/temp/build.log'. [31;01m* [0m The ebuild environment file is located at '/var/tmp/portage/net-libs/xulrunner-1.9-r2/temp/environment'. [31;01m* [0m !!! When you file a bug report, please include the following information: GENTOO_VM=sun-jdk-1.5 CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.5.0.07" JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="" Reproducible: Always Steps to Reproduce: Emerging xulrunner fails with aforementioned compile error. Most curiously, -fPIC is set during compilation of all (?) relevant objects.
Add at least the line, that built gfxPlatform.o, also, in this specific case, your 'emerge --info' would be useful, specifically things like CFLAGS/LDFLAGS, gcc/libtool/binutils versions, etc.
Provide what's been asked