Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 452758 - dev-lang/python-2.7.3-r2 - error: .../work/Python-2.7.3/Modules/_ctypes/libffi: No such file or directory
Summary: dev-lang/python-2.7.3-r2 - error: .../work/Python-2.7.3/Modules/_ctypes/libff...
Status: RESOLVED DUPLICATE of bug 354877
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-18 03:12 UTC by Richard Freeman
Modified: 2013-07-24 09:21 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,114.30 KB, text/plain)
2013-01-18 03:13 UTC, Richard Freeman
Details
config.log (config.log,446.11 KB, text/plain)
2013-01-18 03:13 UTC, Richard Freeman
Details
emerge --info (einfo,4.74 KB, text/plain)
2013-01-18 03:14 UTC, Richard Freeman
Details
environment (environment,225.95 KB, text/plain)
2013-01-18 03:23 UTC, Richard Freeman
Details
emerge -pqv output (epqv,272 bytes, text/plain)
2013-01-18 03:24 UTC, Richard Freeman
Details
cross-compile support for distutils (python-2.7.3-cross-distutils.patch,4.08 KB, patch)
2013-03-27 04:34 UTC, SpanKY
Details | Diff
fix h2py helper when cross-compiling (python-2.7.3-cross-h2py.patch,1.28 KB, patch)
2013-03-27 04:35 UTC, SpanKY
Details | Diff
use local HOSTPYTHON when installing (python-2.7.3-cross-install-compile.patch,1.64 KB, patch)
2013-03-27 04:35 UTC, SpanKY
Details | Diff
search SYSROOT for lib dependencies (python-2.7.3-cross-setup-sysroot.patch,7.50 KB, patch)
2013-03-27 04:36 UTC, SpanKY
Details | Diff
/var/tmp/portage/dev-lang/python-3.3.2/temp/build.log on x32 (build.log,133.88 KB, text/plain)
2013-05-22 14:47 UTC, Flo Gravo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Freeman gentoo-dev 2013-01-18 03:12:04 UTC
Building using the desktop/kde profile from stage3 I get the attached build errors when attempting to build layman (for which python is a dep).

I'm building this using my ec2 bootstrap scripts, but it should be reproducible in a chroot starting from a stage3.

Reproducible: Always
Comment 1 Richard Freeman gentoo-dev 2013-01-18 03:13:39 UTC
Created attachment 335992 [details]
build.log
Comment 2 Richard Freeman gentoo-dev 2013-01-18 03:13:57 UTC
Created attachment 335994 [details]
config.log
Comment 3 Richard Freeman gentoo-dev 2013-01-18 03:14:20 UTC
Created attachment 335996 [details]
emerge --info
Comment 4 Richard Freeman gentoo-dev 2013-01-18 03:23:47 UTC
Created attachment 335998 [details]
environment
Comment 5 Richard Freeman gentoo-dev 2013-01-18 03:24:12 UTC
Created attachment 336000 [details]
emerge -pqv output
Comment 6 Thomas Sachau gentoo-dev 2013-03-23 15:36:20 UTC
seems to build fine for me, when i am building the 64bit version, but i get the same error, when building the 32bit version (both on amd64)

And looking at the build.log, the original report is also about building the 32bit version, only difference:

-i use multilib-portage (so 64bit toolchain with -m32 flag added to *FLAGS)
-rich uses a cross-toolchain (so 32bit toolchain with no added flags)
Comment 7 SpanKY gentoo-dev 2013-03-27 04:34:07 UTC
i most likely have a pile of cross-compiling patches that fix this.  i was hitting this problem, but after the series of fixes, it no longer fails.

