-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[FreeBSD ] error: incompatible integer to pointer conversion passing 'kvaddr_t' (aka 'unsigned long') to parameter of type 'void *' [-Wint-conversion] #2724
Copy link
Copy link
Open
Labels
Description
Summary
- OS: { FreeBSD 15.0 }
- Architecture: { 64bit, amd64 }
- Psutil version: { Name: psutil
Version: 7.2.0
Summary: Cross-platform lib for process and system monitoring.
Home-page: https://github.com/giampaolo/psutil
Author: Giampaolo Rodola
Author-email: g.rodola@gmail.com
License: BSD-3-Clause
Location: /home/maxfx/.local/lib/python3.11/site-packages
Requires:
Required-by: genio-tools, pylink-square
} - Python version: { Python 3.11.14
}
Description
{{{
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-hb54xeic/overlay/lib/python3.11/site-packages/setuptools/dist.py:765: 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-15.0-RELEASE-p2-amd64-cpython-311/psutil
copying psutil/_psosx.py -> build/lib.freebsd-15.0-RELEASE-p2-amd64-cpython-311/psutil
copying psutil/_compat.py -> build/lib.freebsd-15.0-RELEASE-p2-amd64-cpython-311/psutil
copying psutil/_pswindows.py -> build/lib.freebsd-15.0-RELEASE-p2-amd64-cpython-311/psutil
copying psutil/_pslinux.py -> build/lib.freebsd-15.0-RELEASE-p2-amd64-cpython-311/psutil
copying psutil/__init__.py -> build/lib.freebsd-15.0-RELEASE-p2-amd64-cpython-311/psutil
copying psutil/_psbsd.py -> build/lib.freebsd-15.0-RELEASE-p2-amd64-cpython-311/psutil
copying psutil/_psaix.py -> build/lib.freebsd-15.0-RELEASE-p2-amd64-cpython-311/psutil
copying psutil/_common.py -> build/lib.freebsd-15.0-RELEASE-p2-amd64-cpython-311/psutil
copying psutil/_psposix.py -> build/lib.freebsd-15.0-RELEASE-p2-amd64-cpython-311/psutil
copying psutil/_pssunos.py -> build/lib.freebsd-15.0-RELEASE-p2-amd64-cpython-311/psutil
creating build/lib.freebsd-15.0-RELEASE-p2-amd64-cpython-311/psutil/tests
copying psutil/tests/test_unicode.py -> build/lib.freebsd-15.0-RELEASE-p2-amd64-cpython-311/psutil/tests
copying psutil/tests/test_linux.py -> build/lib.freebsd-15.0-RELEASE-p2-amd64-cpython-311/psutil/tests
copying psutil/tests/test_windows.py -> build/lib.freebsd-15.0-RELEASE-p2-amd64-cpython-311/psutil/tests
copying psutil/tests/runner.py -> build/lib.freebsd-15.0-RELEASE-p2-amd64-cpython-311/psutil/tests
copying psutil/tests/__main__.py -> build/lib.freebsd-15.0-RELEASE-p2-amd64-cpython-311/psutil/tests
copying psutil/tests/test_connections.py -> build/lib.freebsd-15.0-RELEASE-p2-amd64-cpython-311/psutil/tests
copying psutil/tests/test_osx.py -> build/lib.freebsd-15.0-RELEASE-p2-amd64-cpython-311/psutil/tests
copying psutil/tests/test_testutils.py -> build/lib.freebsd-15.0-RELEASE-p2-amd64-cpython-311/psutil/tests
copying psutil/tests/test_system.py -> build/lib.freebsd-15.0-RELEASE-p2-amd64-cpython-311/psutil/tests
copying psutil/tests/test_sunos.py -> build/lib.freebsd-15.0-RELEASE-p2-amd64-cpython-311/psutil/tests
copying psutil/tests/test_memleaks.py -> build/lib.freebsd-15.0-RELEASE-p2-amd64-cpython-311/psutil/tests
copying psutil/tests/test_contracts.py -> build/lib.freebsd-15.0-RELEASE-p2-amd64-cpython-311/psutil/tests
copying psutil/tests/__init__.py -> build/lib.freebsd-15.0-RELEASE-p2-amd64-cpython-311/psutil/tests
copying psutil/tests/test_posix.py -> build/lib.freebsd-15.0-RELEASE-p2-amd64-cpython-311/psutil/tests
copying psutil/tests/test_process.py -> build/lib.freebsd-15.0-RELEASE-p2-amd64-cpython-311/psutil/tests
copying psutil/tests/test_misc.py -> build/lib.freebsd-15.0-RELEASE-p2-amd64-cpython-311/psutil/tests
copying psutil/tests/test_aix.py -> build/lib.freebsd-15.0-RELEASE-p2-amd64-cpython-311/psutil/tests
copying psutil/tests/test_bsd.py -> build/lib.freebsd-15.0-RELEASE-p2-amd64-cpython-311/psutil/tests
running build_ext
building 'psutil._psutil_bsd' extension
creating build/temp.freebsd-15.0-RELEASE-p2-amd64-cpython-311/psutil
creating build/temp.freebsd-15.0-RELEASE-p2-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-15.0-RELEASE-p2-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-15.0-RELEASE-p2-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-15.0-RELEASE-p2-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-15.0-RELEASE-p2-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-15.0-RELEASE-p2-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-15.0-RELEASE-p2-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
}}}
Reactions are currently unavailable