[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)'

Lucas Nussbaum lucas at debian.org
Wed Apr 19 07:12:07 UTC 2017


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.



More information about the Debian-med-packaging mailing list