Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc upgrade broke emerge [SOLVED]
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
E001754
Guru
Guru


Joined: 01 Aug 2004
Posts: 442
Location: Paris, France

PostPosted: Sun Sep 13, 2009 5:41 pm    Post subject: gcc upgrade broke emerge [SOLVED] Reply with quote

Hi all,

After having emerged world, I wanted to upgrade gcc.
I followed the gcc upgrade guide and things were running smooth on rebuilding system (emerge -ev system).
However, when rebuilding world, things got suddendly worst :

Quote:

localhost luc # emerge -pev world
Traceback (most recent call last):
File "/usr/bin/emerge", line 40, in <module>
retval = _emerge.emerge_main()
File "/usr/lib64/portage/pym/_emerge/__init__.py", line 15464, in emerge_main
portdb = trees[settings["ROOT"]]["porttree"].dbapi
File "/usr/lib64/portage/pym/portage/util.py", line 1117, in __getitem__
result = lazy_item.func(*pargs, **kwargs)
File "/usr/lib64/portage/pym/portage/dbapi/porttree.py", line 1121, in __init_
_
settings["PORTDIR"], mysettings=settings)
File "/usr/lib64/portage/pym/portage/dbapi/porttree.py", line 293, in __init__
self.auxdbmodule = self.mysettings.load_best_module("portdbapi.auxdbmodule")
File "/usr/lib64/portage/pym/portage/__init__.py", line 2011, in load_best_mod
ule
mod = load_mod(best_mod)
File "/usr/lib64/portage/pym/portage/__init__.py", line 171, in load_mod
mod = __import__(modname)
File "/usr/lib64/portage/pym/portage/cache/sqlite.py", line 14, in <module>
from pysqlite2 import dbapi2 as db_module
File "/usr/lib64/python2.6/site-packages/pysqlite2/dbapi2.py", line 27, in <mo
dule>
from pysqlite2._sqlite import *
ImportError: /usr/lib64/python2.6/site-packages/pysqlite2/_sqlite.so: undefined
symbol: PyUnicodeUCS2_DecodeUTF8


Any ideas of what went wrong ?


Last edited by E001754 on Sun Sep 13, 2009 9:16 pm; edited 1 time in total
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Sun Sep 13, 2009 6:10 pm    Post subject: Reply with quote

have you run python-updater?
Back to top
View user's profile Send private message
E001754
Guru
Guru


Joined: 01 Aug 2004
Posts: 442
Location: Paris, France

PostPosted: Sun Sep 13, 2009 6:42 pm    Post subject: Reply with quote

yes. It says nothing.
When I invoke "python" on command line, it enters into a shell that seems to be python and says "python 2.6.2".
eselect python list says that python 2.6 is currently selected (with a '*') and all others python (2.4 and 2.5) are now gone (I ran an emerge --depclean before upgrading gcc).
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Sun Sep 13, 2009 7:01 pm    Post subject: Reply with quote

There is a Guide here to fix a broken emerge.
Back to top
View user's profile Send private message
E001754
Guru
Guru


Joined: 01 Aug 2004
Posts: 442
Location: Paris, France

PostPosted: Sun Sep 13, 2009 8:51 pm    Post subject: Reply with quote

The guide didn't help.
The error message makes me think about broken mysql.
Back to top
View user's profile Send private message
Arfrever
Bodhisattva
Bodhisattva


Joined: 29 Apr 2006
Posts: 2463
Location: 異世界

PostPosted: Sun Sep 13, 2009 9:10 pm    Post subject: Reply with quote

Post the output of:
Code:
cat /etc/portage/modules
cat /var/db/pkg/dev-lang/python-2.6*/USE
Back to top
View user's profile Send private message
E001754
Guru
Guru


Joined: 01 Aug 2004
Posts: 442
Location: Paris, France

PostPosted: Sun Sep 13, 2009 9:16 pm    Post subject: Reply with quote

Found it : it was pysqlite2 that was broken. Manually re-installing it repaired portage.

For security, I re-emerged portage, mysql and pysqlite2.

Thanks all for your help.
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