app-portage/layman-2.3.0 fails to compile with dev-python/pycparser-2.11, downgrading to dev-python/pycparser-2.10 solves the issue Reproducible: Always Steps to Reproduce: 1. upgrade to dev-python/pycparser-2.11 2. emerge layman 3. Actual Results: * python2_7: running distutils-r1_run_phase distutils-r1_python_compile /usr/bin/python2.7 setup.py build Traceback (most recent call last): File "setup.py", line 12, in <module> from layman.version import VERSION File "./layman/__init__.py", line 13, in <module> from layman.api import LaymanAPI File "./layman/api.py", line 25, in <module> from layman.remotedb import RemoteDB File "./layman/remotedb.py", line 46, in <module> from sslfetch.connections import Connector File "/usr/lib64/python2.7/site-packages/sslfetch/connections.py", line 39, in <module> import requests File "/usr/lib64/python2.7/site-packages/requests/__init__.py", line 53, in <module> from .packages.urllib3.contrib import pyopenssl File "/usr/lib64/python2.7/site-packages/requests/packages/urllib3/contrib/pyopenssl.py", line 53, in <module> import OpenSSL.SSL File "/usr/lib64/python2.7/site-packages/OpenSSL/__init__.py", line 8, in <module> from OpenSSL import rand, crypto, SSL File "/usr/lib64/python2.7/site-packages/OpenSSL/rand.py", line 11, in <module> from OpenSSL._util import ( File "/usr/lib64/python2.7/site-packages/OpenSSL/_util.py", line 3, in <module> from cryptography.hazmat.bindings.openssl.binding import Binding File "/usr/lib64/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 60, in <module> class Binding(object): File "/usr/lib64/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 109, in Binding libraries=_get_libraries(sys.platform) File "/usr/lib64/python2.7/site-packages/cryptography/hazmat/bindings/utils.py", line 97, in build_ffi_for_binding extra_link_args=extra_link_args, File "/usr/lib64/python2.7/site-packages/cryptography/hazmat/bindings/utils.py", line 106, in build_ffi ffi.cdef(cdef_source) File "/usr/lib64/python2.7/site-packages/cffi/api.py", line 106, in cdef self._parser.parse(csource, override=override, packed=packed) File "/usr/lib64/python2.7/site-packages/cffi/cparser.py", line 165, in parse self._internal_parse(csource) File "/usr/lib64/python2.7/site-packages/cffi/cparser.py", line 184, in _internal_parse self._parse_decl(decl) File "/usr/lib64/python2.7/site-packages/cffi/cparser.py", line 256, in _parse_decl self._get_struct_union_enum_type('struct', node) File "/usr/lib64/python2.7/site-packages/cffi/cparser.py", line 434, in _get_struct_union_enum_type return self._structnode2type[type] File "/usr/lib64/python2.7/weakref.py", line 315, in __getitem__ return self.data[ref(key)] TypeError: cannot create weak reference to 'Struct' object brain subjects # emerge --info Portage 2.2.18 (python 3.3.5-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.9.2, glibc-2.20-r2, 4.0.1 x86_64) ================================================================= System uname: Linux-4.0.1-x86_64-AMD_FX-tm-8350_Eight-Core_Processor-with-gentoo-2.2 KiB Mem: 16406804 total, 5143516 free KiB Swap: 12290044 total, 12290044 free Timestamp of repository gentoo: Wed, 06 May 2015 00:15:01 +0000 sh bash 4.3_p33-r2 ld GNU ld (Gentoo 2.25 p1.0) 2.25 app-shells/bash: 4.3_p33-r2::gentoo dev-java/java-config: 2.2.0::gentoo dev-lang/perl: 5.20.2::gentoo dev-lang/python: 2.7.9-r2::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo dev-util/cmake: 3.2.1::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.15::gentoo sys-apps/sandbox: 2.6-r1::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r1::gentoo sys-devel/automake: 1.10.3-r1::gentoo, 1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.25::gentoo sys-devel/gcc: 4.8.4::gentoo, 4.9.2::gentoo sys-devel/gcc-config: 1.8::gentoo sys-devel/libtool: 2.4.6-r1::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.0::gentoo (virtual/os-headers) sys-libs/glibc: 2.20-r2::gentoo Repositories: x11 location: /var/gentoo/repositories/layman/x11 masters: gentoo priority: 0 kde location: /var/gentoo/repositories/layman/kde masters: gentoo priority: 1 sunrise location: /var/gentoo/repositories/layman/sunrise masters: gentoo priority: 2 science location: /var/gentoo/repositories/layman/science masters: gentoo priority: 3 steam-overlay location: /var/gentoo/repositories/layman/steam-overlay masters: gentoo priority: 4 mozilla location: /var/gentoo/repositories/layman/mozilla masters: gentoo priority: 5 x-florian-overlay location: /etc/portage/florian-overlay masters: gentoo priority: 6 gentoo location: /var/gentoo/repositories/portage sync-type: rsync sync-uri: rsync://stimpy/stimpy-portage priority: 9999 Installed sets: @kdeadmin, @kdeartwork, @kdebase, @kdegraphics, @kdeutils ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=bdver2 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=bdver2 -O2 -pipe" DISTDIR="/var/gentoo/distfiles/" EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=n" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://gentoo.inode.at/ http://gentoo.mirror.web4u.cz/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://de-mirror.org/gentoo/ http://mirror.netcologne.de/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/" LANG="de_AT.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,now,--as-needed,-O1,--hash-style=gnu,--sort-common" PKGDIR="/var/gentoo/packages/amd64/" 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="/usr/portage" USE="3dnow 3dnowext X \ a52 aac aalib acl acpi aes alsa amd64 apache2 atlas audiofile authdaemond avi avx bash-completion berkdb bindist blas branding bzip2 bzlib cairo calendar cdda cddb cdparanoia cdr cli consolekit cracklib crypt cups cxx dbus declarative dga divx4linux dri dts dvb dvd dvdr dvdread emboss encode exif f77 fam fbcon ffmpeg fftw firefox flac fma3 fma4 fortran ftp gallium gcj gdbm gif ginac glamor gphoto2 gpm gps gtk gtk3 i-doc iconv icq imap ipv6 java6 javascript jpeg jpeg2k junit kde kipi lapack latex lcms libnotify libwww lm_sensors mad maildir mercurial mime mmap mmx mmxext mng modules mozilla mozsvg mp3 mp4 mpeg msn multilib mysqli ncurses network networkmanager nls nptl nsplugin obcd objc ogg openexr opengl openmp pam pam_timestamp pango pch pcre pda pdf pdflib phonon pic pie plasma plotutils png policykit popcnt postgres postscript ppds private-headers python qt3support qt4 quicktime readline ruby samba sasl scanner sdl semantic-desktop session skey slp smp sndfile snmp sox speex spell sse sse2 sse3 sse4_1 sse4_2 sse4a ssl ssse3 startup-notification svg sysfs tbb tcpd theora threads tiff truetype udev udisks unicode upnp upnp-av upower usb v4l2 vcd vdpau vorbis win32codecs wmf wxwidgets x264 xanim xattr xcb xcomposite xine xinerama xml xop xprint xscreensaver xulrunner xv xvid zlib zvbi" ABI_X86="64 32" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi krita stage tables words sheets plan" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx fma3 fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" DVB_CARDS="usb-dib0700" ELIBC="glibc" ENLIGHTENMENT_MODULES="backlight clock comp conf-applications conf-dialogs conf-display conf-edgebindings conf-interaction conf-intl conf-keybindings conf-menus conf-paths conf-performance conf-randr conf-shelves conf-theme conf-window-manipulation conf-window-remembers connman cpufreq dropshadow everything fileman fileman-opinfo gadman ibar ibox illume2 mixer msgbus notification pager quickaccess shot start syscon systray tasks temperature tiling winlist wizard xkbswitch" 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer nlpsolver pdfimport" LINGUAS="en_GB en de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2 python3_3" QEMU_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby19 ruby20 ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="r600 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.3" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
ok, this is already fixed with dev-python/pycparser-2.12 see also: https://github.com/eliben/pycparser/issues/76