[MacPorts] #65454: clang-13 @13.0.1_2+analyzer+libstdcxx+universal no matching function for call to 'min'
MacPorts
noreply at macports.org
Thu Sep 1 19:20:52 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
Resolution: | Keywords: elcapitan legacy-os
Port: clang-13 llvm-13 |
-------------------------------+---------------------------------
Comment (by kencu):
this error also just happened near the end of the clang-13 build on 10.6
i386, but not on 10.6 x86_64.
{{{
[ 98%] Building CXX object
tools/lld/MachO/CMakeFiles/lldMachO2.dir/SyntheticSections.cpp.o
cd
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_llvm-13/clang-13/work/build/tools/lld/MachO
&& /opt/local/bin/clang++-mp-11 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_llvm-13/clang-13/work/build/tools/lld/MachO
-I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_llvm-13/clang-13/work
/llvm-project-13.0.1.src/lld/MachO
-I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_llvm-13/clang-13/work
/llvm-project-13.0.1.src/lld/include
-I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_llvm-13/clang-13/work/build/tools/lld/include
-I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_llvm-13/clang-13/work/build/include
-I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_llvm-13/clang-13/work
/llvm-project-13.0.1.src/llvm/include
-I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_llvm-13/clang-13/work
/llvm-project-13.0.1.src/llvm/../libunwind/include -pipe -Os -DNDEBUG
-D__DISABLE_MP_LEGACY_SUPPORT_SYSCONF_WRAP__=1
-D__DISABLE_MP_LEGACY_SUPPORT_REALPATH_WRAP__=1
-isystem/opt/local/include/LegacySupport -I/opt/local/include
-stdlib=libc++ -isysroot/ -fPIC -fvisibility-inlines-hidden -Werror=date-
time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-
parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers
-pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough
-Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-
non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-
indentation -O3 -DNDEBUG -arch i386 -mmacosx-version-min=10.6 -fno-
exceptions -std=c++14 -MD -MT
tools/lld/MachO/CMakeFiles/lldMachO2.dir/SyntheticSections.cpp.o -MF
CMakeFiles/lldMachO2.dir/SyntheticSections.cpp.o.d -o
CMakeFiles/lldMachO2.dir/SyntheticSections.cpp.o -c
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_llvm-13/clang-13/work
/llvm-project-13.0.1.src/lld/MachO/SyntheticSections.cpp
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_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'
std::min(codeEnd - code,
static_cast<ssize_t>(blockSize)));
^~~~~~~~
/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')
min(const _Tp& __a, const _Tp& __b)
^
/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'
min(initializer_list<_Tp> __t, _Compare __comp)
^
/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
min(initializer_list<_Tp> __t)
^
/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
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
1 error generated.
}}}
--
Ticket URL: <https://trac.macports.org/ticket/65454#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list