Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 529056 - dev-python/xcffib-0.1.8 - xcffib/__pycache__/_cffi__x65449d65xc8917695.c:187:25: fatal error: xcb/xcb.h: No such file or directory
Summary: dev-python/xcffib-0.1.8 - xcffib/__pycache__/_cffi__x65449d65xc8917695.c:187:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-12 16:58 UTC by Toralf Förster
Modified: 2014-12-19 01:20 UTC (History)
0 users

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


Attachments
duff -u patch (xcffib.patch,654 bytes, patch)
2014-12-17 12:22 UTC, Ian Delaney (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2014-11-12 16:58:44 UTC
* Package:    dev-python/xcffib-0.1.8
 * Repository: gentoo
 * Maintainer: python@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python2_7 python_targets_python3_3 userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking xcffib-0.1.8.tar.gz to /var/tmp/portage/dev-python/xcffib-0.1.8/work
>>> Source unpacked in /var/tmp/portage/dev-python/xcffib-0.1.8/work
>>> Preparing source in /var/tmp/portage/dev-python/xcffib-0.1.8/work/xcffib-0.1.8 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/xcffib-0.1.8/work/xcffib-0.1.8 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/xcffib-0.1.8/work/xcffib-0.1.8 ...
 * python3_3: running distutils-r1_run_phase distutils-r1_python_compile
/usr/bin/python3.3 setup.py build
running build
running build_ext
building '_cffi__x65449d65xc8917695' extension
creating /var/tmp/portage/dev-python/xcffib-0.1.8/work/xcffib-0.1.8/xcffib/__pycache__/xcffib
creating /var/tmp/portage/dev-python/xcffib-0.1.8/work/xcffib-0.1.8/xcffib/__pycache__/xcffib/__pycache__
x86_64-pc-linux-gnu-gcc -O2 -pipe -fPIC -I/usr/include/python3.3 -c xcffib/__pycache__/_cffi__x65449d65xc8917695.c -o /var/tmp/portage/dev-python/xcffib-0.1.8/work/xcffib-0.1.8/xcffib/__pycache__/xcffib/__pycache__/_cffi__x65449d65xc8917695.o
xcffib/__pycache__/_cffi__x65449d65xc8917695.c:187:25: fatal error: xcb/xcb.h: No such file or directory
     #include <xcb/xcb.h>
                         ^
compilation terminated.
Traceback (most recent call last):
  File "/usr/lib64/python3.3/distutils/unixccompiler.py", line 126, in _compile
    extra_postargs)
  File "/usr/lib64/python3.3/distutils/ccompiler.py", line 909, in spawn
    spawn(cmd, dry_run=self.dry_run)
  File "/usr/lib64/python3.3/distutils/spawn.py", line 32, in spawn
    _spawn_posix(cmd, search_path, dry_run=dry_run)
  File "/usr/lib64/python3.3/distutils/spawn.py", line 163, in _spawn_posix
    % (cmd[0], exit_status))
distutils.errors.DistutilsExecError: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib64/python3.3/site-packages/cffi/ffiplatform.py", line 48, in _build
    dist.run_command('build_ext')
  File "/usr/lib64/python3.3/distutils/dist.py", line 949, in run_command
    cmd_obj.run()
  File "/usr/lib64/python3.3/site-packages/setuptools/command/build_ext.py", line 54, in run
    _build_ext.run(self)
  File "/usr/lib64/python3.3/distutils/command/build_ext.py", line 353, in run
    self.build_extensions()
  File "/usr/lib64/python3.3/distutils/command/build_ext.py", line 462, in build_extensions
    self.build_extension(ext)
  File "/usr/lib64/python3.3/site-packages/setuptools/command/build_ext.py", line 187, in build_extension
    _build_ext.build_extension(self, ext)
  File "/usr/lib64/python3.3/distutils/command/build_ext.py", line 517, in build_extension
    depends=ext.depends)
  File "/usr/lib64/python3.3/distutils/ccompiler.py", line 574, in compile
    self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
  File "/usr/lib64/python3.3/distutils/unixccompiler.py", line 128, in _compile
    raise CompileError(msg)
