Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MacPorts] libretroshare builds with Clang fails on macOS 10.14 and earlier #120

Open
barracuda156 opened this issue Oct 3, 2023 · 9 comments

Comments

@barracuda156
Copy link
Contributor

In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_libretroshare/libretroshare/work/libretroshare-0d99d8dc24b3b6604813123de74773e9c9813d42/src/chat/rschatitems.cc:23:
In file included from /opt/local/include/libcxx/v1/stdexcept:45:
In file included from /opt/local/include/libcxx/v1/exception:81:
In file included from /opt/local/include/libcxx/v1/cstdlib:85:
In file included from /opt/local/include/LegacySupport/stdlib.h:25:
/opt/local/include/libcxx/v1/stdlib.h:142:34: error: unknown type name 'ldiv_t'
inline _LIBCPP_INLINE_VISIBILITY ldiv_t div(long __x, long __y) _NOEXCEPT {
                                 ^
/opt/local/include/libcxx/v1/stdlib.h:143:12: error: no member named 'ldiv' in the global namespace
  return ::ldiv(__x, __y);
         ~~^
/opt/local/include/libcxx/v1/stdlib.h:146:34: error: unknown type name 'lldiv_t'
inline _LIBCPP_INLINE_VISIBILITY lldiv_t div(long long __x,
                                 ^
/opt/local/include/libcxx/v1/stdlib.h:148:12: error: no member named 'lldiv' in the global namespace
  return ::lldiv(__x, __y);
         ~~^
In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_libretroshare/libretroshare/work/libretroshare-0d99d8dc24b3b6604813123de74773e9c9813d42/src/chat/rschatitems.cc:23:
In file included from /opt/local/include/libcxx/v1/stdexcept:45:
In file included from /opt/local/include/libcxx/v1/exception:81:
/opt/local/include/libcxx/v1/cstdlib:100:9: error: no member named 'div_t' in the global namespace
using ::div_t;
      ~~^
/opt/local/include/libcxx/v1/cstdlib:101:9: error: no member named 'ldiv_t' in the global namespace
using ::ldiv_t;
      ~~^
/opt/local/include/libcxx/v1/cstdlib:103:9: error: no member named 'lldiv_t' in the global namespace
using ::lldiv_t;
      ~~^
/opt/local/include/libcxx/v1/cstdlib:105:9: error: no member named 'atof' in the global namespace
using ::atof;
      ~~^
/opt/local/include/libcxx/v1/cstdlib:106:9: error: no member named 'atoi' in the global namespace
using ::atoi;
      ~~^
/opt/local/include/libcxx/v1/cstdlib:107:9: error: no member named 'atol' in the global namespace
using ::atol;
      ~~^
/opt/local/include/libcxx/v1/cstdlib:109:9: error: no member named 'atoll' in the global namespace
using ::atoll;
      ~~^
/opt/local/include/libcxx/v1/cstdlib:111:9: error: no member named 'strtod' in the global namespace
using ::strtod;
      ~~^
/opt/local/include/libcxx/v1/cstdlib:112:9: error: no member named 'strtof' in the global namespace
using ::strtof;
      ~~^
/opt/local/include/libcxx/v1/cstdlib:113:9: error: no member named 'strtold' in the global namespace
using ::strtold;
      ~~^
/opt/local/include/libcxx/v1/cstdlib:114:9: error: no member named 'strtol' in the global namespace
using ::strtol;
      ~~^
/opt/local/include/libcxx/v1/cstdlib:116:9: error: no member named 'strtoll' in the global namespace
using ::strtoll;
      ~~^
/opt/local/include/libcxx/v1/cstdlib:118:9: error: no member named 'strtoul' in the global namespace
using ::strtoul;
      ~~^
/opt/local/include/libcxx/v1/cstdlib:120:9: error: no member named 'strtoull' in the global namespace
using ::strtoull;
      ~~^
/opt/local/include/libcxx/v1/cstdlib:122:9: error: no member named 'rand' in the global namespace
using ::rand;
      ~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_libretroshare/libretroshare/work/libretroshare-0d99d8dc24b3b6604813123de74773e9c9813d42/src/chat/distributedchat.cc:23:
In file included from /opt/local/include/libcxx/v1/iomanip:46:
In file included from /opt/local/include/libcxx/v1/__string:57:
In file included from /opt/local/include/libcxx/v1/algorithm:641:
In file included from /opt/local/include/libcxx/v1/cstring:60:
In file included from /opt/local/include/LegacySupport/string.h:25:
/opt/local/include/libcxx/v1/string.h:73:64: error: use of undeclared identifier 'strchr'
char* __libcpp_strchr(const char* __s, int __c) {return (char*)strchr(__s, __c);}
                                                               ^
/opt/local/include/libcxx/v1/string.h:80:75: error: use of undeclared identifier 'strpbrk'
char* __libcpp_strpbrk(const char* __s1, const char* __s2) {return (char*)strpbrk(__s1, __s2);}
                                                                          ^
/opt/local/include/libcxx/v1/string.h:87:65: error: use of undeclared identifier 'strrchr'; did you mean 'strchr'?
char* __libcpp_strrchr(const char* __s, int __c) {return (char*)strrchr(__s, __c);}
                                                                ^
/opt/local/include/libcxx/v1/string.h:75:13: note: 'strchr' declared here
const char* strchr(const char* __s, int __c) {return __libcpp_strchr(__s, __c);}
            ^
/opt/local/include/libcxx/v1/string.h:94:76: error: use of undeclared identifier 'memchr'
void* __libcpp_memchr(const void* __s, int __c, size_t __n) {return (void*)memchr(__s, __c, __n);}
                                                                           ^
In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_libretroshare/libretroshare/work/libretroshare-0d99d8dc24b3b6604813123de74773e9c9813d42/src/chat/distantchat.cc:24:
In file included from /opt/local/include/libcxx/v1/sstream:173:
In file included from /opt/local/include/libcxx/v1/ostream:138:
In file included from /opt/local/include/libcxx/v1/ios:214:
In file included from /opt/local/include/libcxx/v1/iosfwd:95:
In file included from /opt/local/include/LegacySupport/wchar.h:25:
/opt/local/include/libcxx/v1/wchar.h:137:77: error: use of undeclared identifier 'wcschr'
wchar_t* __libcpp_wcschr(const wchar_t* __s, wchar_t __c) {return (wchar_t*)wcschr(__s, __c);}
                                                                            ^
/opt/local/include/libcxx/v1/string.h:101:74: error: use of undeclared identifier 'strstr'; did you mean 'strchr'?
char* __libcpp_strstr(const char* __s1, const char* __s2) {return (char*)strstr(__s1, __s2);}
                                                                         ^
/opt/local/include/libcxx/v1/string.h:77:13: note: 'strchr' declared here
      char* strchr(      char* __s, int __c) {return __libcpp_strchr(__s, __c);}
            ^
/opt/local/include/libcxx/v1/string.h:101:74: error: no matching function for call to 'strchr'
char* __libcpp_strstr(const char* __s1, const char* __s2) {return (char*)strstr(__s1, __s2);}
                                                                         ^
/opt/local/include/libcxx/v1/string.h:77:13: note: candidate disabled: <no message provided>
      char* strchr(      char* __s, int __c) {return __libcpp_strchr(__s, __c);}
            ^
/opt/local/include/libcxx/v1/wchar.h:144:/opt/local/include/libcxx/v1/string.h87::101 :error81: :use of undeclared identifier 'wcspbrk' 
error: cannot initialize a parameter of type 'char *' with an lvalue of type 'const char *'
wchar_t* __libcpp_wcspbrk(const wchar_t* __s1, const wchar_t* __s2) {return (wchar_t*)wcspbrk(__s1, __s2);}
                                                                                      ^char* __libcpp_strstr(const char* __s1, const char* __s2) {return (char*)strstr(__s1, __s2);}
                                                                                ^~~~

/opt/local/include/libcxx/v1/string.h:77:32: note: passing argument to parameter '__s' here
      char* strchr(      char* __s, int __c) {return __libcpp_strchr(__s, __c);}
                               ^
/opt/local/include/libcxx/v1/wchar.h:151:78: error: use of undeclared identifier 'wcsrchr'; did you mean 'wcschr'?
wchar_t* __libcpp_wcsrchr(const wchar_t* __s, wchar_t __c) {return (wchar_t*)wcsrchr(__s, __c);}
                                                                             ^
/opt/local/include/libcxx/v1/wchar.h:139:16: note: 'wcschr' declared here
In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_libretroshare/libretroshare/work/libretroshare-0d99d8dc24b3b6604813123de74773e9c9813d42/src/chat/distributedchat.cc:23:
In file included from /opt/local/include/libcxx/v1/iomanip:46:
In file included from /opt/local/include/libcxx/v1/__string:57:
In file included from const wchar_t* wcschr(const wchar_t* __s, wchar_t __c) {return __libcpp_wcschr(__s, __c);}/opt/local/include/libcxx/v1/algorithm
:               ^641
:
/opt/local/include/libcxx/v1/cstring:69:9: error: no member named 'memcpy' in the global namespace; did you mean 'memchr'?
using ::memcpy;
      ~~^
/opt/local/include/libcxx/v1/string.h:96:13: note: 'memchr' declared here
const void* memchr(const void* __s, int __c, size_t __n) {return __libcpp_memchr(__s, __c, __n);}
            ^
In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_libretroshare/libretroshare/work/libretroshare-0d99d8dc24b3b6604813123de74773e9c9813d42/src/chat/p3chatservice.cc:23:
In file included from /opt/local/include/LegacySupport/math.h:77:
In file included from /opt/local/include/libcxx/v1/math.h:334:
In file included from /opt/local/include/LegacySupport/stdlib.h:25:
/opt/local/include/libcxx/v1/stdlib.h:142:34: error: unknown type name 'ldiv_t'
In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_libretroshare/libretroshare/work/libretroshare-0d99d8dc24b3b6604813123de74773e9c9813d42/src/chat/distributedchat.cc:23:
In file included from /opt/local/include/libcxx/v1/iomanip:46inline _LIBCPP_INLINE_VISIBILITY ldiv_t div(long __x, long __y) _NOEXCEPT {
                                 ^
/opt/local/include/libcxx/v1/wchar.h:158:86: error: use of undeclared identifier 'wcsstr'; did you mean 'wcschr'?
wchar_t* __libcpp_wcsstr(const wchar_t* __s1, const wchar_t* __s2) {return (wchar_t*)wcsstr(__s1, __s2);}
                                                                                     ^
/opt/local/include/libcxx/v1/wchar.h:141:16: note: 'wcschr' declared here
      wchar_t* wcschr(      wchar_t* __s, wchar_t __c) {return __libcpp_wcschr(__s, __c);}
               ^
/opt/local/include/libcxx/v1/wchar.h:158:86: error: no matching function for call to 'wcschr'
wchar_t* __libcpp_wcsstr(const wchar_t* __s1, const wchar_t* __s2) {return (wchar_t*)wcsstr(__s1, __s2);}
                                                                                     ^
/opt/local/include/libcxx/v1/stdlib.h:143/opt/local/include/libcxx/v1/wchar.h:141:16: note: candidate disabled: <no message provided>
      wchar_t* wcschr(      wchar_t* __s, wchar_t __c) {return __libcpp_wcschr(__s, __c);}
               ^
/opt/local/include/libcxx/v1/wchar.h:158:93: error: cannot initialize a parameter of type 'wchar_t *' with an lvalue of type 'const wchar_t *'
:12: error: no member named 'ldiv' in the global namespace
  return ::ldiv(__x, __y);
wchar_t* __libcpp_wcsstr(const wchar_t* __s1, const wchar_t* __s2) {return (wchar_t*)wcsstr(__s1, __s2);}         ~~^

                                                                                            ^~~~
/opt/local/include/libcxx/v1/wchar.h:141:38: note: passing argument to parameter '__s' here
      wchar_t* wcschr(      wchar_t* __s, wchar_t __c) {return __libcpp_wcschr(__s, __c);}
                                     ^
/opt/local/include/libcxx/v1/stdlib.h:146:34: error: unknown type name 'lldiv_t'
inline _LIBCPP_INLINE_VISIBILITY lldiv_t div(long long __x,
                                 ^
/opt/local/include/libcxx/v1/stdlib.h:148:12: error: no member named 'lldiv' in the global namespace
  return ::lldiv(__x, __y);
         ~~^
/opt/local/include/libcxx/v1/wchar.h:165:90: error:
In file included from /opt/local/include/libcxx/v1/__string:57:
In file included from /opt/local/include/libcxx/v1/algorithm:641:
/opt/local/include/libcxx/v1/cstring:70:9: use of undeclared identifier 'wmemchr'
wchar_t* __libcpp_wmemchr(const wchar_t* __s, wchar_t __c, size_t __n) {return (wchar_t*)wmemchr(__s, __c, __n);}
                                                                                         ^
: error: no member named 'memmove' in the global namespace
using ::memmove;
      ~~^
/opt/local/include/libcxx/v1/cstring:71:9: error: no member named 'strcpy' in the global namespace; did you mean 'strchr'?
using ::strcpy;
      ~~^
/opt/local/include/libcxx/v1/string.h:75:13: note: 'strchr' declared here
const char* strchr(const char* __s, int __c) {return __libcpp_strchr(__s, __c);}
            ^
In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_libretroshare/libretroshare/work/libretroshare-0d99d8dc24b3b6604813123de74773e9c9813d42/src/chat/distantchat.cc:24:
In file included from /opt/local/include/libcxx/v1/sstream:173:
In file included from /opt/local/include/libcxx/v1/ostream:138:
In file included from /opt/local/include/libcxx/v1/ios:214:
/opt/local/include/libcxx/v1/iosfwd:189:14: error: unknown type name 'mbstate_t'; did you mean '__mbstate_t'?
In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_libretroshare/libretroshare/work/libretroshare-0d99d8dc24b3b6604813123de74773e9c9813d42/src/chat/distributedchat.cc:23:
In file included from /opt/local/include/libcxx/v1/iomanip:46:
typedef fpos<mbstate_t>    streampos;
             ^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/i386/_types.h:79:3: note: '__mbstate_t' declared here
} __mbstate_t;
  ^
In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_libretroshare/libretroshare/work/libretroshare-0d99d8dc24b3b6604813123de74773e9c9813d42/src/chat/distantchat.cc:24:
In file included from /opt/local/include/libcxx/v1/sstream:173:
In file included from /opt/local/include/libcxx/v1/ostream:138:
In file included from /opt/local/include/libcxx/v1/ios:214:
/opt/local/include/libcxx/v1/iosfwd:190:14: error: unknown type name 'mbstate_t'; did you mean '__mbstate_t'?
typedef fpos<mbstate_t>    wstreampos;
             ^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/i386/_types.h:79:3: note: '__mbstate_t' declared here
} __mbstate_t;
  ^
In file included from /opt/local/include/libcxx/v1/__string:57:
In file included from /opt/local/include/libcxx/v1/algorithm:641:
/opt/local/include/libcxx/v1/cstring:72:9: error: no member named 'strncpy' in the global namespace
using ::strncpy;
      ~~^
In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_libretroshare/libretroshare/work/libretroshare-0d99d8dc24b3b6604813123de74773e9c9813d42/src/chat/distantchat.cc:24:
In file included from /opt/local/include/libcxx/v1/sstream:173:
In file included from /opt/local/include/libcxx/v1/ostream:138:
In file included from /opt/local/include/libcxx/v1/ios:214:
/opt/local/include/libcxx/v1/iosfwd:195:14: error: unknown type name 'mbstate_t'; did you mean '__mbstate_t'?
typedef fpos<mbstate_t>    u16streampos;
             ^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/i386/_types.h:79:3: note: '__mbstate_t' declared here
} __mbstate_t;
  ^
/opt/local/include/libcxx/v1/cstring:73:9: error: no member named 'strcat' in the global namespace; did you mean 'strchr'?
using ::strcat;
      ~~^
/opt/local/include/libcxx/v1/string.h:75:13: note: 'strchr' declared here
const char* strchr(const char* __s, int __c) {return __libcpp_strchr(__s, __c);}
            ^
In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_libretroshare/libretroshare/work/libretroshare-0d99d8dc24b3b6604813123de74773e9c9813d42/src/chat/distantchat.cc:24:
In file included from In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_libretroshare/libretroshare/work/libretroshare-0d99d8dc24b3b6604813123de74773e9c9813d42/src/chat/distributedchat.cc:23:
In file included from /opt/local/include/libcxx/v1/iomanip:46:
In file included from /opt/local/include/libcxx/v1/__string:57:
In file included from /opt/local/include/libcxx/v1/algorithm:641:
/opt/local/include/libcxx/v1/cstring:74:9: error: no member named 'strncat' in the global namespace
using ::strncat;
      ~~^
/opt/local/include/libcxx/v1/sstream:173:
In file included from /opt/local/include/libcxx/v1/ostream:138:
In file included from /opt/local/include/libcxx/v1/ios:214:
/opt/local/include/libcxx/v1/iosfwd:196:14: error: unknown type name 'mbstate_t'; did you mean '__mbstate_t'?
typedef fpos<mbstate_t>    u32streampos;
             ^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/i386/_types.h:79:3: note: '__mbstate_t' declared here
} __mbstate_t;
  ^
