Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo design bug?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Stéphane
n00b
n00b


Joined: 14 Aug 2004
Posts: 9

PostPosted: Fri Aug 27, 2004 9:38 am    Post subject: Gentoo design bug? Reply with quote

Dear all,

I managed to build a non-working gcc on my Powerbook. It just shamefully crashes during large compilations. And I only noticed it after it replaced the previous gcc version. :(

Well, I've just figured out there is no possibility to recover from such a problem nicely. If you somehow screw up, let's say, gcc, glibc or python, your only hope is to recover a working binary version from an install CD or a Debian or RPM package so that you can get out of trouble...

It would probably make sense for most of the systems around, to have a minimal protected statically-linked core to allow such a recovery in a nice way. What about
Code:
recovery-emerge gcc
that would use this protected core to emerge a likely-to-work version of gcc? It would just sounds like most of any device on which you can update/replace/modify the core logic, they usually have a protected recovery core to make sure a failure in the update process is not unrecoverable...

Do I miss something? Does any of you been confronted to the same issue? What do you think of it? :?:

Best Regards.
Back to top
View user's profile Send private message
etnoy
Apprentice
Apprentice


Joined: 29 Aug 2003
Posts: 255
Location: Västerås, Sweden

PostPosted: Fri Aug 27, 2004 9:48 am    Post subject: Reply with quote

Grab a binary gcc package and install it with emerge -K
_________________
The md5sum of the above post is 06280ccd85ef9deb49c336e7945f4b5c

God is dead! - Nietzsche
Nietzsche is dead! -God
Back to top
View user's profile Send private message
Cuardin
l33t
l33t


Joined: 06 Feb 2003
Posts: 713
Location: vasastaden.stockholm.se

PostPosted: Fri Aug 27, 2004 9:51 am    Post subject: Reply with quote

Yeah, and I think the portage tree includes a stand-alone version of portage for emergencies as well.
_________________
Part of "The adopt an unanswered post initiative"
Back to top
View user's profile Send private message
Stéphane
n00b
n00b


Joined: 14 Aug 2004
Posts: 9

PostPosted: Sat Aug 28, 2004 4:40 pm    Post subject: Reply with quote

etnoy wrote:
Grab a binary gcc package and install it with emerge -K


That's exactly my point:
Code:

nunux root # emerge  -K gcc
Calculating dependencies
!!! There are no packages available to satisfy: "gcc"
!!! Either add a suitable binary package or compile from an ebuild.

!!! Error calculating dependencies. Please correct.

and there's nothing in Gentoo to grab a PowerPC gcc binary...

The only possible answer to this problem is likely called Debian or Redhat which clearly denotes a Gentoo problem. I also found this is already reported as a bug (52293)...

Regards.
Back to top
View user's profile Send private message
etnoy
Apprentice
Apprentice


Joined: 29 Aug 2003
Posts: 255
Location: Västerås, Sweden

PostPosted: Sat Aug 28, 2004 7:09 pm    Post subject: Reply with quote

You need to manually download a .tar.bz2 file that contains precompiled binaries. I don't actually know where to get them, since I compile all my packages manually.
If you do find somewhere to get it, you can also set PORTAGE_BINHOST in make.conf. Then it will use that site as a binary mirror.
_________________
The md5sum of the above post is 06280ccd85ef9deb49c336e7945f4b5c

God is dead! - Nietzsche
Nietzsche is dead! -God
Back to top
View user's profile Send private message
think-x
n00b
n00b


Joined: 30 Jun 2004
Posts: 52
Location: UCSB

PostPosted: Sat Aug 28, 2004 7:28 pm    Post subject: Reply with quote

I know that for x86, gentoo provides separate cd's full of precompiled binaries and i think they do for PPC as well. check it out, and if they do set PORTAGE_BINHOST to your cdrom drive that the disc is in, then do the "emerge -K ...". AFAIK, there are no binary mirrors right now, so the only way is to use a cd. GOOD LUCK :wink:

[edit] I just checked and it looks like there are no binary cd's for PPC, im sorry :oops: [/edit]
_________________
Screw you guys. I'm going home.
Back to top
View user's profile Send private message
etnoy
Apprentice
Apprentice


Joined: 29 Aug 2003
Posts: 255
Location: Västerås, Sweden

PostPosted: Sat Aug 28, 2004 10:13 pm    Post subject: Reply with quote

If all other fails, try getting another distribution's gcc package and manually installing it. Slackware and Debian packages should work, but I am not sure. Also, if you've got a spare system you could try emerging it with --buildpkg and then transferring that package to the broken system.
Good luck :)
_________________
The md5sum of the above post is 06280ccd85ef9deb49c336e7945f4b5c

