Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 185703 - x11-libs/qt-3.3.8-r2 fails to emerge w/ illegal instructions
Summary: x11-libs/qt-3.3.8-r2 fails to emerge w/ illegal instructions
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Qt Bug Alias
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-17 21:07 UTC by dexter
Modified: 2007-08-09 12:03 UTC (History)
0 users

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 dexter 2007-07-17 21:07:43 UTC
While trying to emerge kde I get the same error over again:


already did deep emerge of world - didn't solve the problem
meny details regarding my configuration are placed here
http://forums.gentoo.org/viewtopic.php?p=4148139

Reproducible: Always

Steps to Reproduce:
1.edit /etc/make.conf
2.emerge kde
3.wait until qt-3.3.8 fails to emerge

Actual Results:  
Part of my build log for qt-3

/var/tmp/portage/x11-libs/qt-3.3.8-r2/work/qt-x11-free-3.3.8/bin/moc mainwindow.h -o .moc/release-shared-mt/moc_mainwindow.cpp
make[3]: *** [qmake_image_collection.cpp] Illegal instruction
make[3]: *** Deleting file `qmake_image_collection.cpp'
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/x11-libs/qt-3.3.8-r2/work/qt-x11-free-3.3.8/tools/designer/designer'
make[2]: *** [sub-designer] Error 2
make[2]: Leaving directory `/var/tmp/portage/x11-libs/qt-3.3.8-r2/work/qt-x11-free-3.3.8/tools/designer'
make[1]: *** [sub-designer] Error 2
make[1]: Leaving directory `/var/tmp/portage/x11-libs/qt-3.3.8-r2/work/qt-x11-free-3.3.8/tools'
make: *** [sub-tools] Error 2 


Expected Results:  
should have compiled qt-3 and carry on to emerge kde

contents of /etc/make.conf

CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -mtune=athlon-xp -O2 -pipe -mfpmath=sse"
CXXFLAGS="-march=athlon-xp -mtune=athlon-xp -O2 -pipe -mfpmath=sse"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"

USE="3dnow X a52 aac acpi alsa apache2 arts bash-completion bluetooth
 bzip2 cdr clamav crypt ctype cups curl dbus dga dri dts dvd dvdr encode
 exif firefox flac ftp gd gif gphoto2 hal ieee1394 java javascript joystick
 jpeg jpeg2k kde libnotify lm_sensors mad mmx mozilla mp3 mpeg mysql ncurses
 ogg opengl pdf php png qt4 quicktime readline samba sse ssl tiff usb
 x.264 xine xvid zlib"
Comment 1 dexter 2007-07-17 21:08:45 UTC
Portage 2.1.2.7 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.5-r3, 2.6.20-gentoo-r8 i686)
=================================================================
System uname: 2.6.20-gentoo-r8 i686 AMD Athlon(tm) XP 2900+
Gentoo Base System release 1.12.9
Timestamp of tree: Sun, 17 Jun 2007 18:50:01 +0000
dev-java/java-config: 1.3.7, 2.0.32
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.61
sys-devel/automake:  1.6.3, 1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
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/terminfo"
CXXFLAGS="-march=athlon-xp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
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"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl acpi alsa apache2 arts berkdb bitmap-fonts bluetooth bzip2 cdr clamav cli cracklib crypt ctype cups curl dbus dga dri dts dvd dvdr encode exif firefox flac fortran ftp gd gdbm gif gphoto2 gpm hal iconv ieee1394 ipv6 isdnlog java javascript jpeg jpeg2k kde libg++ libnotify lm_sensors mad midi mmx mozilla mp3 mpeg mudflap mysql ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl php png pppd python qt4 quicktime readline reflection samba session slang spl sse ssl tcpd tiff truetype-fonts type1-fonts unicode usb x.264 x86 xine xorg xvid zlib" ALSA_CARDS="emu10k1 intel8x0" 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY 
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-07-17 21:13:00 UTC
Life would be so much easier if people posted non-faked emerge --info. Sorry, you've had/still have broken C[XX]FLAGS not matching your CPU, fix those.
Comment 3 dexter 2007-07-18 11:19:23 UTC
I don't get it
I have a Athlon 2500 XP (Barton) running at 2 GHz (hence 2900 XP), according to gcc documentation:
http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options

-march=athlon-xp is correct so which flag is not maching my CPU ?
Comment 4 dexter 2007-07-18 11:28:29 UTC
I just realized that I've copied eariler version of /etc/make.conf
here is current one, with currently working flags.
Using below version of /etc/make.conf I did a deep emerge of world

CHOST="i686-pc-linux-gnu"

CFLAGS="-march=athlon-xp -O2 -pipe"
CXXFLAGS="-march=athlon-xp -O2 -pipe"
##MAKEOPTS="-j2"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
##AUTOCLEAN="yes"

INPUT_DEVICES="keyboard mouse evdev"

VIDEO_CARDS="nvidia"

ALSA_CARDS="emu10k1 intel8x0"
 
USE="3dnow X a52 aac acpi alsa apache2 arts bluetooth bzip2 cdr clamav crypt
 ctype cups curl dbus dri dvd dvdr encode exif firefox flac ftp gd
 gif hal ieee1394 java javascript jpeg jpeg2k kde libnotify
 lm_sensors mozilla mp3 mpeg mysql ncurses ogg opengl pdf php png
 qt4 quicktime samba slang ssl tiff unicode usb x.264 xine
 xvid zlib"
Comment 5 Caleb Tennis (RETIRED) gentoo-dev 2007-07-18 13:36:28 UTC
so did your cflags use to look like that previously then?  If so, you probably need to re-emerge a bunch of stuff on your system.  I doubt qt is the culprit here, your toolchain is probably got some issues and they're just manifesting themselves when compiling Qt, which is pretty compiler intensive.
Comment 6 dexter 2007-07-19 12:21:34 UTC
with such a /etc/make.conf file as in my pervious post I did a

emerge --deep world

but it didn't help

Now I'm thinking, I can do gentoo setup over again.
I will copy /etc/make.conf to external drive
format my ext3 partition again
place /etc/make.conf in the new system

after doing that what would I have to emerge first before going for kde and stuff
I'm thinking about:
gcc
toolchain
binutils
perl
python
autoconf
make
gmake

anything else I shuld remember abuout ?
Comment 7 Caleb Tennis (RETIRED) gentoo-dev 2007-07-19 12:36:44 UTC
You probably don't need to go that far, unless you want to.

emerge -e =qt-3* should take care of re-emerging everything qt depends on in life.  I'd give that a go first.
Comment 8 Caleb Tennis (RETIRED) gentoo-dev 2007-08-09 12:02:39 UTC
I don't think there's anything we can do for you here, so closing as a cantfix.
Comment 9 Caleb Tennis (RETIRED) gentoo-dev 2007-08-09 12:03:04 UTC
ugh