Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2005.0 and glibc / unmerged glibc xo( [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
zinion
Guru
Guru


Joined: 27 Oct 2004
Posts: 541
Location: Ruhgebietshausen

PostPosted: Wed Jan 26, 2005 9:49 am    Post subject: 2005.0 and glibc / unmerged glibc xo( [SOLVED] Reply with quote

Ok...I tried to switch to 2005.0 using the guide at http://www.gentoo.org/proj/en/base/amd64/2005.0-upgrade-amd64.xml

Using "easy, the scripted way"

When emerging glibc, it fails:

Code:

../sysdeps/unix/sysv/linux/sigpending.c:61: error: (Each undeclared identifier i
s reported only once
../sysdeps/unix/sysv/linux/sigpending.c:61: error: for each function it appears
in.)
make[3]: *** [/var/tmp/portage/glibc-2.3.4.20040808-r1/work/build/signal/sigpend
ing.o] Error 1
make[3]: *** Waiting for unfinished jobs....
../sysdeps/unix/sysv/linux/sigsuspend.c: In function `do_sigsuspend':
../sysdeps/unix/sysv/linux/sigsuspend.c:57: error: `__NR_sigsuspend' undeclared
(first use in this function)
../sysdeps/unix/sysv/linux/sigsuspend.c:57: error: (Each undeclared identifier i
s reported only once
../sysdeps/unix/sysv/linux/sigsuspend.c:57: error: for each function it appears
in.)
make[3]: *** [/var/tmp/portage/glibc-2.3.4.20040808-r1/work/build/signal/sigsusp
end.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20040808-r1/work/glibc-
2.3.3/signal'
make[2]: *** [signal/subdir_lib] Error 2
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20040808-r1/work/glibc-
2.3.3'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20040808-r1/work/build'

!!! ERROR: sys-libs/glibc-2.3.4.20040808-r1 failed.
!!! Function src_compile, Line 690, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

make: *** [step6] Fehler 1


Any ideas?
_________________
Es ist schön und warm
hier im Gentoo-Land


Last edited by zinion on Thu Jan 27, 2005 5:44 pm; edited 4 times in total
Back to top
View user's profile Send private message
zinion
Guru
Guru


Joined: 27 Oct 2004
Posts: 541
Location: Ruhgebietshausen

PostPosted: Wed Jan 26, 2005 12:23 pm    Post subject: Reply with quote

AAAHHHH I broke EVERYTHING..

Uhm..I thought of first unmerging glibc and then emerging it again...seems that wasn't a good idea at all...

Code:

Traceback (most recent call last):
  File "/usr/bin/emerge", line 2794, in ?
    if 1==unmerge(myaction, myfiles):
  File "/usr/bin/emerge", line 2168, in unmerge
    retval=portage.unmerge(mysplit[0],mysplit[1],portage.root,mysettings,unmerge_action not in ["clean","prune"])
  File "/usr/lib/portage/pym/portage.py", line 2834, in unmerge
    mylink.unmerge(trimworld=mytrimworld,cleanup=1)
  File "/usr/lib/portage/pym/portage.py", line 6273, in unmerge
    a=doebuild(myebuildpath,"postrm",self.myroot,self.settings,use_cache=0,tree="vartree")
  File "/usr/lib/portage/pym/portage.py", line 2587, in doebuild
    return spawn(EBUILD_SH_BINARY+" "+mydo,mysettings,debug=debug,free=1,logfile=logfile)
  File "/usr/lib/portage/pym/portage.py", line 1611, in spawn
    return portage_exec.spawn_bash(mystring,env=env,**keywords)
  File "/usr/lib/portage/pym/portage_exec.py", line 45, in spawn_bash
    return spawn(args,env=env,opt_name=opt_name,**keywords)
  File "/usr/lib/portage/pym/portage_exec.py", line 159, in spawn
    raise str(e)+":\n   "+myc+" "+string.join(myargs)
[Errno 2] No such file or directory:
   /bin/bash [glibc-2.3.4.20040808-r1] bash -c /usr/lib/portage/bin/ebuild.sh postrm
!!! FAILED postrm: 1


and now:

Code:

thomas-km61 profile-update # su
-bash: /bin/su: No such file or directory

thomas-km61 bin # ls
-bash: /bin/ls: No such file or directory


Is there a way to restore my system? :(

Ups and sorry for doubleposting, I'm a little...upset
_________________
Es ist schön und warm
hier im Gentoo-Land
Back to top
View user's profile Send private message
Sm1
Apprentice
Apprentice


Joined: 02 Dec 2003
Posts: 251
Location: Ames, IA

PostPosted: Wed Jan 26, 2005 3:34 pm    Post subject: Reply with quote

ow man you messed things up even more than I did when I tried to switch to 2005.0. I reverted back to 2004.3 within a day.

I would think you could try reinstalling bin-utils, but if glibc is borked that may not work.

Are the files actually in /bin? (su, ls, etc)

Can you launch them with
Code:

cd /bin
./ls


If that is the case, try to revert back to the old 2004.3 profile and things should work fine, i'd think
Back to top
View user's profile Send private message
zinion
Guru
Guru


Joined: 27 Oct 2004
Posts: 541
Location: Ruhgebietshausen

PostPosted: Wed Jan 26, 2005 6:21 pm    Post subject: Reply with quote

Hm I didn't try that but I tried

Code:
/usr/bin/ls


and it didn't work.

Can't I boot from the LiveCD and rescue it from there somehow?

I'm really scared - it took me a long time to set up my system to get it working exactly like I want. And I didn't make a backup yet...

Anyway before I trie anything on my own, I'll better wait if anybody has a solutions...before I make thing worse than thy are :(

Would be better if I had read this "dumbest mistakes" Thread before :evil:
_________________
Es ist schön und warm
hier im Gentoo-Land
Back to top
View user's profile Send private message
cptmorgan
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jan 2004
Posts: 129
Location: California

PostPosted: Wed Jan 26, 2005 9:18 pm    Post subject: Reply with quote

Im pretty sure your problem is a bug.

https://bugs.gentoo.org/show_bug.cgi?id=78652

I had the same issue and am waiting for the bug to get fixed.... looks like you got some time to fix your system before they fix the bug!! :P
Back to top
View user's profile Send private message
zinion
Guru
Guru


Joined: 27 Oct 2004
Posts: 541
Location: Ruhgebietshausen

PostPosted: Wed Jan 26, 2005 9:58 pm    Post subject: Reply with quote

Oh yeah, but I dunno how to fix it. It seems that I've done something really stupid :/
_________________
Es ist schön und warm
hier im Gentoo-Land
Back to top
View user's profile Send private message
cptmorgan
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jan 2004
Posts: 129
Location: California

PostPosted: Wed Jan 26, 2005 11:38 pm    Post subject: Reply with quote

Well first off you removed your library files for your compiler so nothing will compile.... you need to emerge glibc again so you need to boot off the livecd and emerge glibc. you should just boot off the livecd chroot and switch back to 2004.3 and it will recompile glibc in the process

I did it with:
Quote:

rm /etc/make.profile
ln -s /usr/portage/profiles/default-linux/amd64/2004.3 /etc/make.profile
env-update
emerge binutils glib gcc portage gcc-config
emerge -C linux-headers
emerge linux26-headers glibc baselayout
env-update
rm -rf /lib32 /usr/lib32 /usr/X11R6/lib32
emerge emul-linux-x86-baselibs emul-linux-x86-compat emul-linux-x86-glibc emul-linux-x86-gtklibs emul-linux-x86-qtlibs emul-linux-x86-sdl emul-linux-x86-soundlibs emul-linux-x86-xlibs
//if you use the nvidia drivers
emerge emul-linux-x86-nvidia
env-update


It was posted in https://forums.gentoo.org/viewtopic.php?t=281512 by nukem996. There is more info in there too.
Back to top
View user's profile Send private message
zinion
Guru
Guru


Joined: 27 Oct 2004
Posts: 541
Location: Ruhgebietshausen

PostPosted: Thu Jan 27, 2005 9:15 am    Post subject: Reply with quote

Ah thank you. There is a second way:

avenj, a dev has some gives us some binaries for recovering destroyed systems:

http://dev.gentoo.org/~avenj/bins/

Anyway, there were no amd64 binaries. After emailing him, he uploaded them (Thanks for this).

I can't chroot from the LiveCD because he won't find /bin/bash :D Tried everything - no way.

When I'm at home this evening I hope this binaries will help me out :)

YIPPIEEE it worked using the binaries ..pooooh

AGAIN A BIG THANK YOU TO avenj!
_________________
Es ist schön und warm
hier im Gentoo-Land
Back to top
View user's profile Send private message
cptmorgan
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jan 2004
Posts: 129
Location: California

PostPosted: Fri Jan 28, 2005 2:42 am    Post subject: Reply with quote

ahhh.... deplclean once removed attr and acl and I had to use his bins. Big ups to avenj :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 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