Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Stage3 Installation, Illegal Instruction while emerging gtk+
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
buzzoneandonly
n00b
n00b


Joined: 27 Nov 2005
Posts: 16

PostPosted: Sun Oct 01, 2006 10:08 pm    Post subject: Stage3 Installation, Illegal Instruction while emerging gtk+ Reply with quote

Hi folks!

I have a problem very similar to this post: https://forums.gentoo.org/viewtopic-t-324644-highlight-emerge+gtk+2+6+4r1+fails+solved.html

I'm doing a fresh stage3 installation on a AMD Athlon. Most guys have this illegal instruction problem after upgrading gcc. But this is just a fresh x86 stage3 tarball. The one from the post mentioned above had chosen the wrong tarball (I did not).

When I try to emerge gtk+ following problem occurs:

Code:

make[3]: Entering directory `/var/tmp/portage/gtk+-2.8.19/work/gtk+-2.8.19/gtk'
Making all in stock-icons
make[4]: Entering directory `/var/tmp/portage/gtk+-2.8.19/work/gtk+-2.8.19/gtk/stock-icons'
GDK_PIXBUF_MODULE_FILE=../../gdk-pixbuf/gdk-pixbuf.loaders ../../gdk-pixbuf/gdk-pixbuf-csource                                          \
           --raw --build-list stock_about_16          ./stock_about_16.png stock_about_24          ./stock_about_24.png stock_add_16            ./stock_add_16.png stock_add_24                 ./stock_add_24.png stock_align_center_16       ./stock_align_center_16.png stock_align_center_24        ./stock_align_center_24.png stock_align_justify_16      ./stock_align_justify_16.png stock_align_justify_24     ./stock_align_justify_24.png stock_align_left_16        ./stock_align_left_16.png stock_align_left_24   ./stock_align_left_24.png stock_align_right_16 ./stock_align_right_16.png stock_align_right_24  ./stock_align_right_24.png stock_apply_20               ./stock_apply_20.png stock_cancel_20            ./stock_cancel_20.png stock_dnd_multiple_32     ./stock_dnd_multiple_32.png stock_bottom_16             ./stock_bottom_16.png stock_bottom_24           ./stock_bottom_24.png stock_cdrom_16            ./stock_cdrom_16.png stock_cdrom_24            ./stock_cdrom_24.png stock_clear_24              ./stock_clear_24.png stock_close_20             ./stock_close_20.png stock_close_24             ./stock_close_24.png stock_colorselector_24     ./stock_colorselector_24.png stock_color_picker_25      ./stock_color_picker_25.png > gtkstockpixbufs.h ||      \
           ( rm -f gtkstockpixbufs.h && false )
/bin/sh: line 2: 23371 Illegal instruction     GDK_PIXBUF_MODULE_FILE=../../gdk-pixbuf/gdk-pixbuf.loaders ../../gdk-pixbuf/gdk-pixbuf-csource --raw --build-list stock_about_16 ./stock_about_16.png stock_about_24 ./stock_about_24.png stock_add_16 ./stock_add_16.png stock_add_24 ./stock_add_24.png stock_align_center_16 ./stock_align_center_16.png stock_align_center_24 ./stock_align_center_24.png stock_align_justify_16 ./stock_align_justify_16.png stock_align_justify_24 ./stock_align_justify_24.png stock_align_left_16 ./stock_align_left_16.png stock_align_left_24 ./stock_align_left_24.png stock_align_right_16 ./stock_align_right_16.png stock_align_right_24 ./stock_align_right_24.png stock_apply_20 ./stock_apply_20.png stock_cancel_20 ./stock_cancel_20.png stock_dnd_multiple_32 ./stock_dnd_multiple_32.png stock_bottom_16 ./stock_bottom_16.png stock_bottom_24 ./stock_bottom_24.png stock_cdrom_16 ./stock_cdrom_16.png stock_cdrom_24 ./stock_cdrom_24.png stock_clear_24 ./stock_clear_24.png stock_close_20 ./stock_close_20.png stock_close_24 ./stock_close_24.png stock_colorselector_24 ./stock_colorselector_24.png stock_color_picker_25 ./stock_color_picker_25.png >gtkstockpixbufs.h
make[4]: *** [gtkstockpixbufs.h] Error 1
make[4]: Leaving directory `/var/tmp/portage/gtk+-2.8.19/work/gtk+-2.8.19/gtk/stock-icons'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/gtk+-2.8.19/work/gtk+-2.8.19/gtk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/gtk+-2.8.19/work/gtk+-2.8.19/gtk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gtk+-2.8.19/work/gtk+-2.8.19'
make: *** [all] Error 2

!!! ERROR: x11-libs/gtk+-2.8.19 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  gtk+-2.8.19.ebuild, line 120:   Called die

!!! gtk+ failed to compile
!!! If you need support, post the topmost build error, and the call stack if relevant.


I don't have any further plans... :cry:

Already tried:


  • Set my use flags to CFLAGS="-O2 -march=athlon-xp" and many other variations
  • Deactivated ccache / distcc
  • Did a emerge -e system
  • Emerge older versions of gtk+ (same error)
  • Tried suggestions of other Illegal Instruction posts in this forum.
  • Banged my head against the wall and cried for redemption...


Nothing helped so far...

Code:

# cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 8
model name      : AMD Athlon(tm) XP 2000+
stepping        : 0
cpu MHz         : 1666.065
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow ts
bogomips        : 3337.35


Code:

# emerge --info
Portage 2.1.1 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.16-suspend2-r8 i686)
=================================================================
System uname: 2.6.16-suspend2-r8 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.12.5
Last Sync: Sun, 01 Oct 2006 10:20:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -mmmx -msse -pipe -m3dnow"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -mmmx -msse -pipe -m3dnow"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo/ ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp6.uni-muenster.de/pub/linux/distributions/gentoo"
LANG="en_US.utf8"
LINGUAS=""
MAKEOPTS="-j1"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac aalib acpi alsa amuled apache asf bash-completion berkdb bitmap-fonts bzip cairo cdr cli crypt cups dbus dhcp dlloader dri dts dvb dvd dvdr dvdread eds elibc_glibc emacs emboss encode esd exif fam ffmpeg firefox foomaticdb fortran gdbm gif glitz gnome gphoto2 gpm gstreamer gtk gtk2 hal imagemagick imap input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog java jpeg kernel_linux latex ldap libcaca libg++ lirc mad matroska mikmod mime mjpeg mmx mmxext mp3 mpeg mysql ncurses nls nptl nptlonly nsplugin nvidia ogg opengl pam pcre perl png ppds pppd python quicktime readline real reflection remote sdl session spell spl sse ssl svg tcpd tetex thunderbird tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales utf8 v4l v4l2 vcd vdr video_cards_nvidia vorbis win32codecs xml xorg xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS


I could just try to install from scratch. But what should it help? It's just a brand new fresh installation:


  • stage3 extracted
  • xorg-x11 emerged (runs)
  • tried a emerge gnome and then bahm, gtk+ failed


Anyone any suggestion?
Back to top
View user's profile Send private message
buzzoneandonly
n00b
n00b


Joined: 27 Nov 2005
Posts: 16

PostPosted: Mon Oct 02, 2006 8:22 am    Post subject: Reply with quote

Does no one has the slightest clue?? 8O

I really don't want to switch to Debian! Please make me stay with Gentoo!
Back to top
View user's profile Send private message
davascript
l33t
l33t


Joined: 07 Apr 2004
Posts: 618
Location: Pennsylvania

PostPosted: Mon Oct 02, 2006 6:04 pm    Post subject: Reply with quote

Dont switch. please post the contents of
    /etc/env.d/00basic


try to comment out the lines regarding your features and distcc dir in your make.conf. oh yea you could probably set your makeopts to -j2 unless your pc runs on 1/2 of a processor(this isnot why your having this problem though.
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Mon Oct 02, 2006 6:16 pm    Post subject: Reply with quote

Are "-mmmx -msse" OK with an Athlon XP? These are Intel words, isn't the functionality included in "3dnow"?

Safe Cflags says
Quote:
Gcc has a number of flags for CPU features like MMX and SSE; -mmx -msse etc. They are implied if you use a correct -march option so you usually don´t need them, with some exceptions. They should not be confused with the similar USE-flags for CPU features. The flag -mfpmath=sse however is not enabled by -march but it usually makes binaries slower due to limitations in the glibc headers. So it's better to not use this flag, even if you have an SSE capable CPU. Also -mfpmath=sse,387 is experimental and unstable.

_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
buzzoneandonly
n00b
n00b


Joined: 27 Nov 2005
Posts: 16

PostPosted: Tue Oct 03, 2006 12:49 pm    Post subject: Reply with quote

davascript wrote:
Dont switch


I really wouldn't. It was just a sneaky trick to convince someone to post here... :wink:

Did a complete emerge -e system; emerge -e world again. and afterwards it just worked.

wynn wrote:

Are "-mmmx -msse" OK with an Athlon XP? These are Intel words, isn't the functionality included in "3dnow"?


Hmm. Think so. Many people use and suggest them for athlon xp. I use them for 2 years now and hadn't problems at all. But -march=... implies all relevant flags anyway. So it wouldn't be fatal to omit them. That's at least my understanding...

"davascript wrote:

oh yea you could probably set your makeopts to -j2 unless your pc runs on 1/2 of a processor(this isnot why your having this problem though.


your are absolutely right on that. don't know how the -j1 came there :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum