Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 664138 - net-im/gajim-0.16.9: pycparser.ply.yacc.YaccError: Unable to build parser
Summary: net-im/gajim-0.16.9: pycparser.ply.yacc.YaccError: Unable to build parser
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Amadeusz Żołnowski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-20 18:35 UTC by manwe
Modified: 2019-05-29 15:20 UTC (History)
2 users (show)

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


Attachments
build log (net-im:gajim-0.16.9:20180820-203100.log,307.02 KB, text/x-log)
2018-08-20 20:37 UTC, manwe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description manwe 2018-08-20 18:35:18 UTC
After last -uDN @world:

$ /usr/bin/gajim
/usr/lib64/python2.7/site-packages/pycparser/c_parser.py:20: RuntimeWarning: parsing methods must have __doc__ for pycparser to work properly
  class CParser(PLYParser):
WARNING: There was a problem loading the table file: KeyError('p_direct_id_declarator_1',)
WARNING: /usr/lib64/python2.7/site-packages/pycparser/c_parser.py:513: No documentation string specified in function 'p_translation_unit_or_empty' (ignored)
WARNING: /usr/lib64/python2.7/site-packages/pycparser/c_parser.py:522: No documentation string specified in function 'p_translation_unit_1' (ignored)
WARNING: /usr/lib64/python2.7/site-packages/pycparser/c_parser.py:529: No documentation string specified in function 'p_translation_unit_2' (ignored)
[... lots of similiar warnings ...]
WARNING: /usr/lib64/python2.7/site-packages/pycparser/c_parser.py:1749: No documentation string specified in function 'p_empty' (ignored)
ERROR: start symbol translation_unit_or_empty undefined
Traceback (most recent call last):
  File "gajim.py", line 455, in <module>
    from gui_interface import Interface
  File "/usr/lib64/python2.7/site-packages/gajim/gui_interface.py", line 61, in <module>
    import message_control
  File "/usr/lib64/python2.7/site-packages/gajim/message_control.py", line 34, in <module>
    from common.stanza_session import EncryptedStanzaSession, ArchivingStanzaSession
  File "/usr/lib64/python2.7/site-packages/gajim/common/stanza_session.py", line 44, in <module>
    from Crypto.Cipher import AES
  File "/usr/lib64/python2.7/site-packages/Crypto/Cipher/__init__.py", line 3, in <module>
    from Crypto.Cipher._mode_ecb import _create_ecb_cipher
  File "/usr/lib64/python2.7/site-packages/Crypto/Cipher/_mode_ecb.py", line 29, in <module>
    from Crypto.Util._raw_api import (load_pycryptodome_raw_lib,
  File "/usr/lib64/python2.7/site-packages/Crypto/Util/_raw_api.py", line 106, in <module>
    Array = ffi.new("uint8_t[1]").__class__.__bases__
  File "/usr/lib64/python2.7/site-packages/cffi/api.py", line 257, in new
    cdecl = self._typeof(cdecl)
  File "/usr/lib64/python2.7/site-packages/cffi/api.py", line 177, in _typeof
    result = self._typeof_locked(cdecl)
  File "/usr/lib64/python2.7/site-packages/cffi/api.py", line 162, in _typeof_locked
    type = self._parser.parse_type(cdecl)
  File "/usr/lib64/python2.7/site-packages/cffi/cparser.py", line 476, in parse_type
    return self.parse_type_and_quals(cdecl)[0]
  File "/usr/lib64/python2.7/site-packages/cffi/cparser.py", line 479, in parse_type_and_quals
    ast, macros = self._parse('void __dummy(\n%s\n);' % cdecl)[:2]
  File "/usr/lib64/python2.7/site-packages/cffi/cparser.py", line 276, in _parse
    ast = _get_parser().parse(fullcsource)
  File "/usr/lib64/python2.7/site-packages/cffi/cparser.py", line 45, in _get_parser
    _parser_cache = pycparser.CParser()
  File "/usr/lib64/python2.7/site-packages/pycparser/c_parser.py", line 117, in __init__
    outputdir=taboutputdir)
  File "/usr/lib64/python2.7/site-packages/pycparser/ply/yacc.py", line 3352, in yacc
    raise YaccError('Unable to build parser')
pycparser.ply.yacc.YaccError: Unable to build parser

Only things around python in last update were:
$ genlop -l | grep -E 'Aug.19.*python'
     Sun Aug 19 18:58:20 2018 >>> dev-python/mako-1.0.7
     Sun Aug 19 19:52:15 2018 >>> dev-python/python-dateutil-2.7.3
     Sun Aug 19 20:06:57 2018 >>> dev-python/PyQt5-5.10.1-r1
     Sun Aug 19 20:24:23 2018 >>> dev-python/python-gnupg-0.4.3

