[MacPorts] #66040: cmake-devel fails to build on 10.8.5: error: no matching constructor for initialization of 'std::string'

MacPorts noreply at macports.org
Thu Oct 20 23:40:14 UTC 2022


#66040: cmake-devel fails to build on 10.8.5: error: no matching constructor for
initialization of 'std::string'
--------------------------+-------------------------
 Reporter:  barracuda156  |      Owner:  kencu
     Type:  defect        |     Status:  assigned
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.8.0
 Keywords:                |       Port:  cmake-devel
--------------------------+-------------------------
 {{{
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_devel_cmake-devel/cmake-devel/work
 /cmake-
 31f835410efeea50acd43512eb9e5646a26ea177/Source/cmWindowsRegistry.cxx:768:36:
 error: no matching constructor for initialization of 'std::string' (aka
 'basic_string<char, char_traits<char>, allocator<char> >')
   return std::vector<std::string>{ std::string{ expression } };
                                    ^          ~~~~~~~~~~~~~~
 /usr/bin/../lib/c++/v1/string:1184:40: note: candidate constructor not
 viable: no known conversion from 'cm::string_view' to 'const
 allocator_type' (aka 'const std::__1::allocator<char>') for 1st argument
     _LIBCPP_INLINE_VISIBILITY explicit basic_string(const allocator_type&
 __a);
                                        ^
 /usr/bin/../lib/c++/v1/string:1185:5: note: candidate constructor not
 viable: no known conversion from 'cm::string_view' to 'const
 std::__1::basic_string<char> &' for 1st argument
     basic_string(const basic_string& __str);
     ^
 /usr/bin/../lib/c++/v1/string:1189:5: note: candidate constructor not
 viable: no known conversion from 'cm::string_view' to
 'std::__1::basic_string<char> &&' for 1st argument
     basic_string(basic_string&& __str)
     ^
 /usr/bin/../lib/c++/v1/string:1194:31: note: candidate constructor not
 viable: no known conversion from 'cm::string_view' to 'const_pointer' (aka
 'const char *') for 1st argument
     _LIBCPP_INLINE_VISIBILITY basic_string(const_pointer __s);
                               ^
 /usr/bin/../lib/c++/v1/string:1215:5: note: candidate constructor not
 viable: no known conversion from 'cm::string_view' to
 'initializer_list<value_type>' for 1st argument
     basic_string(initializer_list<value_type> __il);
     ^
 /usr/bin/../lib/c++/v1/string:1209:9: note: candidate constructor template
 not viable: requires 2 arguments, but 1 was provided
         basic_string(_InputIterator __first, _InputIterator __last);
         ^
 /usr/bin/../lib/c++/v1/string:1212:9: note: candidate constructor template
 not viable: requires 3 arguments, but 1 was provided
         basic_string(_InputIterator __first, _InputIterator __last, const
 allocator_type& __a);
         ^
 /usr/bin/../lib/c++/v1/string:1182:31: note: candidate constructor not
 viable: requires 0 arguments, but 1 was provided
     _LIBCPP_INLINE_VISIBILITY basic_string()
                               ^
 /usr/bin/../lib/c++/v1/string:1186:5: note: candidate constructor not
 viable: requires 2 arguments, but 1 was provided
     basic_string(const basic_string& __str, const allocator_type& __a);
     ^
 /usr/bin/../lib/c++/v1/string:1192:5: note: candidate constructor not
 viable: requires 2 arguments, but 1 was provided
     basic_string(basic_string&& __str, const allocator_type& __a);
     ^
 /usr/bin/../lib/c++/v1/string:1196:5: note: candidate constructor not
 viable: requires 2 arguments, but 1 was provided
     basic_string(const_pointer __s, const allocator_type& __a);
     ^
 /usr/bin/../lib/c++/v1/string:1198:5: note: candidate constructor not
 viable: requires 2 arguments, but 1 was provided
     basic_string(const_pointer __s, size_type __n);
     ^
 /usr/bin/../lib/c++/v1/string:1200:5: note: candidate constructor not
 viable: requires 3 arguments, but 1 was provided
     basic_string(const_pointer __s, size_type __n, const allocator_type&
 __a);
     ^
 /usr/bin/../lib/c++/v1/string:1202:5: note: candidate constructor not
 viable: requires 2 arguments, but 1 was provided
     basic_string(size_type __n, value_type __c);
     ^
 /usr/bin/../lib/c++/v1/string:1204:5: note: candidate constructor not
 viable: requires 3 arguments, but 1 was provided
     basic_string(size_type __n, value_type __c, const allocator_type&
 __a);
     ^
 /usr/bin/../lib/c++/v1/string:1205:5: note: candidate constructor not
 viable: requires at least 2 arguments, but 1 was provided
     basic_string(const basic_string& __str, size_type __pos, size_type __n
 = npos,
     ^
 /usr/bin/../lib/c++/v1/string:1217:5: note: candidate constructor not
 viable: requires 2 arguments, but 1 was provided
     basic_string(initializer_list<value_type> __il, const allocator_type&
 __a);
     ^
 1 error generated.
 make: *** [cmWindowsRegistry.o] Error 1
 make: *** Waiting for unfinished jobs....
 ---------------------------------------------
 Error when bootstrapping CMake:
 Problem while running make
 ---------------------------------------------
 Log of errors:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_devel_cmake-devel/cmake-devel/work
 /cmake-
 31f835410efeea50acd43512eb9e5646a26ea177/Bootstrap.cmk/cmake_bootstrap.log
 ---------------------------------------------
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_devel_cmake-devel/cmake-devel/work
 /cmake-31f835410efeea50acd43512eb9e5646a26ea177" && ./bootstrap
 --prefix=/opt/local --docdir=share/doc/cmake --parallel=2
 --init=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_devel_cmake-devel/cmake-devel/work
 /cmake-31f835410efeea50acd43512eb9e5646a26ea177/macports.cmake --system-
 libs --no-qt-gui --no-system-jsoncpp --no-system-librhash --
 Exit code: 9
 Error: Failed to configure cmake-devel: configure failure: command
 execution failed
 }}}

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


More information about the macports-tickets mailing list