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

Bug 188209

Summary: qt-4.3.1 fails to compile on amd64 with gcc 4.2
Product: Gentoo Linux Reporter: Nils Ohlmeier <nils>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: 2007.0   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Build log file

Description Nils Ohlmeier 2007-08-09 11:43:33 UTC
qt-4.3.1 fails to compile with the following error message on my amd64 system with gcc 4.2.0.

g++ -c -O2 -march=nocona -pipe -I/usr/include/mysql -O2 -march=nocona -pipe -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_SCRIPT_LIB -DQLALR_NO_QSCRIPTGRAMMAR_DEBUG_INFO -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQ_SCRIPT_DIRECT_CODE -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++ -I. -I../../include/QtCore -I../../include/QtCore -I../../include -I../../include/QtScript -I.moc/release-shared -I.uic/release-shared -o .obj/release-shared/moc_qscriptextensionplugin.o .moc/release-shared/moc_qscriptextensionplugin.cpp
rm -f libQtScript.so.4.3.1 libQtScript.so libQtScript.so.4 libQtScript.so.4.3
g++ -shared -Wl,-soname,libQtScript.so.4 -o libQtScript.so.4.3.1 .obj/release-shared/qscriptasm.o .obj/release-shared/qscriptast.o .obj/release-shared/qscriptastvisitor.o .obj/release-shared/qscriptcompiler.o .obj/release-shared/qscriptecmaarray.o .obj/release-shared/qscriptecmaboolean.o .obj/release-shared/qscriptecmacore.o .obj/release-shared/qscriptecmadate.o .obj/release-shared/qscriptecmafunction.o .obj/release-shared/qscriptecmaglobal.o .obj/release-shared/qscriptecmamath.o .obj/release-shared/qscriptecmanumber.o .obj/release-shared/qscriptecmaobject.o .obj/release-shared/qscriptecmaregexp.o .obj/release-shared/qscriptecmastring.o .obj/release-shared/qscriptecmaerror.o .obj/release-shared/qscriptcontext_p.o .obj/release-shared/qscriptengine.o .obj/release-shared/qscriptengine_p.o .obj/release-shared/qscriptextenumeration.o .obj/release-shared/qscriptextvariant.o .obj/release-shared/qscriptcontext.o .obj/release-shared/qscriptfunction.o .obj/release-shared/qscriptgrammar.o .obj/release-shared/qscriptlexer.o .obj/release-shared/qscriptclassdata.o .obj/release-shared/qscriptparser.o .obj/release-shared/qscriptprettypretty.o .obj/release-shared/qscriptsyntaxchecker.o .obj/release-shared/qscriptvalueiterator.o .obj/release-shared/qscriptvalueimpl.o .obj/release-shared/qscriptvalue.o .obj/release-shared/qscriptextqobject.o .obj/release-shared/qscriptable.o .obj/release-shared/qscriptextensionplugin.o .obj/release-shared/moc_qscriptengine.o .obj/release-shared/moc_qscriptextensionplugin.o   -L/usr/lib64 -L/usr/lib64/mysql -L/var/tmp/portage/x11-libs/qt-4.3.1/work/qt-x11-opensource-src-4.3.1/lib -lQtCore -L/usr/lib64 -L/usr/lib64/mysql -L/var/tmp/portage/x11-libs/qt-4.3.1/work/qt-x11-opensource-src-4.3.1/lib -lz -lm -lrt -lpthread -ldl
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: .obj/release-shared/qscriptecmaboolean.o: relocation R_X86_64_PC32 against `QList<QScriptClassInfo*>::append(QScriptClassInfo* const&)' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[1]: *** [../../lib/libQtScript.so.4.3.1] Error 1
make[1]: Leaving directory `/var/tmp/portage/x11-libs/qt-4.3.1/work/qt-x11-opensource-src-4.3.1/src/script'
make: *** [sub-script-all-ordered] Error 2
 *
 * ERROR: x11-libs/qt-4.3.1 failed.
 * Call stack:
 *   ebuild.sh, line 1648:   Called dyn_compile
 *   ebuild.sh, line 988:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   qt-4.3.1.ebuild, line 224:   Called die
 *
 * (no error message)
 * 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/x11-libs/qt-4.3.1/temp/build.log'.
 *
Comment 1 Nils Ohlmeier 2007-08-09 11:44:14 UTC
Created attachment 127339 [details]
Build log file
Comment 2 Nils Ohlmeier 2007-08-09 11:44:48 UTC
hoth ~ # emerge --info
Portage 2.1.3.3 (default-linux/amd64/2007.0, gcc-4.2.0, glibc-2.6-r0, 2.6.22-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r2 x86_64 Intel(R) Xeon(TM) CPU 2.80GHz
Gentoo Base System release 1.12.10
Timestamp of tree: Thu, 09 Aug 2007 09:20:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.2.3-r6, 2.3.6-r2, 2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=nocona -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LINGUAS="en en_GB de"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/voip /usr/portage/local/layman/gentoo-de /usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi aim alsa amd64 apache2 arts artswrappersuid bash-completion berkdb bitmap-fonts bluetooth bonjour bzip2 cairo cdr cli cpudetection cracklib crosscompile crypt cscope ctype cups curl cvs dbus dga dri dvd dvdr dvdread emul-linux-x86 encode exif expat fam fat ffmpeg firefox flac foomaticdb fortran gaim gdbm gif gimp gnutls gphoto2 gpm gs gtk gvim gzip hal hddtemp http iconv icq ident ieee1394 ilbc imagemagick imap imlib imlib2 innodb ipod iproute2 ipsec ipv6 irmc jbig jpeg jpeg2k kde kdepim libnotify lm_sensors logitech-mouse mad maildir midi mime mjpeg mmx motif mozilla mp3 mpeg mplayer msn mudflap mysql ncurses nis nls nptl nptlonly nsplugin nvidia obex ogg oggvorbis openexr opengl openmp oscar pam pch pcre pda pdf perl pic png ppds pppd python qt3 qt4 quicktime rdesktop readline reflection reiser4 reiserfs rrdtool samba sasl scanner sdl session slp smime sndfile speex spell spl sqlite srtp sse sse2 ssl subversion svg svgz syslog tcltk tcpd tetex tiff transcode truetype truetype-fonts type1 type1-fonts unicode unzip usb vcd vfat vim vim-pager vim-with-x vorbis webdav wma wmf xcb xcomposite xine xml xml2 xmlrpc xorg xpm xscreensaver xv xvid yahoo zeroconf zip zlib zrtp" ALSA_CARDS="intel8x0 intel8x0m" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB de" USERLAND="GNU" VIDEO_CARDS="fbdev nv nvidia vesa vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Caleb Tennis (RETIRED) gentoo-dev 2007-08-09 11:48:43 UTC

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