| View previous topic :: View next topic |
| Author |
Message |
cobralgato Apprentice

Joined: 14 Sep 2005 Posts: 228
|
Posted: Thu Aug 02, 2007 6:21 pm Post subject: emerge -C glibc [closed] |
|
|
Hi
I removed glibc .
Now my system is dead .
I kind of knew it could happen but thought i could emerge it again afterwards, but it didint work out this way.
i have another gentoo of same arch with same settings. can i copy glibc over from it?
What should i do ?
thanks _________________ x86_64
Last edited by cobralgato on Wed Aug 08, 2007 6:58 pm; edited 1 time in total |
|
| Back to top |
|
 |
didymos Advocate


Joined: 10 Oct 2005 Posts: 4798 Location: California
|
Posted: Thu Aug 02, 2007 6:44 pm Post subject: |
|
|
Sucks to be you. _________________ Thomas S. Howard |
|
| Back to top |
|
 |
cobralgato Apprentice

Joined: 14 Sep 2005 Posts: 228
|
Posted: Thu Aug 02, 2007 7:09 pm Post subject: |
|
|
I have more linuxes running so i didnt bother too much, plus i like challenges.
It will work again  _________________ x86_64 |
|
| Back to top |
|
 |
nixnut Administrator


Joined: 09 Apr 2004 Posts: 10914 Location: the dutch mountains
|
Posted: Thu Aug 02, 2007 7:30 pm Post subject: |
|
|
run quickpkg glibc on your other gentoo system and use the resulting tarball to put glibc on your hosed system. Boot a livecd, mount your hosed root filesystem and extract the glibc binpkg you created with quickpkg onto it. _________________ 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
Last edited by nixnut on Thu Aug 02, 2007 7:58 pm; edited 1 time in total |
|
| Back to top |
|
 |
Earthwings Administrator


Joined: 14 Apr 2003 Posts: 7723 Location: Karlsruhe, Germany
|
Posted: Thu Aug 02, 2007 7:57 pm Post subject: |
|
|
| didymos wrote: | | Sucks to be you. | This doesn't contribute anything, on the contrary even could be interpreted as a personal attack. Please ignore threads like this or change your tone. Thanks. _________________ KDE 4.8 - Get It While It's Hot! |
|
| Back to top |
|
 |
didymos Advocate


Joined: 10 Oct 2005 Posts: 4798 Location: California
|
Posted: Thu Aug 02, 2007 8:40 pm Post subject: |
|
|
| Earthwings wrote: | | didymos wrote: | | Sucks to be you. | This doesn't contribute anything, on the contrary even could be interpreted as a personal attack. Please ignore threads like this or change your tone. Thanks. |
Well, it could also be interpreted as wry commiseration. But really, I was totally convinced this was a troll because I didn't think anyone would actually do that. And an attack? Passive-aggressive maybe. I was more going for dismissive, though.
[edit] Small clarification: I didn't think anyone would actually do that on purpose, and then admit to doing it on purpose. _________________ Thomas S. Howard |
|
| Back to top |
|
 |
cobralgato Apprentice

Joined: 14 Sep 2005 Posts: 228
|
Posted: Thu Aug 02, 2007 8:55 pm Post subject: |
|
|
hi there.
It boots
But it doesn't let me start any services... net.eth ... xdm ... nothing in /etc/init.d/
for example
/etc/init.d/net.lo
gives /sbin/runscript.sh line 76: /lib/rcscripts/sh/rc-services.sh no such file or directory... same error for rc-daemon.sh, net_service ...
I need to rebuild some packages i guess.
Now i want to emerge glibc-2.5-r4 (the one i just copied over) but portage won't let me because the last one i had installed was glibc-2.6 .. so how do i do this?
thanks _________________ x86_64 |
|
| Back to top |
|
 |
didymos Advocate


Joined: 10 Oct 2005 Posts: 4798 Location: California
|
Posted: Thu Aug 02, 2007 9:24 pm Post subject: |
|
|
Well, since you don't actually have glibc-2.6 anymore, it should be safe to remove the /var/db/pkg/sys-libs/glibc-2.6 directory, then emerge the one you want after that. Not completely sure about that though.
[edit] Tested it with 'ebuild glibc-<blah> unpack'. Remove the directory and it will proceed. Or rename it, which is what I did. _________________ Thomas S. Howard |
|
| Back to top |
|
 |
Dirk.R.Gently Guru


Joined: 29 Jan 2007 Posts: 546 Location: Titan
|
Posted: Thu Aug 02, 2007 10:04 pm Post subject: |
|
|
definitely seem some t***ls _________________ • Helpful Linux Tidbits |
|
| Back to top |
|
 |
cobralgato Apprentice

Joined: 14 Sep 2005 Posts: 228
|
Posted: Fri Aug 03, 2007 12:43 am Post subject: |
|
|
Hi there
Can't emerge glibc...
| Code: | checking size of long double... configure: error: cannot compute sizeof (long double), 77
See `config.log' for more details.
!!! ERROR: sys-libs/glibc-2.5-r4 failed.
Call stack:
ebuild.sh, line 1632: Called dyn_compile
ebuild.sh, line 983: Called qa_call 'src_compile'
ebuild.sh, line 44: Called src_compile
glibc-2.5-r4.ebuild, line 1160: Called src_compile
glibc-2.5-r4.ebuild, line 1171: Called toolchain-glibc_src_compile
glibc-2.5-r4.ebuild, line 270: Called glibc_do_configure 'nptl'
glibc-2.5-r4.ebuild, line 944: Called die |
gentoo is rejecting the newly donated glibc organ...
any ideas?
thanks _________________ x86_64 |
|
| Back to top |
|
 |
LoSeR_5150 Guru


Joined: 20 Mar 2005 Posts: 455 Location: San Francisco, CA
|
Posted: Fri Aug 03, 2007 6:11 am Post subject: |
|
|
I'd imagine downgrading your glibc from 2.6 to 2.5-r4 is causing the problems. I would suggest searching for a quickpkg'd glibc 2.6. Whats your emerge --info _________________ Opteron 1356@2.4Ghz
6GB DDR2 800Mhz
128MB Quadro NVS 210S
640GB Western Digital HD
*Gentoo-x86_64-2.6.30-r1
Opteron175@2.2GHz
2GB DDR 400MHz
256MB Quadro 1400 Go
(2) 80GB Segate HDs: RAID0
*Gentoo-x86_64-2.6.30-r1 |
|
| Back to top |
|
 |
jonnevers Veteran


Joined: 02 Jan 2003 Posts: 1584 Location: Gentoo64 land
|
Posted: Fri Aug 03, 2007 1:31 pm Post subject: Re: emerge -C glibc |
|
|
| cobralgato wrote: | Hi
I removed glibc .
Now my system is dead .
I kind of knew it could happen but thought i could emerge it again afterwards, but it didint work out this way.
i have another gentoo of same arch with same settings. can i copy glibc over from it?
What should i do ?
thanks |
you definitely knew ahead of time:
| Code: | user host ~ $ emerge -Cav glibc
>>> These are the packages that would be unmerged:
!!! 'sys-libs/glibc' is part of your system profile.
!!! Unmerging it may be damaging to your system.
sys-libs/glibc
selected: 2.5-r4
protected: none
omitted: none
>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed. |
i'm just picking,
but seriously, I agree with LoSeR_5150 at downgrading the glibc is most likely your problem now, especially if you emerge -e system/world with glibc-2.6 before trying to remove it.
at the point of removing glibc or gcc, i'd just dump down onto a livecd, mount your root directory, chroot into it, and then emerge glibc... you will most likely need to stay at glibc-2.6.
I felt very fortunate the day glibc-2.6 hit ~ARCH and I avoided it. |
|
| Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 27168 Location: 56N 3W
|
Posted: Fri Aug 03, 2007 2:39 pm Post subject: |
|
|
Neddyseagoons' Rough Guide to Restoring Removed Key System Packages
This guide is written around glibc. The method works for gcc and any other 'showstopper' packages
glibc downgrades are not supported. You need a glibc-2.6 tarball from someone you trust if you cannot build one.
Given 10G of free space you can build your own. This is essentially a gentoo stage 3 install into a file.
edit - as /usr/portage is borrowed from the host, you can probably use much less
Boot a liveCD and mount a partition with >10G free space at /mnt/gentoo
Make a 10G empty file | Code: | | dd if=/dev/zero of=/mnt/gentoo/recovery.file count=2500000 bs=4096 |
Make a filesystem in the file | Code: | | mke2fs /mnt/gentoo/recovery.file | a journal is wasted.
Make a new mount point and mount your new filesystem there
| Code: | | mount -o loop -t ext2 /mnt/gentoo/recovery.file /mnt/fixme |
untar a stage 3 tarball into /mnt/fixme Do *not* trash your system by untaring to /mnt/gentoo
then mount the fake filesystems
| Code: | mount -t proc none /mnt/fixme/proc
mount -o bind /dev /mnt/fixme/dev |
Do not fetch a portage snapshot. Instead, bind mount your real /usr/portage to /mnt/fixme/usr/portage
| Code: | | mount -o bind /mnt/gentoo/usr/portage /mnt/fixme/usr/portage | Continue into the chroot
| Code: | | chroot /mnt/fixme /bin/bash | .... just like the install
| Code: | env-update
source /etc/profile
export PS1="(Do not remove glibc) $PS1" |
Now you have a working chroot in a file, continue with
| Code: | emerge glibc
quickpkg glibc | As you used your own distfiles and portage tree, everything should be available and the glibc binary tarball will be deposted in your own /usr/portage/packages/All, outside the chroot.
Untar this glibc to /mnt/gentoo and reboot to test.
You can remove recovery.file when its done what you needed.
--- edit with thanks to Arfrever. emerge quickpkg removed as its not required
Two step process left in as its easier to explain _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Last edited by NeddySeagoon on Fri Aug 03, 2007 4:44 pm; edited 2 times in total |
|
| Back to top |
|
 |
Arfrever Bodhisattva


Joined: 29 Apr 2006 Posts: 2462 Location: Polska / Lenkija
|
Posted: Fri Aug 03, 2007 4:02 pm Post subject: |
|
|
| NeddySeagoon wrote: | | Code: | emerge glibc
emerge gentoolkit
quickpkg glibc |
|
Gentoolkit isn't required. `quickpkg` belongs to Portage, but sufficient is:
Perduodu linkėjimus
Arfrever |
|
| Back to top |
|
 |
cobralgato Apprentice

Joined: 14 Sep 2005 Posts: 228
|
Posted: Fri Aug 03, 2007 6:47 pm Post subject: |
|
|
hi
ok somebody give me a glibc-2.6 tarball now !!! for x86_64 please ! thanks please and thanks again  _________________ x86_64 |
|
| Back to top |
|
 |
Ken69267 Developer


Joined: 08 Apr 2007 Posts: 111 Location: #gentoo-pr0n
|
Posted: Fri Aug 03, 2007 9:18 pm Post subject: |
|
|
| cobralgato wrote: | hi
ok somebody give me a glibc-2.6 tarball now !!! for x86_64 please ! thanks please and thanks again  |
Hmm, pretty sure one would need to know your CFLAGS in order for that... I'd quickpkg mine but it's built with GCC 4.2 -march=native for a core2. |
|
| Back to top |
|
 |
cobralgato Apprentice

Joined: 14 Sep 2005 Posts: 228
|
Posted: Fri Aug 03, 2007 10:47 pm Post subject: |
|
|
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
MAKEOPTS="-j3"
CXXFLAGS="${CFLAGS}"
 _________________ x86_64 |
|
| Back to top |
|
 |
didymos Advocate


Joined: 10 Oct 2005 Posts: 4798 Location: California
|
Posted: Fri Aug 03, 2007 11:35 pm Post subject: |
|
|
Maybe there ought to be some sort of official source for core package tarballs, updated regularly as glibc,gcc,binutils, etc. get updated. Always compiled for the most generic -march for that ARCH. Or even some unofficial spot where people can upload quickpkg's along with specs on how they were built. The latter would obviously require some sort of vetting or a big "At your own damn risk, pal" warning all over the place.
Preferably both. _________________ Thomas S. Howard |
|
| Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 27168 Location: 56N 3W
|
Posted: Sat Aug 04, 2007 10:36 am Post subject: |
|
|
didymos,
There is tinderbox but I have no idea how often its updated, what it contains or even the USE flags the packages are built with. As its not widely publicised, I guess its still experimental. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
| Back to top |
|
 |
cobralgato Apprentice

Joined: 14 Sep 2005 Posts: 228
|
Posted: Sat Aug 04, 2007 8:22 pm Post subject: |
|
|
Hi there!
Got glibc-2.6 from the chroot as suggested by NeddySeagoon.
Extracted it and tried to emerge glibc but got the same error | Code: |
checking size of long double... configure: error: cannot compute sizeof (long double), 77
See `config.log' for more details.
!!! ERROR: sys-libs/glibc-2.6 failed.
Call stack:
ebuild.sh, line 1632: Called dyn_compile
ebuild.sh, line 983: Called qa_call 'src_compile'
ebuild.sh, line 44: Called src_compile
glibc-2.6.ebuild, line 1178: Called src_compile
glibc-2.6.ebuild, line 1189: Called toolchain-glibc_src_compile
glibc-2.6.ebuild, line 273: Called glibc_do_configure 'nptl'
glibc-2.6.ebuild, line 949: Called die
!!! failed to configure glibc
|
Which program is supposed to compute sizeof long double?
Thanks _________________ x86_64 |
|
| Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 27168 Location: 56N 3W
|
Posted: Sat Aug 04, 2007 8:28 pm Post subject: |
|
|
cobralgato,
The stage tarball does not contain glibc-2.6
You need to emerge glibc inside the chroot in a file before you quickpkg it.
I think glibc supplies the sizeof function.
Did that error come from a build within the chroot ? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
| Back to top |
|
 |
