Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 833816 - dev-python/pypy3-exe-7.3.8: AssertionError: sorry, but this version only supports 100 named groups
Summary: dev-python/pypy3-exe-7.3.8: AssertionError: sorry, but this version only supp...
Status: RESOLVED FIXED
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:
 
Reported: 2022-02-21 06:37 UTC by Joonas Niilola
Modified: 2022-02-22 11:54 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 Joonas Niilola gentoo-dev 2022-02-21 06:37:37 UTC
* Package:    dev-python/pypy3-exe-7.3.8
 * Repository: gentoo
 * Maintainer: python@gentoo.org
 * USE:        abi_x86_64 amd64 bzip2 elibc_glibc jit kernel_linux ncurses userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
 * Checking for at least 6 GiB RAM ...
 [ ok ]
 * Using python2 to perform the translation. Please note that upstream
 * recommends using PyPy for that. If you wish to do so, please install
 * dev-python/pypy and ensure that EPYTHON variable is unset.
 * Checking whether python2_7 is suitable ...
 *   >=dev-lang/python-2.7.5-r2:2.7 ...
 [ ok ]
 * Using python2.7 to build (via PYTHON_COMPAT iteration)
>>> Unpacking source...
>>> Unpacking pypy3.9-v7.3.8-src.tar.bz2 to /var/tmp/portage/dev-python/pypy3-exe-7.3.8/work
>>> Unpacking pypy3.9-gentoo-patches-7.3.8.tar.xz to /var/tmp/portage/dev-python/pypy3-exe-7.3.8/work
>>> Source unpacked in /var/tmp/portage/dev-python/pypy3-exe-7.3.8/work
>>> Preparing source in /var/tmp/portage/dev-python/pypy3-exe-7.3.8/work/pypy3.9-v7.3.8-src ...
 * Applying patches from /var/tmp/portage/dev-python/pypy3-exe-7.3.8/work/pypy3.9-gentoo-patches-7.3.8 ...
 *   0001-distutils-make-OO-enable-both-opt-1-and-opt-2-optimi.patch ...
 [ ok ]
 *   0002-_sysconfigdata-strip-default-CFLAGS-and-OPT.patch ...
 [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/pypy3-exe-7.3.8/work/pypy3.9-v7.3.8-src ...
python2.7 rpython/bin/rpython --batch --source --no-shared -Ojit --jit-backend=auto pypy/goal/targetpypystandalone --withmod-bz2 --withmod-_minimal_curses
[translation:info] 2.7.18 (default, Jan 19 2022, 12:59:54) 
[GCC 11.2.1 20220115]
[platform:msg] Set platform with 'host' cc=None, using cc='x86_64-pc-linux-gnu-gcc', version='Unknown'
[translation:info] Translating target as defined by pypy/goal/targetpypystandalone
[translation] PyPy config object:
[translation] [objspace]
    [std]
        intshortcut = True
        optimized_list_getitem = True
        withspecialisedtuple = True
    [usemodules]
        _abc = True
        _ast = True
        _cffi_backend = True
        _codecs = True
        _collections = True
        _continuation = True
        _cppyy = True
        _csv = True
        _hpy_universal = True
        _jitlog = True
        _lsprof = True
        _md5 = True
        _minimal_curses = True
        _multibytecodec = True
        _multiprocessing = True
        _pickle_support = True
        _posixsubprocess = True
        _pypyjson = True
        _random = True
        _rawffi = True
        _socket = True
        _sre = True
        _string = True
        _testing = True
        _vmprof = True
        _weakref = True
        array = True
        atexit = True
        binascii = True
        bz2 = True
        cmath = True
        cpyext = True
        errno = True
        faulthandler = True
        fcntl = True
        gc = True
        imp = True
        marshal = True
        math = True
        mmap = True
        parser = True
        pwd = True
        pyexpat = True
        pypyjit = True
        select = True
        signal = True
        struct = True
        symbol = True
        termios = True
        thread = True
        time = True
        token = True
        unicodedata = True
        zlib = True
[translation:info] Error:
   File "/var/tmp/portage/dev-python/pypy3-exe-7.3.8/work/pypy3.9-v7.3.8-src/rpython/translator/goal/translate.py", line 286, in main
    default_goal='compile')
   File "/var/tmp/portage/dev-python/pypy3-exe-7.3.8/work/pypy3.9-v7.3.8-src/rpython/translator/driver.py", line 581, in from_targetspec
    spec = target(driver, args)
   File "pypy/goal/targetpypystandalone.py", line 370, in target
    return self.get_entry_point(config)
   File "pypy/goal/targetpypystandalone.py", line 412, in get_entry_point
    self.space = make_objspace(config)
   File "/var/tmp/portage/dev-python/pypy3-exe-7.3.8/work/pypy3.9-v7.3.8-src/pypy/tool/option.py", line 33, in make_objspace
    return StdObjSpace(config)
   File "/var/tmp/portage/dev-python/pypy3-exe-7.3.8/work/pypy3.9-v7.3.8-src/pypy/interpreter/baseobjspace.py", line 440, in __init__
    self.initialize()
   File "/var/tmp/portage/dev-python/pypy3-exe-7.3.8/work/pypy3.9-v7.3.8-src/pypy/objspace/std/objspace.py", line 114, in initialize
    self.make_builtins()
   File "/var/tmp/portage/dev-python/pypy3-exe-7.3.8/work/pypy3.9-v7.3.8-src/pypy/interpreter/baseobjspace.py", line 644, in make_builtins
    self.install_mixedmodule(mixedname)
   File "/var/tmp/portage/dev-python/pypy3-exe-7.3.8/work/pypy3.9-v7.3.8-src/pypy/interpreter/baseobjspace.py", line 681, in install_mixedmodule
    self.setbuiltinmodule(mixedname)
   File "/var/tmp/portage/dev-python/pypy3-exe-7.3.8/work/pypy3.9-v7.3.8-src/pypy/interpreter/baseobjspace.py", line 516, in setbuiltinmodule
    None, None, ["Module"]).Module
   File "/var/tmp/portage/dev-python/pypy3-exe-7.3.8/work/pypy3.9-v7.3.8-src/pypy/module/cpyext/moduledef.py", line 3, in <module>
    from pypy.module.cpyext import api
   File "/var/tmp/portage/dev-python/pypy3-exe-7.3.8/work/pypy3.9-v7.3.8-src/pypy/module/cpyext/api.py", line 793, in <module>
    """, configure=False)
   File "/var/tmp/portage/dev-python/pypy3-exe-7.3.8/work/pypy3.9-v7.3.8-src/rpython/tool/cparser/cts.py", line 90, in parse_source
    self.ctx.parse(source)
   File "/var/tmp/portage/dev-python/pypy3-exe-7.3.8/work/pypy3.9-v7.3.8-src/rpython/tool/cparser/cparser.py", line 395, in parse
    self._internal_parse(csource)
   File "/var/tmp/portage/dev-python/pypy3-exe-7.3.8/work/pypy3.9-v7.3.8-src/rpython/tool/cparser/cparser.py", line 400, in _internal_parse
    ast, macros, csource = self._parse(csource)
   File "/var/tmp/portage/dev-python/pypy3-exe-7.3.8/work/pypy3.9-v7.3.8-src/rpython/tool/cparser/cparser.py", line 345, in _parse
    ast = _get_parser().parse(fullcsource)
   File "/var/tmp/portage/dev-python/pypy3-exe-7.3.8/work/pypy3.9-v7.3.8-src/rpython/tool/cparser/cparser.py", line 54, in _get_parser
    _parser_cache = pycparser.CParser()
   File "/var/tmp/portage/dev-python/pypy3-exe-7.3.8/temp/pymod/cffi/_pycparser/c_parser.py", line 86, in __init__
    outputdir=taboutputdir)
   File "/var/tmp/portage/dev-python/pypy3-exe-7.3.8/temp/pymod/cffi/_pycparser/c_lexer.py", line 65, in build
    self.lexer = lex.lex(object=self, **kwargs)
   File "/var/tmp/portage/dev-python/pypy3-exe-7.3.8/temp/pymod/cffi/_pycparser/ply/lex.py", line 914, in lex
    lexobj.readtab(lextab, ldict)
   File "/var/tmp/portage/dev-python/pypy3-exe-7.3.8/temp/pymod/cffi/_pycparser/ply/lex.py", line 233, in readtab
    titem.append((re.compile(pat, lextab._lexreflags), _names_to_funcs(func_name, fdict)))
   File "/usr/lib64/python2.7/re.py", line 194, in compile
    return _compile(pattern, flags)
   File "/usr/lib64/python2.7/re.py", line 249, in _compile
    p = sre_compile.compile(pattern, flags)
   File "/usr/lib64/python2.7/sre_compile.py", line 583, in compile
    "sorry, but this version only supports 100 named groups"
[translation:ERROR] AssertionError: sorry, but this version only supports 100 named groups
[translation] batch mode, not calling interactive helpers
 * ERROR: dev-python/pypy3-exe-7.3.8::gentoo failed (configure phase):
 *   translation failed
 * 
 * Call stack:
 *     ebuild.sh, line 127:  Called src_configure
 *   environment, line 2518:  Called die
 * The specific snippet of code:
 *       "${@}" || die "translation failed"
 * 
 * If you need support, post the output of `emerge --info '=dev-python/pypy3-exe-7.3.8::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/pypy3-exe-7.3.8::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/pypy3-exe-7.3.8/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/pypy3-exe-7.3.8/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/pypy3-exe-7.3.8/work/pypy3.9-v7.3.8-src'
 * S: '/var/tmp/portage/dev-python/pypy3-exe-7.3.8/work/pypy3.9-v7.3.8-src'


# emerge --info
Portage 3.0.30 (python 3.10.2-final-0, default/linux/amd64/17.1, gcc-11.2.1, glibc-2.34-r8, 5.15.24-gentoo-dist x86_64)
=================================================================
System uname: Linux-5.15.24-gentoo-dist-x86_64-AMD_Ryzen_7_3700X_8-Core_Processor-with-glibc2.34
KiB Mem:    32855796 total,  32812536 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 21 Feb 2022 06:07:06 +0000
Head commit of repository gentoo: 5b4fde3cc1915e7e962552e67f7de4000062481e

sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-lang/perl:             5.34.0-r6::gentoo
dev-lang/python:           2.7.18_p13::gentoo, 3.8.12_p1-r2::gentoo, 3.9.10-r1::gentoo, 3.10.2-r1::gentoo
dev-util/meson:            0.60.3::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.37_p1-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/gcc:             11.2.1_p20220115::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.16::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
    priority: -1000

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 /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=y --autounmask-continue --autounmask-use=y --autounmask-write --buildpkg-exclude virtual --buildpkg-exclude acct-* --buildpkg-exclude sys-kernel --nospinner --jobs=8 --usepkg"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH 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="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="https://distfiles.gentoo.org"
LANG="C.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS=" en en_US en-US fi sv "
MAKEOPTS="-j16"
PKGDIR="/var/cache/binpkgs"
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="acl amd64 bzip2 cli crypt dbus dri elogind fortran gdbm iconv ipv6 libglvnd libtirpc multilib ncurses nptl openmp openrc pam pcre readline seccomp split-usr ssl udev unicode xattr zlib" ABI_X86="64 32" ADA_TARGET="gnat_2020" 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 sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en en_US en-US fi sv" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU BPF" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="pypy3 python3_8 python3_9 python3_10" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SHELL, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-02-21 09:10:56 UTC
Yeah, it's been reported yesterday and I've passed it on to upstream.  For the time being, the workaround is to either install dev-python/pypy first, or to use pypy3-exe-bin.  In the end, we may end up depending on dev-python/pypy unconditionally.
Comment 2 Larry the Git Cow gentoo-dev 2022-02-22 11:54:38 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=778d3a3db25ea46f74de61b789adcfaff98d53f8

commit 778d3a3db25ea46f74de61b789adcfaff98d53f8
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2022-02-22 11:03:11 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2022-02-22 11:54:35 +0000

    dev-python/pypy3-exe: Fix translating with python2.7
    
    Copy the temporary cffi._pycparser module into "pycparser".  For some
    reason, when RPython imports it as "cffi._pycparser" rather
    than "pycparser", it creates humongous regexps that hit Python 2.7's
    group limit.  Magic.
    
    Closes: https://bugs.gentoo.org/833816
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/pypy3-exe/pypy3-exe-7.3.8.ebuild | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)