Bug#1087926: pycuda: FTBFS with Python 3.13
Graham Inggs
ginggs at debian.org
Wed Nov 20 10:27:08 GMT 2024
Source: pycuda
Version: 2024.1.2~dfsg-1
Severity: serious
User: debian-python at lists.debian.org
Usertags: python3.13
Hi Maintainer
pycuda FTBFS when built with Python 3.13 as a supported version. I've
copied what I hope is the relevant part of the log below.
Regards
Graham
In file included from src/cpp/cuda.hpp:23:
/usr/include/cudaProfiler.h:143:36: note: declared here
143 | __CUDA_DEPRECATED CUresult CUDAAPI cuProfilerInitialize(const
char *configFile, const char *outputFile, CUoutput_mode outputMode);
| ^~~~~~~~~~~~~~~~~~~~
src/wrapper/wrap_cudadrv.cpp: In function ‘pycuda::module*
{anonymous}::module_from_buffer(boost::python::api::object,
boost::python::api::object, boost::python::api::object)’:
src/wrapper/wrap_cudadrv.cpp:360:9: error: ‘PyObject_AsCharBuffer’ was
not declared in this scope; did you mean ‘PyObject_CheckBuffer’?
360 | if (PyObject_AsCharBuffer(buffer.ptr(), &mod_buf, &len))
| ^~~~~~~~~~~~~~~~~~~~~
| PyObject_CheckBuffer
src/wrapper/wrap_cudadrv.cpp: In member function ‘void
{anonymous}::Linker::add_data(boost::python::api::object,
CUjitInputType, boost::python::str)’:
src/wrapper/wrap_cudadrv.cpp:505:13: error: ‘PyObject_AsCharBuffer’
was not declared in this scope; did you mean ‘PyObject_CheckBuffer’?
505 | if (PyObject_AsCharBuffer(py_data.ptr(), &data_buf,
&data_buf_len) != 0) {
| ^~~~~~~~~~~~~~~~~~~~~
| PyObject_CheckBuffer
error: command '/usr/bin/x86_64-linux-gnu-g++' failed with exit code 1
E: pybuild pybuild:389: build: plugin distutils failed with: exit
code=1: /usr/bin/python3.13 setup.py build
More information about the pkg-nvidia-devel
mailing list