| View previous topic :: View next topic |
| Author |
Message |
idoerg n00b

Joined: 22 Jan 2012 Posts: 10
|
Posted: Tue Jan 15, 2013 4:09 pm Post subject: gcc removed, how to fix? [SOLVED] |
|
|
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 |
|
 |
megabaks Tux's lil' helper


Joined: 22 Jan 2012 Posts: 105
|
|
| Back to top |
|
 |
py-ro Veteran


Joined: 24 Sep 2002 Posts: 1266 Location: St. Wendel
|
Posted: Tue Jan 15, 2013 4:37 pm Post subject: |
|
|
Or look if gcc-config lists an available gcc.  |
|
| Back to top |
|
 |
idoerg n00b

Joined: 22 Jan 2012 Posts: 10
|
Posted: Tue Jan 15, 2013 4:38 pm Post subject: |
|
|
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 |
|
 |
megabaks Tux's lil' helper


Joined: 22 Jan 2012 Posts: 105
|
Posted: Tue Jan 15, 2013 4:45 pm Post subject: |
|
|
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 |
|
 |
idoerg n00b

Joined: 22 Jan 2012 Posts: 10
|
Posted: Tue Jan 15, 2013 4:46 pm Post subject: |
|
|
| idoerg wrote: |
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 |
|
 |
idoerg n00b

Joined: 22 Jan 2012 Posts: 10
|
Posted: Tue Jan 15, 2013 4:47 pm Post subject: |
|
|
| 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 |
|
 |
megabaks Tux's lil' helper


Joined: 22 Jan 2012 Posts: 105
|
Posted: Tue Jan 15, 2013 4:49 pm Post subject: |
|
|
| 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 |
|
 |
soka n00b

Joined: 27 Dec 2006 Posts: 72 Location: Argentina
|
Posted: Tue Jan 15, 2013 5:03 pm Post subject: |
|
|
/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 |
|
 |
chithanh Developer

Joined: 05 Aug 2006 Posts: 1390 Location: Berlin, Germany
|
Posted: Tue Jan 15, 2013 5:08 pm Post subject: |
|
|
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 |
|
 |
idoerg n00b

Joined: 22 Jan 2012 Posts: 10
|
Posted: Tue Jan 15, 2013 5:23 pm Post subject: |
|
|
| 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 |
|
 |
idoerg n00b

Joined: 22 Jan 2012 Posts: 10
|
Posted: Tue Jan 15, 2013 5:38 pm Post subject: |
|
|
| Ah, no masking problem. I used the wrong architecture from tinderbox. emerging gcc now.... |
|
| Back to top |
|
 |
idoerg n00b

Joined: 22 Jan 2012 Posts: 10
|
Posted: Tue Jan 15, 2013 6:55 pm Post subject: |
|
|
| 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 |
|
 |
|