[Debian-med-packaging] Bug#860652: snap-aligner: FTBFS on i386: SNAPLib/SortedDataWriter.cpp:338:70: error: no matching function for call to 'max(long unsigned int, _int64)'

Andreas Tille andreas at an3as.eu
Wed Apr 19 08:51:40 UTC 2017


Hi,

some hours ago the Debian Med team was flooded with lots of bugs
regarding build on i386 - I guess this is not the only team.  I need to
admit I'm a bit astonished about this kind of bugs that are showing up
right now ... may be autobuilding on i386 started right now?

Anyway.  I try to tackle the first one which leaves me clueless.  Any
idea why max() and min() are unknown now but were not before?

Kind regards

       Andreas.

On Wed, Apr 19, 2017 at 09:12:07AM +0200, Lucas Nussbaum wrote:
> Source: snap-aligner
> Version: 1.0~beta.18+dfsg-1
> Severity: serious
> Tags: stretch sid
> User: debian-qa at lists.debian.org
> Usertags: qa-ftbfs-20170418-i386 qa-ftbfs
> Justification: FTBFS in stretch on i386
> 
> Hi,
> 
> During a rebuild of all packages in stretch (in a stretch chroot, not a
> sid chroot), your package failed to build on i386.
> 
> Relevant part (hopefully):
> > g++ -std=gnu++98 -MMD -ISNAPLib -Wdate-time -D_FORTIFY_SOURCE=2  -c -o apps/SNAPCommand/stdafx.o apps/SNAPCommand/stdafx.cpp
> > SNAPLib/SortedDataWriter.cpp: In member function 'bool SortedDataFilterSupplier::mergeSort()':
> > SNAPLib/SortedDataWriter.cpp:338:70: error: no matching function for call to 'max(long unsigned int, _int64)'
> >              min(1UL << 23, max(1UL << 17, bufferSpace / blocks.size()))); // 128kB to 8MB buffer space per block
> >                                                                       ^
> > In file included from /usr/include/c++/6/algorithm:61:0,
> >                  from SNAPLib/stdafx.h:13,
> >                  from SNAPLib/SortedDataWriter.cpp:19:
> > /usr/include/c++/6/bits/stl_algobase.h:265:5: note: candidate: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
> >      max(const _Tp& __a, const _Tp& __b, _Compare __comp)
> >      ^~~
> > /usr/include/c++/6/bits/stl_algobase.h:265:5: note:   template argument deduction/substitution failed:
 > > SNAPLib/SortedDataWriter.cpp:338:70: note:   deduced conflicting types for parameter 'const _Tp' ('long unsigned int' and '_int64 {aka long long int}')
> >              min(1UL << 23, max(1UL << 17, bufferSpace / blocks.size()))); // 128kB to 8MB buffer space per block
> >                                                                       ^
> > In file included from /usr/include/c++/6/algorithm:61:0,
> >                  from SNAPLib/stdafx.h:13,
> >                  from SNAPLib/SortedDataWriter.cpp:19:
> > /usr/include/c++/6/bits/stl_algobase.h:219:5: note: candidate: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
> >      max(const _Tp& __a, const _Tp& __b)
> >      ^~~
> > /usr/include/c++/6/bits/stl_algobase.h:219:5: note:   template argument deduction/substitution failed:
> > SNAPLib/SortedDataWriter.cpp:338:70: note:   deduced conflicting types for parameter 'const _Tp' ('long unsigned int' and '_int64 {aka long long int}')
> >              min(1UL << 23, max(1UL << 17, bufferSpace / blocks.size()))); // 128kB to 8MB buffer space per block
> >                                                                       ^
> > <builtin>: recipe for target 'SNAPLib/SortedDataWriter.o' failed
> > make[2]: *** [SNAPLib/SortedDataWriter.o] Error 1
> 
> The full build log is available from:
>    http://aws-logs.debian.net/2017/04/18/snap-aligner_1.0~beta.18+dfsg-1_testing-i386.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.
> 
> _______________________________________________
> Debian-med-packaging mailing list
> Debian-med-packaging at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-packaging
> 

-- 
http://fam-tille.de



More information about the Debian-med-packaging mailing list