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

Bug 103235

Summary: Qt 4.0.1 build fails with parallel make
Product: Gentoo Linux Reporter: Thomas Fjellstrom <tfjellstrom>
Component: [OLD] LibraryAssignee: Qt Bug Alias <qt>
Status: RESOLVED DUPLICATE    
Severity: normal CC: christian.haintz, gentoo-bugger, matrixhax0r
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Emerege error log

Description Thomas Fjellstrom 2005-08-21 06:27:49 UTC
It just fails when attempting to emerge, with various errors.

Reproducible: Always
Steps to Reproduce:
1. emerge sync
2. emerge x11-libs/qt-4.0.1
3. proffit!

Actual Results:  
g++ -c -pipe -I/usr/include/mysql -g -Wall -W -D_REENTRANT -fPIC -DQT_SHARED
-DQT_EDITION=QT_EDITION_DESKTOP -DQT_BUILD_CORE_LIB -DQT_NO_CAST_TO_ASCII
-DQT3_SUPPORT -DQT_MOC_COMPAT -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE
-I../../mkspecs/linux-g++ -I. -I../../include -I../../include/QtCore -Iglobal
-I.moc/-shared -I. -o .obj/-shared/moc_qtimer.o .moc/-shared/moc_qtimer.cpp
collect2: ld terminated with signal 11 [Segmentation fault]
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld:
.obj/-shared/moc_qsocketnotifier.o: invalid string offset 1660944396 >= 1028 for
section `.strtab'
make[3]: *** [../../lib/libQtCore.so.4.0.1] Error 1


Expected Results:  
Expected it to work.

Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r0,
2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 AMD Athlon(TM) XP 2400+
Gentoo Base System version 1.6.12
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.10
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=athlon-xp -fomit-frame-pointer -D_FILE_OFFSET_BITS=64"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-pipe -O2 -march=athlon-xp -fomit-frame-pointer -D_FILE_OFFSET_BITS=64
-fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac alsa apache2 apm arts audiofile avi berkdb
bitmap-fonts bmp bzip2 cdio cdparanoia cdr crypt cups curl curlwrappers dlz dmx
dnd dpms dts dvd dvdr dvdread eds emboss encode esd fam firefox flac foomaticdb
fortran gd gdbm gif gkrellm gnome gpm gstreamer gtk2 hal howl icq imagemagick
imap imlib innodb insecure-drivers jack java jpeg junit kde kdexdeltas libg++
libwww lirc lm_sensors logitech-mouse logrotate lzo lzw mad matroska mikmod
mjpeg mmap mmx mmxext mng mod motif mozdevelop mozilla mozsha1 mozsvg mp3
mp4live mpeg mpeg2 mpeg4 mplayer msn mysql mythtv ncurses network nls nptl
nsplugin offensive ogg oggvorbis opengl oscar oss pam pam_console pam_timestamp
pcre pdflib perl pic png python qemu-fast qt quicktime rar rdesktop readline
real reiserfs remote rtc ruby samba sdl sendfile sensord sndfile snmp sox spell
sqlite sqlite3 sse sse-filters ssl stream subp subtitles subversion svg sysfs
tcpd tga theora threads tiff transcode truetype truetype-fonts type1-fonts v4l
v4l2 vcd vcdimager vlm vorbis win32codecs xanim xchatdccserver xfs xine xinerama
xml2 xmms xosd xpm xrandr xv xvid xvmc yv12 zeroconf zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Thomas Fjellstrom 2005-08-21 06:45:31 UTC
Ok, it seems its going now without: MAKEOPTS="-j2".

Its either some obscure make/emerge/g++/ld error, or my ram is bad >:E
Comment 2 Gregorio Guidi (RETIRED) gentoo-dev 2005-08-21 10:38:14 UTC
Ok, closing until there's a way to reproduce it. 
Comment 3 David Li 2005-10-07 13:50:53 UTC
I want to confirm this.
MAKEOPTS="-j2" makes it fail
Comment 4 Gregorio Guidi (RETIRED) gentoo-dev 2005-10-07 14:36:03 UTC
Is the error exactly the same? 
Comment 5 Thomas Fjellstrom 2005-10-07 14:57:46 UTC
If its anything like what I experienced, ld/gcc randomly segfaults. going back
to no -j arg makes it work (but then you can't use distcc :( though the problems
still appear when -j N > 1 and not using distcc..)
Comment 6 David Li 2005-10-07 16:04:58 UTC
How about

g++ -c -pipe -I/usr/include/mysql -g -Wall -W -D_REENTRANT -fPIC -DQT_SHARED
-DQT_EDITION=QT_EDITION_DESKTOP -DQT_BUILD_GUI_LIB -DQT_NO_CAST_TO_ASCII
-DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_RASTER_IMAGEENGINE -DQT_HAVE_FREETYPE
-DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSXP -DQT_CORE_LIB -D_LARGEFILE64_SOURCE
-D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++ -I. -I../../include/QtCore
-I../../include -I../../include/QtGui -I../3rdparty/opentype -I/usr/include
-I/usr/include/freetype2 -I.moc/-shared -I. -o .obj/-shared/qtextbrowser.o
widgets/qtextbrowser.cpp
collect2: ld terminated with signal 11 [Segmentation fault]
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld:
.obj/-shared/qlabel.o: invalid string offset 67108869 >= 7850 for section `.strtab'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld:
.obj/-shared/qlabel.o: invalid string offset 151020917 >= 7850 for section `.strtab'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld:
.obj/-shared/qlabel.o: invalid string offset 8074 >= 7850 for section `.strtab'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld:
.obj/-shared/qlabel.o: invalid string offset 12582912 >= 7850 for section `.strtab'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld:
.obj/-shared/qlabel.o: invalid string offset 4043899360 >= 7850 for section
`.strtab'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld:
.obj/-shared/qlabel.o: invalid string offset 33488896 >= 7850 for section `.strtab'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld:
.obj/-shared/qlabel.o: invalid string offset 3188261504 >= 7850 for section
`.strtab'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld:
.obj/-shared/qlabel.o: invalid string offset 862217 >= 7850 for section `.strtab'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld:
.obj/-shared/qlabel.o: invalid string offset 25198592 >= 7850 for section `.strtab'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld:
.obj/-shared/qlabel.o: invalid string offset 2584285312 >= 7850 for section
`.strtab'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld: BFD
2.16.1 assertion fail
/var/tmp/portage/binutils-2.16.1/work/binutils-2.16.1/bfd/elflink.c:6914
make[3]: *** [../../lib/libQtGui.so.4.0.1] Error 1
make[3]: Leaving directory
`/var/tmp/portage/qt-4.0.1/work/qt-x11-opensource-src-4.0.1/src/gui'
make[2]: *** [release-all] Error 2

Geeting rid of MAKEOPTS="-j2" seems to help out here...
Comment 7 David Li 2005-10-07 16:06:37 UTC
Created attachment 70124 [details]
Emerege error log

Go and check it out for yourselves
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2005-11-07 08:37:12 UTC
Reopen wrt Bug 111780.
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2005-11-07 08:37:40 UTC
*** Bug 111780 has been marked as a duplicate of this bug. ***
Comment 10 Caleb Tennis (RETIRED) gentoo-dev 2006-01-02 16:09:54 UTC

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