Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I broke my gentoo with gcc 4.1
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
richmastaplus
Tux's lil' helper
Tux's lil' helper


Joined: 29 Nov 2005
Posts: 127
Location: Canada

PostPosted: Sun Mar 26, 2006 2:51 am    Post subject: I broke my gentoo with gcc 4.1 Reply with quote

I finished emerging gcc 4.1 on my old computer and I started a emerge -e system && emerge -e world

It died on bash and pretty much screwed up everything

Now the computer fails on the mount command and if I chroot into the drive from a boot cd everything segfaults.


Any ideas on how I can bring back enough functionality to fix stuff from a boot cd. Like vi and emerge?
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Sun Mar 26, 2006 9:28 am    Post subject: Reply with quote

In this case you should think about reinstalling the OS from scratch.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Mar 26, 2006 11:37 am    Post subject: Reply with quote

Looks like a hardware crach to me. Reboot and run emerge --resume.
Edit: You may want to downclock it a bit to avoid this happening again.


Last edited by Jaglover on Sun Mar 26, 2006 11:39 am; edited 1 time in total
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sun Mar 26, 2006 11:38 am    Post subject: Reply with quote

Moved from Installing Gentoo to Unsupported Software.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
richmastaplus
Tux's lil' helper
Tux's lil' helper


Joined: 29 Nov 2005
Posts: 127
Location: Canada

PostPosted: Mon Mar 27, 2006 12:58 am    Post subject: Reply with quote

It's not a hardware problem. Definatly software.


I think I forgot to rebuild the tool chain before doing emerge -e system.

I need a way to copy a working emerge binary and use it to fix my system.

I don't want to completely reinstall because I have cvs repositories and other code on the machine.
Back to top
View user's profile Send private message
-=GGW=- $ol!d $n4>|e
Veteran
Veteran


Joined: 12 Apr 2004
Posts: 1616
Location: USA

PostPosted: Mon Mar 27, 2006 1:10 am    Post subject: Reply with quote

Really i would suggest booting a livecd, burning what you absolutely need and the config files for big things like xorg then rebooting and taking it as a lession to keep backups of your system if your gonna use unstable or testing things. :?
Back to top
View user's profile Send private message
vipernicus
Veteran
Veteran


Joined: 17 Jan 2005
Posts: 1462
Location: Your College IT Dept.

PostPosted: Mon Mar 27, 2006 3:59 am    Post subject: Reply with quote

As long as you were safe enough to put you /home on another partition, you can reuse it.
_________________
Viper-Sources Maintainer || nesl247 Projects || vipernicus.org blog
Back to top
View user's profile Send private message
predatorfreak
l33t
l33t


Joined: 13 Jan 2005
Posts: 708
Location: USA, Michigan.

PostPosted: Mon Mar 27, 2006 4:01 am    Post subject: Re: I broke my gentoo with gcc 4.1 Reply with quote

richmastaplus wrote:
I finished emerging gcc 4.1 on my old computer and I started a emerge -e system && emerge -e world

It died on bash and pretty much screwed up everything

Now the computer fails on the mount command and if I chroot into the drive from a boot cd everything segfaults.


Any ideas on how I can bring back enough functionality to fix stuff from a boot cd. Like vi and emerge?


Gentoo packages are just tarball's, right? Just unpack a clean glibc, gcc and such, then try chrooting and fixing the problem.
_________________
System: predatorbox
Distro: Arch Linux x86_64
Current projects: blackhole, convmedia and anything else I cook up.
Back to top
View user's profile Send private message
richmastaplus
Tux's lil' helper
Tux's lil' helper


Joined: 29 Nov 2005
Posts: 127
Location: Canada

PostPosted: Mon Mar 27, 2006 7:13 am    Post subject: Reply with quote

Basically I'm an idiot for upgrading from 3.3 to 3.45 to 4.1 in one session. 4.1 wouldn't compile with 3.3

I'm actually making some progress trying to fix the problem tho. It turns out when using the live cd and chrooting it will execute one command at a time even after it segfaults. So i switched back to gcc 3.3 and trying to undo the damage done.
Back to top
View user's profile Send private message
kfiaciarka
Veteran
Veteran


Joined: 20 May 2005
Posts: 1498
Location: Dobre Miasto, Poland

PostPosted: Mon Mar 27, 2006 7:18 am    Post subject: Reply with quote

I have tried install gcc 4.0.2 as default compiler and also glibc 2.4, but It was a fresh stage1 install. First I emerged gcc --nodeps, then gcc and at the end gcc. Next thing was making bootstrap. And there wasn't any segfutls at all, exept my efforts to use prelink :D
Back to top
View user's profile Send private message
vipernicus
Veteran
Veteran


Joined: 17 Jan 2005
Posts: 1462
Location: Your College IT Dept.

PostPosted: Mon Mar 27, 2006 3:26 pm    Post subject: Reply with quote

richmastaplus wrote:
Basically I'm an idiot for upgrading from 3.3 to 3.45 to 4.1 in one session. 4.1 wouldn't compile with 3.3

I'm actually making some progress trying to fix the problem tho. It turns out when using the live cd and chrooting it will execute one command at a time even after it segfaults. So i switched back to gcc 3.3 and trying to undo the damage done.


if you do a gcc-config -l, does it show you gcc-3.4.5?
_________________
Viper-Sources Maintainer || nesl247 Projects || vipernicus.org blog
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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