Comment 0 for bug 2033638

Revision history for this message
Benjamin Drung (bdrung) wrote : phylonium 1.7-1 FTBFS on armhf

phylonium 1.7-1 fails to build from source on armhf:

```
g++ -std=gnu++17 -DHAVE_CONFIG_H -I. -I.. -fopenmp -Wall -Wextra -I../libs -Wdate-time -D_FORTIFY_SOURCE=2 -fms-extensions -fopenmp -O2 -ggdb -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/phylonium-1.7-1 -c -o phylonium-evo_model.o `test -f 'evo_model.cxx' || echo './'`evo_model.cxx
process.cxx: In lambda function:
process.cxx:222:39: error: no matching function for call to ‘max(saidx64_t&, long int)’
  222 | this_length = std::max(inter.l, 0l);
      | ~~~~~~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/13/vector:62,
                 from process.h:8,
                 from process.cxx:6:
/usr/include/c++/13/bits/stl_algobase.h:257:5: note: candidate: ‘template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)’
  257 | max(const _Tp& __a, const _Tp& __b)
      | ^~~
/usr/include/c++/13/bits/stl_algobase.h:257:5: note: template argument deduction/substitution failed:
process.cxx:222:39: note: deduced conflicting types for parameter ‘const _Tp’ (‘long long int’ and ‘long int’)
  222 | this_length = std::max(inter.l, 0l);
      | ~~~~~~~~^~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_algobase.h:303:5: note: candidate: ‘template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)’
  303 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      | ^~~
/usr/include/c++/13/bits/stl_algobase.h:303:5: note: template argument deduction/substitution failed:
process.cxx:222:39: note: deduced conflicting types for parameter ‘const _Tp’ (‘long long int’ and ‘long int’)
  222 | this_length = std::max(inter.l, 0l);
      | ~~~~~~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/13/algorithm:61,
                 from evo_model.h:7,
                 from process.h:9:
/usr/include/c++/13/bits/stl_algo.h:5795:5: note: candidate: ‘template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)’
 5795 | max(initializer_list<_Tp> __l)
      | ^~~
/usr/include/c++/13/bits/stl_algo.h:5795:5: note: template argument deduction/substitution failed:
process.cxx:222:39: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘long long int’
  222 | this_length = std::max(inter.l, 0l);
      | ~~~~~~~~^~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_algo.h:5805:5: note: candidate: ‘template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)’
 5805 | max(initializer_list<_Tp> __l, _Compare __comp)
      | ^~~
/usr/include/c++/13/bits/stl_algo.h:5805:5: note: template argument deduction/substitution failed:
process.cxx:222:39: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘long long int’
  222 | this_length = std::max(inter.l, 0l);
      | ~~~~~~~~^~~~~~~~~~~~~
make[3]: *** [Makefile:480: phylonium-process.o] Error 1
```