Skip to content

uvloop fails to build with Python 3.14.0b1 free-threading #681

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ading2210 opened this issue May 21, 2025 · 0 comments
Open

uvloop fails to build with Python 3.14.0b1 free-threading #681

ading2210 opened this issue May 21, 2025 · 0 comments

Comments

@ading2210
Copy link

ading2210 commented May 21, 2025

It seems that uvloop fails to build for the nogil version of Python 3.14. It compiles with regular Python 3.14 completely fine though.

My system info:

$ neofetch --stdout
allen@debian-pc 
--------------- 
OS: Debian GNU/Linux 12 (bookworm) x86_64 
Host: B450M Steel Legend 
Kernel: 6.12.12+bpo-amd64 
Uptime: 3 hours, 34 mins 
Packages: 5670 (dpkg), 29 (flatpak), 15 (snap) 
Shell: bash 5.2.15 
Resolution: 2560x1440 
DE: LXDE 
WM: Openbox 
WM Theme: Numix-Frost 
Theme: Numix-Frost [GTK2/3] 
Icons: ePapirus [GTK2/3] 
Terminal: lxterminal 
Terminal Font: DejaVu Sans Mono 10 
CPU: AMD Ryzen 9 5950X (32) @ 5.084GHz 
GPU: NVIDIA GeForce RTX 3060 
Memory: 12630MiB / 64226MiB

python3.14-nogil was installed through the Deadsnakes PPA: https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa/+packages

