While emerging hplip with the following flags: <br /><br /> [ebuild N ] net-print/hplip-0.9.7-r3 -X +cups +foomaticdb +ppds -qt -scanner -snmp +usb <br /><br /> The build fails part way through: <br /><br /> i686-pc-linux-gnu-g++ -O2 -march=i686 -pipe -o hpiod hpiod.o channel.o device.o mlc.o system.o jddevice.o jetdirect.o udevice.o uppdevice.o ppdevice.o pp.o dot4.o ppdot4.o -lcrypto -lpthread cd pcard/pcardext; \ /usr/bin/python setup.py build running build running build_ext building 'pcardext' extension creating build creating build/temp.linux-i686-2.4 i586-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -march=i686 -pipe -fPIC -I/usr/include/python2.4 -c pcardext.c -o build/temp.linux-i686-2.4/pcardext.o gcc-config error: Could not run/locate "i586-pc-linux-gnu-gcc" error: command 'i586-pc-linux-gnu-gcc' failed with exit status 1 make[1]: *** [build-pcardext] Error 1 make[1]: Leaving directory `/var/tmp/portage/hplip-0.9.7-r3/work/hplip-0.9.7' make: *** [all-recursive] Error 1 <p> Output from emerge --info:<br /><br /> Portage 2.0.54 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.5-r3, 2.6.15-gentoo-r1 i686) ================================================================= System uname: 2.6.15-gentoo-r1 i686 Pentium II (Klamath) Gentoo Base System version 1.6.14 dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.12 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-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/env.d" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="x86 apm arts avi berkdb bitmap-fonts bzip2 cli crypt ctype cups curl dba dri eds emboss encode esd expat fastbuild foomaticdb force-cgi-redirect ftp gd gdbm gif gstreamer gtk2 imlib ipv6 isdnlog ithreads jpeg libg++ libwww mad memlimit mikmod motif mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre pdflib perl png posix ppds pppd python quicktime readline ruby sdl session simplexml soap sockets spell spl ssl tcpd threads tiff tokenizer truetype truetype-fonts type1-fonts udev usb vorbis xml xml2 xmms xsl xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
When changing CHOST, better be really sure that you know what are you doing... You need to run 'emerge -e system' at least.
Weird - this is a newly built box and I dont think I changed CHOST. This is on a P-II box BTW
Just to add: this was a stage 3 install so CHOST is set to i686 and has not been changed.
Try rebuilding python, seems to be an old bug coming up again.
Please try Diego's suggestion. Reopen if still an issue.