Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 871969 - dev-python/pycparser-2.21-r1 fails to compile cannot build lextab.
Summary: dev-python/pycparser-2.21-r1 fails to compile cannot build lextab.
Status: RESOLVED DUPLICATE of bug 701878
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-09-20 02:10 UTC by Don Bishop
Modified: 2023-02-21 02:41 UTC (History)
1 user (show)

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


Attachments
Build Log (dev-python:pycparser-2.21-r1:20221015-191232.log,16.72 KB, text/plain)
2022-10-15 19:22 UTC, Gary E. Miller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Don Bishop 2022-09-20 02:10:56 UTC
routine package install. package failed with lextab error in build log. (gnuradio, kicad, soapysdr) brought in dependency. this is a new new gentoo install).

pycparser seems to be missing a dependency check.

after --skipfirst to sidestep pycparser finished, i issued emerge -O1 pycparser and the pycparser built and installed without error.

Reproducible: Always

Steps to Reproduce:
1.seems to be dependency related. simply emerge pycparser.
2.
3.
Actual Results:  
pycparser failed with lextab error until other packages not in its dependency hierarchy installed, it installed fine.


here are the packages that I installed after pycparser failed, and when this list completed, pycparser installed without incident. I am not sure which is the offender, but it's probably in this list somewhere.

[ebuild  N     ] dev-python/fs-2.4.16::gentoo  USE="-doc -test" PYTHON_TARGETS="python3_10 -python3_8 -python3_9 (-python3_11)" 0 KiB
[ebuild  N     ] dev-python/beniget-0.4.1-r1::gentoo  USE="-test" PYTHON_TARGETS="python3_10 -python3_8 -python3_9 (-python3_11)" 0 KiB
[ebuild  N     ] dev-python/pythran-0.11.0::gentoo  USE="-test" PYTHON_TARGETS="python3_10 -python3_8 -python3_9" 0 KiB
[ebuild  N     ] dev-python/kiwisolver-1.4.4::gentoo  USE="-test" PYTHON_TARGETS="python3_10 -python3_8 -python3_9 (-python3_11)" 0 KiB
[ebuild  N     ] dev-python/setuptools_scm_git_archive-1.4::gentoo  USE="-test" PYTHON_TARGETS="python3_10 (-pypy3) -python3_8 -python3_9 (-python3_11)" 0 KiB
[ebuild  N     ] dev-python/fonttools-4.34.4::gentoo  USE="-test" PYTHON_TARGETS="python3_10 -python3_8 -python3_9 (-python3_11)" 0 KiB
[ebuild  N     ] x11-libs/qwt-6.1.5:6/1.5::gentoo  USE="opengl svg -designer -doc -examples -mathml" 0 KiB
[ebuild  N     ] app-doc/doxygen-1.9.4-r2::gentoo  USE="-clang -debug -doc -dot -doxysearch -qt5 (-sqlite)" 0 KiB
[ebuild  N     ] dev-lang/tk-8.6.12:0/8.6::gentoo  USE="threads (-aqua) -debug -test -truetype -xscreensaver" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] sci-libs/arpack-3.8.0::gentoo  USE="-doc -examples -mpi" 0 KiB
[ebuild  N     ] media-libs/ftgl-2.1.3_rc5::gentoo  USE="-static-libs" 0 KiB
[ebuild  N     ] media-gfx/imagemagick-7.1.0.44:0/7.1.0-43::gentoo  USE="X bzip2 cxx jpeg jpeg2k openmp png svg tiff xml zlib -corefonts -djvu -fftw -fontconfig -fpx -graphviz -hdri -heif -jbig -lcms -lqr -lzma -opencl -openexr -pango -perl -postscript -q8 -q32 -raw -static-libs -test -truetype -webp -wmf -zip" 0 KiB
[ebuild  N     ] dev-libs/log4cpp-1.1.3-r2:0/5::gentoo  USE="-doc -test" 0 KiB
[ebuild  N     ] sci-libs/mpir-3.0.0-r1:0/23::gentoo  USE="cxx -cpudetection" 0 KiB
[ebuild  N     ] dev-python/scipy-1.8.1::gentoo  USE="pythran -doc -sparse -test" PYTHON_TARGETS="python3_10 -python3_8 -python3_9" 0 KiB
[ebuild  N     ] dev-tcltk/itk-4.1.0::gentoo  USE="-test" 0 KiB
[ebuild  N     ] dev-tcltk/tix-8.4.3-r2::gentoo  0 KiB
[ebuild  N     ] virtual/imagemagick-tools-0-r1::gentoo  USE="jpeg svg tiff -perl -png" 0 KiB
[ebuild  N     ] sci-libs/opencascade-7.6.2-r1:0/7.6::gentoo  USE="-doc -eigen -examples -ffmpeg -freeimage -gles2 -json -optimize -tbb -vtk" 0 KiB
[ebuild  N     ] dev-python/pyqtgraph-0.12.4::gentoo  USE="opengl svg -doc -test" PYTHON_TARGETS="python3_10 -python3_8 -python3_9" 0 KiB
[ebuild  N     ] media-libs/libsdl2-2.0.20-r1::gentoo  USE="X alsa dbus joystick opengl pulseaudio sound threads udev video (-aqua) (-custom-cflags) -doc -fcitx4 -gles1 -gles2 -haptic -ibus -jack -kms -libsamplerate -nas -oss -pipewire -sndio -static-libs -vulkan -wayland -xinerama -xscreensaver" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="mmx sse sse2 -3dnow" VIDEO_CARDS="(-vc4)" 0 KiB
[ebuild  N     ] x11-libs/wxGTK-3.0.5.1:3.0-gtk3::gentoo  USE="X gstreamer libnotify opengl sdl tiff -debug -doc (-pch) -webkit" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] dev-python/wxpython-4.0.7-r2:4.0::gentoo  USE="-test -webkit" PYTHON_TARGETS="python3_10 -python3_8 -python3_9" 0 KiB
[ebuild  N     ] sci-electronics/kicad-6.0.6::gentoo  USE="nls occ openmp pcm -doc -examples (-ngspice)" PYTHON_SINGLE_TARGET="python3_10 -python3_8 -python3_9" 0 KiB
[ebuild  N    ~] net-wireless/soapysdr-0.7.2:0/0.7.2::gentoo  USE="hackrf python rtlsdr -bladerf -plutosdr -uhd" PYTHON_TARGETS="python3_10 -python3_8 -python3_9" 0 KiB
[ebuild  N    ~] net-wireless/soapyrtlsdr-0.3.2::gentoo  0 KiB
[ebuild  N    ~] net-wireless/soapyhackrf-0.3.3-r1::gentoo  0 KiB
[ebuild  N     ] dev-python/sphinxcontrib-applehelp-1.0.2-r1::gentoo  USE="-test" PYTHON_TARGETS="python3_10 (-pypy3) -python3_8 -python3_9 (-python3_11)" 0 KiB
[ebuild  N     ] dev-python/sphinxcontrib-devhelp-1.0.2-r1::gentoo  USE="-test" PYTHON_TARGETS="python3_10 (-pypy3) -python3_8 -python3_9 (-python3_11)" 0 KiB
[ebuild  N     ] dev-python/sphinxcontrib-jsmath-1.0.1-r2::gentoo  USE="-test" PYTHON_TARGETS="python3_10 (-pypy3) -python3_8 -python3_9 (-python3_11)" 0 KiB
[ebuild  N     ] dev-python/sphinxcontrib-htmlhelp-2.0.0-r1::gentoo  USE="-test" PYTHON_TARGETS="python3_10 (-pypy3) -python3_8 -python3_9 (-python3_11)" 0 KiB
[ebuild  N     ] dev-python/sphinxcontrib-serializinghtml-1.1.5-r1::gentoo  USE="-test" PYTHON_TARGETS="python3_10 (-pypy3) -python3_8 -python3_9 (-python3_11)" 0 KiB
[ebuild  N     ] dev-python/sphinxcontrib-qthelp-1.0.3-r1::gentoo  USE="-test" PYTHON_TARGETS="python3_10 (-pypy3) -python3_8 -python3_9 (-python3_11)" 0 KiB
[ebuild  N     ] dev-python/sphinx-5.1.1::gentoo  USE="-doc -latex -test" PYTHON_TARGETS="python3_10 (-pypy3) -python3_8 -python3_9 (-python3_11)" 0 KiB
[ebuild  N    ~] dev-libs/castxml-0.4.5::gentoo  USE="man -test" 0 KiB
[ebuild  N    ~] dev-python/pygccxml-2.2.1::gentoo  USE="-doc" PYTHON_TARGETS="python3_10 -python3_8 -python3_9" 0 KiB
Comment 1 Don Bishop 2022-09-20 02:12:41 UTC
See this bug that was closed as obsolete. It is not. It still happens.

https://bugs.gentoo.org/701878
Comment 2 Gary E. Miller 2022-10-15 19:22:31 UTC
Created attachment 824323 [details]
Build Log

Build log
Comment 3 Gary E. Miller 2022-10-15 19:26:04 UTC
The traceback:

```
running install_scripts
Build the lexing/parsing tables
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pycparser-2.21-r1/work/pycparser-2.21/build/bdist.linux-x86_64/wheel/pycparser/_build_tables.py", line 35, in <module>
    import lextab
ModuleNotFoundError: No module named 'lextab'
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.10/gpep517", line 4, in <module>
    sys.exit(main())
  File "/usr/lib/python3.10/site-packages/gpep517/__main__.py", line 322, in main
    return func(args)
  File "/usr/lib/python3.10/site-packages/gpep517/__main__.py", line 122, in build_wheel
    print(build_wheel_impl(args, args.wheel_dir), file=out)
  File "/usr/lib/python3.10/site-packages/gpep517/__main__.py", line 105, in build_wheel_impl
    wheel_name = backend.build_wheel(str(wheel_dir), args.config_json)
  File "/usr/lib/python3.10/site-packages/setuptools/build_meta.py", line 412, in build_wheel
    return self._build_with_temp_dir(['bdist_wheel'], '.whl',
  File "/usr/lib/python3.10/site-packages/setuptools/build_meta.py", line 397, in _build_with_temp_dir
    self.run_setup()
  File "/usr/lib/python3.10/site-packages/setuptools/build_meta.py", line 483, in run_setup
    super(_BuildMetaLegacyBackend,
  File "/usr/lib/python3.10/site-packages/setuptools/build_meta.py", line 335, in run_setup
    exec(code, locals())
  File "<string>", line 35, in <module>
  File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 87, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
    return run_commands(dist)
  File "/usr/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
    dist.run_commands()
  File "/usr/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 1217, in run_command
    super().run_command(command)  File "/usr/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
    cmd_obj.run()
  File "/usr/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 335, in run
    self.run_command('install')
  File "/usr/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 1217, in run_command
    super().run_command(command)
  File "/usr/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
    cmd_obj.run()
  File "<string>", line 24, in run
  File "/usr/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 340, in execute
    util.execute(func, args, msg, dry_run=self.dry_run)
  File "/usr/lib/python3.10/site-packages/setuptools/_distutils/util.py", line 337, in execute
    func(*args)
  File "<string>", line 17, in _run_build_tables
  File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python3.10', '-B', '_build_tables.py']' returned non-zero exit status 1.
 * ERROR: dev-python/pycparser-2.21-r1::gentoo failed (compile phase):
 *   Wheel build failed
 * 
 * Call stack:
 *     ebuild.sh, line  122:  Called src_compile
 *   environment, line 3398:  Called distutils-r1_src_compile
 *   environment, line 1576:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  694:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3072:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2635:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2633:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 1049:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line 1558:  Called distutils-r1_python_compile
 *   environment, line 1382:  Called distutils_pep517_install '/var/tmp/portage/dev-python/pycparser-2.21-r1/work/pycparser-2.21-python3_10/install'
 *   environment, line 1881:  Called die
 * The specific snippet of code:
 *       [[ -n ${wheel} ]] || die "No wheel name returned";
```
Comment 4 Gary E. Miller 2022-10-15 19:30:21 UTC
```
dilbert ~ # emerge -pqv '=dev-python/pycparser-2.21-r1::gentoo'
[ebuild   R   ] dev-python/pycparser-2.21-r1  USE="-test" PYTHON_TARGETS="python3_9 python3_10 python3_11* -pypy3 -python3_8" 

dilbert ~ # emerge --info '=dev-python/pycparser-2.21-r1::gentoo'
Portage 3.0.38.1 (python 3.11.0-candidate-2, default/linux/amd64/17.1/desktop, gcc-12, glibc-2.36-r4, 6.0.0-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.0.0-gentoo-x86_64-Intel-R-_Core-TM-_i7-8750H_CPU_@_2.20GHz-with-glibc2.36
KiB Mem:    32719704 total,  10091644 free
KiB Swap:   32767996 total,  32767484 free
Timestamp of repository gentoo: Sat, 15 Oct 2022 18:15:01 +0000
Head commit of repository gentoo: 8cbd1d4d723b37da01a13de1f71c5753b2aa37dd
Head commit of repository brother-overlay: f58c254b1539efb79a4ec3ef48b1bc84f66aa022

sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.39 p5) 2.39.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r2::gentoo
dev-lang/perl:             5.36.0::gentoo
dev-lang/python:           2.7.18_p15-r1::gentoo, 3.9.15::gentoo, 3.10.8::gentoo, 3.11.0_rc2_p1::gentoo
dev-lang/rust:             1.64.0-r1::gentoo
dev-util/cmake:            3.24.2::gentoo
dev-util/meson:            0.63.2-r1::gentoo
sys-apps/baselayout:       2.9::gentoo
sys-apps/openrc:           0.45.2-r1::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r3::gentoo, 2.71-r4::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39-r3::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           14.0.6-r1::gentoo, 15.0.2::gentoo
sys-devel/gcc:             12.2.1_p20221008::gentoo
sys-devel/gcc-config:      2.8::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             14.0.6-r1::gentoo, 15.0.2-r1::gentoo
sys-devel/llvm:            14.0.6-r2::gentoo, 15.0.2::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  6.0::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r4::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.us.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: no

brother-overlay
    location: /var/lib/layman/brother-overlay
    sync-type: git
    sync-uri: https://github.com/stefan-langenmaier/brother-overlay.git
    masters: gentoo
    priority: 50

guru
    location: /var/lib/layman/guru
    sync-type: webrsync
    sync-uri: https://anongit.gentoo.org/git/repo/proj/guru.git
    masters: gentoo
    priority: 50

vifino-overlay
    location: /var/lib/layman/vifino-overlay
    sync-type: webrsync
    sync-uri: https://github.com/vifino/vifino-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/brother/scanner/brscan4/brsanenetdevice4.cfg /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/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=native"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going=y --with-bdeps=y --backtrack=15"
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 XDG_STATE_HOME"
FCFLAGS="-O2 -pipe -march=native"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live candy clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sfperms unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3 -l3"
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"
SHELL="/bin/bash"
USE="X a52 aac acl acpi adns aio alsa alsa-plugin amd64 appindicator blake2 bluetooth bluray bpf branding bs2b bzip2 cairo calf capstone cdda cdr chromecast cli corefonts cpudetection cron crypt cups curl dav1d dbus dri dri3 drm dts dv dvb dvd dvdr elogind encode equalizer exif extra faac faad fdk fdt ffmpeg ffmpegthumbnailer fingerprint flac fontconfig fontforge fortran fuse gbm gdal gdbm gif gimp gles2 glib gpg gpm gstreamer gtk gtk3 gui harfbuzz hddtemp http2 iconv icu introspection io-uring ipp_autosetup ipv6 jemalloc jpeg keybinder ladspa lastfm lcms libcanberra libglvnd libmpeg2 libmpv libnotify libtirpc lm_sensors lto lv2 lz4 lzma lzo mad matroska md5sum mda-lv2 mng mp3 mp4 mpeg mtp multilib ncurses nfs nfsv41 nls nptl nvenc offensive ogg openal opengl openmp opus pam pango pcap pcre pdf pgo plugins png policykit postproc ppds projectm pulseaudio pvr python qml qt5 readline realtime rtc rtmp rubberband screencast sctp sdl sdl-image seccomp sftp slirp sna snappy snmp sox spandsp spell spice split-usr sqlite ssh ssl startup-notification svg system-llvm system-png test-rust theora threads tiff tools truetype twolame udev udisks unicode update_drivedb upnp upower usb usbredir uxa v4l vaapi vde vdpau vdr vim vim-syntax virgl vlc vmaf vorbis vpx webp wg-quick wifi wxwidgets x264 x265 xa xattr xcb xinerama xml xrandr xv xvid zamaudio zeroconf zlib zstd" ABI_X86="64" 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 rdrand sse sse2 sse3 sse4_1 sse4_2 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="roccat_savu libinput joystick" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" 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_10" PYTHON_TARGETS="python3_10 python3_11 python3_9" RUBY_TARGETS="ruby27 ruby31" SANE_BACKENDS="net" USERLAND="GNU" VIDEO_CARDS="intel i965 nvidia iris nouveau" 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, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

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

dev-python/pycparser-2.21-r1::gentoo was built with the following:
USE="-test" ABI_X86="(64)" PYTHON_TARGETS="python3_10 python3_9 -pypy3 -python3_11 -python3_8"
CFLAGS="-O2 -pipe -march=native -fcommon"
CXXFLAGS="-O2 -pipe -march=native -fcommon"
FEATURES="assume-digests binpkg-dostrip qa-unresolved-soname-deps config-protect-if-modified parallel-fetch xattr userfetch distlocks merge-sync fixlafiles news unmerge-logs network-sandbox protect-owned binpkg-docompress buildpkg-live multilib-strict ipc-sandbox usersandbox ebuild-locks sfperms unmerge-orphans userpriv unknown-features-warn candy usersync binpkg-logs clean-logs preserve-libs binpkg-multi-instance pid-sandbox"

```
Comment 5 Gary E. Miller 2022-10-15 19:57:28 UTC
It seems to be a dependency loop.  I emerged all the dependencies of pycparser, then pycparser would emerge.
Comment 6 Igor Ulyanov 2023-01-28 18:52:59 UTC
I have the same problem after enabling python3_11 in PYTHON_TARGETS.
Comment 7 Igor Ulyanov 2023-01-28 18:56:48 UTC
Successfully merged third time with emerge -1 --jobs=1  pycparser
Comment 8 Gary E. Miller 2023-02-20 01:24:25 UTC
Same problem when moving to Pythin 3.11

