piaware_builder icon indicating copy to clipboard operation
piaware_builder copied to clipboard

Trixie support

Open helioshk opened this issue 6 months ago • 0 comments

Hi, It fails to build on debian trixie (Python 3.13.5) when attempting to use the bookworm parameter.

running build_ext
creating build/temp.linux-x86_64-cpython-313/source/bases
x86_64-linux-gnu-gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/user/git/piaware_builder/package-bookworm=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/user/git/piaware_builder/package-bookworm/debian/venv/include -I/usr/include/python3.13 -c source/bases/console.c -o build/temp.linux-x86_64-cpython-313/source/bases/console.o
In file included from source/bases/console.c:44:
source/bases/common.c: In function ‘InitializePython’:
source/bases/common.c:167:5: warning: ‘Py_NoSiteFlag’ is deprecated [-Wdeprecated-declarations]
  167 |     Py_NoSiteFlag = 1;
      |     ^~~~~~~~~~~~~
In file included from /usr/include/python3.13/Python.h:76,
                 from source/bases/console.c:7:
/usr/include/python3.13/cpython/pydebug.h:14:37: note: declared here
   14 | Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_NoSiteFlag;
      |                                     ^~~~~~~~~~~~~
source/bases/common.c:168:5: warning: ‘Py_FrozenFlag’ is deprecated [-Wdeprecated-declarations]
  168 |     Py_FrozenFlag = 1;
      |     ^~~~~~~~~~~~~
/usr/include/python3.13/cpython/pydebug.h:16:37: note: declared here
   16 | Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_FrozenFlag;
      |                                     ^~~~~~~~~~~~~
source/bases/common.c:169:5: warning: ‘Py_IgnoreEnvironmentFlag’ is deprecated [-Wdeprecated-declarations]
  169 |     Py_IgnoreEnvironmentFlag = 1;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.13/cpython/pydebug.h:17:37: note: declared here
   17 | Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_IgnoreEnvironmentFlag;
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~
source/bases/common.c:170:5: warning: ‘Py_SetProgramName’ is deprecated [-Wdeprecated-declarations]
  170 |     Py_SetProgramName(g_ExecutableName);
      |     ^~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.13/Python.h:123:
/usr/include/python3.13/pylifecycle.h:37:38: note: declared here
   37 | Py_DEPRECATED(3.11) PyAPI_FUNC(void) Py_SetProgramName(const wchar_t *);
      |                                      ^~~~~~~~~~~~~~~~~
source/bases/common.c:171:5: error: implicit declaration of function ‘Py_SetPath’; did you mean ‘Py_GetPath’? [-Wimplicit-function-declaration]
  171 |     Py_SetPath(wpath);
      |     ^~~~~~~~~~
      |     Py_GetPath
source/bases/common.c:173:5: warning: ‘PySys_SetArgvEx’ is deprecated [-Wdeprecated-declarations]
  173 |     PySys_SetArgvEx(argc, argv, 0);
      |     ^~~~~~~~~~~~~~~
In file included from /usr/include/python3.13/Python.h:125:
/usr/include/python3.13/sysmodule.h:11:38: note: declared here
   11 | Py_DEPRECATED(3.11) PyAPI_FUNC(void) PySys_SetArgvEx(int, wchar_t **, int);
      |                                      ^~~~~~~~~~~~~~~
source/bases/console.c: In function ‘main’:
source/bases/console.c:77:14: error: implicit declaration of function ‘_PyMem_RawStrdup’; did you mean ‘PyMem_RawFree’? [-Wimplicit-function-declaration]
   77 |     oldloc = _PyMem_RawStrdup(setlocale(LC_ALL, NULL));
      |              ^~~~~~~~~~~~~~~~
      |              PyMem_RawFree
source/bases/console.c:77:12: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
   77 |     oldloc = _PyMem_RawStrdup(setlocale(LC_ALL, NULL));
      |            ^
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1

ERROR Backend subprocess exited when trying to invoke build_wheel
make[1]: *** [debian/rules:83: build_mlat-client] Error 1
make[1]: Leaving directory '/home/user/git/piaware_builder/package-bookworm'
make: *** [debian/rules:116: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

helioshk avatar Aug 23 '25 12:08 helioshk