I've tried downgrading python-gnupg, python-dateutil and mako but it didn't help. Ideas?
Comment 1 Jonas Stein gentoo-dev 2018-08-20 19:32:18 UTC
Thank you for the report. Please recompile and *attach* the logfiles and 
paste the emerge info as described on
https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket
The logs must be part of the ticket, but not on external websites.
Please reopen this ticket (Status:unconfirmed) afterwards.
Comment 2 manwe 2018-08-20 20:34:25 UTC
# emerge --ignore-default-opts --info
Portage 2.3.47 (python 3.6.6-final-0, default/linux/amd64/17.0, gcc-7.3.0, glibc-2.27-r6, 4.17.16-gentoo-dtop-v1 x86_64)
=================================================================
System uname: Linux-4.17.16-gentoo-dtop-v1-x86_64-Intel-R-_Core-TM-_i7-4790K_CPU_@_4.00GHz-with-gentoo-2.6
KiB Mem:    15900336 total,   4780104 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of repository gentoo: Sun, 19 Aug 2018 15:00:01 +0000
Head commit of repository gentoo: 86f0939a393f0657e69968d32d8637314d08eb74
sh bash 4.4_p23
ld GNU ld (Gentoo 2.31.1 p1) 2.31.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.4_p23::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.5.5-r1::gentoo, 3.6.6::gentoo
dev-util/cmake:           3.12.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.38.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1::gentoo
sys-devel/gcc:            7.3.0-r4::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r3::gentoo
sys-kernel/linux-headers: 4.17::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=corei7 -mtune=generic -mindirect-branch=thunk"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /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.0/ext-active/ /etc/php/apache2-php7.1/ext-active/ /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/php/cli-php7.2/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="-O2 -pipe -march=corei7 -mtune=generic -mindirect-branch=thunk"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--verbose --ask --tree --keep-going --usepkg --with-bdeps y --buildpkg --jobs 2"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs 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 userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="pl_PL.utf8"
LC_ALL="pl_PL.utf8"
LDFLAGS="-Wl,--as-needed -Wl,-O1"
LINGUAS="pl"
MAKEOPTS="-j5"
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 aalib acl acpi aiglx alsa amd64 apm bash-completion bcmath berkdb bluetooth bmp branding browserplugin bzip2 calendar cdinstall cdr cleartype cli crypt cups cxx dbus directfb dri dvd dvdr dvdread encode fbcon ffmpeg flac fortran ftp gd-exteral gdbm gif glamor glut gpm gtk2 gtk3 http2 iconv ieee1394 jabber javascript jpeg libnotify libtirpc libwww mmx modules mozilla mp3 mpd mpeg3 multilib mysql ncurses newspr nls nptl nptlonly nsplugin ogg opengl openmp pam pam_console pcre pdf perl php png pulseaudio readline realip seccomp smp soap spell sse sse2 sse3 sse4_1 ssl ssse3 svg tcpd threads tiff truetype truetype-fonts unicode usb userlocales vdpau vhosts vim wifi win32codecs with-x wmf xattr xcomposite xinerama xml xmpp xorg xosd xv xvid zlib" ABI_X86="64" ALSA_CARDS="usb-audio 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="karbon plan sheets stage words" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" 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="mouse keyboard evdev synaptics" KERNEL="linux" L10N="pl" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gzip limit_req limit_conn map memcached gzip_static proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi addition fancyindex geoip upload upload_progress stub_status headers_more echo sub spdy metrics auth_request enmemcache tcpproxy v2 set_misc ndk gunzip lua lua_upstream redis upstream_hash upstream_keepalive upstream_least_conn upstream_zone lua_upstream upstream_check rdns realip dav dav_ext" NGINX_MODULES_MAIL="imap pop3 smtp" NGINX_MODULES_STREAM="lua map return upstream_hash upstream_least_conn upstream_zone" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0 php7-1 php7-2" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby22 ruby25" USERLAND="GNU" VIDEO_CARDS="intel i965 radeon radeonsi amdgpu" 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, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 manwe 2018-08-20 20:37:10 UTC
Created attachment 544218 [details]
build log
Comment 4 Sergey 'L29Ah' Alirzaev 2018-09-12 06:32:25 UTC
https://dev.gajim.org/gajim/gajim/issues/9340#note_189294

What do i downgrade for gajim to work?
Comment 5 Hanno Böck gentoo-dev 2019-05-29 15:20:07 UTC
I'm pretty sure this is obsolete, as we have a completely new version (with a new python version) now in tree. Please re-open if the problem is still there.