distutils.errors.CompileError: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "setup.py", line 56, in <module>
    cmdclass={'build': cffi_build},
  File "/usr/lib64/python3.3/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib64/python3.3/distutils/dist.py", line 930, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python3.3/distutils/dist.py", line 948, in run_command
    cmd_obj.ensure_finalized()
  File "/usr/lib64/python3.3/distutils/cmd.py", line 107, in ensure_finalized
    self.finalize_options()
  File "setup.py", line 36, in finalize_options
    import xcffib
  File "/var/tmp/portage/dev-python/xcffib-0.1.8/work/xcffib-0.1.8/xcffib/__init__.py", line 25, in <module>
    from .ffi import ffi, C, visualtype_to_c_struct  # noqa
  File "/var/tmp/portage/dev-python/xcffib-0.1.8/work/xcffib-0.1.8/xcffib/ffi.py", line 238, in <module>
    """, libraries=['xcb'])
  File "/usr/lib64/python3.3/site-packages/cffi/api.py", line 340, in verify
    lib = self.verifier.load_library()
  File "/usr/lib64/python3.3/site-packages/cffi/verifier.py", line 74, in load_library
    self._compile_module()
  File "/usr/lib64/python3.3/site-packages/cffi/verifier.py", line 139, in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
  File "/usr/lib64/python3.3/site-packages/cffi/ffiplatform.py", line 25, in compile
    outputfilename = _build(tmpdir, ext)
  File "/usr/lib64/python3.3/site-packages/cffi/ffiplatform.py", line 51, in _build
    raise VerificationError('%s: %s' % (e.__class__.__name__, e))
cffi.ffiplatform.VerificationError: CompileError: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1
 * ERROR: dev-python/xcffib-0.1.8::gentoo failed (compile phase):
 *   (no error message)




This chroot image is located at a hardened amd64 system.

!!! '=' is not a valid package atom.
!!! Please check ebuild(5) for full details.
Portage 2.2.14 (python 3.3.5-final-0, hardened/linux/amd64, gcc-4.8.3, glibc-2.20, 3.17.2-hardened-r1 x86_64)
=================================================================
System uname: Linux-3.17.2-hardened-r1-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16166892 total,   3807912 free
KiB Swap:   16777212 total,  16766864 free
Timestamp of tree: Tue, 11 Nov 2014 18:15:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p30-r1
dev-lang/perl:            5.20.1-r2
dev-lang/python:          2.7.8, 3.3.5-r1
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.3-r2
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.17-r1 (virtual/os-headers)
sys-libs/glibc:           2.20
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
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"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner --tree --quiet-build --deep --jobs 2"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.leaseweb.com/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://gd.tuwien.ac.at/opsys/linux/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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.de.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bindist bzip2 cli cracklib crypt cxx dri fortran gdbm hardened iconv ipv6 justify mbox mmx modules multilib ncurses nls nptl openmp pam pax_kernel pcre readline session sse sse2 ssl tcpd unicode urandom xattr xtpax zlib" ABI_X86="64" 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" 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Ian Delaney (RETIRED) gentoo-dev 2014-12-17 12:22:08 UTC
Created attachment 391856 [details, diff]
duff -u patch

This looks right.  The new dep x11-libs/libxcb could take [${PYTHON_USEDEP}] however in this package it causes repoman to draw error under py3.4 and pypy, not supporting them.

Give it 2 days.
Comment 2 Mike Gilbert gentoo-dev 2014-12-17 15:45:15 UTC
(In reply to Ian Delaney from comment #1)
> Created attachment 391856 [details, diff] [details, diff]
> duff -u patch

Good catch on the cffi slot-operator dep.

You should probably add x11-libs/libxcb to RDEPEND as well. The cffi wrapper gets linked with libxcb.so.1.

 % scanelf -n /tmp/portage/dev-python/xcffib-0.1.8/work/xcffib-0.1.8-python3_4/lib/_cffi__x7c7c4ebfxc8917695.cpython-34.so
 TYPE   NEEDED FILE
ET_DYN libxcb.so.1,libpython3.4.so.1.0,libc.so.6 /tmp/portage/dev-python/xcffib-0.1.8/work/xcffib-0.1.8-python3_4/lib/_cffi__x7c7c4ebfxc8917695.cpython-34.so
Comment 3 Ian Delaney (RETIRED) gentoo-dev 2014-12-17 22:34:50 UTC
thank you.

eeeer, 

RDEPEND=">=dev-python/cffi-0.8.2:=[${PYTHON_USEDEP}]
                dev-python/six[${PYTHON_USEDEP}]
                x11-libs/libxcb"
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
                x11-libs/libxcb"

There are a couple of ways of doing this which one will we go for?
Comment 4 Ian Delaney (RETIRED) gentoo-dev 2014-12-19 01:20:52 UTC
  19 Dec 2014; Ian Delaney <idella4@gentoo.org> xcffib-0.1.8.ebuild:
  add missed dep, fixes Bug #529056