Bug#1145149: device-tree-compiler: FTBFS: /<<PKGBUILDDIR>>/./pylibfdt/libfdt_wrap.c:5555:20: error: implicit declaration of function 'PyInt_AsLong'; did you mean 'PyLong_AsLong'? [-Wimplicit-function-declaration]

Santiago Vila <[email protected]>
Newsgroups gmane.linux.debian.devel.bugs.rc
Message-ID <E1wy54x-00FvCP-2T__49508.2175520778$1787479659$gmane$org@paradis.debian.org>
Package: src:device-tree-compiler
Version: 1.7.2-2
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202608/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:device-tree-compiler, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
building '_libfdt' extension
swigging /<<PKGBUILDDIR>>/./pylibfdt/libfdt.i to /<<PKGBUILDDIR>>/./pylibfdt/libfdt_wrap.c
swig -python -I/<<PKGBUILDDIR>>/./libfdt -o /<<PKGBUILDDIR>>/./pylibfdt/libfdt_wrap.c /<<PKGBUILDDIR>>/./pylibfdt/libfdt.i
creating build/temp.linux-x86_64-cpython-314/<<PKGBUILDDIR>>/pylibfdt
x86_64-linux-gnu-gcc -g -Os -fPIC -Werror -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-error -I/usr/include/valgrind -Wno-error -Wdate-time -D_FORTIFY_SOURCE=2 -I libfdt -I . -fPIC -DPY_SSIZE_T_CLEAN -I/<<PKGBUILDDIR>>/./libfdt -I/usr/include/python3.14 -c /<<PKGBUILDDIR>>/./pylibfdt/libfdt_wrap.c -o build/temp.linux-x86_64-cpython-314/<<PKGBUILDDIR>>/pylibfdt/libfdt_wrap.o
/<<PKGBUILDDIR>>/./pylibfdt/libfdt_wrap.c: In function ‘_wrap_fdt_next_node’:
/<<PKGBUILDDIR>>/./pylibfdt/libfdt_wrap.c:5555:20: error: implicit declaration of function ‘PyInt_AsLong’; did you mean ‘PyLong_AsLong’? [-Wimplicit-function-declaration]
 5555 |     depth3 = (int) PyInt_AsLong(swig_obj[2]);
      |                    ^~~~~~~~~~~~
      |                    PyLong_AsLong
/<<PKGBUILDDIR>>/./pylibfdt/libfdt_wrap.c: In function ‘_wrap_fdt_get_property_by_offset’:
/<<PKGBUILDDIR>>/./pylibfdt/libfdt_wrap.c:6606:19: error: implicit declaration of function ‘PyString_FromString’; did you mean ‘PyLong_FromString’? [-Wimplicit-function-declaration]
 6606 |       resultobj = PyString_FromString(
      |                   ^~~~~~~~~~~~~~~~~~~
      |                   PyLong_FromString
/<<PKGBUILDDIR>>/./pylibfdt/libfdt_wrap.c:6606:17: error: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
 6606 |       resultobj = PyString_FromString(
      |                 ^
/<<PKGBUILDDIR>>/./pylibfdt/libfdt_wrap.c: In function ‘_wrap_fdt_get_property_by_offset_w’:
/<<PKGBUILDDIR>>/./pylibfdt/libfdt_wrap.c:6660:17: error: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
 6660 |       resultobj = PyString_FromString(
      |                 ^
/<<PKGBUILDDIR>>/./pylibfdt/libfdt_wrap.c: In function ‘_wrap_fdt_get_property’:
/<<PKGBUILDDIR>>/./pylibfdt/libfdt_wrap.c:6723:17: error: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
 6723 |       resultobj = PyString_FromString(
      |                 ^
/<<PKGBUILDDIR>>/./pylibfdt/libfdt_wrap.c: In function ‘_wrap_fdt_get_property_w’:
/<<PKGBUILDDIR>>/./pylibfdt/libfdt_wrap.c:6788:17: error: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
 6788 |       resultobj = PyString_FromString(
      |                 ^
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
make[3]: *** [pylibfdt/Makefile.pylibfdt:21: pylibfdt/_libfdt.so] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>'
make[2]: *** [Makefile:173: maybe_pylibfdt] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j2 INSTALL="install --strip-program=true" V=1 EXTRA_CFLAGS="-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-error" CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2 -I libfdt -I ." returned exit code 2
make[1]: *** [debian/rules:31: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:28: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.