God is dead! - Nietzsche
Nietzsche is dead! -God
Back to top
View user's profile Send private message
Cuardin
l33t
l33t


Joined: 06 Feb 2003
Posts: 713
Location: vasastaden.stockholm.se

PostPosted: Sun Aug 29, 2004 8:02 am    Post subject: Reply with quote

Or you unpack a stage3 into an empty direcotry on your comp, chroot there and use quickpkg to make a binary package of it. That shouldn't take more than 10 minutes at most but you need a little more than 1 Gb free space.
_________________
Part of "The adopt an unanswered post initiative"
Back to top
View user's profile Send private message
Stéphane
n00b
n00b


Joined: 14 Aug 2004
Posts: 9

PostPosted: Sun Aug 29, 2004 11:23 am    Post subject: Reply with quote

Thanks Cuardin,

I hadn't thought about this option. That's by far the cleanest one as no PowerPC binary packages are available.

Regards..
Back to top
View user's profile Send private message
Cuardin
l33t
l33t


Joined: 06 Feb 2003
Posts: 713
Location: vasastaden.stockholm.se

PostPosted: Sun Aug 29, 2004 11:57 am    Post subject: Reply with quote

Hm, perhaps a note should be placed in the docs that it is a good idea to make binary packages of gcc, glibc, portage and python and keep them in a good place.
_________________
Part of "The adopt an unanswered post initiative"
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4975
Location: Gothenburg, Sweden

PostPosted: Sun Aug 29, 2004 6:06 pm    Post subject: Reply with quote

There is also this FAQ: SA5: Things to not unmerge or remove.
_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.libera.chat
Back to top
View user's profile Send private message
Roguelazer
Veteran
Veteran


Joined: 10 Feb 2003
Posts: 1233
Location: San Francisco, CA

PostPosted: Sun Aug 29, 2004 7:18 pm    Post subject: Reply with quote

There is an "emergency tarball" containing glibc, gcc, portage and python out there somewhere. If you give me a few minutes to find the link, I'll post it somewhere.
_________________
Registered Linux User #263260
Back to top
View user's profile Send private message
Roguelazer
Veteran
Veteran


Joined: 10 Feb 2003
Posts: 1233
Location: San Francisco, CA

PostPosted: Sun Aug 29, 2004 7:26 pm    Post subject: Reply with quote

linky

Emergency Rescue Tarballs!
_________________
Registered Linux User #263260
Back to top
View user's profile Send private message
nephros
Advocate
Advocate


Joined: 07 Feb 2003
Posts: 2139
Location: Graz, Austria (Europe - no kangaroos.)

PostPosted: Sun Aug 29, 2004 7:32 pm    Post subject: Reply with quote

I am pretty sure that portage makes a quickpkg tarball automatically when upgrading one of those critical packages. Check your /usr/portage/packages/All
I did not check if it still does, that might have been removed.

Even if not, using quickpkg to backup known-working versions would be a good idea for anyone.
_________________
Please put [SOLVED] in your topic if you are a moron.
Back to top
View user's profile Send private message
etnoy
Apprentice
Apprentice


Joined: 29 Aug 2003
Posts: 255
Location: Västerås, Sweden

PostPosted: Sun Aug 29, 2004 9:13 pm    Post subject: Reply with quote

Roguelazer wrote:
There is an "emergency tarball" containing glibc, gcc, portage and python out there somewhere. If you give me a few minutes to find the link, I'll post it somewhere.

That's only for ~x86, right?
_________________
The md5sum of the above post is 06280ccd85ef9deb49c336e7945f4b5c

God is dead! - Nietzsche
Nietzsche is dead! -God
Back to top
View user's profile Send private message
Cuardin
l33t
l33t


Joined: 06 Feb 2003
Posts: 713
Location: vasastaden.stockholm.se

PostPosted: Mon Aug 30, 2004 6:59 am    Post subject: Reply with quote

Unfortunately, all these ideas fail if wget, tar or [g,b]zip stop working.
_________________
Part of "The adopt an unanswered post initiative"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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