View previous topic :: View next topic |
Author |
Message |
Stéphane n00b
Joined: 14 Aug 2004 Posts: 9
|
Posted: Fri Aug 27, 2004 9:38 am Post subject: Gentoo design bug? |
|
|
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 |
|
|
etnoy Apprentice
Joined: 29 Aug 2003 Posts: 255 Location: Västerås, Sweden
|
Posted: Fri Aug 27, 2004 9:48 am Post subject: |
|
|
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 |
|
|
Cuardin l33t
Joined: 06 Feb 2003 Posts: 713 Location: vasastaden.stockholm.se
|
Posted: Fri Aug 27, 2004 9:51 am Post subject: |
|
|
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 |
|
|
Stéphane n00b
Joined: 14 Aug 2004 Posts: 9
|
Posted: Sat Aug 28, 2004 4:40 pm Post subject: |
|
|
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 |
|
|
etnoy Apprentice
Joined: 29 Aug 2003 Posts: 255 Location: Västerås, Sweden
|
Posted: Sat Aug 28, 2004 7:09 pm Post subject: |
|
|
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 |
|
|
think-x n00b
Joined: 30 Jun 2004 Posts: 52 Location: UCSB
|
Posted: Sat Aug 28, 2004 7:28 pm Post subject: |
|
|
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
[edit] I just checked and it looks like there are no binary cd's for PPC, im sorry [/edit] _________________ Screw you guys. I'm going home. |
|
Back to top |
|
|
etnoy Apprentice
Joined: 29 Aug 2003 Posts: 255 Location: Västerås, Sweden
|
Posted: Sat Aug 28, 2004 10:13 pm Post subject: |
|
|
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 |
|
|
Cuardin l33t
Joined: 06 Feb 2003 Posts: 713 Location: vasastaden.stockholm.se
|
Posted: Sun Aug 29, 2004 8:02 am Post subject: |
|
|
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 |
|
|
Stéphane n00b
Joined: 14 Aug 2004 Posts: 9
|
Posted: Sun Aug 29, 2004 11:23 am Post subject: |
|
|
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 |
|
|
Cuardin l33t
Joined: 06 Feb 2003 Posts: 713 Location: vasastaden.stockholm.se
|
Posted: Sun Aug 29, 2004 11:57 am Post subject: |
|
|
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 |
|
|
kallamej Administrator
Joined: 27 Jun 2003 Posts: 4981 Location: Gothenburg, Sweden
|
|
Back to top |
|
|
Roguelazer Veteran
Joined: 10 Feb 2003 Posts: 1233 Location: San Francisco, CA
|
Posted: Sun Aug 29, 2004 7:18 pm Post subject: |
|
|
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 |
|
|
Roguelazer Veteran
Joined: 10 Feb 2003 Posts: 1233 Location: San Francisco, CA
|
Posted: Sun Aug 29, 2004 7:26 pm Post subject: |
|
|
linky
Emergency Rescue Tarballs! _________________ Registered Linux User #263260 |
|
Back to top |
|
|
nephros Advocate
Joined: 07 Feb 2003 Posts: 2139 Location: Graz, Austria (Europe - no kangaroos.)
|
Posted: Sun Aug 29, 2004 7:32 pm Post subject: |
|
|
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 |
|
|
etnoy Apprentice
Joined: 29 Aug 2003 Posts: 255 Location: Västerås, Sweden
|
Posted: Sun Aug 29, 2004 9:13 pm Post subject: |
|
|
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 |
|
|
Cuardin l33t
Joined: 06 Feb 2003 Posts: 713 Location: vasastaden.stockholm.se
|
|
Back to top |
|
|
|