cobralgato Apprentice

Joined: 14 Sep 2005 Posts: 228
|
Posted: Sat Aug 04, 2007 8:42 pm Post subject: |
|
|
Hi there
I know the stage tarball does not contain glibc-2.6...i did chroot and emerged glibc-2.6 inside the chroot and quickpkg glibc-2.6 and then copied it over to the root of the comatose gentoo system and then extracted it ... and then using the comatose system i tried to emerge glibc-2.6 and got that error.
Thanks _________________ x86_64 |
|
| Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 27168 Location: 56N 3W
|
Posted: Sat Aug 04, 2007 10:30 pm Post subject: |
|
|
cobralgato,
quickpkg will gave packaged all the glibcs in the chroot.
Are you sure you got the right one ? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
| Back to top |
|
 |
cobralgato Apprentice

Joined: 14 Sep 2005 Posts: 228
|
Posted: Sun Aug 05, 2007 12:52 am Post subject: |
|
|
Hi
yes NeddySeagoon
| Quote: | | ..i did chroot and emerged glibc-2.6 inside the chroot and quickpkg glibc-2.6 and then copied it over to the root of the comatose gentoo system and then extracted it ... |
_________________ x86_64 |
|
| Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 27168 Location: 56N 3W
|
Posted: Sun Aug 05, 2007 12:51 pm Post subject: |
|
|
cobralgato,
Can you post the config.log please ?
It will be in /var/tmp/portage .... somewhere _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
| Back to top |
|
 |
|