Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 206739 - dev-python/pycrypto-2.0.1-r6: gcc-config error: Could not run/locate "i386-pc-linux-gnu-gcc"
Summary: dev-python/pycrypto-2.0.1-r6: gcc-config error: Could not run/locate "i386-pc...
Status: VERIFIED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-20 07:41 UTC by Alexander Kuznetsov
Modified: 2008-05-09 14:19 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 Alexander Kuznetsov 2008-01-20 07:41:00 UTC
building 'Crypto.Hash.MD2' extension
creating build/temp.linux-i686-2.4
creating build/temp.linux-i686-2.4/src
i386-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -march=prescott -O2 -pipe -fforce-addr -fno-inline-functions -fPIC -Isrc/ -I/usr/include/python2.4 -c src/MD2.c -o build/temp.linux-i686-2.4/src/MD2.o
gcc-config error: Could not run/locate "i386-pc-linux-gnu-gcc"
error: command 'i386-pc-linux-gnu-gcc' failed with exit status 1
 * 
 * ERROR: dev-python/pycrypto-2.0.1-r6 failed.
 * Call stack:
 *                  ebuild.sh, line 1701:  Called dyn_compile
 *                  ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *                  ebuild.sh, line   44:  Called src_compile
 *   pycrypto-2.0.1-r6.ebuild, line   39:  Called distutils_src_compile
 *           distutils.eclass, line   48:  Called die
 * The specific snippet of code:
 *      ${python} setup.py build "$@" || die "compilation failed"
 *  The die message:
 *   compilation failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-python/pycrypto-2.0.1-r6/temp/build.log'.
 * 

# emerge --info
Portage 2.1.3.19 (hardened/x86/2.6, gcc-3.4.6, glibc-2.6.1-r0, 2.6.19-gentoo-r5 i686)
=================================================================
System uname: 2.6.19-gentoo-r5 i686 Intel(R) Celeron(R) CPU 2.53GHz
Timestamp of tree: Sat, 19 Jan 2008 01:47:01 +0000
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.60
sys-devel/automake:  1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fforce-addr"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-march=prescott -O2 -pipe -fforce-addr"
DISTDIR="/var/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://osetinka.net/ http://gentoo.osuosl.org/"
MAKEOPTS="-j2"
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.gentoo.org/gentoo-portage"
USE="berkdb cracklib crypt hardened midi nls nptl nptlonly pam pic readline ssl tcpd threads urandom x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

# gcc-config -l
 [1] i686-pc-linux-gnu-3.4.6 *
 [2] i686-pc-linux-gnu-3.4.6-hardenednopie
 [3] i686-pc-linux-gnu-3.4.6-hardenednopiessp
 [4] i686-pc-linux-gnu-3.4.6-hardenednossp
 [5] i686-pc-linux-gnu-3.4.6-vanilla

Reproducible: Always

Steps to Reproduce:
Comment 1 Christian Heim (RETIRED) gentoo-dev 2008-01-20 15:03:18 UTC
(In reply to comment #0)
> building 'Crypto.Hash.MD2' extension
> creating build/temp.linux-i686-2.4
> creating build/temp.linux-i686-2.4/src
> i386-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -march=prescott
> -O2 -pipe -fforce-addr -fno-inline-functions -fPIC -Isrc/
> -I/usr/include/python2.4 -c src/MD2.c -o build/temp.linux-i686-2.4/src/MD2.o
> gcc-config error: Could not run/locate "i386-pc-linux-gnu-gcc"
> error: command 'i386-pc-linux-gnu-gcc' failed with exit status 1
>  * 
>  * ERROR: dev-python/pycrypto-2.0.1-r6 failed.
>  * Call stack:
>  *                  ebuild.sh, line 1701:  Called dyn_compile
>  *                  ebuild.sh, line 1039:  Called qa_call 'src_compile'
>  *                  ebuild.sh, line   44:  Called src_compile
>  *   pycrypto-2.0.1-r6.ebuild, line   39:  Called distutils_src_compile
>  *           distutils.eclass, line   48:  Called die
>  * The specific snippet of code:
>  *      ${python} setup.py build "$@" || die "compilation failed"
>  *  The die message:
>  *   compilation failed
>  * 
>  * If you need support, post the topmost build error, and the call stack if
> relevant.
>  * A complete build log is located at
> '/var/tmp/portage/dev-python/pycrypto-2.0.1-r6/temp/build.log'.
>  * 
> # emerge --info
> Portage 2.1.3.19 (hardened/x86/2.6, gcc-3.4.6, glibc-2.6.1-r0, 2.6.19-gentoo-r5
> i686)
> =================================================================
> System uname: 2.6.19-gentoo-r5 i686 Intel(R) Celeron(R) CPU 2.53GHz
> Timestamp of tree: Sat, 19 Jan 2008 01:47:01 +0000
> app-shells/bash:     3.2_p17-r1
> dev-lang/python:     2.4.3-r4
> dev-python/pycrypto: 2.0.1-r5
> sys-apps/baselayout: 1.12.10-r5
> sys-apps/sandbox:    1.2.18.1-r2
> sys-devel/autoconf:  2.60
> sys-devel/automake:  1.10
> sys-devel/binutils:  2.18-r1
> sys-devel/gcc-config: 1.4.0-r4
> sys-devel/libtool:   1.5.22
> virtual/os-headers:  2.6.23-r3
> ACCEPT_KEYWORDS="x86"
> CBUILD="i686-pc-linux-gnu"
> CFLAGS="-march=prescott -O2 -pipe -fforce-addr"
> CHOST="i686-pc-linux-gnu"
> CONFIG_PROTECT="/etc"
> CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
> CXXFLAGS="-march=prescott -O2 -pipe -fforce-addr"
> DISTDIR="/var/distfiles"
> FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans
> userfetch"
> GENTOO_MIRRORS="http://osetinka.net/ http://gentoo.osuosl.org/"
> MAKEOPTS="-j2"
> PKGDIR="/usr/portage/packages"

Well, the ebuild is right (or pycrypto is). You started of a i386 stage didn't you ? and you forgot to emerge -e system after bootstrapping from i386 to i686. So you either remerge python & pycrypto (in that order) with the new system or please pick the right stage the next time.
Comment 2 Alexander Kuznetsov 2008-01-20 15:41:23 UTC
yes, ebuild is correct. after manual emerging python and perl (next error), I have completed 'emerge -e system'.
Comment 3 Richard Scott 2008-05-09 14:19:54 UTC
I'm getting this error also. However I downloaded a stage2-i686-2007.0.tar.bz2 tarball to install from :-(