Bug#951939: contextfree: FTBFS: src-common/cfdg.cpp:75:71: error: no matching function for call to ‘find(std::array, 18>::const_iterator, std::array

2020-02-23 Thread John Horigan
This bug is due to several source files using STL algorithms without
having the required #include . This will be fixed in
upstream and a new feature release of Context Free will be uploaded to
Debian soon.



Bug#951939: contextfree: FTBFS: src-common/cfdg.cpp:75:71: error: no matching function for call to ‘find(std::array, 18>::const_iterator, std::array

2020-02-22 Thread Lucas Nussbaum
Source: contextfree
Version: 3.2+dfsg1-1
Severity: serious
Justification: FTBFS on amd64
Tags: buster sid
Usertags: ftbfs-20200222 ftbfs-buster

Hi,

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

Relevant part (hopefully):
> g++ -g -O2 -fdebug-prefix-map=/<>=. -fstack-protector-strong 
> -Wformat -Werror=format-security -Isrc-common -Isrc-unix -Iobjs 
> -Isrc-common/agg-extras -Isrc-ffmpeg/include -I/usr/local/include -O2 -Wall 
> -Wextra -Wno-parentheses -std=c++14 -g -D_GLIBCXX_USE_C99_MATH=1 -Wdate-time 
> -D_FORTIFY_SOURCE=2 -DNDEBUG  -c -o objs/cfdgimpl.o src-common/cfdgimpl.cpp
> src-common/cfdg.cpp: In static member function ‘static CFG 
> CFDG::lookupCfg(const string&)’:
> src-common/cfdg.cpp:75:71: error: no matching function for call to 
> ‘find(std::array, 18>::const_iterator, 
> std::array, 18>::const_iterator, const 
> string&)’
>75 | auto nameIt = std::find(ParamNames.begin(), ParamNames.end(), 
> name);
>   |   
> ^
> In file included from /usr/include/c++/9/bits/locale_facets.h:48,
>  from /usr/include/c++/9/bits/basic_ios.h:37,
>  from /usr/include/c++/9/ios:44,
>  from /usr/include/c++/9/ostream:38,
>  from /usr/include/c++/9/iostream:39,
>  from objs/location.hh:41,
>  from src-common/cfdg.h:40,
>  from src-common/cfdg.cpp:31:
> /usr/include/c++/9/bits/streambuf_iterator.h:373:5: note: candidate: 
> ‘template typename 
> __gnu_cxx::__enable_if::__value, 
> std::istreambuf_iterator<_CharT> >::__type 
> std::find(std::istreambuf_iterator<_CharT>, std::istreambuf_iterator<_CharT>, 
> const _CharT2&)’
>   373 | find(istreambuf_iterator<_CharT> __first,
>   | ^~~~
> /usr/include/c++/9/bits/streambuf_iterator.h:373:5: note:   template argument 
> deduction/substitution failed:
> src-common/cfdg.cpp:75:71: note:   mismatched types 
> ‘std::istreambuf_iterator<_CharT>’ and ‘const value_type*’ {aka ‘const 
> std::__cxx11::basic_string*’}
>75 | auto nameIt = std::find(ParamNames.begin(), ParamNames.end(), 
> name);
>   |   
> ^
> g++ -g -O2 -fdebug-prefix-map=/<>=. -fstack-protector-strong 
> -Wformat -Werror=format-security -Isrc-common -Isrc-unix -Iobjs 
> -Isrc-common/agg-extras -Isrc-ffmpeg/include -I/usr/local/include -O2 -Wall 
> -Wextra -Wno-parentheses -std=c++14 -g -D_GLIBCXX_USE_C99_MATH=1 -Wdate-time 
> -D_FORTIFY_SOURCE=2 -DNDEBUG  -c -o objs/renderimpl.o 
> src-common/renderimpl.cpp
> make[1]: *** [Makefile:207: objs/cfdg.o] Error 1

The full build log is available from:
   http://qa-logs.debian.net/2020/02/22/contextfree_3.2+dfsg1-1_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!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.