[MacPorts] #65423: clang-14 @14.0.6_0+analyzer+libstdcxx+universal: no matching function for call to 'min'

MacPorts noreply at macports.org
Sat Jul 2 07:14:42 UTC 2022


#65423: clang-14 @14.0.6_0+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-14
---------------------------------+----------------------
 After a very, very long building time, it ends with an error – and again,
 my build-chain is broken. After mlir-14 now clang-14. Due to it says that
 clang-14 builds under El Capitan, maybe it’s an issue of a variant.
 Universal?

 {{{
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-14/clang-14/work
 /llvm-project-14.0.6.src/lld/MachO/SyntheticSections.cpp:1193: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.
 }}}

 Log is attached.

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


More information about the macports-tickets mailing list