Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge portage - can't locate i386-pc-linux-gnu-gcc [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
opensas
Guru
Guru


Joined: 24 Nov 2004
Posts: 408
Location: Buenos Aires - Argentina

PostPosted: Sun Mar 12, 2006 6:31 pm    Post subject: emerge portage - can't locate i386-pc-linux-gnu-gcc [SOLVED] Reply with quote

Hi

I'm installing a gentoo on a brand new partition.

I upgraded to gcc 3.4.5 and now I'm gettinh the following error when emerging portage

Code:

...
Compiling /var/tmp/portage/portage-2.0.54/work/portage-2.0.54/pym/portage_util.py ...
Compiling /var/tmp/portage/portage-2.0.54/work/portage-2.0.54/pym/xpak.py ...
QA Notice: USE Flag 'userland_Darwin' not in IUSE for sys-apps/portage-2.0.54
running build
running build_ext
building 'missingos' extension
creating build
creating build/temp.linux-i686-2.4
i386-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -O3 -march=athlon-xp -mtune=athlon-xp -pipe -fomit-frame-pointer -fforce-addr -ftracer -fPIC -I/usr/include/python2.4 -c missingos.c -o build/temp.linux-i686-2.4/missingos.o
gcc-config error: Could not run/locate "i386-pc-linux-gnu-gcc"


This is my configuration

Code:

tux / # emerge --info
Portage 2.0.54 (default-linux/x86/no-nptl, gcc-3.4.5, glibc-2.3.5-r2, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 AMD Athlon(tm) XP 2600+
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-r6
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="-O3 -march=athlon-xp -mtune=athlon-xp -pipe -fomit-frame-pointer -fforce-addr -ftracer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -mtune=athlon-xp -pipe -fomit-frame-pointer -fforce-addr -ftracer -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy ccache distlocks moo sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.seren.com/gentoo http://open-systems.ufl.edu/mirrors/gentoo http://mirror.usu.edu/mirrors/gentoo/ "
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.samerica.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X alsa apache2 apm arts atm avi bash-completion berkdb bitmap-fonts bzip2 crypt cups dhcp doc dri dts dvd dvdread eds emboss encode expat foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 imlib ipv6 java jpeg kde kdeeneablefinal kqemu libg++ libwww mad matroska mikmod mmx mmx2 mmxext motif mp3 mpeg ncurses nls nsplugin nvidia ogg opengl oss pam pdflib perl pic png ppds python qt quicktime readline real reiserfs rtc sdl softmmu spell sse sse2 ssl tcpd theora truetype truetype-fonts type1-fonts udev vorbis win32codecs xml xmms xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS


and this is the gcc I'm using right now

Code:

tux / # gcc-config -l
 [1] i686-pc-linux-gnu-3.4.5 *
 [2] i686-pc-linux-gnu-3.4.5-hardened
 [3] i686-pc-linux-gnu-3.4.5-hardenednopie
 [4] i686-pc-linux-gnu-3.4.5-hardenednopiessp
 [5] i686-pc-linux-gnu-3.4.5-hardenednossp


and my make.conf

Code:

tux / # cat /etc/make.conf
CFLAGS="-O3 -march=athlon-xp -mtune=athlon-xp -pipe -fomit-frame-pointer -fforce-addr -ftracer"
CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden"
CHOST="i686-pc-linux-gnu"
MAKEOPTS="-j2"
...


I don't know why emerge is looking for i386-pc-linux-gnu-gcc.

Any ideas?

Saludos

Sas


Last edited by opensas on Tue Mar 14, 2006 6:22 am; edited 1 time in total
Back to top
View user's profile Send private message
opensas
Guru
Guru


Joined: 24 Nov 2004
Posts: 408
Location: Buenos Aires - Argentina

PostPosted: Sun Mar 12, 2006 6:46 pm    Post subject: Reply with quote

I've been digging around and found the following

Code:

tux / # ls -l /usr/bin/*gnu-gcc*
-rwxr-xr-x  1 root root 8312 Feb 14 01:35 /usr/bin/i386-pc-linux-gnu-gcc
-rwxr-xr-x  1 root root 8312 Feb 14 01:35 /usr/bin/i386-pc-linux-gnu-gcc32
-rwxr-xr-x  1 root root 8804 Mar 12 15:22 /usr/bin/i686-pc-linux-gnu-gcc
lrwxrwxrwx  1 root root   58 Mar 12 15:22 /usr/bin/i686-pc-linux-gnu-gcc-3.4.5 -> /usr/i686-pc-linux-gnu/gcc-bin/3.4.5/i686-pc-linux-gnu-gcc
-rwxr-xr-x  1 root root 8804 Mar 12 15:22 /usr/bin/i686-pc-linux-gnu-gcc32
tux / # i386-pc-linux-gnu-gcc --version
gcc-config error: Could not run/locate "i386-pc-linux-gnu-gcc"
tux / # i686-pc-linux-gnu-gcc --version
i686-pc-linux-gnu-gcc (GCC) 3.4.5 (Gentoo 3.4.5, ssp-3.4.5-1.0, pie-8.7.9)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


So I do have a i386-pc-linux-gnu-gcc but gcc-config can't find it.

Saludos

Sas
Back to top
View user's profile Send private message
sternklang
Veteran
Veteran


Joined: 10 Sep 2005
Posts: 1641
Location: Somewhere in time and space

PostPosted: Sun Mar 12, 2006 10:41 pm    Post subject: Reply with quote

After doing the update, did you run "env-update && source /etc/profile"?
Back to top
View user's profile Send private message
opensas
Guru
Guru


Joined: 24 Nov 2004
Posts: 408
Location: Buenos Aires - Argentina

PostPosted: Tue Mar 14, 2006 1:02 am    Post subject: Reply with quote

Yeap, i did.

But i decided to take a drastic decision, so I'm gonna start it all over again.

I'll tell ya how it goes

Saludos

Sas
Back to top
View user's profile Send private message
sternklang
Veteran
Veteran


Joined: 10 Sep 2005
Posts: 1641
Location: Somewhere in time and space

PostPosted: Tue Mar 14, 2006 1:10 am    Post subject: Reply with quote

Best of luck with it!
Back to top
View user's profile Send private message
thejinx0r
n00b
n00b


Joined: 10 Feb 2006
Posts: 23

PostPosted: Tue Mar 14, 2006 1:26 am    Post subject: Reply with quote

I had that problem a couple of days ago.

Before I tell you how to fix, the best tip I can give you is google it first and add "site:forums.gentoo.org" at the end of it and it will search that in the gentoo forum.

I can't remember exactly tough.

I believe the command was :
Code:
gcc --configure ${GCC_VERSION} --oldarch i386-pc-gnu-linux


It might not be perfect, but it will get you in the right direction :D
Back to top
View user's profile Send private message
opensas
Guru
Guru


Joined: 24 Nov 2004
Posts: 408
Location: Buenos Aires - Argentina

PostPosted: Tue Mar 14, 2006 6:00 am    Post subject: Reply with quote

Bad luck, I still have the same problem

look what I tried

Code:


tux dummy # chroot /mnt/dummy/ /bin/bash

tux / # env-update
>>> Regenerating /etc/ld.so.cache...

tux / # source /etc/profile

tux / # gcc-config -l
 [1] i686-pc-linux-gnu-3.4.5 *
 [2] i686-pc-linux-gnu-3.4.5-hardened
 [3] i686-pc-linux-gnu-3.4.5-hardenednopie
 [4] i686-pc-linux-gnu-3.4.5-hardenednopiessp
 [5] i686-pc-linux-gnu-3.4.5-hardenednossp

tux / # gcc-config 1
 * Switching native-compiler to i686-pc-linux-gnu-3.4.5 ...                     [ ok ]

tux / # env-update
>>> Regenerating /etc/ld.so.cache...

tux / # source /etc/profile

tux / # cat /etc/profile.env
# THIS FILE IS AUTOMATICALLY GENERATED BY env-update.
# DO NOT EDIT THIS FILE. CHANGES TO STARTUP PROFILES
# GO INTO /etc/profile NOT /etc/profile.env

export INFOPATH='/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.16.1/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.4.5/info'
export PYTHONPATH='/usr/lib/portage/pym'
export CONFIG_PROTECT_MASK='/etc/terminfo'
export ROOTPATH='/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.5'
export MANPATH='/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.16.1/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.4.5/man'
export PATH='/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.5'
export LESS='-R -M --shift 5'
export CVS_RSH='ssh'
export PAGER='/usr/bin/less'
export GCC_SPECS=''
export LESSOPEN='|lesspipe.sh %s'

tux / # set | grep gnu
BASH_VERSINFO=([0]="3" [1]="00" [2]="16" [3]="1" [4]="release" [5]="i386-pc-linux-gnu")
INFOPATH=/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.16.1/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.4.5/info
MACHTYPE=i386-pc-linux-gnu
MANPATH=/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.16.1/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.4.5/man
OSTYPE=linux-gnu
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.5


Well, I thought everything is all right, but then

Code:

tux / # emerge -v portage
Calculating dependencies  ...done!
>>> emerge (1 of 1) sys-apps/portage-2.0.54 to /
(...)
creating build
creating build/temp.linux-i686-2.4
i386-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -O3 -march=athlon-xp -mtune=athlon-xp -pipe -fomit-frame-pointer -fforce-addr -ftracer -fPIC -I/usr/include/python2.4 -c missingos.c -o build/temp.linux-i686-2.4/missingos.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: sys-apps/portage-2.0.54 failed.
!!! Function src_compile, Line 36, Exitcode 1
!!! Failed to build missingos module
!!! If you need support, post the topmost build error, NOT this status message.


I'll try with thejinxOr's advice

Saludos

Sas
Back to top
View user's profile Send private message
opensas
Guru
Guru


Joined: 24 Nov 2004
Posts: 408
Location: Buenos Aires - Argentina

PostPosted: Tue Mar 14, 2006 6:18 am    Post subject: Reply with quote

Well, I followed thejinxOr's advice and googled around the forums

I found the solution at this thread.

look

Quote:

That's the thing... this problem has always been there with every release.

The problem is that python was built for i386 then when you rebuild gcc/glibc you have nothing for i386 anymore. Then when you try to do "emerge portage" it tries to call python but python hasn't been rebuilt and refers to the non-existent i386 compiler.

And this didn't normally come up before because bootstrapping used to rebuild python.

edit:
But even in the old releases if you explicitly upgraded gcc and glibc, didn't re-install python, and tried to do "emerge portage" you'd have problems.


I emerged python and now it seems to work.

Thank you all

Saludos

Sas
Back to top
View user's profile Send private message
mark_alec
Bodhisattva
Bodhisattva


Joined: 11 Sep 2004
Posts: 6066
Location: Melbourne, Australia

PostPosted: Tue Mar 14, 2006 8:36 am    Post subject: Reply with quote

Moved from Installing Gentoo to Duplicate Threads.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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