but i'm not sure the python team wants me adding them.  i've added all the other ebuild parts to the main tree.
Comment 8 SpanKY gentoo-dev 2013-03-27 04:34:59 UTC
Created attachment 343376 [details, diff]
cross-compile support for distutils
Comment 9 SpanKY gentoo-dev 2013-03-27 04:35:18 UTC
Created attachment 343378 [details, diff]
fix h2py helper when cross-compiling
Comment 10 SpanKY gentoo-dev 2013-03-27 04:35:42 UTC
Created attachment 343380 [details, diff]
use local HOSTPYTHON when installing
Comment 11 SpanKY gentoo-dev 2013-03-27 04:36:05 UTC
Created attachment 343382 [details, diff]
search SYSROOT for lib dependencies
Comment 12 Richard Freeman gentoo-dev 2013-03-27 11:25:41 UTC
(In reply to comment #6)
> 
> -i use multilib-portage (so 64bit toolchain with -m32 flag added to *FLAGS)
> -rich uses a cross-toolchain (so 32bit toolchain with no added flags)

I'm building this on a 32-bit stage3.  I'm not doing anything fancy with crossdev/etc here.  I'm just chrooting into a stage3 and doing an emerge layman (well, after the various handbook setup steps).

I believe the kernel is compiled for x86, but it is running under Xen so without doing a little research I won't make too many claims as to how it behaves.  My script just fetches the latest official Amazon 32-bit kernel and uses that (I'm bootstrapping a Gentoo image, and once done it will run gentoo-sources under Xen).
Comment 13 Thomas Sachau gentoo-dev 2013-03-27 12:41:06 UTC
(In reply to comment #12)
> (In reply to comment #6)
> > 
> > -i use multilib-portage (so 64bit toolchain with -m32 flag added to *FLAGS)
> > -rich uses a cross-toolchain (so 32bit toolchain with no added flags)
> 
> I'm building this on a 32-bit stage3.  I'm not doing anything fancy with
> crossdev/etc here.  I'm just chrooting into a stage3 and doing an emerge
> layman (well, after the various handbook setup steps).
> 
> I believe the kernel is compiled for x86, but it is running under Xen so
> without doing a little research I won't make too many claims as to how it
> behaves.  My script just fetches the latest official Amazon 32-bit kernel
> and uses that (I'm bootstrapping a Gentoo image, and once done it will run
> gentoo-sources under Xen).

Then i am wondering about the "amd64" and "multilib" in your build.log in the following line:
 * USE:        amd64 consolekit elibc_glibc gdbm ipv6 kernel_linux multilib ncurses policykit readline ssl threads userland_GNU wide-unicode xml
Comment 14 Richard Freeman gentoo-dev 2013-03-27 13:38:17 UTC
(In reply to comment #13)
> (In reply to comment #12)
> > (In reply to comment #6)
> > > 
> > > -i use multilib-portage (so 64bit toolchain with -m32 flag added to *FLAGS)
> > > -rich uses a cross-toolchain (so 32bit toolchain with no added flags)
> > 
> > I'm building this on a 32-bit stage3.  I'm not doing anything fancy with
> > crossdev/etc here.  I'm just chrooting into a stage3 and doing an emerge
> > layman (well, after the various handbook setup steps).
> > 
> > I believe the kernel is compiled for x86, but it is running under Xen so
> > without doing a little research I won't make too many claims as to how it
> > behaves.  My script just fetches the latest official Amazon 32-bit kernel
> > and uses that (I'm bootstrapping a Gentoo image, and once done it will run
> > gentoo-sources under Xen).
> 
> Then i am wondering about the "amd64" and "multilib" in your build.log in
> the following line:
>  * USE:        amd64 consolekit elibc_glibc gdbm ipv6 kernel_linux multilib
> ncurses policykit readline ssl threads userland_GNU wide-unicode xml

I'll do some testing on that right away.  I might have had a typo when I invoked the script (invoking the bootstrap script using a 32-bit kernel/stage3, but a 64-bit configuration/profile/etc), and while troubleshooting I might have used command line history to reproduce the mistake.

It will take hours to reproduce the error, but I'll let you know what I found.  This could easily be invalid - good catch.
Comment 15 Flo Gravo 2013-05-22 14:39:03 UTC
Happens to me on a x32 install, too. No cross compiling or anything like that...

emerge --info
Portage 2.2.0_alpha176 (default/linux/amd64/13.0/x32, gcc-4.8.0, glibc-2.17, 3.9.3-gentoo x86_64)
=================================================================
System uname: Linux-3.9.3-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9550_@_2.66GHz-with-gentoo-2.2
KiB Mem:     8131272 total,   5040984 free
KiB Swap:    8387580 total,   8387580 free
Timestamp of tree: Wed, 22 May 2013 07:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.4, 3.2.4
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.2
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.1, 4.8.0
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnux32"
CFLAGS="-O2 -pipe -march=core2 -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnux32"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=core2 -fomit-frame-pointer"
DISTDIR="/home/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="  http://mirror.opteamax.de/gentoo/  http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/  http://mirror.netcologne.de/gentoo/  http://gentoo.mirror.dkm.cz/pub/gentoo/  http://gentoo.mneisen.org/  ftp://gentoo.mirror.dkm.cz/pub/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS=" -j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/home/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync4.de.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 avahi berkdb bluetooth bzip2 cairo cdda cdr cli colord consolekit cracklib crypt cuda cups cxx dbus device-mapper dga directfb dri dts dvd dvdr eds eigen emboss encode evo exif fat ffmpeg fftw firefox flac fontconfig fortran ftp gdbm gif gimp git gnome gnome-keyring gnome-online-accounts gnome-shell gpm gptfdisk graphite gstreamer gtk gtk3 gtkstyle harfbuzz highlight http iconv icu id3tag imagemagick imlib introspection ipv6 jabber jit jpeg jpeg2k laptop lcms lensfun libav libffi libnotify libsecret lto lzma lzo mad matroska mercurial minizip mms mmx mmxext mng modules mp3 mp4 mpeg mplayer mtp mudflap multicore multilib musicbrainz nautilus ncurses networkmanager nfs nfsidmap nfsv4 nfsv41 nls nptl ntfs ntfsprogs ntp ogg opengl openmp openrc opus pam pango pcre pdf pm-utils png policykit ppds ppp pulseaudio python3 quvi rar raw readline sdl session sip smp socialweb speex spell sse sse2 sse2check sse3 sse4 sse4_1 ssl ssse3 startup-notification svg taglib tcpd theora threads tiff truetype udev udisks umfpack unicode upnp upnp-av upower usb v4l vaapi vala vdpau vorbis vpx webgl webkit webkit2 webm webp wxwidgets x264 xcb xetex xft xine xinerama xml xmpp xv xvid xvmc xz zeitgeist zeroconf zlib" ABI_X86="x32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 16 Flo Gravo 2013-05-22 14:47:04 UTC
Created attachment 348924 [details]
/var/tmp/portage/dev-lang/python-3.3.2/temp/build.log on x32
Comment 17 Flo Gravo 2013-05-22 15:10:44 UTC
My make.conf

CFLAGS="-O2 -pipe -march=core2 -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="${MAKEOPTS} -j3"
CHOST="x86_64-pc-linux-gnux32"

USE="X a52 aac acpi alsa avahi bluetooth cairo cdda cdr colord consolekit cuda
     cups dbus device-mapper dga directfb dri dts dvd dvdr eds eigen emboss
     encode evo exif fat ffmpeg fftw firefox flac fontconfig ftp gif gimp git
     gnome gnome-keyring gnome-online-accounts gnome-shell gpm gptfdisk
     graphite gstreamer gtk gtk3 gtkstyle harfbuzz highlight http icu id3tag
     imagemagick imlib introspection jabber jpeg jpeg2k laptop lcms lensfun
     libav libffi libnotify libsecret lto lzma lzo mad matroska mercurial
     minizip mms mmx mmxext mng mp3 mp4 mpeg mplayer mtp multicore musicbrainz
     nautilus networkmanager nfs nfsidmap nfsv4 nfsv41 ntfs ntfsprogs ntp ogg
     opengl openrc opus pango pdf pm-utils png policykit ppds ppp pulseaudio
     python3 quvi rar raw sdl sip smp socialweb speex spell sse sse2 sse2check
     sse3 sse4 sse4_1 ssse3 startup-notification svg taglib theora threads
     tiff truetype udev udisks umfpack unicode upnp upnp-av upower usb v4l
     vaapi vala vdpau vorbis vpx webgl webkit webkit2 webm webp wxwidgets x264
     xcb xetex xft xine xinerama xml xmpp xv xvid xvmc xz zeitgeist zeroconf
     -accessibility -aisleriot -bindist -branding -development -egl
     -exceptions -fallback -fam -gcj -gtk2 -handbook -i18n -ibus -iptables
     -kde -ldap -phonon -qt3support -qt4 -semantic-desktop -vba -acl"

ACCEPT_KEYWORDS="~amd64"
ACCEPT_LICENSE="*"

DISTDIR="/home/portage/distfiles"
PORTDIR="/home/portage"

GRUB_PLATFORMS="efi-64"
INPUT_DEVICES="evdev synaptics"
VIDEO_CARDS="nvidia"
LINGUAS="de en"

SYNC="rsync://rsync4.de.gentoo.org/gentoo-portage"
GENTOO_MIRRORS="
 http://mirror.opteamax.de/gentoo/
 http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/
 http://mirror.netcologne.de/gentoo/
 http://gentoo.mirror.dkm.cz/pub/gentoo/
 http://gentoo.mneisen.org/
 ftp://gentoo.mirror.dkm.cz/pub/gentoo/"
Comment 18 SpanKY gentoo-dev 2013-05-22 18:33:14 UTC
Comment on attachment 348924 [details]
/var/tmp/portage/dev-lang/python-3.3.2/temp/build.log on x32

python 3.2.3 and 3.3.2 build fine for me under x32.  most likely you're hitting a different issue than what is reported here.

the libffi/ctypes error is one that can be triggered in a variety of different ways, so its appearance is not an automatic "you've hit bug 452758".  you should file a new bug to track the x32 issue there.
Comment 19 Markos Chandras (RETIRED) gentoo-dev 2013-07-24 09:21:25 UTC

*** This bug has been marked as a duplicate of bug 354877 ***