Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc removed, how to fix? [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
idoerg
n00b
n00b


Joined: 22 Jan 2012
Posts: 21

PostPosted: Tue Jan 15, 2013 4:09 pm    Post subject: gcc removed, how to fix? [SOLVED] Reply with quote

I upgraded my system overnight, and did not check, but gcc 4.6.3 did not build properly.

However, i stupidly removed gcc-4.5.4 (emerge --depclean) which was working fine. :?
Now: how can I re-emerge gcc? I don't have a working gcc to compile.

Thanks,

Iddo


Last edited by idoerg on Tue Jan 15, 2013 7:16 pm; edited 1 time in total
Back to top
View user's profile Send private message
megabaks
Apprentice
Apprentice


Joined: 22 Jan 2012
Posts: 253
Location: Russia && Saint-Petersburg

PostPosted: Tue Jan 15, 2013 4:33 pm    Post subject: Reply with quote

use http://tinderbox.dev.gentoo.org/default-linux/ARCH/ as binhost?
Back to top
View user's profile Send private message
py-ro
Veteran
Veteran


Joined: 24 Sep 2002
Posts: 1471
Location: St. Wendel

PostPosted: Tue Jan 15, 2013 4:37 pm    Post subject: Reply with quote

Or look if gcc-config lists an available gcc. ;)
Back to top
View user's profile Send private message
idoerg
n00b
n00b


Joined: 22 Jan 2012
Posts: 21

PostPosted: Tue Jan 15, 2013 4:38 pm    Post subject: Reply with quote

megabaks wrote:
use http://tinderbox.dev.gentoo.org/default-linux/ARCH/ as binhost?


I am not sure how to do that. Actually, i may have made things worse

I got gcc-4.4.5.tbz2 placed it in /

Code:
tar -xfjp gcc-4.4.5.tbz2


Now I seem to have broken several things.. including emerge

my /usr/lib looks like this:

# ls /usr/lib/
gcc pkgconfig
Back to top
View user's profile Send private message
megabaks
Apprentice
Apprentice


Joined: 22 Jan 2012
Posts: 253
Location: Russia && Saint-Petersburg

PostPosted: Tue Jan 15, 2013 4:45 pm    Post subject: Reply with quote

4.4 after 4.6? o_O
c++ soft dead.
Quote:
I am not sure how to do that
i.e.
in make.conf
Code:
PORTAGE_BINHOST="http://tinderbox.dev.gentoo.org/default-linux/x86/"
&&
Code:
emerge -avGK sys-devel/gcc
no?
Back to top
View user's profile Send private message
idoerg
n00b
n00b


Joined: 22 Jan 2012
Posts: 21

PostPosted: Tue Jan 15, 2013 4:46 pm    Post subject: Reply with quote

idoerg wrote:
megabaks wrote:
use http://tinderbox.dev.gentoo.org/default-linux/ARCH/ as binhost?


I am not sure how to do that. Actually, i may have made things worse

I got gcc-4.4.5.tbz2 placed it in /

Code:
tar -xfjp gcc-4.4.5.tbz2


Now I seem to have broken several things.. including emerge

my /usr/lib looks like this:

# ls /usr/lib/
gcc pkgconfig