/opt/local/include/libcxx/v1/cstring:75:9: error: no member named 'memcmp' in the global namespace; did you mean 'memchr'?
using ::memcmp;
      ~~^
/opt/local/include/libcxx/v1/string.h:96:13: note: 'memchr' declared here
const void* memchr(const void* __s, int __c, size_t __n) {return __libcpp_memchr(__s, __c, __n);}
            ^
In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_libretroshare/libretroshare/work/libretroshare-0d99d8dc24b3b6604813123de74773e9c9813d42/src/chat/distributedchat.cc:23:
In file included from /opt/local/include/libcxx/v1/iomanip:46:
In file included from /opt/local/include/libcxx/v1/__string:57:
In file included from /opt/local/include/libcxx/v1/algorithm:641:
/opt/local/include/libcxx/v1/cstring:76:9: error: no member named 'strcmp' in the global namespace; did you mean 'strchr'?
using ::strcmp;
      ~~^
/opt/local/include/libcxx/v1/string.h:75:13: note: 'strchr' declared here
const char* strchr(const char* __s, int __c) {return __libcpp_strchr(__s, __c);}
            ^
In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_libretroshare/libretroshare/work/libretroshare-0d99d8dc24b3b6604813123de74773e9c9813d42/src/chat/distributedchat.cc:23:
In file included from /opt/local/include/libcxx/v1/iomanip:46:
In file included from /opt/local/include/libcxx/v1/__string:57:
In file included from /opt/local/include/libcxx/v1/algorithm:641:
/opt/local/include/libcxx/v1/cstring:77:9: error: no member named 'strncmp' in the global namespace
using ::strncmp;
      ~~^
