[From nobody Thu Sep 10 11:57:59 2026
Received: (at submit) by bugs.debian.org; 29 Aug 2026 10:32:37 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-121.0 required=4.0 tests=ALL_TRUSTED,BAYES_00,
 BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
 DKIM_VALID_AU,DKIM_VALID_EF,FROMDEVELOPER,HAS_PACKAGE,
 PP_MIME_FAKE_ASCII_TEXT,SPF_HELO_PASS,SPF_PASS,
 USER_IN_DKIM_WELCOMELIST,X_DEBBUGS_CC autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 24; hammy, 150; neutral, 121; spammy,
 0. spammytokens: hammytokens:0.000-+--python3,
 0.000-+--pkgbuilddir, 
 0.000-+--PKGBUILDDIR, 0.000-+--HTo:N*Debian, 0.000-+--forky
Return-path: &lt;sanvila@debian.org&gt;
Received: from mailly.debian.org ([2001:41b8:202:deb:6564:a62:52c3:4b72]:41282)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;sanvila@debian.org&gt;) id 1x0GMX-000GvY-2E
 for submit@bugs.debian.org; Sat, 29 Aug 2026 10:32:37 +0000
Received: via submission
 from C=NA, ST=NA, L=Ankh Morpork, O=Debian SMTP, OU=Debian SMTP CA,
 CN=paradis.debian.org, EMAIL=hostmaster@paradis.debian.org (verified)
 by mailly.debian.org with esmtps
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;sanvila@debian.org&gt;) id 1x0GMW-005kIr-1U
 for submit@bugs.debian.org; Sat, 29 Aug 2026 10:32:36 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; 
 s=smtpauto.paradis;
 h=Date:Message-Id:Subject:To:From:Reply-To:Cc:
 MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID:
 Content-Description:In-Reply-To:References;
 bh=LzMyN+Y8LymaMN9KLUOCCqt+z4ebiZAMPXXgPSyakBk=; b=eZM8sJ8zKcQ+nZibcBuKVaX9Zb
 /Q+HsK4NZYFthL7lMdFSDOfZrg4Jdu9s4w5DDNXR6SNilnm+tCIZnzElh0Lfff/nGkua5TuVbBBIM
 Hvgwko/7smFGOou2v4BNij+dwG5PIr2RV0PiB1n2iorXeRpJa5OrI6lN5dl30CDTi/Ij66cmsc9/z
 GGkn7V0MzA2Stw/fj/EGcTOwKIDcjqN9fMhSutwxM2jJO1YjK7rR3uABTBYmfXbOKke8W2J6a5nvF
 xTOHCP51CQDYOn7njSZAKcA88kNINV7o2T5NO50hbUXCxxEMe0praxhb/g04KpXir8nD8Ursa+yeF
 DnlvhKUA==;
Received: from sanvila by paradis.debian.org with local (Exim 4.96)
 (envelope-from &lt;sanvila@debian.org&gt;) id 1x0GMV-0053ox-0b
 for submit@bugs.debian.org; Sat, 29 Aug 2026 10:32:35 +0000
From: Santiago Vila &lt;sanvila@debian.org&gt;
To: Debian BTS &lt;submit@bugs.debian.org&gt;
Subject: python-fann2: FTBFS: fann2/fann2_wrap.cpp:10062:41: error:
 'PyInt_AsLong' was not declared in this scope; did you mean 'PyLong_AsLong'?
X-Debbugs-Cc: sanvila@debian.org
Message-Id: &lt;E1x0GMV-0053ox-0b@paradis.debian.org&gt;
Date: Sat, 29 Aug 2026 10:32:35 +0000
Delivered-To: submit@bugs.debian.org

Package: src:python-fann2
Version: 1:1.2.0+ds-5
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:python-fann2, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
swig -python -c++ -o fann2/fann2_wrap.cpp fann2/fann2.i
creating build/temp.linux-x86_64-cpython-314/fann2
x86_64-linux-gnu-g++ -g -O2 -ffile-prefix-map=/&lt;&lt;PKGBUILDDIR&gt;&gt;=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DSWIG_COMPILE -I./include -I../include -Iinclude -I/usr/include/python3.14 -c fann2/fann2_wrap.cpp -o build/temp.linux-x86_64-cpython-314/fann2/fann2_wrap.o
fann2/fann2_wrap.cpp: In function ‘PyObject* _wrap_neural_net_create_standard_array(PyObject*, PyObject*)’:
fann2/fann2_wrap.cpp:10062:41: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
10062 |         arg2-&gt;array[i] = (unsigned int) PyInt_AsLong(o);
      |                                         ^~~~~~~~~~~~
      |                                         PyLong_AsLong
fann2/fann2_wrap.cpp: In function ‘PyObject* _wrap_neural_net_create_sparse_array(PyObject*, PyObject*)’:
fann2/fann2_wrap.cpp:10135:41: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
10135 |         arg3-&gt;array[i] = (unsigned int) PyInt_AsLong(o);
      |                                         ^~~~~~~~~~~~
      |                                         PyLong_AsLong
fann2/fann2_wrap.cpp: In function ‘PyObject* _wrap_neural_net_create_shortcut_array(PyObject*, PyObject*)’:
fann2/fann2_wrap.cpp:10200:41: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
10200 |         arg2-&gt;array[i] = (unsigned int) PyInt_AsLong(o);
      |                                         ^~~~~~~~~~~~
      |                                         PyLong_AsLong
fann2/fann2_wrap.cpp: In function ‘PyObject* _wrap_neural_net_get_layer_array(PyObject*, PyObject*)’:
fann2/fann2_wrap.cpp:10557:21: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
10557 |       PyObject *o = PyInt_FromLong( (long) result-&gt;array[i]);
      |                     ^~~~~~~~~~~~~~
      |                     PyLong_FromLong
fann2/fann2_wrap.cpp: In function ‘PyObject* _wrap_neural_net_get_bias_array(PyObject*, PyObject*)’:
fann2/fann2_wrap.cpp:10594:21: error: ‘PyInt_FromLong’ was not declared in this scope; did you mean ‘PyLong_FromLong’?
10594 |       PyObject *o = PyInt_FromLong( (long) result-&gt;array[i]);
      |                     ^~~~~~~~~~~~~~
      |                     PyLong_FromLong
fann2/fann2_wrap.cpp: In function ‘PyObject* _wrap_neural_net_set_weight_array(PyObject*, PyObject*)’:
fann2/fann2_wrap.cpp:10672:11: error: ‘PyInt_Check’ was not declared in this scope; did you mean ‘PySet_Check’?
10672 |       if (PyInt_Check(from_neuron) &amp;&amp; PyInt_Check(to_neuron) &amp;&amp;
      |           ^~~~~~~~~~~
      |           PySet_Check
fann2/fann2_wrap.cpp:10674:53: error: ‘PyInt_AsLong’ was not declared in this scope; did you mean ‘PyLong_AsLong’?
10674 |         arg2-&gt;array[i].from_neuron = (unsigned int) PyInt_AsLong(from_neuron);
      |                                                     ^~~~~~~~~~~~
      |                                                     PyLong_AsLong
error: command '/usr/bin/x86_64-linux-gnu-g++' failed with exit code 1
E: pybuild pybuild:485: build: plugin distutils failed with: exit code=1: /usr/bin/python3 setup.py build 
dh_auto_build: error: pybuild --build -i python{version} -p 3.14 --parallel=2 returned exit code 13
make: *** [debian/rules:13: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------
]