Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-alt
Navigation:
Lists: gentoo-alt: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-alt@g.o
From: Fabian Groffen <grobian@g.o>
Subject: Re: [Q] What's causing python on Opensolaris to fail to import modules?
Date: Sun, 22 Jun 2008 11:11:25 +0200
On 21-06-2008 20:25:55 -0400, Maurice Volaski wrote:
> I'm installing a prefix for Indiana OpenSolaris 64-bit and I'm at the  
> point of emerging, but I'm getting an error:
>
> Failed to complete python imports
>
> Now I noticed that when python 2.5.2 is compiling in the bootstrap phase 
> there are repeated warnings
>
> ***WARNING: renaming "_struct" since importing it failed: ld.so.1:  
> python: fatal: /usr/sfw/lib/libgcc_s.so.1: wrong ELF class: ELFCLASS32
>
> In the directory, /opt/gentoo/usr/lib/python2.5/lib-dynload, there are 
> are a number of failed .so files. Could this be related to the cause?

Yeah for sure.

I think I hit the same issue and I added a little note for it in the
bootstrap guide.  If you're bootstrapping 64-bits, you need to have the
64-bits paths in your searchpath, where they are non standard.

It's in this line:

If you are targetting a 64-bits native Prefix, append -L and -R flags
for /usr/sfw/lib/64 to your LDFLAGS. Additionally set CC="gcc -m64",
CXX="g++ -m64" and HOSTCC="gcc -m64".

note the /usr/sfw/lib/64, it contains the 64-bits version of
libgcc_s.so.1, that the linker should find (after skipping the
incompatible 32-bits version).

If you already did this, it looks like something weird is going on.


-- 
Fabian Groffen
Gentoo on a different level
-- 
gentoo-alt@g.o mailing list


References:
[Q] What's causing python on Opensolaris to fail to import modules?
-- Maurice Volaski
Navigation:
Lists: gentoo-alt: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
[Q] What's causing python on Opensolaris to fail to import modules?
Next by thread:
new warning with latest portage & svn checkout
Previous by date:
[Q] What's causing python on Opensolaris to fail to import modules?
Next by date:
new warning with latest portage & svn checkout


Updated Jun 17, 2009

Summary: Archive of the gentoo-alt mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.