Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 462246 - dev-libs/libffi-3.0.12 breaks dev-lang/python-2.7.3-r3 compilation under x32 (regression)
Summary: dev-libs/libffi-3.0.12 breaks dev-lang/python-2.7.3-r3 compilation under x32 ...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: x32
  Show dependency tree
 
Reported: 2013-03-18 21:57 UTC by Guillaume BINET
Modified: 2014-01-08 22:50 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume BINET 2013-03-18 21:57:29 UTC
It works well with dev-libs/libffi-3.0.11 

Reproducible: Always

Steps to Reproduce:
1. make a ~amd64 x32 chroot and try to emerge python 2.7.3
2.
3.
Actual Results:  
x86_64-pc-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,--as-needed -L. -Wl,-O1 -Wl,--as-needed -L. -fno-strict-aliasing -march=native -O2 -pipe -fwrapv -DNDEBUG -I. -IInclude -I./Include build/temp.linux-x86_64-2.7/var/tmp/portage/dev-lang/python-2.7.3-r3/work/Python-2.7.3/Modules/_ctypes/_ctypes.o build/temp.linux-x86_64-2.7/var/tmp/portage/dev-lang/python-2.7.3-r3/work/Python-2.7.3/Modules/_ctypes/callbacks.o build/temp.linux-x86_64-2.7/var/tmp/portage/dev-lang/python-2.7.3-r3/work/Python-2.7.3/Modules/_ctypes/callproc.o build/temp.linux-x86_64-2.7/var/tmp/portage/dev-lang/python-2.7.3-r3/work/Python-2.7.3/Modules/_ctypes/stgdict.o build/temp.linux-x86_64-2.7/var/tmp/portage/dev-lang/python-2.7.3-r3/work/Python-2.7.3/Modules/_ctypes/cfield.o -L/usr/local/lib -L. -lffi -lpython2.7 -o build/lib.linux-x86_64-2.7/_ctypes.so
*** WARNING: renaming "_ctypes" since importing it failed: /usr/libx32/libffi.so.6: undefined symbol: ffi_prep_closure_loc

Python build finished, but the necessary bits to build these modules were not found:
_tkinter           bsddb185           sunaudiodev     
To find the necessary bits, look in setup.py in detect_modules() for the module's name.


Failed to build these modules:
_ctypes                                               

running build_scripts

Expected Results:  
should compile like 3.0.11

Portage 2.1.11.55 (default/linux/amd64/13.0/x32, gcc-4.7.0, glibc-2.16.0, 3.8.3-gentoo-r1 x86_64)
=================================================================
System uname: Linux-3.8.3-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7-2620M_CPU_@_2.70GHz-with-gentoo-2.2
KiB Mem:     8094348 total,    998004 free
KiB Swap:    9437180 total,   9437028 free
Timestamp of tree: Mon, 18 Mar 2013 20:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p42
dev-lang/python:          2.7.3-r3, 3.2.3
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.0
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.8 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openfire/resources/security/ /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/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 protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirror.iawnet.sandia.gov/pub/gentoo/ ftp://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ http://gentoo.gossamerhost.com ftp://gentoo.mirrors.tds.net/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac aacplus aalib acl acpi alsa amd64 aotuv ares asf avahi avx berkdb bluetooth branding bzip2 cdaudio cdr cjk cli consolekit cracklib crypt cups cxx dbus directfb divx4linux dri dts dv dvb dvd dvdread emul-linux-x86 encode exif fbcon fbsplash ffmpeg firefox flac fortran freetype gcj gd gdbm geoip gif glitz go gpm gtk gtk2 htmlhandbook http i8x0 iconv icu idn imagemagick immqt-bc jack javascript jfs joystick jpeg jpeg2k kde kdepim kdexdeltas kipi laptop libcaca lzma m17n-lib midi mmap mmx mng modplug modules mp3 mp4 mpeg mplayer mudflap multilib musepack musicbrainz ncurses nls nptl nsplugin ntfs obex offensive ogg oggvorbis opencl openexr opengl openmp pam pch pcmcia pcre pdf png policykit postgres ppds python python3 qt3 qt3support qt4 rdesktop readline reiserfs samba sasl scanner semantic-desktop session socks5 speex spell sqlite sse sse2 sse3 ssl ssse3 startup-notification svg tcpd theora threads tiff truetype unicode usb usepackagedmakefiles v4l v4l2 vaapi vcd vhosts vim-syntax vorbis wavpack wifi wmf x264 xcb xcomposite xine xpm xv xvid xvmc zeroconf zlib zsh-completion" ABI_X86="x32" ALSA_CARDS="hda-intel" 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" CAMERAS="canon" 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="pc" 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="en en_US" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="intel radeon" 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"
USE_PYTHON="2.7 3.2"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 SpanKY gentoo-dev 2013-03-19 18:21:56 UTC
i can't reproduce

$ qlist -Iv dev-libs/libffi dev-lang/python
dev-lang/python-2.7.3-r3
dev-libs/libffi-3.0.12
$ sudo emerge python:2.7 -1qv
[ebuild   R    ] dev-lang/python-2.7.3-r3:2.7  USE="gdbm ipv6 ncurses readline sqlite ssl threads (wide-unicode) xml -berkdb -build -doc -examples -hardened -tk -wininst"
...
>>> dev-lang/python-2.7.3-r3 merged.
Comment 2 Tolga Dalman 2013-06-09 22:02:55 UTC
(In reply to SpanKY from comment #1)
> i can't reproduce

Me neither.
Comment 3 Mihai Donțu 2013-12-24 04:32:44 UTC
Happens to me with dev-libs/libffi-3.0.13. For some reason ffi64.{c,S} don't get selected. 3.0.11 is OK though.
Comment 4 SpanKY gentoo-dev 2014-01-08 22:50:56 UTC
please post a full build log