Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
can not compile anything!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
MrIch
Apprentice
Apprentice


Joined: 25 May 2002
Posts: 204

PostPosted: Fri Dec 20, 2002 7:15 pm    Post subject: can not compile anything! Reply with quote

Hello!

I use gento 1.4rc1...

But now, every package I want to emerge fails with this error:

>>> Merging sys-apps/portage-2.0.46-r2 to /
Traceback (most recent call last):
File "/usr/bin/emerge", line 1709, in ?
mydepgraph.merge(mydepgraph.altlist())
File "/usr/bin/emerge", line 1079, in merge
retval=portage.doebuild(y,"merge",myroot,edebug)
File "/usr/lib/python2.2/site-packages/portage.py", line 1277, in doebuild
return merge(settings["CATEGORY"],settings["PF"],settings["D"],settings["BUILDDIR"]+"/build-info",myroot,myebuild=settings["EBUILD"])
File "/usr/lib/python2.2/site-packages/portage.py", line 1503, in merge
return mylink.merge(pkgloc,infloc,myroot,myebuild)
File "/usr/lib/python2.2/site-packages/portage.py", line 3981, in merge
return self.treewalk(mergeroot,myroot,inforoot,myebuild)
File "/usr/lib/python2.2/site-packages/portage.py", line 3663, in treewalk
counter=db[destroot]["vartree"].dbapi.counter_tick()
File "/usr/lib/python2.2/site-packages/portage.py", line 2558, in counter_tick
return counter_tick_core(self.root)
File "/usr/lib/python2.2/site-packages/portage.py", line 2524, in counter_tick_core
counter=long(cfile.readline())
IOError: [Errno 21] Is a directory
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Fri Dec 20, 2002 8:45 pm    Post subject: Reply with quote

Could you post the result of
Code:
$ ls -l /var/cache/edb
...is it possible that counter somehow is a directory?
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
MrIch
Apprentice
Apprentice


Joined: 25 May 2002
Posts: 204

PostPosted: Fri Dec 20, 2002 10:44 pm    Post subject: Reply with quote

Code:

bash-2.05b# ls -l /var/cache/edb
total 56
-rw-r--r--    1 root     root         4773 Dec 18 23:59 config
drwxr-xr-x    3 root     root           17 Dec 18 23:59 counter
drwxrwsr-x   70 root     wheel        4096 Dec 18 21:21 dep
-rw-rw-r--    1 root     wheel       35966 Dec 20 21:41 mtimedb
-rw-r--r--    1 root     root          570 Dec 15 16:17 virtuals
-rw-r--r--    1 root     root         2154 Dec 18 23:59 world
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Fri Dec 20, 2002 10:54 pm    Post subject: Reply with quote

Yeah, that's what I thought. Move that "counter" directory out of the way, in case it contains something important (what's in there, anyway?), and:
Code:
# touch /var/cache/edb/counter

_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
MrIch
Apprentice
Apprentice


Joined: 25 May 2002
Posts: 204

PostPosted: Fri Dec 20, 2002 10:58 pm    Post subject: Reply with quote

I made this and did a emerge -u portage!

BUT NOW, EMERGE IS NO LONGER THERE!!!

Code:

bash-2.05b# ls -la eme*
-rwxr-xr-x    1 root     root            0 Dec 15 12:15 emerge
-rwxr-xr-x    1 root     root         1213 Nov 28 20:57 emerge-webrsync


please help me!
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sat Dec 21, 2002 12:14 am    Post subject: Reply with quote

You might want to back up that partition and run fsck on it.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
MrIch
Apprentice
Apprentice


Joined: 25 May 2002
Posts: 204

PostPosted: Sat Dec 21, 2002 10:37 am    Post subject: Reply with quote

backuping will not help the it looks like the emerge script has overwritten itself with an empty file!

Could you give me a tip, how to get emerge on the system?
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sat Dec 21, 2002 11:40 am    Post subject: Reply with quote

There are portage rescue tarballs in /usr/portage/sys-apps/portage/files. You can unpack one across your root partition.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
MrIch
Apprentice
Apprentice


Joined: 25 May 2002
Posts: 204

PostPosted: Sat Dec 21, 2002 1:27 pm    Post subject: Reply with quote

thank you!!!

I restored portage (emerge) with the tarball and everyting looks finde at this moment!
Back to top
View user's profile Send private message
MrIch
Apprentice
Apprentice


Joined: 25 May 2002
Posts: 204

PostPosted: Sat Dec 21, 2002 2:31 pm    Post subject: Reply with quote

after an emerge -u gcc with the rescue portage, I get this error whenever I run it! :(

Code:
bash-2.05b# emerge --pretend -u world
python2.2: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory
Back to top
View user's profile Send private message
iKiddo
Guru
Guru


Joined: 27 Jun 2002
Posts: 341
Location: Europe?

PostPosted: Sat Dec 21, 2002 2:53 pm    Post subject: Reply with quote

Have you already upgraded to a newer portage ?
Back to top
View user's profile Send private message
MrIch
Apprentice
Apprentice


Joined: 25 May 2002
Posts: 204

PostPosted: Sat Dec 21, 2002 3:12 pm    Post subject: Reply with quote

no... I yust runed a emerge -u xawtv... and gcc was the dependency of it!
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sat Dec 21, 2002 7:14 pm    Post subject: Reply with quote

Did you ever run fsck on this partition? I fear that the filesystem is corrupted, and it may be that the disk is about to die on you.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
MrIch
Apprentice
Apprentice


Joined: 25 May 2002
Posts: 204

PostPosted: Sat Dec 21, 2002 7:26 pm    Post subject: Reply with quote

the last fsck was very long ago...

Now I formted the partition and make a complete reinstall out of the stage3 tarball auf gentoo 1.4rc1

But I hope my disk is not dying, it is possible because it is an IBM HDD! :(
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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