Bug#1097441: neartree: ftbfs with GCC-15

Matthias Klose doko at debian.org
Mon Feb 17 17:39:10 GMT 2025


Package: src:neartree
Version: 5.1.1+dfsg1-2.1
Severity: important
Tags: sid forky
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-15

[This bug is NOT targeted to the upcoming trixie release]

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-15/g++-15, but succeeds to build with gcc-14/g++-14. The
severity of this report will be raised before the forky release.

The full build log can be found at:
http://qa-logs.debian.net/2025/02/16/amd64exp/neartree_5.1.1+dfsg1-2.1_unstable_gccexp.log.gz
The last lines of the build log are at the end of this report.

To build with GCC 15, either set CC=gcc-15 CXX=g++-15 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

GCC 15 now defaults to the C23/C++23 standards, exposing many FTBFS.
Other Common build failures are new warnings resulting in build failures
with -Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-15/porting_to.html

[...]
./TNear.h:3415:28: warning: comparison of integer expressions of different signedness: 'int' and 'const size_t' {aka 'const long unsigned int'} [-Wsign-compare]
 3415 |                 if (numrad < cneartree_dimsamples) {
      |                     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
./TNear.h: In instantiation of 'long int CNearTree<T, DistanceType, distMinValue>::FindK_NearestNeighbors(size_t, const DistanceType&, OutputContainerType&, const T&) [with OutputContainerType = std::vector<int, std::allocator<int> >; T = int; DistanceType = double; int distMinValue = -1; size_t = long unsigned int]':
./CNearTreeTest.cpp:3521:63:   required from here
 3521 |             const size_t lFound5 = tree.FindK_NearestNeighbors(
      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
 3522 |                                                                nToFind5,
      |                                                                ~~~~~~~~~
 3523 |                                                                radius5,
      |                                                                ~~~~~~~~
 3524 |                                                                outVector,
      |                                                                ~~~~~~~~~~
 3525 |                                                                searchPoint );
      |                                                                ~~~~~~~~~~~~~
./TNear.h:2750:28: warning: comparison of integer expressions of different signedness: 'int' and 'const size_t' {aka 'const long unsigned int'} [-Wsign-compare]
 2750 |                 if (numrad < cneartree_dimsamples) {
      |                     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
./TNear.h: In instantiation of 'long int CNearTree<T, DistanceType, distMinValue>::FindK_NearestNeighbors(size_t, const DistanceType&, OutputContainerType&, const T&) [with OutputContainerType = std::__cxx11::list<int>; T = int; DistanceType = double; int distMinValue = -1; size_t = long unsigned int]':
./CNearTreeTest.cpp:3538:63:   required from here
 3538 |             const size_t lFound6 = tree.FindK_NearestNeighbors(
      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
 3539 |                                                                nToFind5,
      |                                                                ~~~~~~~~~
 3540 |                                                                radius5,
      |                                                                ~~~~~~~~
 3541 |                                                                outList,
      |                                                                ~~~~~~~~
 3542 |                                                                searchPoint );
      |                                                                ~~~~~~~~~~~~~
./TNear.h:2750:28: warning: comparison of integer expressions of different signedness: 'int' and 'const size_t' {aka 'const long unsigned int'} [-Wsign-compare]
 2750 |                 if (numrad < cneartree_dimsamples) {
      |                     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
./TNear.h: In instantiation of 'long int CNearTree<T, DistanceType, distMinValue>::FindK_NearestNeighbors(size_t, const DistanceType&, OutputContainerType&, const T&) [with OutputContainerType = CNearTree<vec17>; T = vec17; DistanceType = double; int distMinValue = -1; size_t = long unsigned int]':
./CNearTreeTest.cpp:3563:61:   required from here
 3563 |         const size_t lFound17a = tree.FindK_NearestNeighbors( n2Finda, 100000.0, outTree, probe );
      |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./TNear.h:2750:28: warning: comparison of integer expressions of different signedness: 'int' and 'const size_t' {aka 'const long unsigned int'} [-Wsign-compare]
 2750 |                 if (numrad < cneartree_dimsamples) {
      |                     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
./TNear.h: In instantiation of 'long int CNearTree<T, DistanceType, distMinValue>::FindK_NearestNeighbors(size_t, const DistanceType&, OutputContainerType&, const T&) [with OutputContainerType = CNearTree<vecn>; T = vecn; DistanceType = double; int distMinValue = -1; size_t = long unsigned int]':
./CNearTreeTest.cpp:3672:71:   required from here
 3672 |                 const size_t lFound17awc = tree.FindK_NearestNeighbors(
      |                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
 3673 |                                                                        n2Finda,
      |                                                                        ~~~~~~~~
 3674 |                                                                        testrad2,
      |                                                                        ~~~~~~~~~
 3675 |                                                                        outTree, probe );
      |                                                                        ~~~~~~~~~~~~~~~~
./TNear.h:2750:28: warning: comparison of integer expressions of different signedness: 'int' and 'const size_t' {aka 'const long unsigned int'} [-Wsign-compare]
 2750 |                 if (numrad < cneartree_dimsamples) {
      |                     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:292: bin/CPPMain] Error 1
make[1]: *** Waiting for unfinished jobs....
cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++
make[1]: *** [Makefile:300: bin/CPPNearTreeTest] Error 1
libtool: compile:  gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/neartree-5.1.1+dfsg1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -O3 -Wall -ansi -pedantic -DCNEARTREE_SAFE_TRIANG=1 -I. -c -c ./CNearTree.c -o CNearTree.o >/dev/null 2>&1
libtool --mode=link gcc -version-info 7:0:0 -no-undefined -rpath /usr/lib/x86_64-linux-gnu -Wl,-z,relro -Wl,-z,now -o ./lib/libCNearTree.la CNearTree.lo  -I.  \
 -lCVector -lm
libtool: link: gcc -shared  -fPIC -DPIC  .libs/CNearTree.o   -lCVector -lm  -Wl,-z -Wl,relro -Wl,-z -Wl,now   -Wl,-soname -Wl,libCNearTree.so.7 -o ./lib/.libs/libCNearTree.so.7.0.0
libtool: link: (cd "./lib/.libs" && rm -f "libCNearTree.so.7" && ln -s "libCNearTree.so.7.0.0" "libCNearTree.so.7")
libtool: link: (cd "./lib/.libs" && rm -f "libCNearTree.so" && ln -s "libCNearTree.so.7.0.0" "libCNearTree.so")
libtool: link: ar cr ./lib/.libs/libCNearTree.a  CNearTree.o
libtool: link: ranlib ./lib/.libs/libCNearTree.a
libtool: link: ( cd "./lib/.libs" && rm -f "libCNearTree.la" && ln -s "../libCNearTree.la" "libCNearTree.la" )
make[1]: Leaving directory '/build/reproducible-path/neartree-5.1.1+dfsg1'
dh_auto_install: error: make -j8 install DESTDIR=/build/reproducible-path/neartree-5.1.1\+dfsg1/debian/tmp AM_UPDATE_INFO_DIR=no "INSTALL=install --strip-program=true" returned exit code 2
make: *** [debian/rules:14: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the debian-science-maintainers mailing list