Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 727378 - dev-python/zstandard-0.13.0 with dev-python/cffi-1.14.0-r2 - cffi.CDefError: only supports one of the following syntax: #define __VERSION__ ... (literally dot-dot-dot)
Summary: dev-python/zstandard-0.13.0 with dev-python/cffi-1.14.0-r2 - cffi.CDefError: ...
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: 2020-06-07 07:24 UTC by Alexey
Modified: 2020-06-25 03:20 UTC (History)
2 users (show)

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


Attachments
emerge --info (file_727378.txt,19.46 KB, text/plain)
2020-06-07 07:24 UTC, Alexey
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey 2020-06-07 07:24:34 UTC
Created attachment 643740 [details]
emerge --info

* Package:    dev-python/zstandard-0.13.0
 * Repository: gentoo
 * Maintainer: python@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python3_7 userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox splitdebug userpriv usersandbox
>>> Unpacking source...
>>> Unpacking zstandard-0.13.0.tar.gz to /mnt/portagetmp/portage/dev-python/zstandard-0.13.0/work
>>> Source unpacked in /mnt/portagetmp/portage/dev-python/zstandard-0.13.0/work
>>> Preparing source in /mnt/portagetmp/portage/dev-python/zstandard-0.13.0/work/zstandard-0.13.0 ...
 * Applying zstandard-0.13.0-compiler.patch ...
 [ ok ]
>>> Source prepared.
>>> Configuring source in /mnt/portagetmp/portage/dev-python/zstandard-0.13.0/work/zstandard-0.13.0 ...
>>> Source configured.
>>> Compiling source in /mnt/portagetmp/portage/dev-python/zstandard-0.13.0/work/zstandard-0.13.0 ...
 * python3_7: running distutils-r1_run_phase python_compile
python3.7 setup.py build -j 1
Traceback (most recent call last):
  File "setup.py", line 74, in <module>
    import make_cffi
  File "/mnt/portagetmp/portage/dev-python/zstandard-0.13.0/work/zstandard-0.13.0/make_cffi.py", line 225, in <module>
    ffi.cdef(b"\n".join(cdeflines).decode("latin1"))
  File "/usr/lib/python3.7/site-packages/cffi/api.py", line 112, in cdef
    self._cdef(csource, override=override, packed=packed, pack=pack)
  File "/usr/lib/python3.7/site-packages/cffi/api.py", line 126, in _cdef
    self._parser.parse(csource, override=override, **options)
  File "/usr/lib/python3.7/site-packages/cffi/cparser.py", line 389, in parse
    self._internal_parse(csource)
  File "/usr/lib/python3.7/site-packages/cffi/cparser.py", line 396, in _internal_parse
    self._process_macros(macros)
  File "/usr/lib/python3.7/site-packages/cffi/cparser.py", line 485, in _process_macros
    % (key, key, key, value))
cffi.CDefError: only supports one of the following syntax:
  #define __VERSION__ ...     (literally dot-dot-dot)
  #define __VERSION__ NUMBER  (with NUMBER an integer constant, decimal/hex/octal)
got:
  #define __VERSION__ "9.3.0"
 * ERROR: dev-python/zstandard-0.13.0::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_compile
 *   environment, line 2909:  Called distutils-r1_src_compile
 *   environment, line 1199:  Called _distutils-r1_run_foreach_impl 'python_compile'
 *   environment, line  445:  Called python_foreach_impl 'distutils-r1_run_phase' 'python_compile'
 *   environment, line 2540:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_compile'
 *   environment, line 2037:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_compile'
 *   environment, line 2035:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_compile'
 *   environment, line  843:  Called distutils-r1_run_phase 'python_compile'
 *   environment, line 1192:  Called python_compile
 *   environment, line 2285:  Called distutils-r1_python_compile
 *   environment, line 1062:  Called esetup.py 'build' '-j' '1'
 *   environment, line 1581:  Called die
 * The specific snippet of code:
 *       "${@}" || die "${die_args[@]}";
 * 
 * If you need support, post the output of `emerge --info '=dev-python/zstandard-0.13.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/zstandard-0.13.0::gentoo'`.
 * The complete build log is located at '/mnt/portagetmp/portage/dev-python/zstandard-0.13.0/temp/build.log'.
 * The ebuild environment file is located at '/mnt/portagetmp/portage/dev-python/zstandard-0.13.0/temp/environment'.
 * Working directory: '/mnt/portagetmp/portage/dev-python/zstandard-0.13.0/work/zstandard-0.13.0'
 * S: '/mnt/portagetmp/portage/dev-python/zstandard-0.13.0/work/zstandard-0.13.0'
Comment 1 Alexey 2020-06-25 00:09:08 UTC
zstandard-0.14.0 compiles without errors