View previous topic :: View next topic |
Author |
Message |
bison n00b
Joined: 07 Sep 2005 Posts: 16
|
Posted: Fri Sep 09, 2005 11:37 am Post subject: glibc unmerged during emerge of wine/vmware/gcc |
|
|
I have managed to get my system into a state where emerging wine/vmware/gcc-3.4.4 all automaticaly unmerge glibc and break the system.
I can easily repair this from a backup (yeah for backups ) , but it is reliably reproducable. The entry in emerge.log is Unmerging sys-libs/glibc-2.3.4.20040808
I'm a bit lost on how to fix this, i.e. how to emerge wine or vmware without crashing the whole system.
Any and all suggestions most welcome. _________________ Beware the muppet! |
|
Back to top |
|
|
SinoTech Advocate
Joined: 20 Mar 2004 Posts: 2579 Location: Neunkirchen / Saarland / Germany
|
Posted: Fri Sep 09, 2005 11:55 am Post subject: |
|
|
Hmm .. that's really interesting. A update to gcc or something similiar mustn't unmgere your glibc. Perhaps you've done a "world" update which also updates glibc to 2.3.5-r1 and therefore unmerged the old version ? But even if it do that, it shouldn't break your system.
How have you done the update ?
Mfg
Sino
Last edited by SinoTech on Fri Sep 09, 2005 11:57 am; edited 1 time in total |
|
Back to top |
|
|
ecatmur Advocate
Joined: 20 Oct 2003 Posts: 3595 Location: Edinburgh
|
|
Back to top |
|
|
bison n00b
Joined: 07 Sep 2005 Posts: 16
|
Posted: Sat Sep 10, 2005 7:09 am Post subject: |
|
|
Sorry for delay, I broke the boot loader and had to fix that first.
The output from
is
Performing Global Updates: /usr/portage/profiles/updates/4Q-2002
(Could take a couple of minutes if you have a lot of binary packages.)
.='update pass' *='binary update' @='/var/db move'
s='/var/db SLOT move' S='binary SLOT move' p='update /etc/portage/package.*'
..............................................................................
Performing Global Updates: /usr/portage/profiles/updates/2Q-2003
(Could take a couple of minutes if you have a lot of binary packages.)
.='update pass' *='binary update' @='/var/db move'
s='/var/db SLOT move' S='binary SLOT move' p='update /etc/portage/package.*'
...............................................................................
Performing Global Updates: /usr/portage/profiles/updates/3Q-2004
(Could take a couple of minutes if you have a lot of binary packages.)
.='update pass' *='binary update' @='/var/db move'
s='/var/db SLOT move' S='binary SLOT move' p='update /etc/portage/package.*'
..................................................................................................................................................................................................
Performing Global Updates: /usr/portage/profiles/updates/1Q-2005
(Could take a couple of minutes if you have a lot of binary packages.)
.='update pass' *='binary update' @='/var/db move'
s='/var/db SLOT move' S='binary SLOT move' p='update /etc/portage/package.*'
..............................................................................................................................................................................................................................................................
Performing Global Updates: /usr/portage/profiles/updates/2Q-2005
(Could take a couple of minutes if you have a lot of binary packages.)
.='update pass' *='binary update' @='/var/db move'
s='/var/db SLOT move' S='binary SLOT move' p='update /etc/portage/package.*'
...........................................................................................................
Performing Global Updates: /usr/portage/profiles/updates/3Q-2005
(Could take a couple of minutes if you have a lot of binary packages.)
.='update pass' *='binary update' @='/var/db move'
s='/var/db SLOT move' S='binary SLOT move' p='update /etc/portage/package.*'
.................................................s....
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild N ] app-emulation/wine-20050111-r2 +X +alsa +arts +cups -debug -doc +gif -glut -jack +jpeg -lcms +nas +ncurses +opengl +oss 11,208 kB
Total size of downloads: 11,208 kB
Quote: |
Perhaps you've done a "world" update
|
No, it was definetly during an emerge of the mentioned apps.
If it helps at all, during the initial install I was closely following this thread, https://forums.gentoo.org/viewtopic-t-306856-highlight-inspiron+6000.html
The only deviation I made from the advice in the initial posts was not to move to gcc-3.4.3. I emerged it but forgot to run gcc-config. I still have the associated lines in my packages.keywords file (could this be related?)
I also noticed while repairing grub that it unmerges glibc for me.
I was trying to install these apps with the following commands;
Code: |
emerge wine
emerge gcc
emerge vmware
|
_________________ Beware the muppet! |
|
Back to top |
|
|
SinoTech Advocate
Joined: 20 Mar 2004 Posts: 2579 Location: Neunkirchen / Saarland / Germany
|
Posted: Sat Sep 10, 2005 9:22 am Post subject: |
|
|
bison wrote: |
[...]
If it helps at all, during the initial install I was closely following this thread, https://forums.gentoo.org/viewtopic-t-306856-highlight-inspiron+6000.html
The only deviation I made from the advice in the initial posts was not to move to gcc-3.4.3. I emerged it but forgot to run gcc-config. I still have the associated lines in my packages.keywords file (could this be related?)
[...]
|
No, that isn't related. But ...
1. I wouldn't unmask all versions of a package rather than a specific version. Using the following entry in your package.keywords will give you always the latest version of gcc
while this entry only unmask a specific version
Code: |
=sys-devel/gcc-3.4.4-r1 ~x86
|
It's always better to decide by yourself if you want to upgrade to a masked package and therefore you should use the second entry.
2. If you have forgot to switch to gcc-3.4.X and have "pentium-m" in your CFLAGS, your emerges should break with an error like this
Code: |
checking for gcc ... Your C compiler cannot create executables
|
That's normal for not supported CFLAGS (And pentium-m isn't supported for gcc-3.3.X) but it won't break your system.
bison wrote: |
[...]
I also noticed while repairing grub that it unmerges glibc for me.
[...]
|
What do you mean with "repairing grub" ? Do you mean you've re-emerged it ?
bison wrote: |
[...]
I was trying to install these apps with the following commands;
Code: |
emerge wine
emerge gcc
emerge vmware
|
|
Now what happens ? It emerges "wine" and after that's done it starts to unmerge "glibc" ? Can you post the used ebuild please ?
Mfg
Sino |
|
Back to top |
|
|
bison n00b
Joined: 07 Sep 2005 Posts: 16
|
Posted: Sat Sep 10, 2005 10:25 am Post subject: |
|
|
Quote: | It's always better to decide by yourself if you want to upgrade to a masked package and therefore you should use the second entry.
|
Good point. I'm very much new to Gentoo so was just following the doco, and haven't been back to fix it up.
Quote: | If you have forgot to switch to gcc-3.4.X and have "pentium-m" in your CFLAGS, your emerges should break with an error like this
Code:
checking for gcc ... Your C compiler cannot create executables
|
The CFLAGS are still set to Pentium3 and I haven't seen this error, so at least the flags and compiler were consistant.
Quote: | What do you mean with "repairing grub" ? Do you mean you've re-emerged it ? |
Correct. I needed to re-emerge it, recompile the kernel and redo the grub configuration.
Quote: | Now what happens ? It emerges "wine" and after that's done it starts to unmerge "glibc" ? |
Correct. It downloads what is required fine and starts compiling. At some point it decides to unmerge glibc and falls over in the process. After this I get the "/bin/bash: no such file or directory" error that is well documented elsewhere as being caused by unmerging glibc.
I'll try and get the pertinent points of the emerge in a minute. _________________ Beware the muppet! |
|
Back to top |
|
|
SinoTech Advocate
Joined: 20 Mar 2004 Posts: 2579 Location: Neunkirchen / Saarland / Germany
|
Posted: Sat Sep 10, 2005 10:50 am Post subject: |
|
|
Well, I am not sure, but I think of a corrupt ebuild file. I think there's somewhere a statement in it which causes emerge to unmerge glibc. I don't know if it is really possible to place such a statement in an ebuild but I can't think of another reason. Anyway, doing an "emerge --sync" should give you a correct portage tree back (For the case there's somewhere a hacked rsync server you hit at the last sync, there're good chances you hit a valid one at this time ).
But before doing a new sync, can you tar your portage tree and send it to me ? I would be really interested in that.
Code: |
$ cd /usr/
$ tar -czf ~/portage_tree.tar.gz portage --exclude portage/distfiles
|
I write you a PM on where to send it.
Mfg
Sino |
|
Back to top |
|
|
bison n00b
Joined: 07 Sep 2005 Posts: 16
|
Posted: Sun Sep 11, 2005 7:01 am Post subject: |
|
|
I've found this old thread https://forums.gentoo.org/viewtopic-t-39502-postdays-0-postorder-asc-start-0.html
which seems to be related. I'm not sure if the people in this thread were actualy having their binaries removed (sounds painful ) or if it was a similar glibc problem to what I'm experiancing. <gulp> I'm going to have another go with AUTOCLEAN="no"</gulp> _________________ Beware the muppet! |
|
Back to top |
|
|
bison n00b
Joined: 07 Sep 2005 Posts: 16
|
Posted: Sun Sep 11, 2005 7:32 am Post subject: |
|
|
Setting AUTOCLEAN to no seams to have stopped the problem for now (emerging wine worked )
There seems to be a bit of history of this happening (I just couldn't find the threads initialy). _________________ Beware the muppet! |
|
Back to top |
|
|
SinoTech Advocate
Joined: 20 Mar 2004 Posts: 2579 Location: Neunkirchen / Saarland / Germany
|
Posted: Sun Sep 11, 2005 9:26 am Post subject: |
|
|
Interesting. Could you post the output of "emerge --info" please.
Mfg
Sino |
|
Back to top |
|
|
bison n00b
Joined: 07 Sep 2005 Posts: 16
|
Posted: Mon Sep 12, 2005 8:11 am Post subject: |
|
|
emerge --info
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.4.20040808-r1,glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r8 i686)
=================================================================
System uname: 2.6.11-gentoo-r8 i686 Intel(R) Pentium(R) M processor 1.50GHz
Gentoo Base System version 1.6.11
Python: dev-lang/python-2.3.4-r1,dev-lang/python-2.3.5 [2.3.4 (#1, Mar 11 2005, 15:25:47)]
dev-lang/python: 2.3.4-r1, 2.3.5
sys-apps/sandbox: 1.2.11
sys-devel/autoconf: 2.59-r6, 2.13
sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4, 1.9.5
sys-devel/binutils: 2.15.92.0.2-r10, 2.15.92.0.2-r1
sys-devel/libtool: 1.5.10-r4, 1.5.18-r1
virtual/os-headers: 2.6.8.1-r2, 2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="no"
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://mirror.isp.net.au/pub/gentoo/ ftp://mirror.pacific.net.au/linux/Gentoo http://public.planetmirror.com/pub/gentoo http://distfiles.gentoo.org http://gentoo.osuosl.org"
LANG="en_AU.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="x86 X acl alsa apm arts audiofile avi bash-completion berkdb bitmap-fonts bluetooth bzlib calendar cdr crypt cups curl dga divx4linux dvd dvdr dvdread emboss encode esd evo examples exif fam flac foomaticdb fortran ftp gdbm gif gphoto2 gpm gstreamer gtk gtk2 icq ieee1394 imagemagick imlib ipv6 java jpeg jpg leim libg++ libwww mad mikmod motif mozilla mp3 mpeg nas ncurses nls offensive ogg oggvorbis opengl oss pam pcre pdflib perl pfdlib png python quicktime readline scanner sdl spell ssl svga tcpd tiff truetype truetype-fonts type1-fonts usb vorbis wifi xine xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset: ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
The only thing in this that I thought looked a bit dodgy was the "elibc_glibc" use flag. I couldn't find any info on this, but as I didn't add it I wasn't too keen to remove it. Bear in mind that this listing is after I added AUTOCLEAN="no" to make.conf. Prior to that it yas set to the default (yes). _________________ Beware the muppet! |
|
Back to top |
|
|
SinoTech Advocate
Joined: 20 Mar 2004 Posts: 2579 Location: Neunkirchen / Saarland / Germany
|
Posted: Mon Sep 12, 2005 10:38 am Post subject: |
|
|
bison wrote: |
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.4.20040808-r1,glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r8 i686)
|
Ok, first I would upgrade portage to the newest non-masked version (2.0.51.22-r2). Perhaps that will solve your problem.
bison wrote: |
dev-lang/python: 2.3.4-r1, 2.3.5
|
I wonder why you've got two versions of python. Python is non slotted and therefore if I try to install "2.3.4-r1", emerge downgrades my existing one.
Perhaps the old version makes problems and you should unmerge it first !?
Code: |
$ emerge -C "=dev-lang/python-2.3.4-r1"
|
The rest looks similiar to my settings. Try the both steps I mentioned above and then set "AUTOCLEAN" to yes again and try out. Emerge any simple package and look if emerge still wants to unmerge your glibc. If so, you can easily stop emerge from doing that by pressing "<STRG> + c".
Mfg
Sino |
|
Back to top |
|
|
kallamej Administrator
Joined: 27 Jun 2003 Posts: 4975 Location: Gothenburg, Sweden
|
Posted: Mon Sep 12, 2005 4:40 pm Post subject: |
|
|
You seem to have two versions of glibc installed, you only need one as they're in the same SLOT. Unmerging the older version shouldn't create havoc. Is it so that the autoclean of the old glibc fails? In that case, please see the FAQ GF19 for how to proceed.
Seeing you have old portage and glibc versions, when was the last time you ran emerge sync? _________________ Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.libera.chat |
|
Back to top |
|
|
bison n00b
Joined: 07 Sep 2005 Posts: 16
|
Posted: Tue Sep 13, 2005 12:43 am Post subject: |
|
|
Thanks, I'll try these suggestions tonight after work.
Quote: | when was the last time you ran emerge sync |
Quite some time ago. I am with a crap ISP so I have been delaying till I had that fixed. _________________ Beware the muppet! |
|
Back to top |
|
|
bison n00b
Joined: 07 Sep 2005 Posts: 16
|
Posted: Tue Sep 13, 2005 4:31 am Post subject: |
|
|
I figured I'd tidy up my duplicate python/glibc versions before doing the sync. Good in theory, but not so great in practice.
Code: | $ emerge -C "=dev-lang/python-2.3.4-r1" -p |
informed me that dev-lang/python-2.3.4-r1 was slated for removal and dev-lang/python-2.3.5 was protected (I forget the exact wording).
When I kicked it off it went ahead and removed dev-lang/python-2.3, that is both 2.3.4-r1 AND 2.3.5. I was a little slow with <ctrl> C, hence No python, no emerge. At least it didn't destroy my whole system.
This was with AUTOCLEAN still set to no.
Could there be a coruption in my portage tree somewhere that is causing emerge to loose the plot whenever it tries to unmerge something?? _________________ Beware the muppet! |
|
Back to top |
|
|
kallamej Administrator
Joined: 27 Jun 2003 Posts: 4975 Location: Gothenburg, Sweden
|
Posted: Tue Sep 13, 2005 5:22 am Post subject: |
|
|
A corrupt tree would probably cause problems earlier. I'd try updating portage first. If http downloads are feasible you can use emerge-webrsync to fetch a snapshot of the portage tree. It should be at most 24 hours old. _________________ Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.libera.chat |
|
Back to top |
|
|
bison n00b
Joined: 07 Sep 2005 Posts: 16
|
Posted: Wed Sep 14, 2005 7:57 am Post subject: |
|
|
Still no joy.
Even after emerging portage to update it, tying to unmerge python-2.3.4 takes out python-2.3.5 as well.
Both times I've tried unmerging python-2.3.4 I've seen the following output
...
* Purging /usr/lib/python2.3/symtable.py[co]
* Purging /usr/lib/python2.3/TERMIOS.py[co]
* Purging /usr/lib/python2.3/hmac.py[co]
* Purging /usr/lib/python2.3/tarfile.py[co]
* Purging /usr/lib/python2.3/cmd.py[co]
>>> Regenerating /etc/ld.so.cache...
Does this mean it isn't distinguishing between the two versions of python? Would that be related to python being non slotted? _________________ Beware the muppet! |
|
Back to top |
|
|
kallamej Administrator
Joined: 27 Jun 2003 Posts: 4975 Location: Gothenburg, Sweden
|
Posted: Wed Sep 14, 2005 9:53 am Post subject: |
|
|
Some purging is to be expected, but not those... I'd file a bug. _________________ Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.libera.chat |
|
Back to top |
|
|
bison n00b
Joined: 07 Sep 2005 Posts: 16
|
Posted: Wed Sep 14, 2005 10:58 am Post subject: |
|
|
I have requested that bug 94132 be reopened. I don't know if that is the whole problem relating to this thread, but I think it's part of it. _________________ Beware the muppet! |
|
Back to top |
|
|
kallamej Administrator
Joined: 27 Jun 2003 Posts: 4975 Location: Gothenburg, Sweden
|
Posted: Wed Sep 14, 2005 6:34 pm Post subject: |
|
|
Hmm, I don't think that's it. That bug is about the warning only as far as I can tell. My understanding was that portage unmerges both your versions even if it says it will only unmerge one of them which is a different matter. _________________ Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.libera.chat |
|
Back to top |
|
|
bison n00b
Joined: 07 Sep 2005 Posts: 16
|
Posted: Mon Sep 19, 2005 12:11 pm Post subject: |
|
|
Appologies for slow response.
Quote: | That bug is about the warning only as far as I can tell |
That is correct. I'm sure that some of the other bugs are related, but I'll file a new one that captures the removal of both versions of python after I have a re-synced. _________________ Beware the muppet! |
|
Back to top |
|
|
bison n00b
Joined: 07 Sep 2005 Posts: 16
|
Posted: Mon Sep 26, 2005 7:30 am Post subject: |
|
|
bug 107241 finally created. _________________ Beware the muppet! |
|
Back to top |
|
|
|