Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] gcc unable to compile -> all emerge fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
honp
Guru
Guru


Joined: 25 Sep 2006
Posts: 337
Location: Good old Prague, Czech rep.

PostPosted: Mon Jul 20, 2009 11:23 am    Post subject: [SOLVED] gcc unable to compile -> all emerge fails Reply with quote

Just for the case that someone could use this hint...

After some playing with USE flags, depclean and so, gcc on my box was not able to compile anything so emerge didn`t work. I was worried that i have to reinstall my laptop (and my laptop is fine tuned!!:) ) Than i realized, than i can try chrooted "new" installation on my box. So downloaded stage3 file decomprime it to /temp/chroot/, copied /usr/portage there,/etc/resolv.conf/make.conf and so, mounted proc and dev there (maybe it is not needed) linked /usr/portage/distfiles/, chrooted there (chroot /temp/chroot/ /bin/bash/) synced portage, and then because in my "wouned" gentoo was gcc different than on stage3 tarball i emerged needed gcc, using equery files gcc get list of needed files which i copied to ma "wounded" gentoo and voila... everything worked fine.

Hope it could help...
Back to top
View user's profile Send private message
Gef
Apprentice
Apprentice


Joined: 17 May 2008
Posts: 180
Location: France

PostPosted: Mon Jul 20, 2009 2:14 pm    Post subject: Reply with quote

Maybe Diego (flameyes) 's tinderbox could have helped ?
http://tinderbox.dev.gentoo.org/default-linux/amd64/sys-devel/
http://tinderbox.dev.gentoo.org/default-linux/x86/sys-devel/
Fetch <pkg>-<version>.tbz2 -> /usr/portage/packages/, and emerge -K <pkg>
_________________
Laptop : Gentoo ~amd64
(remote) Server : Gentoo amd64
Back to top
View user's profile Send private message
honp
Guru
Guru


Joined: 25 Sep 2006
Posts: 337
Location: Good old Prague, Czech rep.

PostPosted: Tue Jul 21, 2009 8:25 am    Post subject: Reply with quote

Thanks, probably this would help me too:)
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2671
Location: here, there or in transit

PostPosted: Tue Jul 21, 2009 12:45 pm    Post subject: Reply with quote

Moved from Portage & Programming to Documentation, Tips & Tricks.
Not a support request but a useful idea.
_________________
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Back to top
View user's profile Send private message
FunT
n00b
n00b


Joined: 28 Jun 2004
Posts: 4
Location: Riga, Latvia.

PostPosted: Wed Jul 22, 2009 7:58 am    Post subject: Re: [SOLVED] gcc unable to compile -> all emerge fails Reply with quote

honp wrote:
Just for the case that someone could use this hint...

After some playing with USE flags, depclean and so, gcc on my box was not able to compile anything so emerge didn`t work. I was worried that i have to reinstall my laptop (and my laptop is fine tuned!!:) ) Than i realized, than i can try chrooted "new" installation on my box. So downloaded stage3 file decomprime it to /temp/chroot/, copied /usr/portage there,/etc/resolv.conf/make.conf and so, mounted proc and dev there (maybe it is not needed) linked /usr/portage/distfiles/, chrooted there (chroot /temp/chroot/ /bin/bash/) synced portage, and then because in my "wouned" gentoo was gcc different than on stage3 tarball i emerged needed gcc, using equery files gcc get list of needed files which i copied to ma "wounded" gentoo and voila... everything worked fine.

Hope it could help...



instead of copying files manually you could:

--inside of chroot
Code:
# quickpkg gcc

--outside of chroot
Code:
# mkdir -p /usr/portage/packages/sys-devel
# cp $chroot_dir/usr/portage/packages/sys-devel/gcc-VERSION.tbz2 /usr/portage/packages/sys-devel/
# emerge -K gcc
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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