Opened 14 months ago
Last modified 14 months ago
#72958 new defect
nghttp2-tools @1.67.0 fails to build: error: no matching function for call to 'min(long unsigned int, unsigned int)'
| Reported by: | barracuda156 | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.11.5 |
| Keywords: | Cc: | Schamschula (Marius Schamschula) | |
| Port: | nghttp2-tools |
Description
/opt/local/bin/g++-mp-14 -std=gnu++20 -DHAVE_CONFIG_H -I. -I.. -DPKGDATADIR='"/opt/local/share/nghttp2"' -DPKGLIBDIR='"/opt/local/lib/nghttp2"' -I../lib/includes -I../lib/includes -I../lib -I../third-party/urlparse -I../third-party/llhttp/include -I/opt/local/include/libxml2 -I/opt/local/libexec/openssl3/include -I/opt/local/include/openssl -I/opt/local/include -D__APPLE_USE_RFC_3542 -DHAVE_CONFIG_H -isystem/opt/local/include/LegacySupport -I/opt/local/include -pipe -Os -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc -MT libnghttpx_a-shrpx_http2_session.o -MD -MP -MF .deps/libnghttpx_a-shrpx_http2_session.Tpo -c -o libnghttpx_a-shrpx_http2_session.o `test -f 'shrpx_http2_session.cc' || echo './'`shrpx_http2_session.cc
mv -f .deps/libnghttpx_a-shrpx_downstream.Tpo .deps/libnghttpx_a-shrpx_downstream.Po
/opt/local/bin/g++-mp-14 -std=gnu++20 -DHAVE_CONFIG_H -I. -I.. -DPKGDATADIR='"/opt/local/share/nghttp2"' -DPKGLIBDIR='"/opt/local/lib/nghttp2"' -I../lib/includes -I../lib/includes -I../lib -I../third-party/urlparse -I../third-party/llhttp/include -I/opt/local/include/libxml2 -I/opt/local/libexec/openssl3/include -I/opt/local/include/openssl -I/opt/local/include -D__APPLE_USE_RFC_3542 -DHAVE_CONFIG_H -isystem/opt/local/include/LegacySupport -I/opt/local/include -pipe -Os -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc -MT libnghttpx_a-shrpx_downstream_queue.o -MD -MP -MF .deps/libnghttpx_a-shrpx_downstream_queue.Tpo -c -o libnghttpx_a-shrpx_downstream_queue.o `test -f 'shrpx_downstream_queue.cc' || echo './'`shrpx_downstream_queue.cc
mv -f .deps/libnghttpx_a-shrpx_http2_downstream_connection.Tpo .deps/libnghttpx_a-shrpx_http2_downstream_connection.Po
/opt/local/bin/g++-mp-14 -std=gnu++20 -DHAVE_CONFIG_H -I. -I.. -DPKGDATADIR='"/opt/local/share/nghttp2"' -DPKGLIBDIR='"/opt/local/lib/nghttp2"' -I../lib/includes -I../lib/includes -I../lib -I../third-party/urlparse -I../third-party/llhttp/include -I/opt/local/include/libxml2 -I/opt/local/libexec/openssl3/include -I/opt/local/include/openssl -I/opt/local/include -D__APPLE_USE_RFC_3542 -DHAVE_CONFIG_H -isystem/opt/local/include/LegacySupport -I/opt/local/include -pipe -Os -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc -MT libnghttpx_a-shrpx_log.o -MD -MP -MF .deps/libnghttpx_a-shrpx_log.Tpo -c -o libnghttpx_a-shrpx_log.o `test -f 'shrpx_log.cc' || echo './'`shrpx_log.cc
mv -f .deps/libnghttpx_a-shrpx_http_downstream_connection.Tpo .deps/libnghttpx_a-shrpx_http_downstream_connection.Po
/opt/local/bin/g++-mp-14 -std=gnu++20 -DHAVE_CONFIG_H -I. -I.. -DPKGDATADIR='"/opt/local/share/nghttp2"' -DPKGLIBDIR='"/opt/local/lib/nghttp2"' -I../lib/includes -I../lib/includes -I../lib -I../third-party/urlparse -I../third-party/llhttp/include -I/opt/local/include/libxml2 -I/opt/local/libexec/openssl3/include -I/opt/local/include/openssl -I/opt/local/include -D__APPLE_USE_RFC_3542 -DHAVE_CONFIG_H -isystem/opt/local/include/LegacySupport -I/opt/local/include -pipe -Os -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc -MT libnghttpx_a-shrpx_http.o -MD -MP -MF .deps/libnghttpx_a-shrpx_http.Tpo -c -o libnghttpx_a-shrpx_http.o `test -f 'shrpx_http.cc' || echo './'`shrpx_http.cc
mv -f .deps/libnghttpx_a-shrpx_downstream_queue.Tpo .deps/libnghttpx_a-shrpx_downstream_queue.Po
/opt/local/bin/g++-mp-14 -std=gnu++20 -DHAVE_CONFIG_H -I. -I.. -DPKGDATADIR='"/opt/local/share/nghttp2"' -DPKGLIBDIR='"/opt/local/lib/nghttp2"' -I../lib/includes -I../lib/includes -I../lib -I../third-party/urlparse -I../third-party/llhttp/include -I/opt/local/include/libxml2 -I/opt/local/libexec/openssl3/include -I/opt/local/include/openssl -I/opt/local/include -D__APPLE_USE_RFC_3542 -DHAVE_CONFIG_H -isystem/opt/local/include/LegacySupport -I/opt/local/include -pipe -Os -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc -MT libnghttpx_a-shrpx_io_control.o -MD -MP -MF .deps/libnghttpx_a-shrpx_io_control.Tpo -c -o libnghttpx_a-shrpx_io_control.o `test -f 'shrpx_io_control.cc' || echo './'`shrpx_io_control.cc
shrpx_log.cc: In function 'std::span<char, 4294967295> shrpx::{anonymous}::copy_escape(const std::string_view&, std::span<char, 4294967295>)':
shrpx_log.cc:420:22: error: no matching function for call to 'min(long unsigned int, unsigned int)'
420 | auto n = std::min(std::ranges::size(dest),
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
421 | as_unsigned(std::ranges::distance(safe_first, p)));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /opt/local/include/gcc14/c++/bits/stl_uninitialized.h:63,
from /opt/local/include/gcc14/c++/memory:69,
from shrpx_log.h:32,
from shrpx_log.cc:25:
/opt/local/include/gcc14/c++/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
233 | min(const _Tp& __a, const _Tp& __b)
| ^~~
/opt/local/include/gcc14/c++/bits/stl_algobase.h:233:5: note: template argument deduction/substitution failed:
shrpx_log.cc:420:22: note: deduced conflicting types for parameter 'const _Tp' ('long unsigned int' and 'unsigned int')
420 | auto n = std::min(std::ranges::size(dest),
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
421 | as_unsigned(std::ranges::distance(safe_first, p)));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/include/gcc14/c++/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
281 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/opt/local/include/gcc14/c++/bits/stl_algobase.h:281:5: note: candidate expects 3 arguments, 2 provided
In file included from /opt/local/include/gcc14/c++/chrono:48,
from shrpx_log.h:34:
/opt/local/include/gcc14/c++/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
5686 | min(initializer_list<_Tp> __l)
| ^~~
/opt/local/include/gcc14/c++/bits/stl_algo.h:5686:5: note: candidate expects 1 argument, 2 provided
/opt/local/include/gcc14/c++/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
5696 | min(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/opt/local/include/gcc14/c++/bits/stl_algo.h:5696:5: note: template argument deduction/substitution failed:
shrpx_log.cc:420:22: note: mismatched types 'std::initializer_list<_Tp>' and 'long unsigned int'
420 | auto n = std::min(std::ranges::size(dest),
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
421 | as_unsigned(std::ranges::distance(safe_first, p)));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
shrpx_log.cc:437:20: error: no matching function for call to 'min(long unsigned int, unsigned int)'
437 | auto n = std::min(
| ~~~~~~~~^
438 | std::ranges::size(dest),
| ~~~~~~~~~~~~~~~~~~~~~~~~
439 | as_unsigned(std::ranges::distance(safe_first, std::ranges::end(src))));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/include/gcc14/c++/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
233 | min(const _Tp& __a, const _Tp& __b)
| ^~~
/opt/local/include/gcc14/c++/bits/stl_algobase.h:233:5: note: template argument deduction/substitution failed:
shrpx_log.cc:437:20: note: deduced conflicting types for parameter 'const _Tp' ('long unsigned int' and 'unsigned int')
437 | auto n = std::min(
| ~~~~~~~~^
438 | std::ranges::size(dest),
| ~~~~~~~~~~~~~~~~~~~~~~~~
439 | as_unsigned(std::ranges::distance(safe_first, std::ranges::end(src))));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/include/gcc14/c++/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
281 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/opt/local/include/gcc14/c++/bits/stl_algobase.h:281:5: note: candidate expects 3 arguments, 2 provided
/opt/local/include/gcc14/c++/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
5686 | min(initializer_list<_Tp> __l)
| ^~~
/opt/local/include/gcc14/c++/bits/stl_algo.h:5686:5: note: candidate expects 1 argument, 2 provided
/opt/local/include/gcc14/c++/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
5696 | min(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/opt/local/include/gcc14/c++/bits/stl_algo.h:5696:5: note: template argument deduction/substitution failed:
shrpx_log.cc:437:20: note: mismatched types 'std::initializer_list<_Tp>' and 'long unsigned int'
437 | auto n = std::min(
| ~~~~~~~~^
438 | std::ranges::size(dest),
| ~~~~~~~~~~~~~~~~~~~~~~~~
439 | as_unsigned(std::ranges::distance(safe_first, std::ranges::end(src))));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mv -f .deps/libnghttpx_a-shrpx_http2_session.Tpo .deps/libnghttpx_a-shrpx_http2_session.Po
/opt/local/bin/g++-mp-14 -std=gnu++20 -DHAVE_CONFIG_H -I. -I.. -DPKGDATADIR='"/opt/local/share/nghttp2"' -DPKGLIBDIR='"/opt/local/lib/nghttp2"' -I../lib/includes -I../lib/includes -I../lib -I../third-party/urlparse -I../third-party/llhttp/include -I/opt/local/include/libxml2 -I/opt/local/libexec/openssl3/include -I/opt/local/include/openssl -I/opt/local/include -D__APPLE_USE_RFC_3542 -DHAVE_CONFIG_H -isystem/opt/local/include/LegacySupport -I/opt/local/include -pipe -Os -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc -MT libnghttpx_a-shrpx_tls.o -MD -MP -MF .deps/libnghttpx_a-shrpx_tls.Tpo -c -o libnghttpx_a-shrpx_tls.o `test -f 'shrpx_tls.cc' || echo './'`shrpx_tls.cc
mv -f .deps/libnghttpx_a-shrpx_http.Tpo .deps/libnghttpx_a-shrpx_http.Po
/opt/local/bin/g++-mp-14 -std=gnu++20 -DHAVE_CONFIG_H -I. -I.. -DPKGDATADIR='"/opt/local/share/nghttp2"' -DPKGLIBDIR='"/opt/local/lib/nghttp2"' -I../lib/includes -I../lib/includes -I../lib -I../third-party/urlparse -I../third-party/llhttp/include -I/opt/local/include/libxml2 -I/opt/local/libexec/openssl3/include -I/opt/local/include/openssl -I/opt/local/include -D__APPLE_USE_RFC_3542 -DHAVE_CONFIG_H -isystem/opt/local/include/LegacySupport -I/opt/local/include -pipe -Os -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc -MT libnghttpx_a-shrpx_worker.o -MD -MP -MF .deps/libnghttpx_a-shrpx_worker.Tpo -c -o libnghttpx_a-shrpx_worker.o `test -f 'shrpx_worker.cc' || echo './'`shrpx_worker.cc
make[3]: *** [libnghttpx_a-shrpx_log.o] Error 1
make[3]: *** Waiting for unfinished jobs....
mv -f .deps/libnghttpx_a-shrpx_io_control.Tpo .deps/libnghttpx_a-shrpx_io_control.Po
mv -f .deps/libnghttpx_a-shrpx_tls.Tpo .deps/libnghttpx_a-shrpx_tls.Po
mv -f .deps/libnghttpx_a-shrpx_worker.Tpo .deps/libnghttpx_a-shrpx_worker.Po
make[3]: Leaving directory `/opt/local/var/macports/build/nghttp2-tools-5ee3f8f1/work/nghttp2-1.67.0/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/nghttp2-tools-5ee3f8f1/work/nghttp2-1.67.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/nghttp2-tools-5ee3f8f1/work/nghttp2-1.67.0'
make: *** [all] Error 2
Attachments (1)
Change History (2)
Changed 14 months ago by barracuda156
| Attachment: | nghttp2-tools.log added |
|---|
comment:1 Changed 14 months ago by barracuda156
Note: See
TracTickets for help on using
tickets.

Opened an issue: https://github.com/nghttp2/nghttp2/issues/2504