Unable to compile on macOS (arm64; Apple Silicon)
I'm trying to compile on macOS (arm64; Apple Silicon) and it compiles most of the code successfully but then it errors on loguru.cpp:
In file included from source/build/src/loguru.cpp:46:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/regex:771:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:888:21: error: too many arguments provided to function-like macro invocation
isalpha(_CharT __c, const locale& __loc)
^
source/build/include/compat.h:769:11: note: macro 'isalpha' defined here
# define isalpha(ch) ({ int32_t c__dontuse2_=ch; (c__dontuse2_>='A' && c__dontuse2_<='Z') || (c__dontuse2_>='a' && c__dontuse2_<='z'); })
^
In file included from source/build/src/loguru.cpp:46:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/regex:771:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:888:1: error: declaration conflicts with target of using declaration already in scope
isalpha(_CharT __c, const locale& __loc)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_ctype.h:218:1: note: target of using declaration
isalpha(int _c)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cctype:113:9: note: using declaration
using ::isalpha _LIBCPP_USING_IF_EXISTS;
^
In file included from source/build/src/loguru.cpp:46:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/regex:771:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:890:5: error: expected expression
return std::use_facet<ctype<_CharT> >(__loc).is(ctype_base::alpha, __c);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:891:2: error: expected ';' at end of declaration
}
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:896:21: error: too many arguments provided to function-like macro invocation
isdigit(_CharT __c, const locale& __loc)
^
source/build/include/compat.h:768:11: note: macro 'isdigit' defined here
# define isdigit(ch) ({ int32_t c__dontuse_=ch; c__dontuse_>='0' && c__dontuse_<='9'; })
^
In file included from source/build/src/loguru.cpp:46:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/regex:771:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:896:1: error: declaration conflicts with target of using declaration already in scope
isdigit(_CharT __c, const locale& __loc)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_ctype.h:237:1: note: target of using declaration
isdigit(int _c)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cctype:116:9: note: using declaration
using ::isdigit _LIBCPP_USING_IF_EXISTS;
^
In file included from source/build/src/loguru.cpp:46:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/regex:771:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:898:5: error: expected expression
return std::use_facet<ctype<_CharT> >(__loc).is(ctype_base::digit, __c);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:899:2: error: expected ';' at end of declaration
}
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:920:21: error: too many arguments provided to function-like macro invocation
isalnum(_CharT __c, const locale& __loc)
^
source/build/include/compat.h:770:11: note: macro 'isalnum' defined here
# define isalnum(ch2) ({ int32_t c2__dontuse_=ch2; isalpha(c2__dontuse_) || isdigit(c2__dontuse_); })
^
In file included from source/build/src/loguru.cpp:46:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/regex:771:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:920:1: error: declaration conflicts with target of using declaration already in scope
isalnum(_CharT __c, const locale& __loc)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_ctype.h:212:1: note: target of using declaration
isalnum(int _c)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cctype:112:9: note: using declaration
using ::isalnum _LIBCPP_USING_IF_EXISTS;
^
In file included from source/build/src/loguru.cpp:46:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/regex:771:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:922:5: error: expected expression
return std::use_facet<ctype<_CharT> >(__loc).is(ctype_base::alnum, __c);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:923:2: error: expected ';' at end of declaration
}
^
source/build/src/loguru.cpp:514:25: error: expected unqualified-id
last_is_alpha = std::isalpha(static_cast<int>(cmd[arg_len]));
^
source/build/include/compat.h:769:23: note: expanded from macro 'isalpha'
# define isalpha(ch) ({ int32_t c__dontuse2_=ch; (c__dontuse2_>='A' && c__dontuse2_<='Z') || (c__dontuse2_>='a' && c__dontuse2_<='z'); })
^
source/build/src/loguru.cpp:514:25: error: unexpected type name 'int32_t': expected expression
source/build/include/compat.h:769:26: note: expanded from macro 'isalpha'
# define isalpha(ch) ({ int32_t c__dontuse2_=ch; (c__dontuse2_>='A' && c__dontuse2_<='Z') || (c__dontuse2_>='a' && c__dontuse2_<='z'); })
^
source/build/src/loguru.cpp:514:25: error: expected '}'
source/build/include/compat.h:769:34: note: expanded from macro 'isalpha'
# define isalpha(ch) ({ int32_t c__dontuse2_=ch; (c__dontuse2_>='A' && c__dontuse2_<='Z') || (c__dontuse2_>='a' && c__dontuse2_<='z'); })
^
source/build/src/loguru.cpp:514:25: note: to match this '{'
source/build/include/compat.h:769:24: note: expanded from macro 'isalpha'
# define isalpha(ch) ({ int32_t c__dontuse2_=ch; (c__dontuse2_>='A' && c__dontuse2_<='Z') || (c__dontuse2_>='a' && c__dontuse2_<='z'); })
^
15 errors generated.
Thanks for any help!