Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 628550 - dev-python/pycryptodome-3.4.6: breaks portage compeltely
Summary: dev-python/pycryptodome-3.4.6: breaks portage compeltely
Status: RESOLVED DUPLICATE of bug 628386
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-21 19:16 UTC by Toralf Förster
Modified: 2017-08-23 09:30 UTC (History)
3 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 Toralf Förster gentoo-dev 2017-08-21 19:16:16 UTC
mr-fox / # 
    # portageq best_visible / x11-misc/kapow
    
Traceback (most recent call last):
      File "/usr/lib64/python3.4/site-packages/cffi/cparser.py", line 5, in <module>
        from . import _pycparser as pycparser
    ImportError: cannot import name '_pycparser'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/usr/lib/python-exec/python3.4/portageq", line 1453, in <module>
        sys.exit(main(sys.argv))
      File "/usr/lib/python-exec/python3.4/portageq", line 1433, in main
        retval = function(args)
      File "/usr/lib/python-exec/python3.4/portageq", line 514, in best_visible
        db.aux_get(cpv, Package.metadata_keys, myrepo=repo)))
      File "/usr/lib64/python3.4/site-packages/portage/dbapi/porttree.py", line 520, in aux_get
        mydata, ebuild_hash = self._pull_valid_cache(mycpv, myebuild, mylocation)
      File "/usr/lib64/python3.4/site-packages/portage/dbapi/porttree.py", line 474, in _pull_valid_cache
        if auxdb.validate_entry(metadata, ebuild_hash, eclass_db):
      File "/usr/lib64/python3.4/site-packages/portage/cache/template.py", line 246, in validate_entry
        if self._validate_entry(chf_type, entry, ebuild_hash, eclass_db):
      File "/usr/lib64/python3.4/site-packages/portage/cache/template.py", line 258, in _validate_entry
        if entry_hash != getattr(ebuild_hash, chf_type):
      File "/usr/lib64/python3.4/site-packages/portage/eclass_cache.py", line 51, in __getattr__
        if hashname not in checksum.get_valid_checksum_keys():
      File "/usr/lib64/python3.4/site-packages/portage/proxy/objectproxy.py", line 22, in __getattribute__
        result = object.__getattribute__(self, '_get_target')()
      File "/usr/lib64/python3.4/site-packages/portage/proxy/lazyimport.py", line 107, in _get_target
        __import__(name)
      File "/usr/lib64/python3.4/site-packages/portage/checksum.py", line 195, in <module>
        from Crypto.Hash import BLAKE2b
      File "/usr/lib64/python3.4/site-packages/Crypto/Hash/BLAKE2b.py", line 64, in <module>
        from Crypto.Util._raw_api import (load_pycryptodome_raw_lib,
      File "/usr/lib64/python3.4/site-packages/Crypto/Util/_raw_api.py", line 39, in <module>
        ffi = FFI()
      File "/usr/lib64/python3.4/site-packages/cffi/api.py", line 63, in __init__
        from . import cparser
      File "/usr/lib64/python3.4/site-packages/cffi/cparser.py", line 7, in <module>
        import pycparser
      File "/usr/lib64/python3.4/site-packages/pycparser/__init__.py", line 14, in <module>
        from .c_parser import CParser
      File "/usr/lib64/python3.4/site-packages/pycparser/c_parser.py", line 20, in <module>
        class CParser(PLYParser):
      File "/usr/lib64/python3.4/site-packages/pycparser/plyparser.py", line 95, in template
        _create_param_rules(cls, method)
      File "/usr/lib64/python3.4/site-packages/pycparser/plyparser.py", line 112, in _create_param_rules
        param_rule.__doc__ = func.__doc__.replace('xxx', xxx).replace('yyy', yyy)
    AttributeError: 'NoneType' object has no attribute 'replace'
    

mr-fox / # emerge -C dev-python/pycryptodome
     * This action can remove important packages! In order to be safer, use
     * `emerge -pv --depclean <atom>` to check for reverse dependencies before
     * removing packages.

     dev-python/pycryptodome
        selected: 3.4.6 
       protected: none 
         omitted: none 

    All selected packages: =dev-python/pycryptodome-3.4.6

    >>> 'Selected' packages are slated for removal.
    >>> 'Protected' and 'omitted' packages will not be removed.

    >>> Unmerging (1 of 1) dev-python/pycryptodome-3.4.6...

     * GNU info directory index is up-to-date.

mr-fox / # portageq best_visible / x11-misc/kapow
    x11-misc/kapow-1.5.3
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-08-21 19:29:14 UTC
Please try if direct 'python -c "import Crypto.Hash.BLAKE2b"' fails. Also, I need versions of cffi and pycparser.
Comment 2 Toralf Förster gentoo-dev 2017-08-21 20:03:51 UTC
mr-fox / # emerge --info cffi --verbose=n
Portage 2.3.8 (python 3.4.6-final-0, default/linux/amd64/17.0, gcc-6.4.0, glibc-2.25-r4, 4.12.8 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.12.8-x86_64-Intel-R-_Core-TM-_i7-3930K_CPU_@_3.20GHz-with-gentoo-2.4.1
KiB Mem:    65275156 total,   4065656 free
KiB Swap:   67108860 total,  60674896 free
Timestamp of repository gentoo: Mon, 21 Aug 2017 17:51:24 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.2::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo
dev-util/cmake:           3.9.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r1::gentoo
sys-apps/openrc:          0.29::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.28.1::gentoo
sys-devel/gcc:            6.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r4::gentoo
Repositories:                                                                                                   
                                                                                                                
gentoo                                                                                                          
    location: /usr/portage                                                                                      
    sync-type: rsync                                                                                            
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: 1

tinderbox
    location: /tmp/tb/data/portage
    masters: gentoo
    priority: 2

local
    location: /usr/local/portage
    masters: gentoo
    priority: 99

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -Wall"
CHOST="x86_64-pc-linux-gnu"
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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-Werror=terminate -O2 -pipe -march=native"
DISTDIR="/var/tmp/distfiles"
EMERGE_DEFAULT_OPTS="--verbose --verbose-conflicts --color=n --nospinner --tree --quiet-build"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox 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://ftp.uni-erlangen.de/pub/mirrors/gentoo rsync://mirror.netcologne.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gor.bytemark.co.uk/gentoo/ rsync://ftp.snt.utwente.nl/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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="3ware acl amd64 anonren antiboss app bdf berkdb btrfs bzip2 cautious cli corosync cracklib crypt cxx debug-malloc dhcp dovecot dri drivingdistance dvi2tty efi fcgi fft fingerprint fortran frecover gdbm hexen highload-locks iconv ipv4 ipv6 jdbc kwallet lights messages modules multilib mythgallery na_tvmedia ncurses networkmanager nls nptl openmp pam pcre pjproject plugin-btscan pygobject queue-python quicksearch rad1 readline readpcap rfc5424hmac sdlsound se_swedb seccomp sensord session ssl ssp stdlog tcpd tcpdump tdb texi2html tool totp touch tts tv_pick_cgi uinput unicode webrtc webstart wireshark-plugins xattr xine xmpp xslt yahoo-geo ziffy 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx popcnt sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" ENLIGHTENMENT_MODULES="bluez4 temperature" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" 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-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-python/cffi-1.10.0::gentoo was built with the following:
USE="-doc -test" ABI_X86="(64)" PYTHON_TARGETS="python2_7 python3_4 -python3_5 -python3_6"






mr-fox / # emerge --info pyparser --verbose=n

emerge: there are no ebuilds to satisfy "pyparser".

emerge: searching for similar names...
emerge: Maybe you meant any of these: dev-python/pycparser, dev-ruby/parser, dev-haskell/polyparse?
mr-fox / # emerge --info pycparser --verbose=n
Portage 2.3.8 (python 3.4.6-final-0, default/linux/amd64/17.0, gcc-6.4.0, glibc-2.25-r4, 4.12.8 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.12.8-x86_64-Intel-R-_Core-TM-_i7-3930K_CPU_@_3.20GHz-with-gentoo-2.4.1
KiB Mem:    65275156 total,   3973544 free
KiB Swap:   67108860 total,  60673872 free
Timestamp of repository gentoo: Mon, 21 Aug 2017 17:51:24 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.2::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo
dev-util/cmake:           3.9.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r1::gentoo
sys-apps/openrc:          0.29::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.28.1::gentoo
sys-devel/gcc:            6.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: 1

tinderbox
    location: /tmp/tb/data/portage
    masters: gentoo
    priority: 2

local
    location: /usr/local/portage
    masters: gentoo
    priority: 99

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -Wall"
CHOST="x86_64-pc-linux-gnu"
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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-Werror=terminate -O2 -pipe -march=native"
DISTDIR="/var/tmp/distfiles"
EMERGE_DEFAULT_OPTS="--verbose --verbose-conflicts --color=n --nospinner --tree --quiet-build"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox 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://ftp.uni-erlangen.de/pub/mirrors/gentoo rsync://mirror.netcologne.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gor.bytemark.co.uk/gentoo/ rsync://ftp.snt.utwente.nl/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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="3ware acl amd64 anonren antiboss app bdf berkdb btrfs bzip2 cautious cli corosync cracklib crypt cxx debug-malloc dhcp dovecot dri drivingdistance dvi2tty efi fcgi fft fingerprint fortran frecover gdbm hexen highload-locks iconv ipv4 ipv6 jdbc kwallet lights messages modules multilib mythgallery na_tvmedia ncurses networkmanager nls nptl openmp pam pcre pjproject plugin-btscan pygobject queue-python quicksearch rad1 readline readpcap rfc5424hmac sdlsound se_swedb seccomp sensord session ssl ssp stdlog tcpd tcpdump tdb texi2html tool totp touch tts tv_pick_cgi uinput unicode webrtc webstart wireshark-plugins xattr xine xmpp xslt yahoo-geo ziffy 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx popcnt sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" ENLIGHTENMENT_MODULES="bluez4 temperature" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" 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-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-python/pycparser-2.18::gentoo was built with the following:
USE="-test" ABI_X86="(64)" PYTHON_TARGETS="python2_7 python3_4 -pypy -pypy3 -python3_5 -python3_6"
Comment 3 Toralf Förster gentoo-dev 2017-08-21 20:04:39 UTC
mr-fox / # python -c "import Crypto.Hash.BLAKE2b"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named 'Crypto'
Comment 4 Toralf Förster gentoo-dev 2017-08-21 20:15:45 UTC
Three's a pattern:

the other image where this happened, is an 17.* profile too : 
17.0-desktop-plasma_20170817-212739
Comment 5 Toralf Förster gentoo-dev 2017-08-21 20:19:21 UTC
And at that image I had to unmerge pycparser (pcryptodome wasn't installed) to get portageq be happy again :



mr-fox / # emerge -C dev-python/pycparser
 * This action can remove important packages! In order to be safer, use
 * `emerge -pv --depclean <atom>` to check for reverse dependencies before
 * removing packages.

 dev-python/pycparser
    selected: 2.18 
   protected: none 
     omitted: none 

All selected packages: =dev-python/pycparser-2.18

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

>>> Unmerging (1 of 1) dev-python/pycparser-2.18...

 * GNU info directory index is up-to-date.
mr-fox / # 
mr-fox / # 
mr-fox / # 
mr-fox / # 
mr-fox / # portageq best_visible / x11-misc/kapow
x11-misc/kapow-1.5.3
mr-fox / # 
mr-fox / # 
mr-fox / # 
mr-fox / # 
mr-fox / # emerge --info cffi --verbose=n
Portage 2.3.8 (python 3.4.6-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-6.4.0, glibc-2.25-r4, 4.12.8 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.12.8-x86_64-Intel-R-_Core-TM-_i7-3930K_CPU_@_3.20GHz-with-gentoo-2.4.1
KiB Mem:    65275156 total,   2868228 free
KiB Swap:   67108860 total,  60654160 free
Timestamp of repository gentoo: Mon, 21 Aug 2017 17:51:24 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29 p1.0) 2.29
ccache version 3.3.4 [disabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.2::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo
dev-util/ccache:          3.3.4::gentoo
dev-util/cmake:           3.9.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r1::gentoo
sys-apps/openrc:          0.29::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.13.4-r1::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.29::gentoo
sys-devel/gcc:            6.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: 1

tinderbox
    location: /tmp/tb/data/portage
    masters: gentoo
    priority: 2

local
    location: /usr/local/portage
    masters: gentoo
    priority: 99

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -Wall"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
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/apache2-php7.1/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.1/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="-Werror=terminate -O2 -pipe -march=native"
DISTDIR="/var/tmp/distfiles"
EMERGE_DEFAULT_OPTS="--verbose --verbose-conflicts --color=n --nospinner --tree --quiet-build"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox 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://ftp.uni-erlangen.de/pub/mirrors/gentoo rsync://mirror.netcologne.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gor.bytemark.co.uk/gentoo/ rsync://ftp.snt.utwente.nl/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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi activities alsa amd64 appindicator awt berkdb bluetooth branding bzip2 cairo cdda cdp cdr cinder cli consolekit cracklib crashreporter crypt cups cxx datafiles datahub dbus declarative distinct-l dmenu dri driver ds9097u dts dvd dvdr emboss encode exif fam fbcon filemagic firefox flac float fortran gdbm gif glamor glance glew gpm hardfp help iconv infowidget ipafont ipv6 jpeg kafka kde kipi kwallet lastgenre lcms ldap libnotify mad make max-idx-128 mdblookup memoryview mng modules mp3 mp4 mpeg multilib mwaw ncurses nls nptl ogg okteta opengl openmp openni opl3-musicpack pam pango pcre pdf phonon plasma png policykit ppds pvr qml qsui qt3support qt4 qt5 rappor readline sdl seccomp semantic-desktop session sgconf spell ssl ssp startup-notification strongswan_plugins_systime-fix support_rdrand svg sybase-ct tcpd tiff truetype udev udisks unicode unsupported upower ups_drivers_bestfcom ups_drivers_gamatronic ups_drivers_optiups usb vchroot vix vorbis widgets wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid yaepg zlib" ABI_X86="64" ALSA_CARDS="hda-intel" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx popcnt sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev libinput" 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-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="intel" 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-python/cffi-1.10.0::gentoo was built with the following:
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-08-21 20:55:57 UTC
AFAICS the only change in 17.0 profiles is forcing gcc-6+... so would it be pycparser/cffi incompatibility with new gcc? Could you include the error message for the system without pycryptodome?
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-08-21 21:11:10 UTC

*** This bug has been marked as a duplicate of bug 628386 ***
Comment 8 Toralf Förster gentoo-dev 2017-08-22 17:41:54 UTC
(In reply to Michał Górny from comment #7)
at the image 17.0_20170812-170113 even without pycryptodome being installed I run into the issue if dev-python/pycparser was installed.
Unmerging it solved it.

SO we have few image to make few te4sts.
What do you want to know ?
Comment 9 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-08-22 19:12:11 UTC
If you have some time and spare resources, I'd like to get a rundown of the all pycparser versions combined with different gcc versions, i.e. which combinations work and which fail.
Comment 10 Toralf Förster gentoo-dev 2017-08-22 19:32:06 UTC
Hh, I do have gcc-6.4.0 and pycparser-2.18 at 8 different unstable images (4x 13.0, 4x 17.0), just at (till now 3) 17.0-profiles it does fail.
Looks for me rather like an issue with "(pie)" of the GCC at 17.0, or ?
Comment 11 Mike Gilbert gentoo-dev 2017-08-22 20:13:19 UTC
Adding toolchain. This seems like some PIE related issue causing missing symbols in python extension modules.
Comment 12 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-08-22 21:49:27 UTC
If you could just check 2.17 for completeness, that would also help rule out one possibility.
Comment 13 Sergei Trofimovich (RETIRED) gentoo-dev 2017-08-22 22:17:37 UTC
I can reproduce it locally on amd64/gcc-6.4.0/cffi-1.10.0.
pycparse-2.17 works, pycparser-2.18 does not work.

Default profile:
[1]   default/linux/amd64/13.0 *
Comment 14 Mike Gilbert gentoo-dev 2017-08-22 22:37:18 UTC
I am *unable* to reproduce this with the following config:

default/linux/amd64/13.0/desktop/plasma/systemd

sys-devel/gcc-6.4.0
dev-lang/python-3.5.3
dev-python/pycparser-2.18
dev-python/cffi-1.10.0
Comment 15 Sergei Trofimovich (RETIRED) gentoo-dev 2017-08-23 09:23:48 UTC
(In reply to Mike Gilbert from comment #14)
> I am *unable* to reproduce this with the following config:
> 
> default/linux/amd64/13.0/desktop/plasma/systemd
> 
> sys-devel/gcc-6.4.0
> dev-lang/python-3.5.3
> dev-python/pycparser-2.18
> dev-python/cffi-1.10.0

I have dev-python/pycryptodome installed and run portage with python-3.4.
Comment 16 Sergei Trofimovich (RETIRED) gentoo-dev 2017-08-23 09:30:45 UTC
(In reply to Sergei Trofimovich from comment #15)
> (In reply to Mike Gilbert from comment #14)
> > I am *unable* to reproduce this with the following config:
> > 
> > default/linux/amd64/13.0/desktop/plasma/systemd
> > 
> > sys-devel/gcc-6.4.0
> > dev-lang/python-3.5.3
> > dev-python/pycparser-2.18
> > dev-python/cffi-1.10.0

Also make sure you don't have pygcrypt installed as it's another short-circuit in

https://github.com/gentoo/portage/blob/master/pym/portage/checksum.py#L193