Bug#957001: apertium-lex-tools: ftbfs with GCC-10
Matthias Klose
doko at debian.org
Fri Apr 17 11:56:27 BST 2020
Package: src:apertium-lex-tools
Version: 0.2.3-1
Severity: normal
Tags: sid bullseye
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-10
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-10/g++-10, but succeeds to build with gcc-9/g++-9. The
severity of this report will be raised before the bullseye release,
so nothing has to be done for the buster release.
The full build log can be found at:
http://people.debian.org/~doko/logs/gcc10-20200225/apertium-lex-tools_0.2.3-1_unstable_gcc10.log
The last lines of the build log are at the end of this report.
To build with GCC 10, either set CC=gcc-10 CXX=g++-10 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-10/porting_to.html
[...]
880 | cerr << L"Error (" << xmlTextReaderGetParserLineNumber(reader);
| ^~~~~~~~~~
In file included from /usr/include/c++/10/iostream:39,
from ./lrx_compiler.h:26,
from lrx_compiler.cc:18:
/usr/include/c++/10/ostream:634:5: note: declared here
634 | operator<<(basic_ostream<char, _Traits>&, const wchar_t*) = delete;
| ^~~~~~~~
lrx_compiler.cc:881:13: error: use of deleted function ‘std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const wchar_t*) [with _Traits = std::char_traits<char>]’
881 | cerr << L"): Number of repetitions cannot be negative." << endl;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/10/iostream:39,
from ./lrx_compiler.h:26,
from lrx_compiler.cc:18:
/usr/include/c++/10/ostream:634:5: note: declared here
634 | operator<<(basic_ostream<char, _Traits>&, const wchar_t*) = delete;
| ^~~~~~~~
lrx_compiler.cc:886:13: error: use of deleted function ‘std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const wchar_t*) [with _Traits = std::char_traits<char>]’
886 | cerr << L"Error (" << xmlTextReaderGetParserLineNumber(reader);
| ^~~~~~~~~~
In file included from /usr/include/c++/10/iostream:39,
from ./lrx_compiler.h:26,
from lrx_compiler.cc:18:
/usr/include/c++/10/ostream:634:5: note: declared here
634 | operator<<(basic_ostream<char, _Traits>&, const wchar_t*) = delete;
| ^~~~~~~~
lrx_compiler.cc:887:13: error: use of deleted function ‘std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const wchar_t*) [with _Traits = std::char_traits<char>]’
887 | cerr << L"): Lower bound on number of repetitions cannot be larger than upper bound." << endl;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/10/iostream:39,
from ./lrx_compiler.h:26,
from lrx_compiler.cc:18:
/usr/include/c++/10/ostream:634:5: note: declared here
634 | operator<<(basic_ostream<char, _Traits>&, const wchar_t*) = delete;
| ^~~~~~~~
lrx_compiler.cc:901:15: error: use of deleted function ‘std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const wchar_t*) [with _Traits = std::char_traits<char>]’
901 | cerr << L"Error (" << xmlTextReaderGetParserLineNumber(reader);
| ^~~~~~~~~~
In file included from /usr/include/c++/10/iostream:39,
from ./lrx_compiler.h:26,
from lrx_compiler.cc:18:
/usr/include/c++/10/ostream:634:5: note: declared here
634 | operator<<(basic_ostream<char, _Traits>&, const wchar_t*) = delete;
| ^~~~~~~~
lrx_compiler.cc:902:15: error: use of deleted function ‘std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const wchar_t*) [with _Traits = std::char_traits<char>]’
902 | cerr << L"): Parse error." << endl;
| ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/10/iostream:39,
from ./lrx_compiler.h:26,
from lrx_compiler.cc:18:
/usr/include/c++/10/ostream:634:5: note: declared here
634 | operator<<(basic_ostream<char, _Traits>&, const wchar_t*) = delete;
| ^~~~~~~~
g++ -DPACKAGE_NAME=\"apertium-lex-tools\" -DPACKAGE_TARNAME=\"apertium-lex-tools\" -DPACKAGE_VERSION=\"0.2.3\" -DPACKAGE_STRING=\"apertium-lex-tools\ 0.2.3\" -DPACKAGE_BUGREPORT=\"ftyers at prompsit.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"apertium-lex-tools\" -DVERSION=\"0.2.3\" -DHAVE_IRSTLM=0 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_YASMET=0 -DHAVE_LIBXML2=1 -DHAVE_SETLOCALE=1 -DHAVE_STRDUP=1 -DHAVE_DECL_FREAD_UNLOCKED=1 -DHAVE_DECL_FWRITE_UNLOCKED=1 -DHAVE_DECL_FGETC_UNLOCKED=1 -DHAVE_DECL_FPUTC_UNLOCKED=1 -DHAVE_DECL_FPUTS_UNLOCKED=1 -DHAVE_DECL_FGETWC_UNLOCKED=0 -DHAVE_DECL_FPUTWC_UNLOCKED=0 -DHAVE_DECL_FGETWS_UNLOCKED=0 -DHAVE_DECL_FPUTWS_UNLOCKED=0 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/apertium-3.6 -I/usr/lib/x86_64-linux-gnu/apertium-3.6/include -I/usr/include/lttoolbox-3.5 -I/usr/lib/x86_64-linux-gnu/lttoolbox-3.5/include -I/usr/include/libxml2 -I/usr/include/libxml2 -Wall -Wextra -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -std=c++20 -c -o tagger_output_processor.o tagger_output_processor.cc
make[2]: *** [Makefile:428: lrx_compiler.o] Error 1
make[2]: *** Waiting for unfinished jobs....
lrx_processor.cc: In member function ‘void LRXProcessor::process(FILE*, FILE*)’:
lrx_processor.cc:636:31: warning: comparison of integer expressions of different signedness: ‘const int’ and ‘std::vector<std::__cxx11::basic_string<wchar_t> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
636 | if(k->first <= (pos - path.size()))
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
lrx_processor.cc: In member function ‘void LRXProcessor::load(FILE*)’:
lrx_processor.cc:120:10: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
120 | fread(&record, sizeof(weight), 1, in);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[1]: *** [Makefile:412: all-recursive] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:13: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
More information about the debian-science-maintainers
mailing list