Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 269739 - x11-libs/qt-webkit-4.5.1 on alpha dies with relocation errors during compiling/linking
Summary: x11-libs/qt-webkit-4.5.1 on alpha dies with relocation errors during compilin...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: Alpha Linux
: High normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 266201
  Show dependency tree
 
Reported: 2009-05-13 19:45 UTC by Tobias Klausmann (RETIRED)
Modified: 2009-06-30 14:36 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Klausmann (RETIRED) gentoo-dev 2009-05-13 19:45:49 UTC
compiling .rcc/release-shared/qrc_WebKit.cpp
compiling .rcc/release-shared/qrc_WebCore.cpp
rm -f libQtWebKit.so.4.5.1 libQtWebKit.so libQtWebKit.so.4 libQtWebKit.so.4.5
linking ../../../../lib/libQtWebKit.so.4.5.1
/usr/lib/gcc/alpha-unknown-linux-gnu/4.3.3/crtbeginS.o:(.fini+0x10): relocation truncated to fit: ELF_LITERAL against `.text'
/usr/lib/gcc/alpha-unknown-linux-gnu/4.3.3/crtendS.o:(.init+0x10): relocation truncated to fit: ELF_LITERAL against `.text'
.obj/release-shared/Nodes.o: In function `JSC::IfNode::~IfNode()':
(.text+0x7268): relocation truncated to fit: ELF_LITERAL against symbol `vtable for JSC::IfNode' defined in .data.rel.ro._ZTVN3JSC6IfNodeE[vtable for JSC::IfNode] section in .obj/release-shared/Nodes.o
.obj/release-shared/Nodes.o: In function `JSC::IfNode::~IfNode()':
(.text+0x72d8): relocation truncated to fit: ELF_LITERAL against symbol `vtable for JSC::IfNode' defined in .data.rel.ro._ZTVN3JSC6IfNodeE[vtable for JSC::IfNode] section in .obj/release-shared/Nodes.o
.obj/release-shared/Nodes.o: In function `JSC::IfNode::~IfNode()':
(.text+0x7338): relocation truncated to fit: ELF_LITERAL against symbol `vtable for JSC::IfNode' defined in .data.rel.ro._ZTVN3JSC6IfNodeE[vtable for JSC::IfNode] section in .obj/release-shared/Nodes.o
.obj/release-shared/Grammar.o: In function `jscyyparse(void*)':
(.text+0x340c): relocation truncated to fit: ELF_LITERAL against symbol `vtable for JSC::IfNode' defined in .data.rel.ro._ZTVN3JSC6IfNodeE[vtable for JSC::IfNode] section in .obj/release-shared/Nodes.o
.obj/release-shared/Grammar.o: In function `jscyyparse(void*)':
(.text+0x354c): relocation truncated to fit: ELF_LITERAL against symbol `vtable for JSC::IfNode' defined in .data.rel.ro._ZTVN3JSC6IfNodeE[vtable for JSC::IfNode] section in .obj/release-shared/Nodes.o
.obj/release-shared/JSEventCustom.o: In function `WebCore::toJS(JSC::ExecState*, WebCore::Event*)':
(.text+0xa3c): relocation truncated to fit: ELF_LITERAL against symbol `WebCore::JSOverflowEvent::createPrototype(JSC::ExecState*)' defined in .text section in .obj/release-shared/JSOverflowEvent.o
.obj/release-shared/JSDOMBinding.o: In function `WebCore::setDOMException(JSC::ExecState*, int)':
(.text+0x1e7c): relocation truncated to fit: ELF_LITERAL against symbol `WebCore::toJS(JSC::ExecState*, WebCore::EventException*)' defined in .text section in .obj/release-shared/JSEventException.o
.obj/release-shared/CSSComputedStyleDeclaration.o: In function `WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue(int, WebCore::EUpdateLayout) const':
(.text+0x32a4): relocation truncated to fit: ELF_LITERAL against symbol `WebCore::nullAtom' defined in .sbss section in .obj/release-shared/AtomicString.o
.obj/release-shared/CSSCursorImageValue.o: In function `WebCore::CSSCursorImageValue::CSSCursorImageValue(WebCore::String const&, WebCore::IntPoint const&)':
(.text+0x30): additional relocation overflows omitted from the output
collect2: ld returned 1 exit status
distcc[22146] ERROR: compile (null) on localhost failed
make: *** [../../../../lib/libQtWebKit.so.4.5.1] Error 1

# emerge --info
Portage 2.1.6.13 (default/linux/alpha/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.30-rc4 alpha)
=================================================================
System uname: Linux-2.6.30-rc4-alpha-EV68AL-with-gentoo-2.0.0
Timestamp of tree: Wed, 13 May 2009 16:45:01 +0000
distcc 3.1 alpha-unknown-linux-gnu [enabled]
app-shells/bash:     4.0_p17-r1
dev-lang/python:     2.6.2
dev-util/cmake:      2.6.3-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="alpha ~alpha"
CBUILD="alpha-unknown-linux-gnu"
CFLAGS="-mieee -pipe -O2 -mcpu=ev67"
CHOST="alpha-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-mieee -pipe -O2 -mcpu=ev67"
DISTDIR="/usr/portage/distfiles"
FEATURES="distcc distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans usepkg userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.tiscali.nl/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync5.de.gentoo.org/gentoo-portage"
USE="X acl alpha alsa apache2 audiofile bash-completion berkdb bzip2 calendar cdparanoia cdr cli cracklib crypt dio dri encode ethereal exif ffmpeg fftw firefox flac fortran ftp gdbm gpm iconv imlib2 isdnlog jpeg kdeenablefinal libcaca lua mad matroska midi mmap mng moznocompose moznoirc moznomail mozsvg mpeg mudflap ncurses network-cron nls nptl nptlonly offensive ogg openmp pam pcre pdflib perl png pnm ppds pppd python rar readline recode reflection session sharedmem sockets sox spl ssl svg sysfs szip tcpd tetex theora truetype unicode usb v4l v4l2 vcd vidix vim vim-pager vlm vorbis xcb xorg xosd xpm xvid zlib" ALSA_CARDS="ali5451 als4000 bt87x ca0106 cmipci emu10k1 ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 maestro3 trident usb-audio via82xx ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vga glint mga nvidia vesa r128 "
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

4.5.0 had the same error, so it is -alpha (and 4.5.1 will follow in a minute).
Comment 1 Tobias Klausmann (RETIRED) gentoo-dev 2009-05-19 16:45:21 UTC
For completeness: The build system uses -fPIC and -fvisibility=hidden -fvisibility-inlines-hidden. The failing call (sans object files and repeated "-pthread"s) is:

g++ -Wl,-O1 -fno-exceptions -Wl,--no-undefined -Wl,-O1 -shared -Wl,-Bsymbolic-functions -Wl,-soname,libQtWebKit.so.4 -o libQtWebKit.so.4.5.1   -L/var/tmp/portage/x11-libs/qt-webkit-4.5.1/work/qt-x11-opensource-src-4.5.1/lib -L/usr/X11R6/lib -L/usr/lib/qt4 -lphonon -lQtDBus -pthread -ldbus-1 -lQtXml  -L/usr/X11R6/lib -lQtGui -lpng -lfreetype -lgobject-2.0 -lSM -lICE -lXrender -lXrandr -lfontconfig -lXext -lX11 -lQtNetwork -lQtCore -lz -lm -pthread -lgthread-2.0 -lrt -lglib-2.0 -lpthread -ldl

Comment 2 7v5w7go9ub0o 2009-05-21 19:44:20 UTC
FWIW, 

U ] x11-libs/qt-webkit-4.5.1 [4.4.2-r1] USE="-custom-cxxflags -debug (-pch)" 0 kB

just compiled successfully on my box.

Portage 2.1.6.11 (hardened/linux/amd64/2008.0, gcc-4.3.3, glibc-2.8_p20080602-r1, 2.6.28-hardened-r7 x86_64)
Comment 3 Markos Chandras (RETIRED) gentoo-dev 2009-05-22 14:56:54 UTC
(In reply to comment #2)
> FWIW, 
> 
> U ] x11-libs/qt-webkit-4.5.1 [4.4.2-r1] USE="-custom-cxxflags -debug (-pch)" 0
> kB
> 
> just compiled successfully on my box.
> 
> Portage 2.1.6.11 (hardened/linux/amd64/2008.0, gcc-4.3.3,
> glibc-2.8_p20080602-r1, 2.6.28-hardened-r7 x86_64)
> 

But we are talking about alpha arch here :/
Comment 4 Tobias Klausmann (RETIRED) gentoo-dev 2009-05-24 11:42:02 UTC
On a suggestion from armin76, I tried building -webkit-4.5.1 with LDFLAGS="-Wl,--no-relax" which makes it compile. I've asked yngwin if the Qt maintainers are ok with adding alpha-specific code to the ebuild and they are. We've had to do something similar with xulrunner and it works ok, so far. It's not a fix per se, but there is little else we can do and if we had to mask all of Qt, a lot of packages would have to go with it.

I'll be commiting the fixed ebuild including the ~alpha keyword shortly.
Comment 5 Markos Chandras (RETIRED) gentoo-dev 2009-06-30 14:36:45 UTC
Qt upstream answered on my e-mail today. They suggested to open a bug on webkit upstream for that and inform them for our workaround

Is anybody willing to do it?