Skip to content

ubuntu-latest - 3.15-dev free-threading failing #426

Description

@maurycy

https://github.com/python/pyperformance/actions/runs/18779843038

Building wheels for collected packages: psutil
  Building wheel for psutil (pyproject.toml): started
  Building wheel for psutil (pyproject.toml): finished with status 'error'
x  error: subprocess-exited-with-error
  
  × Building wheel for psutil (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [97 lines of output]
      /tmp/pip-build-env-g3ie11hb/overlay/lib/python3.15t/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 :: BSD 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-315t/psutil
      copying psutil/_pswindows.py -> build/lib.linux-x86_64-cpython-315t/psutil
      copying psutil/_psbsd.py -> build/lib.linux-x86_64-cpython-315t/psutil
      copying psutil/_common.py -> build/lib.linux-x86_64-cpython-315t/psutil
      copying psutil/_psposix.py -> build/lib.linux-x86_64-cpython-315t/psutil
      copying psutil/_pssunos.py -> build/lib.linux-x86_64-cpython-315t/psutil
      copying psutil/_compat.py -> build/lib.linux-x86_64-cpython-315t/psutil
      copying psutil/_psosx.py -> build/lib.linux-x86_64-cpython-315t/psutil
      copying psutil/__init__.py -> build/lib.linux-x86_64-cpython-315t/psutil
      copying psutil/_psaix.py -> build/lib.linux-x86_64-cpython-315t/psutil
      copying psutil/_pslinux.py -> build/lib.linux-x86_64-cpython-315t/psutil
      creating build/lib.linux-x86_64-cpython-315t/psutil/tests
      copying psutil/tests/test_system.py -> build/lib.linux-x86_64-cpython-315t/psutil/tests
      copying psutil/tests/test_aix.py -> build/lib.linux-x86_64-cpython-315t/psutil/tests
      copying psutil/tests/test_windows.py -> build/lib.linux-x86_64-cpython-315t/psutil/tests
      copying psutil/tests/test_connections.py -> build/lib.linux-x86_64-cpython-315t/psutil/tests
      copying psutil/tests/test_contracts.py -> build/lib.linux-x86_64-cpython-315t/psutil/tests
      copying psutil/tests/test_sunos.py -> build/lib.linux-x86_64-cpython-315t/psutil/tests
      copying psutil/tests/test_memleaks.py -> build/lib.linux-x86_64-cpython-315t/psutil/tests
      copying psutil/tests/test_unicode.py -> build/lib.linux-x86_64-cpython-315t/psutil/tests
      copying psutil/tests/test_testutils.py -> build/lib.linux-x86_64-cpython-315t/psutil/tests
      copying psutil/tests/test_misc.py -> build/lib.linux-x86_64-cpython-315t/psutil/tests
      copying psutil/tests/test_bsd.py -> build/lib.linux-x86_64-cpython-315t/psutil/tests
      copying psutil/tests/runner.py -> build/lib.linux-x86_64-cpython-315t/psutil/tests
      copying psutil/tests/__main__.py -> build/lib.linux-x86_64-cpython-315t/psutil/tests
      copying psutil/tests/test_process.py -> build/lib.linux-x86_64-cpython-315t/psutil/tests
      copying psutil/tests/__init__.py -> build/lib.linux-x86_64-cpython-315t/psutil/tests
      copying psutil/tests/test_linux.py -> build/lib.linux-x86_64-cpython-315t/psutil/tests
      copying psutil/tests/test_osx.py -> build/lib.linux-x86_64-cpython-315t/psutil/tests
      copying psutil/tests/test_posix.py -> build/lib.linux-x86_64-cpython-315t/psutil/tests
      running build_ext
      building 'psutil._psutil_linux' extension
      creating build/temp.linux-x86_64-cpython-315t/psutil
      x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_SIZEOF_PID_T=4 -DPSUTIL_VERSION=595 -DPy_LIMITED_API=0x03060000 -DPSUTIL_LINUX=1 -I/tmp/tmp_a1ikxdh/tmpkl0jykkb/venv/include -I/usr/include/python3.15t -c psutil/_psutil_common.c -o build/temp.linux-x86_64-cpython-315t/psutil/_psutil_common.o
      In file included from psutil/_psutil_common.c:9:
      /usr/include/python3.15t/Python.h:51:6: error: #error "Py_LIMITED_API is not currently supported in the free-threaded build"
         51 | #    error "Py_LIMITED_API is not currently supported in the free-threaded build"
            |      ^~~~~
      In file included from /usr/include/python3.15t/Python.h:83:
      /usr/include/python3.15t/object.h:162:5: error: unknown type name ‘PyMutex’
        162 |     PyMutex ob_mutex;           // per-object lock
            |     ^~~~~~~
      /usr/include/python3.15t/object.h: In function ‘Py_SET_SIZE’:
      /usr/include/python3.15t/object.h:321:5: warning: implicit declaration of function ‘_Py_atomic_store_ssize_relaxed’ [-Wimplicit-function-declaration]
        321 |     _Py_atomic_store_ssize_relaxed(&ob->ob_size, size);
            |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      In file included from /usr/include/python3.15t/Python.h:84:
      /usr/include/python3.15t/refcount.h: In function ‘_Py_REFCNT’:
      /usr/include/python3.15t/refcount.h:106:26: warning: implicit declaration of function ‘_Py_atomic_load_uint32_relaxed’ [-Wimplicit-function-declaration]
        106 |         uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local);
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /usr/include/python3.15t/refcount.h:110:29: warning: implicit declaration of function ‘_Py_atomic_load_ssize_relaxed’ [-Wimplicit-function-declaration]
        110 |         Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared);
            |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /usr/include/python3.15t/refcount.h: In function ‘_Py_IsImmortal’:
      /usr/include/python3.15t/refcount.h:126:63: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
        126 |     return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) ==
            |                                                               ^~
      /usr/include/python3.15t/refcount.h: In function ‘Py_SET_REFCNT’:
      /usr/include/python3.15t/refcount.h:172:9: warning: implicit declaration of function ‘_Py_IsOwnedByCurrentThread’ [-Wimplicit-function-declaration]
        172 |     if (_Py_IsOwnedByCurrentThread(ob)) {
            |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
      /usr/include/python3.15t/refcount.h: In function ‘Py_INCREF’:
      /usr/include/python3.15t/refcount.h:275:9: warning: implicit declaration of function ‘_Py_atomic_store_uint32_relaxed’ [-Wimplicit-function-declaration]
        275 |         _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local);
            |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /usr/include/python3.15t/refcount.h:278:9: warning: implicit declaration of function ‘_Py_atomic_add_ssize’; did you mean ‘__atomic_add_fetch’? [-Wimplicit-function-declaration]
        278 |         _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT));
            |         ^~~~~~~~~~~~~~~~~~~~
            |         __atomic_add_fetch
      /usr/include/python3.15t/refcount.h: In function ‘Py_DECREF’:
      /usr/include/python3.15t/refcount.h:374:13: warning: implicit declaration of function ‘_Py_MergeZeroLocalRefcount’ [-Wimplicit-function-declaration]
        374 |             _Py_MergeZeroLocalRefcount(op);
            |             ^~~~~~~~~~~~~~~~~~~~~~~~~~
      /usr/include/python3.15t/refcount.h:378:9: warning: implicit declaration of function ‘_Py_DecRefShared’; did you mean ‘_Py_DecRef’? [-Wimplicit-function-declaration]
        378 |         _Py_DecRefShared(op);
            |         ^~~~~~~~~~~~~~~~
            |         _Py_DecRef
      psutil could not be installed from sources. Perhaps Python header files are not installed. Try running:
        sudo apt-get install gcc python3-dev
      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 psutil
error: failed-wheel-build-for-install

× Failed to build installable wheels for some pyproject.toml based projects
╰─> psutil
Failed to build psutil
Command failed with exit code 1

F..............
======================================================================
FAIL: test_venv (test_commands.FullStackTests.test_venv)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/runner/work/pyperformance/pyperformance/pyperformance/tests/test_commands.py", line 125, in test_venv
    expect_success("venv", "create", "--venv", root)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/pyperformance/pyperformance/pyperformance/tests/test_commands.py", line 109, in expect_success
    self.run_pyperformance(
    ~~~~~~~~~~~~~~~~~~~~~~^
        *args,
        ^^^^^^
        capture=None,
        ^^^^^^^^^^^^^
    )
    ^
  File "/home/runner/work/pyperformance/pyperformance/pyperformance/tests/test_commands.py", line 80, in run_pyperformance
    self.assertEqual(ec, exitcode, repr(stdout))
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 1 != 0 : None

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