Skip to content

Linux aarch64 build is failing with "undeclared name not builtin: long" #479

@dkropachev

Description

@dkropachev
 Getting requirements to build wheel did not run successfully.
    │ exit code: 1
    ╰─> [39 lines of output]
        Compiling src/gevent/resolver/cares.pyx because it changed.
        [1/1] Cythonizing src/gevent/resolver/cares.pyx
        
        Error compiling Cython file:
        ------------------------------------------------------------
        ...
        cdef tuple integer_types
        
        if sys.version_info[0] >= 3:
            integer_types = int,
        else:
            integer_types = (int, long)
                                  ^
        ------------------------------------------------------------
        
        src/gevent/libev/corecext.pyx:69:26: undeclared name not builtin: long
        Compiling src/gevent/libev/corecext.pyx because it changed.
        [1/1] Cythonizing src/gevent/libev/corecext.pyx
        Traceback (most recent call last):
          File "/opt/_internal/cpython-3.8.20/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
            main()
          File "/opt/_internal/cpython-3.8.20/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
            json_out['return_val'] = hook(**hook_input['kwargs'])
          File "/opt/_internal/cpython-3.8.20/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
            return hook(config_settings)
          File "/tmp/pip-build-env-zwyb4wj5/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 333, in get_requires_for_build_wheel
            return self._get_build_requires(config_settings, requirements=[])
          File "/tmp/pip-build-env-zwyb4wj5/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 303, in _get_build_requires
            self.run_setup()
          File "/tmp/pip-build-env-zwyb4wj5/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 319, in run_setup
            exec(code, locals())
          File "<string>", line 54, in <module>
          File "/tmp/pip-install-oc6h7bil/gevent_dce219aab25c458392c1d422c4aa9d5b/_setuputils.py", line 249, in cythonize1
            new_ext = cythonize(
          File "/tmp/pip-build-env-zwyb4wj5/overlay/lib/python3.8/site-packages/Cython/Build/Dependencies.py", line 1145, in cythonize
            cythonize_one(*args)
          File "/tmp/pip-build-env-zwyb4wj5/overlay/lib/python3.8/site-packages/Cython/Build/Dependencies.py", line 1289, in cythonize_one
            raise CompileError(None, pyx_file)
        Cython.Compiler.Errors.CompileError: src/gevent/libev/corecext.pyx
        [end of output]
    
    note: This error originates from a subprocess, and is likely not a problem with pip.
  error: subprocess-exited-with-error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions