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

Bug 61016

Summary: pkg-config returns "illegal instruction"
Product: Gentoo Linux Reporter: GCovato <gcovato>
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED WORKSFORME    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description GCovato 2004-08-20 04:49:32 UTC
Distribution: Gentoo Base System version 1.4.16
Package: pkg-config version 0.15.0

pkg-config returns "illegal instruction"



Reproducible: Always
Steps to Reproduce:
1. Run pkg-config with any option
2.
3.
Comment 1 Luke Macken (RETIRED) gentoo-dev 2004-08-20 09:21:53 UTC
Could you please post your `emerge --info`?
Comment 2 GCovato 2004-08-23 05:23:32 UTC
The bug exists only compiling the pkgconfig package with the -march=athlon-xp option.

Compiling with -march=i686 it works.
Comment 3 foser (RETIRED) gentoo-dev 2004-08-23 09:11:37 UTC
works fine here with athlon-xp .. still havent provided your 'emerge info'
Comment 4 GCovato 2004-08-24 01:35:29 UTC
Sorry I forgot to add the information you asked me.

Here they are

Gentoo Base System version 1.4.16
Portage 2.0.50-r9 (default-x86-2004.2, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.4.26-gentoo-r6)
=================================================================
System uname: 2.4.26-gentoo-r6 i686 AMD Athlon(tm) processor
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ http://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X apm arts avi berkdb cdr crypt cups divx4linux encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib jpeg ldap libg++ libwww mad matrox mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd truetype x86 xml2 xmms xv zlib"
Comment 5 GCovato 2004-08-24 01:37:26 UTC
Sorry I forgot to add the information you asked me.

Here they are

Gentoo Base System version 1.4.16
Portage 2.0.50-r9 (default-x86-2004.2, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.4.26-gentoo-r6)
=================================================================
System uname: 2.4.26-gentoo-r6 i686 AMD Athlon(tm) processor
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ http://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X apm arts avi berkdb cdr crypt cups divx4linux encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib jpeg ldap libg++ libwww mad matrox mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd truetype x86 xml2 xmms xv zlib"
Comment 6 foser (RETIRED) gentoo-dev 2004-09-28 08:18:31 UTC
sorry we can't do much with this. Works fine here. Illegal instruction usually points at some hw problem or maybe a flaky gcc.

Do you actually have an amd XP, your uname isn't very clear on that. Maybe you should reset your CFLAGS.