This did not help: emerge -1 --jobs=1  pycparser

I'll try the procedure in the news item: 2022-06-13-python3-10
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-20 05:32:14 UTC
(In reply to Gary E. Miller from comment #8)
> Same problem when moving to Pythin 3.11
> 
> This did not help: emerge -1 --jobs=1  pycparser
> 
> I'll try the procedure in the news item: 2022-06-13-python3-10

This should've been made obsolete by:
```
  1 commit 9cab7f29a9f1ecd74c9e873b344fba255cbb390f
  2 Author: Sam James <sam@gentoo.org>
  3 Date:   Mon Feb 6 05:26:31 2023 +0000
  4
  5     dev-python/pycparser: force -j1
  6
  7     Closes: https://bugs.gentoo.org/701878
  8     Signed-off-by: Sam James <sam@gentoo.org>
  9
```

Did you definitely have that commit?

*** This bug has been marked as a duplicate of bug 701878 ***
Comment 10 Gary E. Miller 2023-02-21 02:40:20 UTC
> Did you definitely have that commit?

How would I know?

I run a local Gentoo repo that gets eix-sync everyday.

All my hosts then eix-update from that every day.

Do if that commit is in the Gentoo repo, I have it.
Comment 11 Gary E. Miller 2023-02-21 02:41:20 UTC
I also tried: MAKEOPTS="-j1"