/opt/local/include/libcxx/v1/cstring:78:9: error: no member named 'strcoll' in the global namespace
using ::strcoll;
      ~~^
In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_libretroshare/libretroshare/work/libretroshare-0d99d8dc24b3b6604813123de74773e9c9813d42/src/chat/distantchat.cc:24:
In file included from /opt/local/include/libcxx/v1/sstream:173:
In file included from /opt/local/include/libcxx/v1/ostream:138:
In file included from /opt/local/include/libcxx/v1/ios:215:
In file included from /opt/local/include/libcxx/v1/__locale:14:
In file included from /opt/local/include/libcxx/v1/string:506:
In file included from /opt/local/include/libcxx/v1/string_view:175:
In file included from /opt/local/include/libcxx/v1/__string:57:
In file included from /opt/local/include/libcxx/v1/algorithm/opt/local/include/libcxx/v1/cstring:79:9: error: no member named 'strxfrm' in the global namespace
using ::strxfrm;
      ~~^
:639:
In file included from /opt/local/include/libcxx/v1/initializer_list:46:
/opt/local/include/libcxx/v1/cstddef:49:9: error: no member named 'ptrdiff_t' in the global namespace
using ::ptrdiff_t;
      ~~^
/opt/local/include/libcxx/v1/cstring:82:9: error: no member named 'strcspn' in the global namespace
using ::strcspn;
      ~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
/opt/local/include/libcxx/v1/cstddef:53:9: error: no member named 'max_align_t' in the global namespace
using ::max_align_t;
      ~~^
In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_libretroshare/libretroshare/work/libretroshare-0d99d8dc24b3b6604813123de74773e9c9813d42/src/chat/distantchat.cc:24:
In file included from /opt/local/include/libcxx/v1/sstream:173:
In file included from /opt/local/include/libcxx/v1/ostream:138:
In file included from /opt/local/include/libcxx/v1/ios:215:
In file included from /opt/local/include/libcxx/v1/__locale:14:
In file included from /opt/local/include/libcxx/v1/string:506:
In file included from /opt/local/include/libcxx/v1/string_view:175:
In file included from /opt/local/include/libcxx/v1/__string:57:
In file included from /opt/local/include/libcxx/v1/algorithm:641:
In file included from /opt/local/include/libcxx/v1/cstring:60:
In file included from /opt/local/include/LegacySupport/string.h:25:
/opt/local/include/libcxx/v1/string.h:73:64: error: use of undeclared identifier 'strchr'
char* __libcpp_strchr(const char* __s, int __c) {return (char*)strchr(__s, __c);}
                                                               ^
In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_libretroshare/libretroshare/work/libretroshare-0d99d8dc24b3b6604813123de74773e9c9813d42/src/chat/p3chatservice.cc:23:
In file included from /opt/local/include/LegacySupport/math.h:77:
/opt/local/include/libcxx/v1/math.h:797:93: error: no member named 'acosf' in the global namespace; did you mean 'acos'?
inline _LIBCPP_INLINE_VISIBILITY float       acos(float __lcpp_x) _NOEXCEPT       {return ::acosf(__lcpp_x);}
                                                                                          ~~^
/opt/local/include/libcxx/v1/math.h:797:46: note: 'acos' declared here
inline _LIBCPP_INLINE_VISIBILITY float       acos(float __lcpp_x) _NOEXCEPT       {return ::acosf(__lcpp_x);}
                                             ^
/opt/local/include/libcxx/v1/string.h:80:75: error: use of undeclared identifier 'strpbrk'
char* __libcpp_strpbrk(const char* __s1, const char* __s2) {return (char*)strpbrk(__s1, __s2);}
                                                                          ^
/opt/local/include/libcxx/v1/math.h:798:93: error: no member named 'acosl' in the global namespace; did you mean 'acos'?
inline _LIBCPP_INLINE_VISIBILITY long double acos(long double __lcpp_x) _NOEXCEPT {return ::acosl(__lcpp_x);}
                                                                                          ~~^
/opt/local/include/libcxx/v1/math.h:797:46: note: 'acos' declared here
inline _LIBCPP_INLINE_VISIBILITY float       acos(float __lcpp_x) _NOEXCEPT       {return ::acosf(__lcpp_x);}
                                             ^
/opt/local/include/libcxx/v1/math.h:804:38: error: call to 'acos' is ambiguous
acos(_A1 __lcpp_x) _NOEXCEPT {return ::acos((double)__lcpp_x);}
                                     ^~~~~~
/opt/local/include/libcxx/v1/math.h:797:46: note: candidate function
/opt/local/include/libcxx/v1/string.h:87:65: error: inline _LIBCPP_INLINE_VISIBILITY float       acos(float __lcpp_x) _NOEXCEPT       {return ::acosf(__lcpp_x);}use of undeclared identifier 'strrchr'; did you mean 'strchr'?

                                             ^
/opt/local/include/libcxx/v1/math.h:798:46: note: candidate function
char* __libcpp_strrchr(const char* __s, int __c) {return (char*)strrchr(__s, __c);}
                                                                ^
/opt/local/include/libcxx/v1/string.h:75:13: note: 'strchr' declared here
inline _LIBCPP_INLINE_VISIBILITY long double acos(long double __lcpp_x) _NOEXCEPT {return ::acosl(__lcpp_x);}
                                             ^
const char* strchr(const char* __s, int __c) {return __libcpp_strchr(__s, __c);}
            ^
/opt/local/include/libcxx/v1/math.h:809:93: error: no member named 'asinf' in the global namespace; did you mean 'asin'?
inline _LIBCPP_INLINE_VISIBILITY float       asin(float __lcpp_x) _NOEXCEPT       {return ::asinf(__lcpp_x);}
                                                                                          ~~^
/opt/local/include/libcxx/v1/math.h:809:46: note: 'asin' declared here
inline _LIBCPP_INLINE_VISIBILITY float       asin(float __lcpp_x) _NOEXCEPT       {return ::asinf(__lcpp_x);}
                                             ^
/opt/local/include/libcxx/v1/string.h:94:76: error: use of undeclared identifier 'memchr'; did you mean 'wmemchr'?
void* __libcpp_memchr(const void* __s, int __c, size_t __n) {return (void*)memchr(__s, __c, __n);}
                                                                           ^
/opt/local/include/libcxx/v1/wchar.h:169:16: note: 'wmemchr' declared here
      wchar_t* wmemchr(      wchar_t* __s, wchar_t __c, size_t __n) {return __libcpp_wmemchr(__s, __c, __n);}
               ^
In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_libretroshare/libretroshare/work/libretroshare-0d99d8dc24b3b6604813123de74773e9c9813d42/src/chat/distantchat.cc:24:
In file included from /opt/local/include/libcxx/v1/sstream:173:
In file included from /opt/local/include/libcxx/v1/ostream:138:
In file included from /opt/local/include/libcxx/v1/ios:215:
In file included from /opt/local/include/libcxx/v1/__locale:14:
In file included from /opt/local/include/libcxx/v1/string:506:
In file included from /opt/local/include/libcxx/v1/string_view:175:
In file included from /opt/local/include/libcxx/v1/__string:57:
In file included from /opt/local/include/libcxx/v1/algorithm:641:
In file included from /opt/local/include/libcxx/v1/cstring:60/opt/local/include/libcxx/v1/math.h:
:In file included from 810/opt/local/include/LegacySupport/string.h::9325::
 /opt/local/include/libcxx/v1/string.h:94:76:error: no member named 'asinl' in the global namespace; did you mean 'asin'?
inline _LIBCPP_INLINE_VISIBILITY long double asin(long double __lcpp_x) _NOEXCEPT {return ::asinl(__lcpp_x);}
                                                                                          ~~^
/opt/local/include/libcxx/v1/math.h:809:46: note: 'asin' declared here
inline _LIBCPP_INLINE_VISIBILITY float       asin(float __lcpp_x) _NOEXCEPT       {return ::asinf(__lcpp_x);}
                                             ^
/opt/local/include/libcxx/v1/math.h:816:38: error: call to 'asin' is ambiguous
asin(_A1 __lcpp_x) _NOEXCEPT {return ::asin((double)__lcpp_x);}
                                     ^~~~~~
/opt/local/include/libcxx/v1/math.h:809:46: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY float       asin(float __lcpp_x) _NOEXCEPT       {return ::asinf(__lcpp_x);}
                                             ^
/opt/local/include/libcxx/v1/math.h:810:46: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY long double asin(long double __lcpp_x) _NOEXCEPT {return ::asinl(__lcpp_x);}
                                             ^
/opt/local/include/libcxx/v1/math.h:821:93: error: no member named 'atanf' in the global namespace; did you mean 'atan'?
inline _LIBCPP_INLINE_VISIBILITY float       atan(float __lcpp_x) _NOEXCEPT       {return ::atanf(__lcpp_x);}
                                                                                          ~~^
/opt/local/include/libcxx/v1/math.h:821:46: note: 'atan' declared here
inline _LIBCPP_INLINE_VISIBILITY float       atan(float __lcpp_x) _NOEXCEPT       {return ::atanf(__lcpp_x);}
                                             ^
/opt/local/include/libcxx/v1/math.h:822:93: error: no member named 'atanl' in the global namespace; did you mean 'atan'?
inline _LIBCPP_INLINE_VISIBILITY long double atan(long double __lcpp_x) _NOEXCEPT {return ::atanl(__lcpp_x);}
                                                                                          ~~^
/opt/local/include/libcxx/v1/math.h:821:46: note: 'atan' declared here
inline _LIBCPP_INLINE_VISIBILITY float       atan(float __lcpp_x) _NOEXCEPT       {return ::atanf(__lcpp_x);}
                                             ^
/opt/local/include/libcxx/v1/math.h:828:38: error: call to 'atan' is ambiguous
atan(_A1 __lcpp_x) _NOEXCEPT {return ::atan((double)__lcpp_x);}
                                     ^~~~~~
/opt/local/include/libcxx/v1/math.h:821:46: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY float       atan(float __lcpp_x) _NOEXCEPT       {return ::atanf(__lcpp_x);}
                                             ^
/opt/local/include/libcxx/v1/math.h:822:46: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY long double atan(long double __lcpp_x) _NOEXCEPT {return ::atanl(__lcpp_x);}
                                             ^
/opt/local/include/libcxx/v1/math.h:833:116: error: no member named 'atan2f' in the global namespace; did you mean 'atan2'?
inline _LIBCPP_INLINE_VISIBILITY float       atan2(float __lcpp_y, float __lcpp_x) _NOEXCEPT             {return ::atan2f(__lcpp_y, __lcpp_x);}
                                                                                                                 ~~^
/opt/local/include/libcxx/v1/math.h:833:46: note: 'atan2' declared here
inline _LIBCPP_INLINE_VISIBILITY float       atan2(float __lcpp_y, float __lcpp_x) _NOEXCEPT             {return ::atan2f(__lcpp_y, __lcpp_x);}
                                             ^
/opt/local/include/libcxx/v1/math.h:834:116: error: no member named 'atan2l' in the global namespace; did you mean 'atan2'?
inline _LIBCPP_INLINE_VISIBILITY long double atan2(long double __lcpp_y, long double __lcpp_x) _NOEXCEPT {return ::atan2l(__lcpp_y, __lcpp_x);}
                                                                                                                 ~~^
/opt/local/include/libcxx/v1/math.h:833:46: note: 'atan2' declared here
inline _LIBCPP_INLINE_VISIBILITY float       atan2(float __lcpp_y, float __lcpp_x) _NOEXCEPT             {return ::atan2f(__lcpp_y, __lcpp_x);}
                                             ^
 error: no matching function for call to 'wmemchr'
void* __libcpp_memchr(const void* __s, int __c, size_t __n) {return (void*)memchr(__s, __c, __n);}
                                                                           ^
/opt/local/include/libcxx/v1/wchar.h:169:16: note: candidate disabled: <no message provided>
      wchar_t* wmemchr(      wchar_t* __s, wchar_t __c, size_t __n) {return __libcpp_wmemchr(__s, __c, __n);}
               ^
In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_libretroshare/libretroshare/work/libretroshare-0d99d8dc24b3b6604813123de74773e9c9813d42/src/chat/distantchat.cc:24:
In file included from /opt/local/include/libcxx/v1/sstream:173:
In file included from /opt/local/include/libcxx/v1/ostream:138:
In file included from /opt/local/include/libcxx/v1/ios:215:
In file included from /opt/local/include/libcxx/v1/__locale:14:
In file included from /opt/local/include/libcxx/v1/string:506:
In file included from /opt/local/include/libcxx/v1/string_view:175:
In file included from /opt/local/include/libcxx/v1/__string:57:
In file included from /opt/local/include/libcxx/v1/algorithm:641:
In file included from /opt/local/include/libcxx/v1/cstring:60:
In file included from /opt/local/include/LegacySupport/string.h:25:
/opt/local/include/libcxx/v1/string.h:94:83: error: cannot initialize a parameter of type 'wchar_t *' with an lvalue of type 'const void *'
void* __libcpp_memchr(const void* __s, int __c, size_t __n) {return (void*)memchr(__s, __c, __n);}
                                                                                  ^~~
/opt/local/include/libcxx/v1/wchar.h:169:39: note: passing argument to parameter '__s' here
      wchar_t* wmemchr(      wchar_t* __s, wchar_t __c, size_t __n) {return __libcpp_wmemchr(__s, __c, __n);}
                                      ^
/opt/local/include/libcxx/v1/math.h:856:93: error: no member named 'ceilf' in the global namespace; did you mean 'ceil'?
inline _LIBCPP_INLINE_VISIBILITY float       ceil(float __lcpp_x) _NOEXCEPT       {return ::ceilf(__lcpp_x);}
                                                                                          ~~^
/opt/local/include/libcxx/v1/math.h:856:46: note: 'ceil' declared here
inline _LIBCPP_INLINE_VISIBILITY float       ceil(float __lcpp_x) _NOEXCEPT       {return ::ceilf(__lcpp_x);}
                                             ^
/opt/local/include/libcxx/v1/math.h:857:93: error: no member named 'ceill' in the global namespace; did you mean 'ceil'?
inline _LIBCPP_INLINE_VISIBILITY long double ceil(long double __lcpp_x) _NOEXCEPT {return ::ceill(__lcpp_x);}
                                                                                          ~~^
/opt/local/include/libcxx/v1/math.h:856:46: note: 'ceil' declared here
inline _LIBCPP_INLINE_VISIBILITY float       ceil(float __lcpp_x) _NOEXCEPT       {return ::ceilf(__lcpp_x);}
                                             ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
/opt/local/include/libcxx/v1/math.h:863:38: error: call to 'ceil' is ambiguous
ceil(_A1 __lcpp_x) _NOEXCEPT {return ::ceil((double)__lcpp_x);}
                                     ^~~~~~
/opt/local/include/libcxx/v1/math.h:856:46: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY float       ceil(float __lcpp_x) _NOEXCEPT       {return ::ceilf(__lcpp_x);}
                                             ^
/opt/local/include/libcxx/v1/math.h:857:46: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY long double ceil(long double __lcpp_x) _NOEXCEPT {return ::ceill(__lcpp_x);}
                                             ^
/opt/local/include/libcxx/v1/math.h:868:92: error: no member named 'cosf' in the global namespace; did you mean 'cos'?
inline _LIBCPP_INLINE_VISIBILITY float       cos(float __lcpp_x) _NOEXCEPT       {return ::cosf(__lcpp_x);}
                                                                                         ~~^
/opt/local/include/libcxx/v1/math.h:868:46: note: 'cos' declared here
inline _LIBCPP_INLINE_VISIBILITY float       cos(float __lcpp_x) _NOEXCEPT       {return ::cosf(__lcpp_x);}
                                             ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [CMakeFiles/retroshare.dir/src/chat/rschatitems.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
20 errors generated.
make[2]: *** [CMakeFiles/retroshare.dir/src/chat/distantchat.cc.o] Error 1
20 errors generated.
make[2]: *** [CMakeFiles/retroshare.dir/src/chat/p3chatservice.cc.o] Error 1
20 errors generated.
make[2]: *** [CMakeFiles/retroshare.dir/src/chat/distributedchat.cc.o] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_libretroshare/libretroshare/work/build'
make[1]: *** [CMakeFiles/retroshare.dir/all] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_libretroshare/libretroshare/work/build'
make: *** [all] Error 2

See:
https://build.macports.org/builders/ports-10.14_x86_64-builder/builds/180087/steps/install-port/logs/stdio
Also:
https://build.macports.org/builders/ports-10.6_x86_64-builder/builds/171305/steps/install-port/logs/stdio

@defnax
Copy link
Contributor

defnax commented Nov 16, 2023

i doesnt used macports more, i used last year brew or only brew
https://decovar.dev/blog/2021/04/01/macos-building-retroshare/

@barracuda156
Copy link
Contributor Author

barracuda156 commented Nov 16, 2023

@defnax While this won’t help to fix clang build failures, it may be helpful to write a port for RetroShare itself. (I have done it for Qt4 on PowerPC, for older version of RetroShare, but I need at least Qt5 or better Qt6 for aarch64, and the build procedure changed quite a bit, it seems.)
Does it still work for the current version of RetroShare from source? Rewriting from brew to Macports should not be a problem.

UPD. Thanks again for the article, it is pretty detailed. I will try rewriting it to make a portfile.

@defnax
Copy link
Contributor

defnax commented Nov 16, 2023

i had no time to compile rs on my very old mac, we has no mac devs.
You can join to help us fix issues macos related.

@barracuda156
Copy link
Contributor Author

@defnax I can try :)

With a build on PowerPC I ran into a crash after initial set-up: RetroShare/RetroShare#2762
This is not resolved yet. On older macOS we are constrained by Qt4, and RetroShare, sadly, switched to Qt5 without retaining fallback code, so I cannot use the current version.

If there is a way to use the current libretroshare (which builds fine on old systems with modern gcc) with an older Qt4 GUI, that would make life much easier.

On the other hand, on aarch64 Qt4 is broken, so there we can only use Qt5/Qt6.

@defnax
Copy link
Contributor

defnax commented Nov 16, 2023

you can try to use retroshare-service with webui then not needed more qt.

@barracuda156
Copy link
Contributor Author

you can try to use retroshare-service with webui then not needed more qt.

I suspect that will be more troublesome if not impossible, since it is likely to depend on pretty modern browsers, and that is one thing which is perhaps truly hopelessly broken on PowerPC and older Intel. (Sure enough, it is not impossible in principle, but practically: no one has time to keep fixing a whole browser, and those projects which did – either gave up or are not properly functional anyway.)

P. S. This is what builds on PowerPC: barracuda156/powerpc-ports@e222217
The app starts up, goes to registration screen, but after you input data and password, it crashes upon trying to create a profile. This should not be Qt4 problem as such – Qt4 works reliably well on PowerPC.
It failed to build on Intel though, perhaps some clangish issues.

@csoler
Copy link
Contributor

csoler commented Nov 16, 2023

for the crash problem: check that your version of sqlcipher is >= 3.4.1. Version 3.2 is known to crash because of a bug in this library.

@barracuda156
Copy link
Contributor Author

for the crash problem: check that your version of sqlcipher is >= 3.4.1. Version 3.2 is known to crash because of a bug in this library.

@csoler I believe, we got the latest one, 4.5.5: https://ports.macports.org/port/sqlcipher (builds on all systems including PowerPC).

@barracuda156
Copy link
Contributor Author

i doesnt used macports more, i used last year brew or only brew https://decovar.dev/blog/2021/04/01/macos-building-retroshare/

@defnax Portfile was easy, but the build of 0.6.7 looks broken pretty badly on 14.1.1 at least: RetroShare/RetroShare#2791

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants