Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 298062 - dev-lang/python-2.6.* fails "libffi.so.5" not found
Summary: dev-lang/python-2.6.* fails "libffi.so.5" not found
Status: RESOLVED INVALID
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 FreeBSD
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-23 04:10 UTC by matt
Modified: 2010-01-24 12:05 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
bes-emerge.info (bes-emerge.info,3.00 KB, text/plain)
2009-12-28 00:32 UTC, Justin Lecher (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matt 2009-12-23 04:10:53 UTC
gcc -shared -L. -L. -fno-strict-aliasing -DNDEBUG -march=athlon64 -O2 -pipe -I. -IInclude -I./Include build/temp.freebsd-8.0-RELEASE-amd64-2.6/usr/home/matt/gentoo/var/tmp/portage/dev-lang/python-2.6.2-r2/work/Python-2.6.2/Modules/_ctypes/_ctypes.o build/temp.freebsd-8.0-RELEASE-amd64-2.6/usr/home/matt/gentoo/var/tmp/portage/dev-lang/python-2.6.2-r2/work/Python-2.6.2/Modules/_ctypes/callbacks.o build/temp.freebsd-8.0-RELEASE-amd64-2.6/usr/home/matt/gentoo/var/tmp/portage/dev-lang/python-2.6.2-r2/work/Python-2.6.2/Modules/_ctypes/callproc.o build/temp.freebsd-8.0-RELEASE-amd64-2.6/usr/home/matt/gentoo/var/tmp/portage/dev-lang/python-2.6.2-r2/work/Python-2.6.2/Modules/_ctypes/stgdict.o build/temp.freebsd-8.0-RELEASE-amd64-2.6/usr/home/matt/gentoo/var/tmp/portage/dev-lang/python-2.6.2-r2/work/Python-2.6.2/Modules/_ctypes/cfield.o build/temp.freebsd-8.0-RELEASE-amd64-2.6/usr/home/matt/gentoo/var/tmp/portage/dev-lang/python-2.6.2-r2/work/Python-2.6.2/Modules/_ctypes/malloc_closure.o -L/usr/home/matt/gentoo/usr/lib -L. -lffi -lpython2.6 -o build/lib.freebsd-8.0-RELEASE-amd64-2.6/_ctypes.so
*** WARNING: renaming "_ctypes" since importing it failed: Shared object "libffi.so.5" not found, required by "_ctypes.so"

Failed to find the necessary bits to build these modules:
_bsddb             _sqlite3           _tkinter        
bsddb185           dl                 gdbm            
imageop            linuxaudiodev      spwd            
sunaudiodev                                           
To find the necessary bits, look in setup.py in detect_modules() for the module's name.

Portage 2.2.00.15123-prefix (prefix/bsd/freebsd/8.0/x64, gcc-4.2.1, unavailable, 8.0-RELEASE amd64)
=================================================================
System uname: FreeBSD-8.0-RELEASE-amd64-64bit-ELF
Timestamp of tree: Sun, 20 Dec 2009 22:53:41 +0000
app-shells/bash:     4.0_p35
dev-lang/python:     2.6.4
sys-devel/autoconf:  2.63-r01.1
sys-devel/automake:  1.10.2-r00.1
sys-devel/binutils:  2.20.51.0.3
sys-devel/gcc-config: 1.4.1-r00.2
sys-devel/libtool:   2.2.6b
ACCEPT_KEYWORDS="~x64-freebsd"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-freebsd8.0"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-freebsd8.0"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/home/matt/gentoo/usr/portage/distfiles"
FEATURES="assume-digests collision-protect distlocks fixpackages news parallel-fetch preserve-libs protect-owned sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS=""

[ebuild   R   ] dev-lang/python-2.6.4  USE="ncurses readline ssl threads xml (-aqua) (-berkdb) -build -doc -examples -gdbm -ipv6 -sqlite -tk -ucs2 -wininst" 0 kB
Comment 1 Fabian Groffen gentoo-dev 2009-12-23 09:54:00 UTC
is libffi installed, if yes, what libs can you find?  (echo $EPREFIX/usr/lib/libffi.*)
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2009-12-28 00:29:06 UTC
I get that too on opensuse-11.2 during bootstrapping process

x86_64-pc-linux-gnu-gcc -pthread -shared -Wl,-O1 -L. -fno-strict-aliasing -DNDEBUG -O2 -pipe -I. -IInclude -I./Include -I/opt/scisoft64/usr/include build/temp.linux-x86_6
4-2.6/opt/scisoft64/var/tmp/portage/dev-lang/python-2.6.4/work/Python-2.6.4/Modules/_ctypes/_ctypes.o build/temp.linux-x86_64-2.6/opt/scisoft64/var/tmp/portage/dev-lang/p
ython-2.6.4/work/Python-2.6.4/Modules/_ctypes/callbacks.o build/temp.linux-x86_64-2.6/opt/scisoft64/var/tmp/portage/dev-lang/python-2.6.4/work/Python-2.6.4/Modules/_ctype
s/callproc.o build/temp.linux-x86_64-2.6/opt/scisoft64/var/tmp/portage/dev-lang/python-2.6.4/work/Python-2.6.4/Modules/_ctypes/stgdict.o build/temp.linux-x86_64-2.6/opt/s
cisoft64/var/tmp/portage/dev-lang/python-2.6.4/work/Python-2.6.4/Modules/_ctypes/cfield.o build/temp.linux-x86_64-2.6/opt/scisoft64/var/tmp/portage/dev-lang/python-2.6.4/
work/Python-2.6.4/Modules/_ctypes/malloc_closure.o -L/opt/scisoft64/usr/lib -L. -lffi -lpython2.6 -o build/lib.linux-x86_64-2.6/_ctypes.so
*** WARNING: renaming "_ctypes" since importing it failed: libffi.so.5: cannot open shared object file: No such file or directory

Failed to find the necessary bits to build these modules:
_bsddb             _hashlib           _sqlite3        
_ssl               _tkinter           bsddb185        
bz2                dbm                dl              
gdbm               imageop            sunaudiodev     
To find the necessary bits, look in setup.py in detect_modules() for the module's name.


Failed to build these modules:
_ctypes                                               



# ll scisoft64/usr/lib/libffi*
-rw-r--r-- 1 root root   787 27. Dez 19:12 scisoft64/usr/lib/libffi.la
lrwxrwxrwx 1 root root    16 27. Dez 19:12 scisoft64/usr/lib/libffi.so -> libffi.so.5.0.10
lrwxrwxrwx 1 root root    16 27. Dez 19:12 scisoft64/usr/lib/libffi.so.5 -> libffi.so.5.0.10
-rwxr-xr-x 1 root root 30904 27. Dez 19:12 scisoft64/usr/lib/libffi.so.5.0.10
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2009-12-28 00:32:36 UTC
Created attachment 214355 [details]
bes-emerge.info

emerge.info from opensuse 11.2 box
Comment 4 Fabian Groffen gentoo-dev 2009-12-28 09:35:37 UTC
please post the output of:
binutils-config -l
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2009-12-28 10:33:46 UTC
# binutils-config -l
 [1] x86_64-pc-linux-gnu-2.20.51.0.3
Comment 6 Fabian Groffen gentoo-dev 2009-12-28 15:49:08 UTC
please post the output of
binutils-config 1
Comment 7 Justin Lecher (RETIRED) gentoo-dev 2009-12-28 16:07:12 UTC
# binutils-config 1
 * Switching to x86_64-pc-linux-gnu-2.20.51.0.4 ...                                                                                                                                                                                                                              [ ok ]

 * Please remember to run:

 *  (bash) # source /opt/scisoft64/etc/profile
 * or
 *  (tcsh) # source /opt/scisoft64/etc/csh.login
Comment 8 Fabian Groffen gentoo-dev 2009-12-28 16:20:02 UTC
please try emerging again now
Comment 9 matt 2009-12-31 18:23:22 UTC
i checked binutils-config and re emerged, seems to work fine (on freebsd 8.0 64 bit).  think i had a broken toolchain before with newer packages( gcc and bash), ill have to dig more.
Comment 10 Fabian Groffen gentoo-dev 2010-01-24 12:05:20 UTC
ok, assuming earlier error caused this