#66040 closed defect (fixed)

cmake-devel fails to build on 10.8.5: error: no matching constructor for initialization of 'std::string'

Reported by: barracuda156 Owned by: catap (Kirill A. Korinsky)
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: Cc: catap (Kirill A. Korinsky)
Port: cmake-devel

Description

/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

Attachments (1)

main.log (804.9 KB) - added by barracuda156 18 months ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 18 months ago by barracuda156

Owner: changed from kencu to michaelld

Changed 18 months ago by barracuda156

Attachment: main.log added

comment:2 Changed 18 months ago by barracuda156

macports-clang-3.4 also fails to build it.

comment:3 Changed 17 months ago by catap (Kirill A. Korinsky)

Cc: catap added

comment:4 Changed 17 months ago by barracuda156

Owner: changed from michaelld to catap

comment:5 Changed 17 months ago by catap (Kirill A. Korinsky)

Resolution: fixed
Status: assignedclosed

In d9e3218c0d5cee4b33860b5fbdc6164138997d3f/macports-ports (master):

cmake{,-devel}: fix build before 10.10

Closes: #66340
Closes: #66040

Note: See TracTickets for help on using tickets.