Bug#957434: libept: ftbfs with GCC-10
Package: src:libept
Version: 1.1+nmu3
Severity: normal
Tags: sid bullseye
User: debian-gcc@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/libept_1.1+nmu3_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
[...]
| ^~
| int
/<<PKGBUILDDIR>>/ept/debtags/maint/debdbparser.cc:94:24: error: ‘in’ was not declared in this scope; did you mean ‘int’?
94 | if (ferror(in))
| ^~
| int
/<<PKGBUILDDIR>>/ept/debtags/maint/debdbparser.cc:95:94: error: ‘pathname’ was not declared in this scope; did you mean ‘ptsname’?
95 | throw std::system_error(errno, std::system_category(), "cannot read from " + pathname);
| ^~~~~~~~
| ptsname
/<<PKGBUILDDIR>>/ept/debtags/maint/debdbparser.cc: At global scope:
/<<PKGBUILDDIR>>/ept/debtags/maint/debdbparser.cc:105:6: error: no declaration matches ‘void ept::debtags::DebDBParser::appendFieldBody(std::string&)’
105 | void DebDBParser::appendFieldBody(std::string& body)
| ^~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/ept/debtags/maint/debdbparser.cc:21:
/<<PKGBUILDDIR>>/ept/debtags/maint/debdbparser.h:63:7: note: candidate is: ‘void ept::debtags::DebDBParser::appendFieldBody(int&)’
63 | void appendFieldBody(std::string& body);
| ^~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/ept/debtags/maint/debdbparser.h:43:7: note: ‘class ept::debtags::DebDBParser’ defined here
43 | class DebDBParser
| ^~~~~~~~~~~
/<<PKGBUILDDIR>>/ept/debtags/maint/debdbparser.cc:136:1: error: no declaration matches ‘ept::debtags::DebDBParser::DebDBParser(FILE*, const string&)’
136 | DebDBParser::DebDBParser(FILE* input, const std::string& pathname)
| ^~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/ept/debtags/maint/debdbparser.cc:21:
/<<PKGBUILDDIR>>/ept/debtags/maint/debdbparser.h:43:7: note: candidates are: ‘constexpr ept::debtags::DebDBParser::DebDBParser(ept::debtags::DebDBParser&&)’
43 | class DebDBParser
| ^~~~~~~~~~~
/<<PKGBUILDDIR>>/ept/debtags/maint/debdbparser.h:43:7: note: ‘constexpr ept::debtags::DebDBParser::DebDBParser(const ept::debtags::DebDBParser&)’
/<<PKGBUILDDIR>>/ept/debtags/maint/debdbparser.h:43:7: note: ‘ept::debtags::DebDBParser::DebDBParser()’
/<<PKGBUILDDIR>>/ept/debtags/maint/debdbparser.h:43:7: note: ‘class ept::debtags::DebDBParser’ defined here
/<<PKGBUILDDIR>>/ept/debtags/maint/debdbparser.cc: In member function ‘bool ept::debtags::DebDBParser::nextRecord(ept::debtags::DebDBParser::Record&)’:
/<<PKGBUILDDIR>>/ept/debtags/maint/debdbparser.cc:151:6: error: request for member ‘clear’ in ‘rec’, which is of non-class type ‘ept::debtags::DebDBParser::Record’ {aka ‘int’}
151 | rec.clear();
| ^~~~~
/<<PKGBUILDDIR>>/ept/debtags/maint/debdbparser.cc:156:29: error: ‘getFieldName’ was not declared in this scope
156 | std::string field = getFieldName();
| ^~~~~~~~~~~~
/<<PKGBUILDDIR>>/ept/debtags/maint/debdbparser.cc:165:19: error: cannot convert ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘int&’
165 | appendFieldBody(body);
| ^~~~
| |
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /<<PKGBUILDDIR>>/ept/debtags/maint/debdbparser.cc:21:
/<<PKGBUILDDIR>>/ept/debtags/maint/debdbparser.h:63:36: note: initializing argument 1 of ‘void ept::debtags::DebDBParser::appendFieldBody(int&)’
63 | void appendFieldBody(std::string& body);
| ~~~~~~~~~~~~~^~~~
/<<PKGBUILDDIR>>/ept/debtags/maint/debdbparser.cc:175:20: error: cannot convert ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘int&’
175 | appendFieldBody(body);
| ^~~~
| |
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /<<PKGBUILDDIR>>/ept/debtags/maint/debdbparser.cc:21:
/<<PKGBUILDDIR>>/ept/debtags/maint/debdbparser.h:63:36: note: initializing argument 1 of ‘void ept::debtags::DebDBParser::appendFieldBody(int&)’
63 | void appendFieldBody(std::string& body);
| ~~~~~~~~~~~~~^~~~
/<<PKGBUILDDIR>>/ept/debtags/maint/debdbparser.cc:186:7: error: request for member ‘insert’ in ‘rec’, which is of non-class type ‘ept::debtags::DebDBParser::Record’ {aka ‘int’}
186 | rec.insert(std::pair<std::string,std::string>(field, body));
| ^~~~~~
make[4]: *** [ept/CMakeFiles/ept-static.dir/build.make:170: ept/CMakeFiles/ept-static.dir/debtags/maint/debdbparser.cc.o] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
make[3]: *** [CMakeFiles/Makefile2:199: ept/CMakeFiles/ept-static.dir/all] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
make[2]: *** [Makefile:133: all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
dh_auto_build: error: cd debian/build && make -j1 returned exit code 2
make[1]: *** [debian/rules:13: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:6: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
Reply to: