Fails to build on pypy 7.0 (stdlib 3.5) as pgenheaders.h doesn't exist in pypy · Issue #97 · python/typed_ast · GitHub
Skip to content
This repository was archived by the owner on Jul 5, 2023. It is now read-only.
This repository was archived by the owner on Jul 5, 2023. It is now read-only.

Fails to build on pypy 7.0 (stdlib 3.5) as pgenheaders.h doesn't exist in pypy #97

Description

@Russell-Jones-OxPhys

I'm not sure if this should be filed against typed_ast or pypy, as I can't find many references to pgenheaders.h and no documentation for it. Is this perhaps a situation similar to https://bitbucket.org/pypy/pypy/issues/2687/pypy3-is-missing-pystrhexh-breaking-pysha3 where it's a header file for an internal API?

(pypy3ve) user@host:/home/user/pypy3ve$ pypy3-c --version
Python 3.5.3 (1f86f25937b6ae6c8b25236c35228fac587678bf, Feb 12 2019, 13:00:04)
[PyPy 7.1.0-alpha0 with GCC 7.3.0]
(pypy3ve) user@host:/home/user/pypy3ve$ pypy3-c -m pip install --upgrade typed_ast
Collecting typed_ast
  Using cached https://files.pythonhosted.org/packages/fc/c6/61d6410fc70fda073bd1810f9b7f7022f00146b108f278a0c00041bfe5b0/typed-ast-1.3.1.tar.gz
Building wheels for collected packages: typed-ast
  Building wheel for typed-ast (setup.py) ... error
  Complete output from command /home/user/pypy3ve/bin/pypy3-c -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-usaqh1q6/typed-ast/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-3s26ar_9 --python-tag pp371:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.5
  creating build/lib.linux-x86_64-3.5/typed_ast
  copying typed_ast/conversions.py -> build/lib.linux-x86_64-3.5/typed_ast
  copying typed_ast/ast27.py -> build/lib.linux-x86_64-3.5/typed_ast
  copying typed_ast/__init__.py -> build/lib.linux-x86_64-3.5/typed_ast
  copying typed_ast/ast3.py -> build/lib.linux-x86_64-3.5/typed_ast
  running build_ext
  building '_ast27' extension
  creating build/temp.linux-x86_64-3.5
  creating build/temp.linux-x86_64-3.5/ast27
  creating build/temp.linux-x86_64-3.5/ast27/Parser
  creating build/temp.linux-x86_64-3.5/ast27/Python
  creating build/temp.linux-x86_64-3.5/ast27/Custom
  gcc -pthread -DNDEBUG -O2 -fPIC -Iast27/Include -I/home/user/pypy3ve/include -I/home/user/pypy3/include -c ast27/Parser/acceler.c -o build/temp.linux-x86_64-3.5/ast27/Parser/acceler.o
  ast27/Parser/acceler.c:13:10: fatal error: pgenheaders.h: No such file or directory
   #include "pgenheaders.h"
            ^~~~~~~~~~~~~~~
  compilation terminated.
  error: command 'gcc' failed with exit status 1
  
  ----------------------------------------
  Failed building wheel for typed-ast
  Running setup.py clean for typed-ast
Failed to build typed-ast
Installing collected packages: typed-ast
  Running setup.py install for typed-ast ... error
    Complete output from command /home/user/pypy3ve/bin/pypy3-c -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-usaqh1q6/typed-ast/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-drrzuuwb/install-record.txt --single-version-externally-managed --compile --install-headers /home/user/pypy3ve/include/site/python3.5/typed-ast:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.5
    creating build/lib.linux-x86_64-3.5/typed_ast
    copying typed_ast/conversions.py -> build/lib.linux-x86_64-3.5/typed_ast
    copying typed_ast/ast27.py -> build/lib.linux-x86_64-3.5/typed_ast
    copying typed_ast/__init__.py -> build/lib.linux-x86_64-3.5/typed_ast
    copying typed_ast/ast3.py -> build/lib.linux-x86_64-3.5/typed_ast
    running build_ext
    building '_ast27' extension
    creating build/temp.linux-x86_64-3.5
    creating build/temp.linux-x86_64-3.5/ast27
    creating build/temp.linux-x86_64-3.5/ast27/Parser
    creating build/temp.linux-x86_64-3.5/ast27/Python
    creating build/temp.linux-x86_64-3.5/ast27/Custom
    gcc -pthread -DNDEBUG -O2 -fPIC -Iast27/Include -I/home/user/pypy3ve/include -I/home/user/pypy3/include -c ast27/Parser/acceler.c -o build/temp.linux-x86_64-3.5/ast27/Parser/acceler.o
    ast27/Parser/acceler.c:13:10: fatal error: pgenheaders.h: No such file or directory
     #include "pgenheaders.h"
              ^~~~~~~~~~~~~~~
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    
    ----------------------------------------
Command "/home/user/pypy3ve/bin/pypy3-c -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-usaqh1q6/typed-ast/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-drrzuuwb/install-record.txt --single-version-externally-managed --compile --install-headers /home/user/pypy3ve/include/site/python3.5/typed-ast" failed with error code 1 in /tmp/pip-install-usaqh1q6/typed-ast/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions