[MacPorts] #65454: clang-13 @13.0.1_2+analyzer+libstdcxx+universal no matching function for call to 'min'

MacPorts noreply at macports.org
Wed Jul 6 19:54:30 UTC 2022


#65454: clang-13 @13.0.1_2+analyzer+libstdcxx+universal no matching function for
call to 'min'
---------------------------------+------------------------------
 Reporter:  thetrial             |      Owner:  (none)
     Type:  defect               |     Status:  new
 Priority:  Normal               |  Milestone:
Component:  ports                |    Version:  2.7.2
 Keywords:  elcapitan legacy-os  |       Port:  clang-13 llvm-13
---------------------------------+------------------------------
 Ouh, seems exact the same like #65423.

 {{{
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-13/clang-13/work
 /llvm-project-13.0.1.src/lld/MachO/SyntheticSections.cpp:1181:21: error:
 no matching function for call to 'min'
 :info:build                     std::min(codeEnd - code,
 static_cast<ssize_t>(blockSize)));
 :info:build                     ^~~~~~~~
 :info:build
 /opt/local/libexec/llvm-11/bin/../include/c++/v1/algorithm:2560:1: note:
 candidate template ignored: deduced conflicting types for parameter '_Tp'
 ('int' vs. 'long')
 :info:build min(const _Tp& __a, const _Tp& __b)
 :info:build ^
 :info:build
 /opt/local/libexec/llvm-11/bin/../include/c++/v1/algorithm:2571:1: note:
 candidate template ignored: could not match 'initializer_list<type-
 parameter-0-0>' against 'int'
 :info:build min(initializer_list<_Tp> __t, _Compare __comp)
 :info:build ^
 :info:build
 /opt/local/libexec/llvm-11/bin/../include/c++/v1/algorithm:2580:1: note:
 candidate function template not viable: requires single argument '__t',
 but 2 arguments were provided
 :info:build min(initializer_list<_Tp> __t)
 :info:build ^
 :info:build
 /opt/local/libexec/llvm-11/bin/../include/c++/v1/algorithm:2551:1: note:
 candidate function template not viable: requires 3 arguments, but 2 were
 provided
 :info:build min(const _Tp& __a, const _Tp& __b, _Compare __comp)
 :info:build ^
 :info:build 1 error generated.
 }}}

 I really don’t know why clang-13 now has been targeted to get built … ;-)
 I got rid of all unrequested clang, maybe that was a mistake. And I’m not
 sure which port is now responsible for this rat-tail again (it started
 with clang-11).

-- 
Ticket URL: <https://trac.macports.org/ticket/65454>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list