[MacPorts] #68592: libical fails to build with gcc on 10.6.8 x86_64: error: expected identifier before '__is_convertible'

MacPorts noreply at macports.org
Mon Oct 30 16:07:07 UTC 2023


#68592: libical fails to build with gcc on 10.6.8 x86_64: error: expected
identifier before '__is_convertible'
---------------------------------+---------------------
 Reporter:  barracuda156         |      Owner:  (none)
     Type:  defect               |     Status:  new
 Priority:  Normal               |  Milestone:
Component:  ports                |    Version:  2.8.1
 Keywords:  snowleopard, x86_64  |       Port:  libical
---------------------------------+---------------------
 To be clear, this is a standard setup using `libc++` on `x86_64` with
 Xcode 4.2.

 {{{
 :info:build In file included from
 /opt/local/libexec/gcc13/libc++/include/c++/v1/algorithm:640,
 :info:build                  from
 /opt/local/libexec/gcc13/libc++/include/c++/v1/__string:57,
 :info:build                  from
 /opt/local/libexec/gcc13/libc++/include/c++/v1/string_view:175,
 :info:build                  from
 /opt/local/libexec/gcc13/libc++/include/c++/v1/string:506,
 :info:build                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libical/libical/work/libical-3.0.17/src/libical/icalparameter_cxx.h:32,
 :info:build                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libical/libical/work/libical-3.0.17/src/libical/icalparameter_cxx.cpp:20:
 :info:build
 /opt/local/libexec/gcc13/libc++/include/c++/v1/type_traits:1780:8: error:
 expected identifier before '__is_convertible'
 :info:build  1780 | struct __is_convertible
 :info:build       |        ^~~~~~~~~~~~~~~~
 :info:build
 /opt/local/libexec/gcc13/libc++/include/c++/v1/type_traits:1780:8: error:
 expected unqualified-id before '__is_convertible'
 :info:build
 /opt/local/libexec/gcc13/libc++/include/c++/v1/type_traits:1786:40: error:
 expected identifier before '__is_convertible'
 :info:build  1786 | template <class _T1, class _T2> struct
 __is_convertible<_T1, _T2, 0, 1> : public false_type {};
 :info:build       |
 ^~~~~~~~~~~~~~~~
 :info:build
 /opt/local/libexec/gcc13/libc++/include/c++/v1/type_traits:1786:40: error:
 expected unqualified-id before '__is_convertible'
 :info:build
 /opt/local/libexec/gcc13/libc++/include/c++/v1/type_traits:1787:40: error:
 expected identifier before '__is_convertible'
 :info:build  1787 | template <class _T1, class _T2> struct
 __is_convertible<_T1, _T2, 1, 1> : public false_type {};
 :info:build       |
 ^~~~~~~~~~~~~~~~
 :info:build
 /opt/local/libexec/gcc13/libc++/include/c++/v1/type_traits:1787:40: error:
 expected unqualified-id before '__is_convertible'
 :info:build
 /opt/local/libexec/gcc13/libc++/include/c++/v1/type_traits:1788:40: error:
 expected identifier before '__is_convertible'
 :info:build  1788 | template <class _T1, class _T2> struct
 __is_convertible<_T1, _T2, 2, 1> : public false_type {};
 :info:build       |
 ^~~~~~~~~~~~~~~~
 :info:build
 /opt/local/libexec/gcc13/libc++/include/c++/v1/type_traits:1788:40: error:
 expected unqualified-id before '__is_convertible'
 :info:build
 /opt/local/libexec/gcc13/libc++/include/c++/v1/type_traits:1789:40: error:
 expected identifier before '__is_convertible'
 :info:build  1789 | template <class _T1, class _T2> struct
 __is_convertible<_T1, _T2, 3, 1> : public false_type {};
 :info:build       |
 ^~~~~~~~~~~~~~~~
 :info:build
 /opt/local/libexec/gcc13/libc++/include/c++/v1/type_traits:1789:40: error:
 expected unqualified-id before '__is_convertible'
 :info:build
 /opt/local/libexec/gcc13/libc++/include/c++/v1/type_traits:1791:40: error:
 expected identifier before '__is_convertible'
 :info:build  1791 | template <class _T1, class _T2> struct
 __is_convertible<_T1, _T2, 0, 2> : public false_type {};
 :info:build       |
 ^~~~~~~~~~~~~~~~
 :info:build
 /opt/local/libexec/gcc13/libc++/include/c++/v1/type_traits:1791:40: error:
 expected unqualified-id before '__is_convertible'
 :info:build
 /opt/local/libexec/gcc13/libc++/include/c++/v1/type_traits:1792:40: error:
 expected identifier before '__is_convertible'
 :info:build  1792 | template <class _T1, class _T2> struct
 __is_convertible<_T1, _T2, 1, 2> : public false_type {};
 :info:build       |
 ^~~~~~~~~~~~~~~~
 :info:build
 /opt/local/libexec/gcc13/libc++/include/c++/v1/type_traits:1792:40: error:
 expected unqualified-id before '__is_convertible'
 :info:build
 /opt/local/libexec/gcc13/libc++/include/c++/v1/type_traits:1793:40: error:
 expected identifier before '__is_convertible'
 :info:build  1793 | template <class _T1, class _T2> struct
 __is_convertible<_T1, _T2, 2, 2> : public false_type {};
 :info:build       |
 ^~~~~~~~~~~~~~~~
 :info:build
 /opt/local/libexec/gcc13/libc++/include/c++/v1/type_traits:1793:40: error:
 expected unqualified-id before '__is_convertible'
 :info:build
 /opt/local/libexec/gcc13/libc++/include/c++/v1/type_traits:1794:40: error:
 expected identifier before '__is_convertible'
 :info:build  1794 | template <class _T1, class _T2> struct
 __is_convertible<_T1, _T2, 3, 2> : public false_type {};
 :info:build       |
 ^~~~~~~~~~~~~~~~
 :info:build
 /opt/local/libexec/gcc13/libc++/include/c++/v1/type_traits:1794:40: error:
 expected unqualified-id before '__is_convertible'
 :info:build
 /opt/local/libexec/gcc13/libc++/include/c++/v1/type_traits:1796:40: error:
 expected identifier before '__is_convertible'
 :info:build  1796 | template <class _T1, class _T2> struct
 __is_convertible<_T1, _T2, 0, 3> : public false_type {};
 :info:build       |
 ^~~~~~~~~~~~~~~~
 :info:build
 /opt/local/libexec/gcc13/libc++/include/c++/v1/type_traits:1796:40: error:
 expected unqualified-id before '__is_convertible'
 :info:build
 /opt/local/libexec/gcc13/libc++/include/c++/v1/type_traits:1797:40: error:
 expected identifier before '__is_convertible'
 :info:build  1797 | template <class _T1, class _T2> struct
 __is_convertible<_T1, _T2, 1, 3> : public false_type {};
 :info:build       |
 ^~~~~~~~~~~~~~~~
 :info:build
 /opt/local/libexec/gcc13/libc++/include/c++/v1/type_traits:1797:40: error:
 expected unqualified-id before '__is_convertible'
 :info:build
 /opt/local/libexec/gcc13/libc++/include/c++/v1/type_traits:1798:40: error:
 expected identifier before '__is_convertible'
 :info:build  1798 | template <class _T1, class _T2> struct
 __is_convertible<_T1, _T2, 2, 3> : public false_type {};
 :info:build       |
 ^~~~~~~~~~~~~~~~
 :info:build
 /opt/local/libexec/gcc13/libc++/include/c++/v1/type_traits:1798:40: error:
 expected unqualified-id before '__is_convertible'
 :info:build
 /opt/local/libexec/gcc13/libc++/include/c++/v1/type_traits:1799:40: error:
 expected identifier before '__is_convertible'
 :info:build  1799 | template <class _T1, class _T2> struct
 __is_convertible<_T1, _T2, 3, 3> : public true_type {};
 :info:build       |
 ^~~~~~~~~~~~~~~~
 :info:build
 /opt/local/libexec/gcc13/libc++/include/c++/v1/type_traits:1799:40: error:
 expected unqualified-id before '__is_convertible'
 :info:build
 /opt/local/libexec/gcc13/libc++/include/c++/v1/type_traits:1802:14: error:
 expected class-name before '__is_convertible'
 :info:build  1802 |     : public __is_convertible<_T1, _T2>
 :info:build       |              ^~~~~~~~~~~~~~~~
 :info:build
 /opt/local/libexec/gcc13/libc++/include/c++/v1/type_traits:1802:14: error:
 expected '{' before '__is_convertible'
 :info:build In file included from
 /opt/local/libexec/gcc13/libc++/include/c++/v1/__threading_support:14,
 :info:build                  from
 /opt/local/libexec/gcc13/libc++/include/c++/v1/atomic:571,
 :info:build                  from
 /opt/local/libexec/gcc13/libc++/include/c++/v1/memory:681,
 :info:build                  from
 /opt/local/libexec/gcc13/libc++/include/c++/v1/algorithm:643:
 :info:build /opt/local/libexec/gcc13/libc++/include/c++/v1/chrono: In
 static member function 'static
 std::__1::__fs::filesystem::_FilesystemClock::time_point
 std::__1::__fs::filesystem::_FilesystemClock::from_time_t(time_t)':
 :info:build /opt/local/libexec/gcc13/libc++/include/c++/v1/chrono:2958:35:
 error: no matching function for call to
 'std::__1::chrono::duration<__int128>::duration(time_t&)'
 :info:build  2958 |       return time_point(__secs(__t));
 :info:build       |                                   ^
 :info:build /opt/local/libexec/gcc13/libc++/include/c++/v1/chrono:1085:9:
 note: candidate: 'template<class _Rep2, class _Period2> constexpr
 std::__1::chrono::duration<_Rep, _Period>::duration(const
 std::__1::chrono::duration<_Rep2, _Period2>&, typename
 std::__1::enable_if<(__no_overflow<_Period2, typename
 _Period::type>::value &&
 (std::__1::chrono::treat_as_floating_point<_Rep>::value || ((typename
 __no_overflow<_Period2, typename _Period::type>::type::den == 1) && (!
 std::__1::chrono::treat_as_floating_point<_Rep2>::value))))>::type*) [with
 _Period2 = _Rep2; _Rep = __int128; _Period = std::__1::ratio<1>]'
 :info:build  1085 |         duration(const duration<_Rep2, _Period2>& __d,
 :info:build       |         ^~~~~~~~
 :info:build /opt/local/libexec/gcc13/libc++/include/c++/v1/chrono:1085:9:
 note:   template argument deduction/substitution failed:
 :info:build /opt/local/libexec/gcc13/libc++/include/c++/v1/chrono:2958:35:
 note:   mismatched types 'const std::__1::chrono::duration<_Rep, _Period>'
 and 'time_t' {aka 'long int'}
 :info:build  2958 |       return time_point(__secs(__t));
 :info:build       |                                   ^
 :info:build /opt/local/libexec/gcc13/libc++/include/c++/v1/chrono:1073:18:
 note: candidate: 'template<class _Rep2> constexpr
 std::__1::chrono::duration<_Rep, _Period>::duration(const _Rep2&, typename
 std::__1::enable_if<(std::__1::is_convertible<_U1, _T1>::value &&
 (std::__1::chrono::treat_as_floating_point<_Rep>::value || (!
 std::__1::chrono::treat_as_floating_point<_Rep2>::value)))>::type*) [with
 _Rep = __int128; _Period = std::__1::ratio<1>]'
 :info:build  1073 |         explicit duration(const _Rep2& __r,
 :info:build       |                  ^~~~~~~~
 :info:build /opt/local/libexec/gcc13/libc++/include/c++/v1/chrono:1073:18:
 note:   template argument deduction/substitution failed:
 :info:build /opt/local/libexec/gcc13/libc++/include/c++/v1/chrono: In
 substitution of 'template<class _Rep2> constexpr
 std::__1::chrono::duration<__int128>::duration(const _Rep2&, typename
 std::__1::enable_if<(std::__1::is_convertible<_U1, __int128>::value &&
 (std::__1::chrono::treat_as_floating_point<__int128>::value || (!
 std::__1::chrono::treat_as_floating_point<_Rep>::value))), void>::type*)
 [with _Rep2 = long int]':
 :info:build /opt/local/libexec/gcc13/libc++/include/c++/v1/chrono:2958:35:
 required from here
 :info:build /opt/local/libexec/gcc13/libc++/include/c++/v1/chrono:1076:44:
 error: incomplete type 'std::__1::is_convertible<long int, __int128>' used
 in nested name specifier
 }}}

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


More information about the macports-tickets mailing list