Actually, my lib64 seems fine (I'm on a x64 architecture). emerge is there.
Code:
/usr/lib64/portage/bin/emerge


But /usr/bin/emerge is (brokenly) linked to /usr /lib/portage/bin/emerge

Not sure what other things are hosed...
Back to top
View user's profile Send private message
idoerg
n00b
n00b


Joined: 22 Jan 2012
Posts: 21

PostPosted: Tue Jan 15, 2013 4:47 pm    Post subject: Reply with quote

megabaks wrote:
4.4 after 4.6? o_O
c++ soft dead.
Quote:
I am not sure how to do that
i.e.
in make.conf
Code:
PORTAGE_BINHOST="http://tinderbox.dev.gentoo.org/default-linux/x86/"
&&
Code:
emerge -avGK sys-devel/gcc
no?


4.6.3 never compiled. My previous version was 4.5.4
Back to top
View user's profile Send private message
megabaks
Apprentice
Apprentice


Joined: 22 Jan 2012
Posts: 253
Location: Russia && Saint-Petersburg

PostPosted: Tue Jan 15, 2013 4:49 pm    Post subject: Reply with quote

Quote:
4.6.3 never compiled. My previous version was 4.5.4
over tinderbox available 4.5.3
i.e.
Code:
[ root@desktop ] megabaks # emerge -pG sys-devel/gcc

These are the packages that would be merged, in order:

Calculating dependencies... done!
[binary     UD ] sys-devel/gcc-4.5.3-r2 [4.5.4] USE="-gtk* -nls* -nocxx% -objc* -objc++* -objc-gc*"
[ root@desktop ] megabaks #
Back to top
View user's profile Send private message
soka
Tux's lil' helper
Tux's lil' helper


Joined: 27 Dec 2006
Posts: 79
Location: Argentina

PostPosted: Tue Jan 15, 2013 5:03 pm    Post subject: Reply with quote

/usr/lib is a symbolic link to /usr/lib64 so if /usr/lib64/ is still fine
Code:
rm /usr/lib
cd /usr
ln -s lib64 lib
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1663
Location: Berlin, Germany

PostPosted: Tue Jan 15, 2013 5:08 pm    Post subject: Reply with quote

When using the tinderbox as portage binhost, you may need to also get some dependencies from there if gcc refuses to run due to broken dynamic links.

What you could do instead is downloading a current stage3, extracting to some new directory, bind-mount /usr/portage there, then chroot into it and run "quickpkg gcc". Outside chroot you can then run "emerge --usepkgonly gcc".

Next time, before unmerging things you did not install yourself, best consult this forum topic.
Back to top
View user's profile Send private message
idoerg
n00b
n00b


Joined: 22 Jan 2012
Posts: 21

PostPosted: Tue Jan 15, 2013 5:23 pm    Post subject: Reply with quote

chithanh wrote:
When using the tinderbox as portage binhost, you may need to also get some dependencies from there if gcc refuses to run due to broken dynamic links.

What you could do instead is downloading a current stage3, extracting to some new directory, bind-mount /usr/portage there, then chroot into it and run "quickpkg gcc". Outside chroot you can then run "emerge --usepkgonly gcc".

Next time, before unmerging things you did not install yourself, best consult this forum topic.


thanks.

The /usr/lib symlinks are working fine now.

Still have a masking problem:

Code:


emerge -avGK sys-devel/gcc

 * IMPORTANT: 2 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


These are the packages that would be merged, in order:

Calculating dependencies... done!

!!! All ebuilds that could satisfy "sys-devel/gcc" have been masked.
!!! One of the following masked packages is required to complete your request:
- sys-devel/gcc-4.5.3-r2::gentoo (masked by: CHOST: i686-pc-linux-gnu)
- sys-devel/gcc-4.4.5::gentoo (masked by: ~amd64 keyword, CHOST: i686-pc-linux-gnu)
- sys-devel/gcc-4.3.4::gentoo (masked by: CHOST: i686-pc-linux-gnu)
- sys-devel/gcc-4.1.2::gentoo (masked by: CHOST: i686-pc-linux-gnu)

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
Back to top
View user's profile Send private message
idoerg
n00b
n00b


Joined: 22 Jan 2012
Posts: 21

PostPosted: Tue Jan 15, 2013 5:38 pm    Post subject: Reply with quote

Ah, no masking problem. I used the wrong architecture from tinderbox. emerging gcc now....
Back to top
View user's profile Send private message
idoerg
n00b
n00b


Joined: 22 Jan 2012
Posts: 21

PostPosted: Tue Jan 15, 2013 6:55 pm    Post subject: Reply with quote

idoerg wrote:
Ah, no masking problem. I used the wrong architecture from tinderbox. emerging gcc now....


All's well. 4.5.4 emerged and libraries seem OK after a revdep-rebuild

Thanks to all for your help.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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