Bug#1037647: fasttext: ftbfs with GCC-13

Matthias Klose doko at debian.org
Wed Jun 14 10:23:56 BST 2023


Package: src:fasttext
Version: 0.9.2+ds-1
Severity: normal
Tags: sid trixie
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-13

[This bug is 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-13/g++-13, but succeeds to build with gcc-12/g++-12. The
severity of this report will be raised before the trixie release.

The full build log can be found at:
http://qa-logs.debian.net/2023/05/22/logs/fasttext_0.9.2+ds-1_unstable_gccexp.log
The last lines of the build log are at the end of this report.

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

  apt-get -t=experimental install g++ 

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-13/porting_to.html

[...]
                 from /<<PKGBUILDDIR>>/src/args.h:11,
                 from /<<PKGBUILDDIR>>/src/args.cc:9:
/usr/include/c++/13/bits/range_access.h:274:5: note: ‘std::size’ declared here
  274 |     size(const _Tp (&)[_Nm]) noexcept
      |     ^~~~
/<<PKGBUILDDIR>>/src/args.cc:490:10: error: ‘size’ was not declared in this scope; did you mean ‘std::size’?
  490 |   return size * multiplier;
      |          ^~~~
      |          std::size
/usr/include/c++/13/bits/range_access.h:274:5: note: ‘std::size’ declared here
  274 |     size(const _Tp (&)[_Nm]) noexcept
      |     ^~~~
/<<PKGBUILDDIR>>/src/args.cc:471:5: error: ‘multiplier’ was not declared in this scope
  471 |     multiplier = units[lastCharacter];
      |     ^~~~~~~~~~
/<<PKGBUILDDIR>>/src/args.cc:474:11: error: expected ‘;’ before ‘size’
  474 |   uint64_t size = 0;
      |           ^~~~~
      |           ;
/<<PKGBUILDDIR>>/src/args.cc:478:5: error: ‘size’ was not declared in this scope; did you mean ‘std::size’?
  478 |     size = std::stol(modelSize, &nonNumericCharacter);
      |     ^~~~
      |     std::size
In file included from /usr/include/c++/13/string:53,
                 from /usr/include/c++/13/bits/locale_classes.h:40,
                 from /usr/include/c++/13/bits/ios_base.h:41,
                 from /usr/include/c++/13/ios:44,
                 from /usr/include/c++/13/istream:40,
                 from /<<PKGBUILDDIR>>/src/args.h:11,
                 from /<<PKGBUILDDIR>>/src/args.cc:9:
/usr/include/c++/13/bits/range_access.h:274:5: note: ‘std::size’ declared here
  274 |     size(const _Tp (&)[_Nm]) noexcept
      |     ^~~~
/<<PKGBUILDDIR>>/src/args.cc:490:10: error: ‘size’ was not declared in this scope; did you mean ‘std::size’?
  490 |   return size * multiplier;
      |          ^~~~
      |          std::size
/usr/include/c++/13/bits/range_access.h:274:5: note: ‘std::size’ declared here
  274 |     size(const _Tp (&)[_Nm]) noexcept
      |     ^~~~
/<<PKGBUILDDIR>>/src/args.cc:490:17: error: ‘multiplier’ was not declared in this scope
  490 |   return size * multiplier;
      |                 ^~~~~~~~~~
/<<PKGBUILDDIR>>/src/args.cc:490:17: error: ‘multiplier’ was not declared in this scope
  490 |   return size * multiplier;
      |                 ^~~~~~~~~~
make[4]: *** [CMakeFiles/fasttext-static_pic.dir/build.make:79: CMakeFiles/fasttext-static_pic.dir/src/args.cc.o] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[3]: *** [CMakeFiles/Makefile2:144: CMakeFiles/fasttext-static_pic.dir/all] Error 2
make[3]: *** Waiting for unfinished jobs....
make[4]: *** [CMakeFiles/fasttext-shared.dir/build.make:79: CMakeFiles/fasttext-shared.dir/src/args.cc.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: *** [CMakeFiles/fasttext-static.dir/build.make:79: CMakeFiles/fasttext-static.dir/src/args.cc.o] Error 1
make[4]: *** Waiting for unfinished jobs....
[ 19%] Building CXX object CMakeFiles/fasttext-shared.dir/src/autotune.cc.o
[ 21%] Building CXX object CMakeFiles/fasttext-static.dir/src/main.cc.o
/usr/bin/c++ -Dfasttext_shared_EXPORTS -I/<<PKGBUILDDIR>>/fasttext -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -MD -MT CMakeFiles/fasttext-shared.dir/src/autotune.cc.o -MF CMakeFiles/fasttext-shared.dir/src/autotune.cc.o.d -o CMakeFiles/fasttext-shared.dir/src/autotune.cc.o -c /<<PKGBUILDDIR>>/src/autotune.cc
/usr/bin/c++  -I/<<PKGBUILDDIR>>/fasttext -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -MD -MT CMakeFiles/fasttext-static.dir/src/main.cc.o -MF CMakeFiles/fasttext-static.dir/src/main.cc.o.d -o CMakeFiles/fasttext-static.dir/src/main.cc.o -c /<<PKGBUILDDIR>>/src/main.cc
make[4]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[3]: *** [CMakeFiles/Makefile2:92: CMakeFiles/fasttext-shared.dir/all] Error 2
make[4]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[3]: *** [CMakeFiles/Makefile2:118: CMakeFiles/fasttext-static.dir/all] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [Makefile:139: all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j8 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
make[1]: *** [debian/rules:24: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:17: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the debian-science-maintainers mailing list