Summary: | dev-util/devhelp-0.21 - x86_64-pc-linux-gnu/bin/ld: .libs/libdevhelp_1_la-Yelper.o: relocation R_X86_64_PC32 against `gtk_moz_embed_get_nsIWebBrowser' can not be used when making a shared object; recompile with -fPIC | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Bryan Green <bgreen0> |
Component: | New packages | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | agg, andi5.py, bugzilla-gentoo, gentoo, gentoo_bugs_peep, magowiz, serkan, stefan.andreas.bauer, tolot |
Priority: | High | Keywords: | Inclusion |
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge --info
the build log Buildlog Buildlog devhelp-0.20 configure.in patch Patch against 0.21 ebuild |
Description
Bryan Green
2008-12-08 17:34:16 UTC
Created attachment 174654 [details]
emerge --info
Created attachment 174656 [details]
the build log
I can acknowledge that there's a bug. Exactly the same here. $ emerge --info Portage 2.1.4.5 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27 x 86_64) ================================================================= System uname: 2.6.27 x86_64 AMD Athlon(tm) 64 Processor 3200+ Timestamp of tree: Mon, 08 Dec 2008 20:37:04 +0000 app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.5.2-r7 dev-util/cmake: 2.4.6-r1 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r2 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shu tdown /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gcon f /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=k8 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unme rge-orphans userfetch" GENTOO_MIRRORS="http://ftp.tu-chemnitz.de/pub/linux/gentoo/" LANG="de_DE.UTF-8" LC_ALL="de_DE.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="de" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclu de=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 aac acl acpi afs alsa amd64 bash-completion berkdb bzi p2 cairo caps cdda cddb cdio cgraph cli cracklib crypt cscope css cups curl dbus devhelp dga djvu dri dvd dvdr dvdread fontconfig gd gdbm geoip gif gmp gtk hal iconv id3tag idn inherit-graph isdnlog java java5 java6 jpeg jpeg2k kde latex lm _sensors lzo midi mmx mmxext mp2 mp3 mpeg mudflap multilib ncurses nls nptl nptl only nsplugin ogg opengl openmp pam pcre pdf plotutils png ppds pppd qt3 qt4 rea dline reflection resolvconf session sourceview spell spl sse sse2 ssl subversion svg sysfs theora threads tiff toolbar truetype unicode valgrind vcd vcdinfo vcd x vim-syntax visualization vorbis wifi x264 xml xorg xprint xulrunner xv xvid xv mc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu 10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asy m copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat l inear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE 2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_defau lt authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner aut hz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires e xt_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertr ack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD _DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_CO MPRESS, PORTAGE_COMPRESS_FLAGS Created attachment 174675 [details]
Buildlog
The build log.
devhelp-0.20 fails the same way. Created attachment 174676 [details]
Buildlog devhelp-0.20
The build log for devhelp-0.20
I switched to sys-devel/gcc-4.3.2 and recompiled all (system and then world) and this time devhelp emerged fine. @all, could you rebuild xulrunner and see if devhelp still fails to build ? (In reply to comment #8) > @all, could you rebuild xulrunner and see if devhelp still fails to build ? > I rebuilt xulrunner-1.9.0.4-r1, but got the same result when I then tried to emerge devhelp. I had to bump GCC for this as well. (In reply to comment #8) > @all, could you rebuild xulrunner and see if devhelp still fails to build ? > which xulrunner ? On my system I have both 1.8 and 1.9 , I tried recompiling 1.9 and then devhelp but still the same issue. (In reply to comment #11) > (In reply to comment #8) > > @all, could you rebuild xulrunner and see if devhelp still fails to build ? > > > > which xulrunner ? On my system I have both 1.8 and 1.9 , I tried recompiling > 1.9 and then devhelp but still the same issue. > I also rebuilt xulrunner-1.8 but still the same issue. here (on amd64) only devhelp 0.19 and 0.19.1 builds fine, building >0.19.1 comes out the same error: mv -f .deps/libdevhelp_1_la-dh-window.Tpo .deps/libdevhelp_1_la-dh-window.Plo mv -f .deps/libdevhelp_1_la-eggfindbar.Tpo .deps/libdevhelp_1_la-eggfindbar.Plo /bin/sh ../libtool --tag=CXX --mode=link x86_64-pc-linux-gnu-g++ -pthread -DORBIT2=1 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -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/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libglade-2.0 -I/usr/include/libxml2 -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/libwnck-1.0 -I/usr/include/startup-notification-1.0 -DXPCOM_GLUE -fshort-wchar -I/usr/include/xulrunner-1.9/stable -I/usr/include/nspr -march=athlon64 -msse3 -O2 -pipe -Wl,-O1 -o libdevhelp-1.la -rpath /usr/lib64 libdevhelp_1_la-Yelper.lo libdevhelp_1_la-dh-gecko-utils.lo libdevhelp_1_la-bacon-message-connection.lo libdevhelp_1_la-dh-marshal-main.lo libdevhelp_1_la-dh-base.lo libdevhelp_1_la-dh-book-tree.lo libdevhelp_1_la-dh-error.lo libdevhelp_1_la-dh-html.lo libdevhelp_1_la-dh-keyword-model.lo libdevhelp_1_la-dh-link.lo libdevhelp_1_la-dh-search.lo libdevhelp_1_la-dh-parser.lo libdevhelp_1_la-dh-preferences.lo libdevhelp_1_la-dh-util.lo libdevhelp_1_la-dh-window.lo libdevhelp_1_la-eggfindbar.lo -pthread -lgthread-2.0 -lrt -lglade-2.0 -lxml2 -lgconf-2 -lwnck-1 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lz -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -L/usr/lib64/xulrunner-1.9/lib -lxpcomglue x86_64-pc-linux-gnu-g++ -shared -nostdlib /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/crtbeginS.o .libs/libdevhelp_1_la-Yelper.o .libs/libdevhelp_1_la-dh-gecko-utils.o .libs/libdevhelp_1_la-bacon-message-connection.o .libs/libdevhelp_1_la-dh-marshal-main.o .libs/libdevhelp_1_la-dh-base.o .libs/libdevhelp_1_la-dh-book-tree.o .libs/libdevhelp_1_la-dh-error.o .libs/libdevhelp_1_la-dh-html.o .libs/libdevhelp_1_la-dh-keyword-model.o .libs/libdevhelp_1_la-dh-link.o .libs/libdevhelp_1_la-dh-search.o .libs/libdevhelp_1_la-dh-parser.o .libs/libdevhelp_1_la-dh-preferences.o .libs/libdevhelp_1_la-dh-util.o .libs/libdevhelp_1_la-dh-window.o .libs/libdevhelp_1_la-eggfindbar.o /usr/lib64/libgthread-2.0.so -lrt /usr/lib64/libglade-2.0.so /usr/lib64/libxml2.so /usr/lib64/libgconf-2.so /usr/lib64/libwnck-1.so /usr/lib64/libgtk-x11-2.0.so /usr/lib64/libgdk-x11-2.0.so /usr/lib64/libatk-1.0.so /usr/lib64/libgio-2.0.so /usr/lib64/libpangoft2-1.0.so /usr/lib64/libgdk_pixbuf-2.0.so /usr/lib64/libpangocairo-1.0.so /usr/lib64/libcairo.so /usr/lib64/libpango-1.0.so /usr/lib64/libfreetype.so -lz /usr/lib64/libfontconfig.so /usr/lib64/libgobject-2.0.so /usr/lib64/libgmodule-2.0.so /usr/lib64/libglib-2.0.so -L/usr/lib64/xulrunner-1.9/lib -lxpcomglue -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/crtn.o -pthread -march=athlon64 -msse3 -Wl,-O1 -pthread -Wl,-soname -Wl,libdevhelp-1.so.0 -o .libs/libdevhelp-1.so.0.0.0 /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/libdevhelp_1_la-Yelper.o: relocation R_X86_64_PC32 against `gtk_moz_embed_get_nsIWebBrowser' 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 collect2: ld returned 1 exit status distcc[23065] ERROR: compile (null) on localhost failed make[3]: *** [libdevhelp-1.la] Error 1 make[3]: Leaving directory `/var/tmp/portage/dev-util/devhelp-0.20/work/devhelp-0.20/src' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/dev-util/devhelp-0.20/work/devhelp-0.20/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-util/devhelp-0.20/work/devhelp-0.20' make: *** [all] Error 2 * * ERROR: dev-util/devhelp-0.20 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 1573: Called gnome2_src_compile * environment, line 1175: Called die * The specific snippet of code: * emake || die "compile failure" * The die message: * compile failure * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-util/devhelp-0.20/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-util/devhelp-0.20/temp/environment'. * >>> Failed to emerge dev-util/devhelp-0.20, Log file: >>> '/var/tmp/portage/dev-util/devhelp-0.20/temp/build.log' * Messages for package dev-util/devhelp-0.20: * * ERROR: dev-util/devhelp-0.20 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 1573: Called gnome2_src_compile * environment, line 1175: Called die * The specific snippet of code: * emake || die "compile failure" * The die message: * compile failure * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-util/devhelp-0.20/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-util/devhelp-0.20/temp/environment'. * The ebuild started linking against libxul-embedding which the .pc file comments say a static lib. Maybe we should just revert the configure option to --with-gecko=xulrunner that's for xulrunner-1.9 support. Unless you mean that passing xulrunner will link to xulrunner-1.9 too ? (In reply to comment #15) > that's for xulrunner-1.9 support. Unless you mean that passing xulrunner will > link to xulrunner-1.9 too ? > It didn't but I just got it working to link against libxul (the dynamic lib) with patches to configure.in and the ebuild. The patches will follow. Created attachment 185331 [details, diff]
configure.in patch
Patch to allow linking against dynamic xulrunner-1.9
Created attachment 185332 [details, diff]
Patch against 0.21 ebuild
if others having this problem could also try those patch, that'd be much appreciated. (In reply to comment #19) > if others having this problem could also try those patch, that'd be much > appreciated. success++ Compiled, installed and working at least in a basic capacity. Thanks for the patch. (In reply to comment #19) > if others having this problem could also try those patch, that'd be much > appreciated. > Your patch works like a charm also here. pushed in 0.21-r1. Thanks for reporting and producing a patch. |