[Bug 292592] sysutils/py-psutil: build failed with pre-commit
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 20 Jan 2026 09:28:02 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292592
Bug ID: 292592
Summary: sysutils/py-psutil: build failed with pre-commit
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: sunpoet@FreeBSD.org
Reporter: freebsd@sysctl.cz
Flags: maintainer-feedback?(sunpoet@FreeBSD.org)
Assignee: sunpoet@FreeBSD.org
Hi,
I have an issue building the py-psutil on 14.3.
py311-psutil-7.2.1
Name : py311-psutil
Version : 7.2.1
Installed on : Tue Jan 20 10:22:12 2026 CET
Origin : sysutils/py-psutil
Architecture : FreeBSD:14:amd64
Prefix : /usr/local
Categories : python sysutils
Licenses : BSD3CLAUSE
Maintainer : sunpoet@FreeBSD.org
WWW : https://psutil.readthedocs.io/en/latest/
Comment : Process utilities module for Python
Shared Libs required:
libc.so.7
libdevstat.so.7
libutil.so.9
Annotations :
FreeBSD_version: 1403000
build_timestamp: 2026-01-18T01:04:43+0000
built_by : poudriere-git-3.4.4-15-g61aba751
cpe :
cpe:2.3:a:psutil_project:psutil:7.2.1:::::freebsd14:x64
flavor : py311
port_checkout_unclean: no
port_git_hash : 64c34c98e7560402eae0f1a9fb8bc69409fc8c7a
ports_top_checkout_unclean: no
ports_top_git_hash: 598036827bef31a020a763ab75640292c4d5e710
repo_type : binary
repository : FreeBSD
Flat size : 1.19MiB
Description :
psutil is a module providing an interface for retrieving information on running
processes and system utilization (CPU, memory) in a portable way by using
Python, implementing many functionalities offered by tools like ps, top and
Windows task manager.
[INFO] Initializing environment for https://github.com/fsfe/reuse-tool.
[INFO] Installing environment for local.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command:
('/home/maxfx/.cache/pre-commit/repoqa4u887v/py_env-python3.11/bin/python',
'-mpip', 'install', '.', 'psutil==5.8.0', 'Jinja2==3.0.1')
return code: 1
stdout:
Processing /home/maxfx/.cache/pre-commit/repoqa4u887v
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting psutil==5.8.0
Using cached psutil-5.8.0.tar.gz (470 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting Jinja2==3.0.1
Using cached Jinja2-3.0.1-py3-none-any.whl.metadata (3.5 kB)
Collecting MarkupSafe>=2.0 (from Jinja2==3.0.1)
Using cached
markupsafe-3.0.3-cp311-cp311-freebsd_14_3_release_p7_amd64.whl
Using cached Jinja2-3.0.1-py3-none-any.whl (133 kB)
Building wheels for collected packages: pre-commit-placeholder-package,
psutil
Building wheel for pre-commit-placeholder-package (pyproject.toml):
started
Building wheel for pre-commit-placeholder-package (pyproject.toml):
finished with status 'done'
Created wheel for pre-commit-placeholder-package:
filename=pre_commit_placeholder_package-0.0.0-py3-none-any.whl size=1152
sha256=de4542873fa7cd5f92bdd7778b4719a2b7809bdecdff8920801e856e01b1c3c7
Stored in directory:
/tmp/pip-ephem-wheel-cache-nfbz_k6k/wheels/8f/ee/66/49d3b21a4435fc86a3b74bbeaf4d16d87e96c57c17042fb408
Building wheel for psutil (pyproject.toml): started
Building wheel for psutil (pyproject.toml): finished with status 'error'
Successfully built pre-commit-placeholder-package
Failed to build psutil
stderr:
error: subprocess-exited-with-error
× Building wheel for psutil (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [73 lines of output]
/tmp/pip-build-env-t3m2ixpl/overlay/lib/python3.11/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.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil
copying psutil/_pswindows.py ->
build/lib.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil
copying psutil/_psaix.py ->
build/lib.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil
copying psutil/__init__.py ->
build/lib.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil
copying psutil/_psbsd.py ->
build/lib.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil
copying psutil/_compat.py ->
build/lib.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil
copying psutil/_pslinux.py ->
build/lib.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil
copying psutil/_psposix.py ->
build/lib.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil
copying psutil/_pssunos.py ->
build/lib.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil
copying psutil/_common.py ->
build/lib.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil
copying psutil/_psosx.py ->
build/lib.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil
creating
build/lib.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil/tests
copying psutil/tests/test_process.py ->
build/lib.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil/tests
copying psutil/tests/runner.py ->
build/lib.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil/tests
copying psutil/tests/test_osx.py ->
build/lib.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil/tests
copying psutil/tests/test_contracts.py ->
build/lib.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil/tests
copying psutil/tests/test_posix.py ->
build/lib.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil/tests
copying psutil/tests/__main__.py ->
build/lib.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil/tests
copying psutil/tests/test_sunos.py ->
build/lib.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil/tests
copying psutil/tests/test_memleaks.py ->
build/lib.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil/tests
copying psutil/tests/test_aix.py ->
build/lib.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil/tests
copying psutil/tests/test_connections.py ->
build/lib.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil/tests
copying psutil/tests/test_unicode.py ->
build/lib.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil/tests
copying psutil/tests/test_windows.py ->
build/lib.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil/tests
copying psutil/tests/test_bsd.py ->
build/lib.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil/tests
copying psutil/tests/test_misc.py ->
build/lib.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil/tests
copying psutil/tests/test_testutils.py ->
build/lib.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil/tests
copying psutil/tests/test_system.py ->
build/lib.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil/tests
copying psutil/tests/__init__.py ->
build/lib.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil/tests
copying psutil/tests/test_linux.py ->
build/lib.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil/tests
running build_ext
building 'psutil._psutil_bsd' extension
creating build/temp.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil
creating
build/temp.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil/arch/freebsd
cc -pthread -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe
-fstack-protector-strong -fno-strict-aliasing -fPIC -DPSUTIL_POSIX=1
-DPSUTIL_BSD=1 -DPSUTIL_SIZEOF_PID_T=4 -DPSUTIL_VERSION=580 -DPSUTIL_FREEBSD=1
-I/home/maxfx/.cache/pre-commit/repoqa4u887v/py_env-python3.11/include
-I/usr/local/include/python3.11 -c psutil/_psutil_bsd.c -o
build/temp.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil/_psutil_bsd.o
cc -pthread -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe
-fstack-protector-strong -fno-strict-aliasing -fPIC -DPSUTIL_POSIX=1
-DPSUTIL_BSD=1 -DPSUTIL_SIZEOF_PID_T=4 -DPSUTIL_VERSION=580 -DPSUTIL_FREEBSD=1
-I/home/maxfx/.cache/pre-commit/repoqa4u887v/py_env-python3.11/include
-I/usr/local/include/python3.11 -c psutil/_psutil_common.c -o
build/temp.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil/_psutil_common.o
cc -pthread -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe
-fstack-protector-strong -fno-strict-aliasing -fPIC -DPSUTIL_POSIX=1
-DPSUTIL_BSD=1 -DPSUTIL_SIZEOF_PID_T=4 -DPSUTIL_VERSION=580 -DPSUTIL_FREEBSD=1
-I/home/maxfx/.cache/pre-commit/repoqa4u887v/py_env-python3.11/include
-I/usr/local/include/python3.11 -c psutil/_psutil_posix.c -o
build/temp.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil/_psutil_posix.o
cc -pthread -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe
-fstack-protector-strong -fno-strict-aliasing -fPIC -DPSUTIL_POSIX=1
-DPSUTIL_BSD=1 -DPSUTIL_SIZEOF_PID_T=4 -DPSUTIL_VERSION=580 -DPSUTIL_FREEBSD=1
-I/home/maxfx/.cache/pre-commit/repoqa4u887v/py_env-python3.11/include
-I/usr/local/include/python3.11 -c psutil/arch/freebsd/proc_socks.c -o
build/temp.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil/arch/freebsd/proc_socks.o
cc -pthread -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe
-fstack-protector-strong -fno-strict-aliasing -fPIC -DPSUTIL_POSIX=1
-DPSUTIL_BSD=1 -DPSUTIL_SIZEOF_PID_T=4 -DPSUTIL_VERSION=580 -DPSUTIL_FREEBSD=1
-I/home/maxfx/.cache/pre-commit/repoqa4u887v/py_env-python3.11/include
-I/usr/local/include/python3.11 -c psutil/arch/freebsd/specific.c -o
build/temp.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil/arch/freebsd/specific.o
cc -pthread -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe
-fstack-protector-strong -fno-strict-aliasing -fPIC -DPSUTIL_POSIX=1
-DPSUTIL_BSD=1 -DPSUTIL_SIZEOF_PID_T=4 -DPSUTIL_VERSION=580 -DPSUTIL_FREEBSD=1
-I/home/maxfx/.cache/pre-commit/repoqa4u887v/py_env-python3.11/include
-I/usr/local/include/python3.11 -c psutil/arch/freebsd/sys_socks.c -o
build/temp.freebsd-14.3-RELEASE-p7-amd64-cpython-311/psutil/arch/freebsd/sys_socks.o
psutil/arch/freebsd/sys_socks.c:69:25: warning: comparison between
pointer and integer ('kvaddr_t' (aka 'unsigned long') and 'void *')
[-Wpointer-integer-compare]
69 | if (xf->xf_data == sock)
| ~~~~~~~~~~~ ^ ~~~~
psutil/arch/freebsd/sys_socks.c:181:40: error: incompatible integer
to pointer conversion passing 'kvaddr_t' (aka 'unsigned long') to parameter of
type 'void *' [-Wint-conversion]
181 | xf = psutil_get_file_from_sock(so->xso_so);
| ^~~~~~~~~~
psutil/arch/freebsd/sys_socks.c:64:33: note: passing argument to
parameter 'sock' here
64 | psutil_get_file_from_sock(void *sock) {
| ^
psutil/arch/freebsd/sys_socks.c:302:40: error: incompatible integer
to pointer conversion passing 'kvaddr_t' (aka 'unsigned long') to parameter of
type 'void *' [-Wint-conversion]
302 | xf =
psutil_get_file_from_sock(xup->xu_socket.xso_so);
| ^~~~~~~~~~~~~~~~~~~~~
psutil/arch/freebsd/sys_socks.c:64:33: note: passing argument to
parameter 'sock' here
64 | psutil_get_file_from_sock(void *sock) {
| ^
1 warning and 2 errors generated.
error: command '/usr/bin/cc' 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
Check the log at /home/maxfx/.cache/pre-commit/pre-commit.log
--
You are receiving this mail because:
You are the assignee for the bug.