[Debian-med-packaging] Bug#1002134: odil: FTBFS: Value.cpp:269:69: error: wrong number of template arguments (4, should be at least 5)

Lucas Nussbaum lucas at debian.org
Tue Dec 21 16:03:49 GMT 2021


Source: odil
Version: 0.12.1-3
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20211220 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> cd /<<PKGBUILDDIR>>/build/wrappers/python && /usr/bin/c++ -DBOOST_ALL_DYN_LINK -DBOOST_ALL_NO_LIB -DBOOST_ASIO_SEPARATE_COMPILATION -DBOOST_ATOMIC_DYN_LINK -DBOOST_CHRONO_DYN_LINK -DBOOST_DATE_TIME_DYN_LINK -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_LOG_DYN_LINK -DBOOST_REGEX_DYN_LINK -DBOOST_THREAD_DYN_LINK -DODIL_VERSION_MAJOR=0 -Dpyodil_EXPORTS -I/<<PKGBUILDDIR>>/src -isystem /usr/include/python3.10 -isystem /usr/include/jsoncpp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fvisibility=hidden -flto -fno-fat-lto-objects -std=gnu++14 -MD -MT wrappers/python/CMakeFiles/pyodil.dir/Value.cpp.o -MF CMakeFiles/pyodil.dir/Value.cpp.o.d -o CMakeFiles/pyodil.dir/Value.cpp.o -c /<<PKGBUILDDIR>>/wrappers/python/Value.cpp
> /<<PKGBUILDDIR>>/wrappers/python/Value.cpp: In lambda function:
> /<<PKGBUILDDIR>>/wrappers/python/Value.cpp:269:69: error: wrong number of template arguments (4, should be at least 5)
>   269 |                     ItType, ItType, false, return_value_policy::copy> state;
>       |                                                                     ^
> In file included from /<<PKGBUILDDIR>>/wrappers/python/Value.cpp:11:
> /usr/include/pybind11/pybind11.h:1972:8: note: provided for ‘template<class Access, pybind11::return_value_policy Policy, class Iterator, class Sentinel, class ValueType, class ... Extra> struct pybind11::detail::iterator_state’
>  1972 | struct iterator_state {
>       |        ^~~~~~~~~~~~~~
> /<<PKGBUILDDIR>>/wrappers/python/Value.cpp: In lambda function:
> /<<PKGBUILDDIR>>/wrappers/python/Value.cpp:276:36: error: request for member ‘first_or_done’ in ‘s’, which is of non-class type ‘state’ {aka ‘int’}
>   276 |                             if (!s.first_or_done)
>       |                                    ^~~~~~~~~~~~~
> /<<PKGBUILDDIR>>/wrappers/python/Value.cpp:278:37: error: request for member ‘it’ in ‘s’, which is of non-class type ‘state’ {aka ‘int’}
>   278 |                                 ++s.it;
>       |                                     ^~
> /<<PKGBUILDDIR>>/wrappers/python/Value.cpp:282:35: error: request for member ‘first_or_done’ in ‘s’, which is of non-class type ‘state’ {aka ‘int’}
>   282 |                                 s.first_or_done = false;
>       |                                   ^~~~~~~~~~~~~
> /<<PKGBUILDDIR>>/wrappers/python/Value.cpp:284:35: error: request for member ‘it’ in ‘s’, which is of non-class type ‘state’ {aka ‘int’}
>   284 |                             if (s.it == s.end)
>       |                                   ^~
> /<<PKGBUILDDIR>>/wrappers/python/Value.cpp:284:43: error: request for member ‘end’ in ‘s’, which is of non-class type ‘state’ {aka ‘int’}
>   284 |                             if (s.it == s.end)
>       |                                           ^~~
> /<<PKGBUILDDIR>>/wrappers/python/Value.cpp:286:35: error: request for member ‘first_or_done’ in ‘s’, which is of non-class type ‘state’ {aka ‘int’}
>   286 |                                 s.first_or_done = true;
>       |                                   ^~~~~~~~~~~~~
> /<<PKGBUILDDIR>>/wrappers/python/Value.cpp:289:45: error: request for member ‘it’ in ‘s’, which is of non-class type ‘state’ {aka ‘int’}
>   289 |                             return bytes(*s.it);
>       |                                             ^~
> /<<PKGBUILDDIR>>/wrappers/python/Value.cpp: In lambda function:
> /<<PKGBUILDDIR>>/wrappers/python/Value.cpp:293:59: error: too many initializers for ‘state’ {aka ‘int’}
>   293 |                 return cast(state{v.begin(), v.end(), true});
>       |                                                           ^
> make[4]: *** [wrappers/python/CMakeFiles/pyodil.dir/build.make:443: wrappers/python/CMakeFiles/pyodil.dir/Value.cpp.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2021/12/20/odil_0.12.1-3_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the Debian-med-packaging mailing list