The failing build output is shown below:
allen@debian-pc:/tmp/test$ python3.14-nogil -m venv .venv
allen@debian-pc:/tmp/test$ source .venv/bin/activate
(.venv) allen@debian-pc:/tmp/test$ python3.14-nogil -m pip install uvloop
Collecting uvloop
  Using cached uvloop-0.21.0.tar.gz (2.5 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: uvloop
  Building wheel for uvloop (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for uvloop (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [555 lines of output]
      /tmp/pip-build-env-p0w8vnq7/overlay/lib/python3.14t/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated
      !!
      
              ********************************************************************************
              Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).
      
              By 2026-Feb-18, you need to update your project and remove deprecated calls
              or your builds will no longer be supported.
      
              See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
              ********************************************************************************
      
      !!
        corresp(dist, value, root_dir)
      /tmp/pip-build-env-p0w8vnq7/overlay/lib/python3.14t/site-packages/setuptools/config/_apply_pyprojecttoml.py:61: SetuptoolsDeprecationWarning: License classifiers are deprecated.
      !!
      
              ********************************************************************************
              Please consider removing the following classifiers in favor of a SPDX license expression:
      
              License :: OSI Approved :: Apache Software License
              License :: OSI Approved :: MIT License
      
              See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
              ********************************************************************************
      
      !!
        dist._finalize_license_expression()
      /tmp/pip-build-env-p0w8vnq7/overlay/lib/python3.14t/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
      !!
      
              ********************************************************************************
              Please consider removing the following classifiers in favor of a SPDX license expression:
      
              License :: OSI Approved :: Apache Software License
              License :: OSI Approved :: MIT License
      
              See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
              ********************************************************************************
      
      !!
        self._finalize_license_expression()
      running bdist_wheel
      running build
      running build_py
      creating build/lib.linux-x86_64-cpython-314t/uvloop
      copying uvloop/_version.py -> build/lib.linux-x86_64-cpython-314t/uvloop
      copying uvloop/_testbase.py -> build/lib.linux-x86_64-cpython-314t/uvloop
      copying uvloop/_noop.py -> build/lib.linux-x86_64-cpython-314t/uvloop
      copying uvloop/__init__.py -> build/lib.linux-x86_64-cpython-314t/uvloop
      running egg_info
      writing uvloop.egg-info/PKG-INFO
      writing dependency_links to uvloop.egg-info/dependency_links.txt
      writing requirements to uvloop.egg-info/requires.txt
      writing top-level names to uvloop.egg-info/top_level.txt
      reading manifest file 'uvloop.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no previously-included files matching '*' found under directory 'vendor/libuv/.git'
      warning: no previously-included files matching '*' found under directory 'vendor/libuv/docs'
      warning: no previously-included files matching '*' found under directory 'vendor/libuv/img'
      adding license file 'LICENSE-APACHE'
      adding license file 'LICENSE-MIT'
      writing manifest file 'uvloop.egg-info/SOURCES.txt'
      /tmp/pip-build-env-p0w8vnq7/overlay/lib/python3.14t/site-packages/setuptools/command/build_py.py:212: _Warning: Package 'uvloop.handles' is absent from the `packages` configuration.
      !!
      
              ********************************************************************************
              ############################
              # Package would be ignored #
              ############################
              Python recognizes 'uvloop.handles' as an importable package[^1],
              but it is absent from setuptools' `packages` configuration.
      
              This leads to an ambiguous overall configuration. If you want to distribute this
              package, please make sure that 'uvloop.handles' is explicitly added
              to the `packages` configuration field.
      
              Alternatively, you can also rely on setuptools' discovery methods
              (for example by using `find_namespace_packages(...)`/`find_namespace:`
              instead of `find_packages(...)`/`find:`).
      
              You can read more about "package discovery" on setuptools documentation page:
      
              - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
      
              If you don't want 'uvloop.handles' to be distributed and are
              already explicitly excluding 'uvloop.handles' via
              `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
              you can try to use `exclude_package_data`, or `include-package-data=False` in
              combination with a more fine grained `package-data` configuration.
      
              You can read more about "package data files" on setuptools documentation page:
      
              - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
      
      
              [^1]: For Python, any directory (with suitable naming) can be imported,
                    even if it does not contain any `.py` files.
                    On the other hand, currently there is no concept of package data
                    directory, all directories are treated like packages.
              ********************************************************************************
      
      !!
        check.warn(importable)
      /tmp/pip-build-env-p0w8vnq7/overlay/lib/python3.14t/site-packages/setuptools/command/build_py.py:212: _Warning: Package 'uvloop.includes' is absent from the `packages` configuration.
      !!
      
              ********************************************************************************
              ############################
              # Package would be ignored #
              ############################
              Python recognizes 'uvloop.includes' as an importable package[^1],
              but it is absent from setuptools' `packages` configuration.
      
              This leads to an ambiguous overall configuration. If you want to distribute this
              package, please make sure that 'uvloop.includes' is explicitly added
              to the `packages` configuration field.
      
              Alternatively, you can also rely on setuptools' discovery methods
              (for example by using `find_namespace_packages(...)`/`find_namespace:`
              instead of `find_packages(...)`/`find:`).
      
              You can read more about "package discovery" on setuptools documentation page:
      
              - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
      
              If you don't want 'uvloop.includes' to be distributed and are
              already explicitly excluding 'uvloop.includes' via
              `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
              you can try to use `exclude_package_data`, or `include-package-data=False` in
              combination with a more fine grained `package-data` configuration.
      
              You can read more about "package data files" on setuptools documentation page:
      
              - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
      
      
              [^1]: For Python, any directory (with suitable naming) can be imported,
                    even if it does not contain any `.py` files.
                    On the other hand, currently there is no concept of package data
                    directory, all directories are treated like packages.
              ********************************************************************************
      
      !!
        check.warn(importable)
      copying uvloop/cbhandles.pxd -> build/lib.linux-x86_64-cpython-314t/uvloop
      copying uvloop/cbhandles.pyx -> build/lib.linux-x86_64-cpython-314t/uvloop
      copying uvloop/dns.pyx -> build/lib.linux-x86_64-cpython-314t/uvloop
      copying uvloop/errors.pyx -> build/lib.linux-x86_64-cpython-314t/uvloop
      copying uvloop/loop.pxd -> build/lib.linux-x86_64-cpython-314t/uvloop
      copying uvloop/loop.pyi -> build/lib.linux-x86_64-cpython-314t/uvloop
      copying uvloop/loop.pyx -> build/lib.linux-x86_64-cpython-314t/uvloop
      copying uvloop/lru.pyx -> build/lib.linux-x86_64-cpython-314t/uvloop
      copying uvloop/pseudosock.pyx -> build/lib.linux-x86_64-cpython-314t/uvloop
      copying uvloop/py.typed -> build/lib.linux-x86_64-cpython-314t/uvloop
      copying uvloop/request.pxd -> build/lib.linux-x86_64-cpython-314t/uvloop
      copying uvloop/request.pyx -> build/lib.linux-x86_64-cpython-314t/uvloop
      copying uvloop/server.pxd -> build/lib.linux-x86_64-cpython-314t/uvloop
      copying uvloop/server.pyx -> build/lib.linux-x86_64-cpython-314t/uvloop
      copying uvloop/sslproto.pxd -> build/lib.linux-x86_64-cpython-314t/uvloop
      copying uvloop/sslproto.pyx -> build/lib.linux-x86_64-cpython-314t/uvloop
      creating build/lib.linux-x86_64-cpython-314t/uvloop/handles
      copying uvloop/handles/async_.pxd -> build/lib.linux-x86_64-cpython-314t/uvloop/handles
      copying uvloop/handles/async_.pyx -> build/lib.linux-x86_64-cpython-314t/uvloop/handles
      copying uvloop/handles/basetransport.pxd -> build/lib.linux-x86_64-cpython-314t/uvloop/handles
      copying uvloop/handles/basetransport.pyx -> build/lib.linux-x86_64-cpython-314t/uvloop/handles
      copying uvloop/handles/check.pxd -> build/lib.linux-x86_64-cpython-314t/uvloop/handles
      copying uvloop/handles/check.pyx -> build/lib.linux-x86_64-cpython-314t/uvloop/handles
      copying uvloop/handles/fsevent.pxd -> build/lib.linux-x86_64-cpython-314t/uvloop/handles
      copying uvloop/handles/fsevent.pyx -> build/lib.linux-x86_64-cpython-314t/uvloop/handles
      copying uvloop/handles/handle.pxd -> build/lib.linux-x86_64-cpython-314t/uvloop/handles
      copying uvloop/handles/handle.pyx -> build/lib.linux-x86_64-cpython-314t/uvloop/handles
      copying uvloop/handles/idle.pxd -> build/lib.linux-x86_64-cpython-314t/uvloop/handles
      copying uvloop/handles/idle.pyx -> build/lib.linux-x86_64-cpython-314t/uvloop/handles
      copying uvloop/handles/pipe.pxd -> build/lib.linux-x86_64-cpython-314t/uvloop/handles
      copying uvloop/handles/pipe.pyx -> build/lib.linux-x86_64-cpython-314t/uvloop/handles
      copying uvloop/handles/poll.pxd -> build/lib.linux-x86_64-cpython-314t/uvloop/handles
      copying uvloop/handles/poll.pyx -> build/lib.linux-x86_64-cpython-314t/uvloop/handles
      copying uvloop/handles/process.pxd -> build/lib.linux-x86_64-cpython-314t/uvloop/handles
      copying uvloop/handles/process.pyx -> build/lib.linux-x86_64-cpython-314t/uvloop/handles
      copying uvloop/handles/stream.pxd -> build/lib.linux-x86_64-cpython-314t/uvloop/handles
      copying uvloop/handles/stream.pyx -> build/lib.linux-x86_64-cpython-314t/uvloop/handles
      copying uvloop/handles/streamserver.pxd -> build/lib.linux-x86_64-cpython-314t/uvloop/handles
      copying uvloop/handles/streamserver.pyx -> build/lib.linux-x86_64-cpython-314t/uvloop/handles
      copying uvloop/handles/tcp.pxd -> build/lib.linux-x86_64-cpython-314t/uvloop/handles
      copying uvloop/handles/tcp.pyx -> build/lib.linux-x86_64-cpython-314t/uvloop/handles
      copying uvloop/handles/timer.pxd -> build/lib.linux-x86_64-cpython-314t/uvloop/handles
      copying uvloop/handles/timer.pyx -> build/lib.linux-x86_64-cpython-314t/uvloop/handles
      copying uvloop/handles/udp.pxd -> build/lib.linux-x86_64-cpython-314t/uvloop/handles
      copying uvloop/handles/udp.pyx -> build/lib.linux-x86_64-cpython-314t/uvloop/handles
      creating build/lib.linux-x86_64-cpython-314t/uvloop/includes
      copying uvloop/includes/__init__.py -> build/lib.linux-x86_64-cpython-314t/uvloop/includes
      copying uvloop/includes/consts.pxi -> build/lib.linux-x86_64-cpython-314t/uvloop/includes
      copying uvloop/includes/debug.pxd -> build/lib.linux-x86_64-cpython-314t/uvloop/includes
      copying uvloop/includes/flowcontrol.pxd -> build/lib.linux-x86_64-cpython-314t/uvloop/includes
      copying uvloop/includes/python.pxd -> build/lib.linux-x86_64-cpython-314t/uvloop/includes
      copying uvloop/includes/stdlib.pxi -> build/lib.linux-x86_64-cpython-314t/uvloop/includes
      copying uvloop/includes/system.pxd -> build/lib.linux-x86_64-cpython-314t/uvloop/includes
      copying uvloop/includes/uv.pxd -> build/lib.linux-x86_64-cpython-314t/uvloop/includes
      running build_ext
      checking for a BSD-compatible install... /usr/bin/install -c
      checking whether build environment is sane... yes
      checking for a race-free mkdir -p... /usr/bin/mkdir -p
      checking for gawk... gawk
      checking whether make sets $(MAKE)... yes
      checking whether make supports nested variables... yes
      checking whether to enable maintainer-specific portions of Makefiles... yes
      checking build system type... x86_64-pc-linux-gnu
      checking host system type... x86_64-pc-linux-gnu
      checking for gcc... gcc
      checking whether the C compiler works... yes
      checking for C compiler default output file name... a.out
      checking for suffix of executables...
      checking whether we are cross compiling... no
      checking for suffix of object files... o
      checking whether the compiler supports GNU C... yes
      checking whether gcc accepts -g... yes
      checking for gcc option to enable C11 features... none needed
      checking whether gcc understands -c and -o together... yes
      checking whether make supports the include directive... yes (GNU style)
      checking dependency style of gcc... gcc3
      checking for gcc way to treat warnings as errors... -Werror
      checking if gcc supports __attribute__(( visibility("default") ))... yes
      checking if gcc supports -fvisibility=hidden... yes
      checking if gcc supports -fno-strict-aliasing flag... yes
      checking if gcc supports -fno-strict-aliasing flag... yes
      checking if gcc supports -g flag... yes
      checking if gcc supports -std=gnu89 flag... yes
      checking if gcc supports -Wall flag... yes
      checking if gcc supports -Wextra flag... yes
      checking if gcc supports -Wno-long-long flag... yes
      checking if gcc supports -Wno-unused-parameter flag... yes
      checking if gcc supports -Wstrict-prototypes flag... yes
      checking for ar... ar
      checking the archiver (ar) interface... ar
      checking how to print strings... printf
      checking for a sed that does not truncate output... /usr/bin/sed
      checking for grep that handles long lines and -e... /usr/bin/grep
      checking for egrep... /usr/bin/grep -E
      checking for fgrep... /usr/bin/grep -F
      checking for ld used by gcc... /usr/bin/ld
      checking if the linker (/usr/bin/ld) is GNU ld... yes
      checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
      checking the name lister (/usr/bin/nm -B) interface... BSD nm
      checking whether ln -s works... yes
      checking the maximum length of command line arguments... 1572864
      checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
      checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
      checking for /usr/bin/ld option to reload object files... -r
      checking for objdump... objdump
      checking how to recognize dependent libraries... pass_all
      checking for dlltool... no
      checking how to associate runtime and link libraries... printf %s\n
      checking for archiver @FILE support... @
      checking for strip... strip
      checking for ranlib... ranlib
      checking command to parse /usr/bin/nm -B output from gcc object... ok
      checking for sysroot... no
      checking for a working dd... /usr/bin/dd
      checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
      checking for mt... mt
      checking if mt is a manifest tool... no
      checking for stdio.h... yes
      checking for stdlib.h... yes
      checking for string.h... yes
      checking for inttypes.h... yes
      checking for stdint.h... yes
      checking for strings.h... yes
      checking for sys/stat.h... yes
      checking for sys/types.h... yes
      checking for unistd.h... yes
      checking for dlfcn.h... yes
      checking for objdir... .libs
      checking if gcc supports -fno-rtti -fno-exceptions... no
      checking for gcc option to produce PIC... -fPIC -DPIC
      checking if gcc PIC flag -fPIC -DPIC works... yes
      checking if gcc static flag -static works... yes
      checking if gcc supports -c -o file.o... yes
      checking if gcc supports -c -o file.o... (cached) yes
      checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
      checking whether -lc should be explicitly linked in... no
      checking dynamic linker characteristics... GNU/Linux ld.so
      checking how to hardcode library paths into programs... immediate
      checking whether stripping libraries is possible... yes
      checking if libtool supports shared libraries... yes
      checking whether to build shared libraries... yes
      checking whether to build static libraries... yes
      checking whether make supports nested variables... (cached) yes
      checking how to run the C preprocessor... gcc -E
      checking whether gcc is Clang... no
      checking whether pthreads work with -pthread... yes
      checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
      checking whether more special flags are required for pthreads... no
      checking for PTHREAD_PRIO_INHERIT... yes
      checking for library containing dlopen... none required
      checking for library containing kstat_lookup... no
      checking for library containing gethostbyname... none required
      checking for library containing perfstat_cpu... no
      checking for library containing clock_gettime... none required
      checking for library containing sendfile... none required
      checking for library containing socket... none required
      checking for special C compiler options needed for large files... no
      checking for _FILE_OFFSET_BITS value needed for large files... no
      checking for sys/ahafs_evProds.h... no
      checking that generated files are newer than configure... done
      configure: creating ./config.status
      config.status: creating Makefile
      config.status: creating libuv.pc
      config.status: executing depfiles commands
      config.status: executing libtool commands
        CC       src/libuv_la-fs-poll.lo
        CC       src/libuv_la-idna.lo
        CC       src/libuv_la-inet.lo
        CC       src/libuv_la-random.lo
        CC       src/libuv_la-strscpy.lo
        CC       src/libuv_la-thread-common.lo
        CC       src/libuv_la-threadpool.lo
        CC       src/libuv_la-timer.lo
        CC       src/libuv_la-uv-data-getter-setters.lo
        CC       src/libuv_la-uv-common.lo
        CC       src/libuv_la-version.lo
        CC       src/libuv_la-strtok.lo
        CC       src/unix/libuv_la-async.lo
        CC       src/unix/libuv_la-core.lo
        CC       src/unix/libuv_la-dl.lo
        CC       src/unix/libuv_la-fs.lo
        CC       src/unix/libuv_la-getaddrinfo.lo
        CC       src/unix/libuv_la-getnameinfo.lo
        CC       src/unix/libuv_la-loop-watcher.lo
        CC       src/unix/libuv_la-loop.lo
        CC       src/unix/libuv_la-pipe.lo
        CC       src/unix/libuv_la-poll.lo
        CC       src/unix/libuv_la-process.lo
        CC       src/unix/libuv_la-random-devurandom.lo
        CC       src/unix/libuv_la-signal.lo
        CC       src/unix/libuv_la-stream.lo
        CC       src/unix/libuv_la-tcp.lo
        CC       src/unix/libuv_la-tty.lo
        CC       src/unix/libuv_la-thread.lo
        CC       src/unix/libuv_la-udp.lo
        CC       src/unix/libuv_la-linux.lo
        CC       src/unix/libuv_la-procfs-exepath.lo
        CC       src/unix/libuv_la-proctitle.lo
        CC       src/unix/libuv_la-random-getrandom.lo
        CC       src/unix/libuv_la-random-sysctl-linux.lo
        CCLD     libuv.la
      building 'uvloop.loop' extension
      creating build/temp.linux-x86_64-cpython-314t/uvloop
      x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/tmp/test/.venv/include -I/usr/include/python3.14t -I/tmp/pip-install-_t4v0vuc/uvloop_5ec2d4a558284b8ea7531204cd20cf57/vendor/libuv/include -c uvloop/loop.c -o build/temp.linux-x86_64-cpython-314t/uvloop/loop.o -O2
      uvloop/loop.c:4537:80: error: unknown type name ‘__pyx_vectorcallfunc’; did you mean ‘vectorcallfunc’?
       4537 | static CYTHON_INLINE PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw);
            |                                                                                ^~~~~~~~~~~~~~~~~~~~
            |                                                                                vectorcallfunc
      uvloop/loop.c: In function ‘__pyx_pw_6uvloop_4loop_4Loop_13call_soon’:
      uvloop/loop.c:37033:43: warning: passing argument 1 of ‘PyTuple_GetSlice’ from incompatible pointer type [-Wincompatible-pointer-types]
      37033 |   __pyx_v_args = __Pyx_ArgsSlice_FASTCALL(__pyx_args, 1, __pyx_nargs);
            |                                           ^~~~~~~~~~
            |                                           |
            |                                           PyObject * const* {aka struct _object * const*}
      uvloop/loop.c:4468:70: note: in definition of macro ‘__Pyx_ArgsSlice_FASTCALL’
       4468 | #define __Pyx_ArgsSlice_FASTCALL(args, start, stop) PyTuple_GetSlice(args, start, stop)
            |                                                                      ^~~~
      In file included from /usr/include/python3.14t/Python.h:90,
                       from uvloop/loop.c:32:
      /usr/include/python3.14t/tupleobject.h:34:41: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘PyObject * const*’ {aka ‘struct _object * const*’}
         34 | PyAPI_FUNC(PyObject *) PyTuple_GetSlice(PyObject *, Py_ssize_t, Py_ssize_t);
            |                                         ^~~~~~~~~~
      uvloop/loop.c: In function ‘__pyx_pw_6uvloop_4loop_4Loop_15call_soon_threadsafe’:
      uvloop/loop.c:37265:43: warning: passing argument 1 of ‘PyTuple_GetSlice’ from incompatible pointer type [-Wincompatible-pointer-types]
      37265 |   __pyx_v_args = __Pyx_ArgsSlice_FASTCALL(__pyx_args, 1, __pyx_nargs);
            |                                           ^~~~~~~~~~
            |                                           |
            |                                           PyObject * const* {aka struct _object * const*}
      uvloop/loop.c:4468:70: note: in definition of macro ‘__Pyx_ArgsSlice_FASTCALL’
       4468 | #define __Pyx_ArgsSlice_FASTCALL(args, start, stop) PyTuple_GetSlice(args, start, stop)
            |                                                                      ^~~~
      /usr/include/python3.14t/tupleobject.h:34:41: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘PyObject * const*’ {aka ‘struct _object * const*’}
         34 | PyAPI_FUNC(PyObject *) PyTuple_GetSlice(PyObject *, Py_ssize_t, Py_ssize_t);
            |                                         ^~~~~~~~~~
      uvloop/loop.c: In function ‘__pyx_pw_6uvloop_4loop_4Loop_17call_later’:
      uvloop/loop.c:37501:43: warning: passing argument 1 of ‘PyTuple_GetSlice’ from incompatible pointer type [-Wincompatible-pointer-types]
      37501 |   __pyx_v_args = __Pyx_ArgsSlice_FASTCALL(__pyx_args, 2, __pyx_nargs);
            |                                           ^~~~~~~~~~
            |                                           |
            |                                           PyObject * const* {aka struct _object * const*}
      uvloop/loop.c:4468:70: note: in definition of macro ‘__Pyx_ArgsSlice_FASTCALL’
       4468 | #define __Pyx_ArgsSlice_FASTCALL(args, start, stop) PyTuple_GetSlice(args, start, stop)
            |                                                                      ^~~~
      /usr/include/python3.14t/tupleobject.h:34:41: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘PyObject * const*’ {aka ‘struct _object * const*’}
         34 | PyAPI_FUNC(PyObject *) PyTuple_GetSlice(PyObject *, Py_ssize_t, Py_ssize_t);
            |                                         ^~~~~~~~~~
      uvloop/loop.c: In function ‘__pyx_pw_6uvloop_4loop_4Loop_19call_at’:
      uvloop/loop.c:37893:43: warning: passing argument 1 of ‘PyTuple_GetSlice’ from incompatible pointer type [-Wincompatible-pointer-types]
      37893 |   __pyx_v_args = __Pyx_ArgsSlice_FASTCALL(__pyx_args, 2, __pyx_nargs);
            |                                           ^~~~~~~~~~
            |                                           |
            |                                           PyObject * const* {aka struct _object * const*}
      uvloop/loop.c:4468:70: note: in definition of macro ‘__Pyx_ArgsSlice_FASTCALL’
       4468 | #define __Pyx_ArgsSlice_FASTCALL(args, start, stop) PyTuple_GetSlice(args, start, stop)
            |                                                                      ^~~~
      /usr/include/python3.14t/tupleobject.h:34:41: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘PyObject * const*’ {aka ‘struct _object * const*’}
         34 | PyAPI_FUNC(PyObject *) PyTuple_GetSlice(PyObject *, Py_ssize_t, Py_ssize_t);
            |                                         ^~~~~~~~~~
      uvloop/loop.c: In function ‘__pyx_pw_6uvloop_4loop_4Loop_76add_reader’:
      uvloop/loop.c:55161:43: warning: passing argument 1 of ‘PyTuple_GetSlice’ from incompatible pointer type [-Wincompatible-pointer-types]
      55161 |   __pyx_v_args = __Pyx_ArgsSlice_FASTCALL(__pyx_args, 2, __pyx_nargs);
            |                                           ^~~~~~~~~~
            |                                           |
            |                                           PyObject * const* {aka struct _object * const*}
      uvloop/loop.c:4468:70: note: in definition of macro ‘__Pyx_ArgsSlice_FASTCALL’
       4468 | #define __Pyx_ArgsSlice_FASTCALL(args, start, stop) PyTuple_GetSlice(args, start, stop)
            |                                                                      ^~~~
      /usr/include/python3.14t/tupleobject.h:34:41: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘PyObject * const*’ {aka ‘struct _object * const*’}
         34 | PyAPI_FUNC(PyObject *) PyTuple_GetSlice(PyObject *, Py_ssize_t, Py_ssize_t);
            |                                         ^~~~~~~~~~
      uvloop/loop.c: In function ‘__pyx_pw_6uvloop_4loop_4Loop_80add_writer’:
      uvloop/loop.c:55518:43: warning: passing argument 1 of ‘PyTuple_GetSlice’ from incompatible pointer type [-Wincompatible-pointer-types]
      55518 |   __pyx_v_args = __Pyx_ArgsSlice_FASTCALL(__pyx_args, 2, __pyx_nargs);
            |                                           ^~~~~~~~~~
            |                                           |
            |                                           PyObject * const* {aka struct _object * const*}
      uvloop/loop.c:4468:70: note: in definition of macro ‘__Pyx_ArgsSlice_FASTCALL’
       4468 | #define __Pyx_ArgsSlice_FASTCALL(args, start, stop) PyTuple_GetSlice(args, start, stop)
            |                                                                      ^~~~
      /usr/include/python3.14t/tupleobject.h:34:41: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘PyObject * const*’ {aka ‘struct _object * const*’}
         34 | PyAPI_FUNC(PyObject *) PyTuple_GetSlice(PyObject *, Py_ssize_t, Py_ssize_t);
            |                                         ^~~~~~~~~~
      uvloop/loop.c: In function ‘__pyx_pw_6uvloop_4loop_4Loop_111run_in_executor’:
      uvloop/loop.c:60390:43: warning: passing argument 1 of ‘PyTuple_GetSlice’ from incompatible pointer type [-Wincompatible-pointer-types]
      60390 |   __pyx_v_args = __Pyx_ArgsSlice_FASTCALL(__pyx_args, 2, __pyx_nargs);
            |                                           ^~~~~~~~~~
            |                                           |
            |                                           PyObject * const* {aka struct _object * const*}
      uvloop/loop.c:4468:70: note: in definition of macro ‘__Pyx_ArgsSlice_FASTCALL’
       4468 | #define __Pyx_ArgsSlice_FASTCALL(args, start, stop) PyTuple_GetSlice(args, start, stop)
            |                                                                      ^~~~
      /usr/include/python3.14t/tupleobject.h:34:41: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘PyObject * const*’ {aka ‘struct _object * const*’}
         34 | PyAPI_FUNC(PyObject *) PyTuple_GetSlice(PyObject *, Py_ssize_t, Py_ssize_t);
            |                                         ^~~~~~~~~~
      uvloop/loop.c: In function ‘__pyx_pw_6uvloop_4loop_4Loop_121subprocess_exec’:
      uvloop/loop.c:62519:43: warning: passing argument 1 of ‘PyTuple_GetSlice’ from incompatible pointer type [-Wincompatible-pointer-types]
      62519 |   __pyx_v_args = __Pyx_ArgsSlice_FASTCALL(__pyx_args, 2, __pyx_nargs);
            |                                           ^~~~~~~~~~
            |                                           |
            |                                           PyObject * const* {aka struct _object * const*}
      uvloop/loop.c:4468:70: note: in definition of macro ‘__Pyx_ArgsSlice_FASTCALL’
       4468 | #define __Pyx_ArgsSlice_FASTCALL(args, start, stop) PyTuple_GetSlice(args, start, stop)
            |                                                                      ^~~~
      /usr/include/python3.14t/tupleobject.h:34:41: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘PyObject * const*’ {aka ‘struct _object * const*’}
         34 | PyAPI_FUNC(PyObject *) PyTuple_GetSlice(PyObject *, Py_ssize_t, Py_ssize_t);
            |                                         ^~~~~~~~~~
      uvloop/loop.c: In function ‘__pyx_pw_6uvloop_4loop_4Loop_130add_signal_handler’:
      uvloop/loop.c:63959:43: warning: passing argument 1 of ‘PyTuple_GetSlice’ from incompatible pointer type [-Wincompatible-pointer-types]
      63959 |   __pyx_v_args = __Pyx_ArgsSlice_FASTCALL(__pyx_args, 2, __pyx_nargs);
            |                                           ^~~~~~~~~~
            |                                           |
            |                                           PyObject * const* {aka struct _object * const*}
      uvloop/loop.c:4468:70: note: in definition of macro ‘__Pyx_ArgsSlice_FASTCALL’
       4468 | #define __Pyx_ArgsSlice_FASTCALL(args, start, stop) PyTuple_GetSlice(args, start, stop)
            |                                                                      ^~~~
      /usr/include/python3.14t/tupleobject.h:34:41: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘PyObject * const*’ {aka ‘struct _object * const*’}
         34 | PyAPI_FUNC(PyObject *) PyTuple_GetSlice(PyObject *, Py_ssize_t, Py_ssize_t);
            |                                         ^~~~~~~~~~
      uvloop/loop.c: In function ‘__pyx_gb_6uvloop_4loop_4Loop_135generator21’:
      uvloop/loop.c:67800:3: warning: ‘Py_OptimizeFlag’ is deprecated [-Wdeprecated-declarations]
      67800 |   if (unlikely(__pyx_assertions_enabled())) {
            |   ^~
      In file included from /usr/include/python3.14t/Python.h:78:
      /usr/include/python3.14t/cpython/pydebug.h:13:37: note: declared here
         13 | Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_OptimizeFlag;
            |                                     ^~~~~~~~~~~~~~~
      uvloop/loop.c: In function ‘__pyx_f_6uvloop_4loop_6Handle__run’:
      uvloop/loop.c:75150:9: warning: ‘Py_OptimizeFlag’ is deprecated [-Wdeprecated-declarations]
      75150 |         if (unlikely(__pyx_assertions_enabled())) {
            |         ^~
      /usr/include/python3.14t/cpython/pydebug.h:13:37: note: declared here
         13 | Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_OptimizeFlag;
            |                                     ^~~~~~~~~~~~~~~
      uvloop/loop.c: In function ‘__pyx_f_6uvloop_4loop_11TimerHandle__run’:
      uvloop/loop.c:78447:9: warning: ‘Py_OptimizeFlag’ is deprecated [-Wdeprecated-declarations]
      78447 |         if (unlikely(__pyx_assertions_enabled())) {
            |         ^~
      /usr/include/python3.14t/cpython/pydebug.h:13:37: note: declared here
         13 | Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_OptimizeFlag;
            |                                     ^~~~~~~~~~~~~~~
      uvloop/loop.c: In function ‘__pyx_f_6uvloop_4loop_14UVSocketHandle__get_socket’:
      uvloop/loop.c:92704:5: warning: ‘Py_OptimizeFlag’ is deprecated [-Wdeprecated-declarations]
      92704 |     if (unlikely(__pyx_assertions_enabled())) {
            |     ^~
      /usr/include/python3.14t/cpython/pydebug.h:13:37: note: declared here
         13 | Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_OptimizeFlag;
            |                                     ^~~~~~~~~~~~~~~
      uvloop/loop.c: In function ‘__pyx_f_6uvloop_4loop_18UVProcessTransport__init_files’:
      uvloop/loop.c:135405:3: warning: ‘Py_OptimizeFlag’ is deprecated [-Wdeprecated-declarations]
      135405 |   if (unlikely(__pyx_assertions_enabled())) {
             |   ^~
      /usr/include/python3.14t/cpython/pydebug.h:13:37: note: declared here
         13 | Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_OptimizeFlag;
            |                                     ^~~~~~~~~~~~~~~
      uvloop/loop.c: In function ‘__pyx_pf_6uvloop_4loop_11SSLProtocol_18pause_writing’:
      uvloop/loop.c:165992:3: warning: ‘Py_OptimizeFlag’ is deprecated [-Wdeprecated-declarations]
      165992 |   if (unlikely(__pyx_assertions_enabled())) {
             |   ^~
      /usr/include/python3.14t/cpython/pydebug.h:13:37: note: declared here
         13 | Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_OptimizeFlag;
            |                                     ^~~~~~~~~~~~~~~
      uvloop/loop.c: In function ‘__pyx_pf_6uvloop_4loop_11SSLProtocol_20resume_writing’:
      uvloop/loop.c:166099:3: warning: ‘Py_OptimizeFlag’ is deprecated [-Wdeprecated-declarations]
      166099 |   if (unlikely(__pyx_assertions_enabled())) {
             |   ^~
      /usr/include/python3.14t/cpython/pydebug.h:13:37: note: declared here
         13 | Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_OptimizeFlag;
            |                                     ^~~~~~~~~~~~~~~
      uvloop/loop.c: In function ‘__pyx_f_6uvloop_4loop_6Server__attach’:
      uvloop/loop.c:172171:3: warning: ‘Py_OptimizeFlag’ is deprecated [-Wdeprecated-declarations]
      172171 |   if (unlikely(__pyx_assertions_enabled())) {
             |   ^~
      /usr/include/python3.14t/cpython/pydebug.h:13:37: note: declared here
         13 | Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_OptimizeFlag;
            |                                     ^~~~~~~~~~~~~~~
      uvloop/loop.c: In function ‘__pyx_f_6uvloop_4loop_6Server__detach’:
      uvloop/loop.c:172238:3: warning: ‘Py_OptimizeFlag’ is deprecated [-Wdeprecated-declarations]
      172238 |   if (unlikely(__pyx_assertions_enabled())) {
             |   ^~
      /usr/include/python3.14t/cpython/pydebug.h:13:37: note: declared here
         13 | Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_OptimizeFlag;
            |                                     ^~~~~~~~~~~~~~~
      uvloop/loop.c: At top level:
      uvloop/loop.c:207203:69: error: unknown type name ‘__pyx_vectorcallfunc’; did you mean ‘vectorcallfunc’?
      207203 | static PyObject *__Pyx_PyVectorcall_FastCallDict_kw(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw)
             |                                                                     ^~~~~~~~~~~~~~~~~~~~
             |                                                                     vectorcallfunc
      uvloop/loop.c:207248:80: error: unknown type name ‘__pyx_vectorcallfunc’; did you mean ‘vectorcallfunc’?
      207248 | static CYTHON_INLINE PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw)
             |                                                                                ^~~~~~~~~~~~~~~~~~~~
             |                                                                                vectorcallfunc
      uvloop/loop.c: In function ‘__Pyx_CyFunction_CallAsMethod’:
      uvloop/loop.c:207937:6: error: unknown type name ‘__pyx_vectorcallfunc’; did you mean ‘vectorcallfunc’?
      207937 |      __pyx_vectorcallfunc vc = __Pyx_CyFunction_func_vectorcall(cyfunc);
             |      ^~~~~~~~~~~~~~~~~~~~
             |      vectorcallfunc
      uvloop/loop.c:4627:45: warning: initialization of ‘int’ from ‘vectorcallfunc’ {aka ‘struct _object * (*)(struct _object *, struct _object * const*, long unsigned int,  struct _object *)’} makes integer from pointer without a cast [-Wint-conversion]
       4627 | #define __Pyx_CyFunction_func_vectorcall(f) (((PyCFunctionObject*)f)->vectorcall)
            |                                             ^
      uvloop/loop.c:207937:32: note: in expansion of macro ‘__Pyx_CyFunction_func_vectorcall’
      207937 |      __pyx_vectorcallfunc vc = __Pyx_CyFunction_func_vectorcall(cyfunc);
             |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      uvloop/loop.c:207940:16: warning: implicit declaration of function ‘__Pyx_PyVectorcall_FastCallDict’; did you mean ‘__Pyx_PyObject_FastCallDict’? [-Wimplicit-function-declaration]
      207940 |         return __Pyx_PyVectorcall_FastCallDict(func, vc, &PyTuple_GET_ITEM(args, 0), (size_t)PyTuple_GET_SIZE(args), kw);
             |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
             |                __Pyx_PyObject_FastCallDict
      uvloop/loop.c:207940:16: warning: returning ‘int’ from a function with return type ‘PyObject *’ {aka ‘struct _object *’} makes pointer from integer without a cast [-Wint-conversion]
      207940 |         return __Pyx_PyVectorcall_FastCallDict(func, vc, &PyTuple_GET_ITEM(args, 0), (size_t)PyTuple_GET_SIZE(args), kw);
             |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for uvloop
Failed to build uvloop
ERROR: Failed to build installable wheels for some pyproject.toml based projects (uvloop)
(.venv) allen@debian-pc:/tmp/test$ python3.14-nogil --version
Python 3.14.0b1
(.venv) allen@debian-pc:/tmp/test$ python3.14-nogil
Python 3.14.0b1 experimental free-threading build (main, May  8 2025, 08:57:12) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant