I seem to get this every now and then. Started happening after the last portage upgrade: sys-apps/portage-2.0.45-r4 Its not much to go on. Let me know if I can provide more information. In this example, I had just re-emerged ExtUtils-MakeMaker >>> Regenerating /etc/ld.so.cache... >>> Regenerating /etc/ld.so.cache... >>> Auto-cleaning packages ... Traceback (most recent call last): File "/usr/bin/emerge", line 1672, in ? unmerge("clean", ["world"]) File "/usr/bin/emerge", line 1195, in unmerge slotmap[myslot][localtree.dbapi.cpv_counter(mypkg)]=mypkg File "/usr/lib/python2.2/site-packages/portage.py", line 2554, in cpv_counter counter=long(cfile.readline()) IOError: [Errno 22] Invalid argument
never mind... the cause was just a run-of-the-mill ext3 filesystem corruption :(