Error compile bitcoin mac OS I have straggle to compile bitcoin core on mac OS machine. it has an error as the following:
/usr/local/include/QtCore/qglobal.h:667:65: error: expected '&gt;'
         typename = std::enable_if_t&lt;std::is_arithmetic_v&lt;T&gt; &amp;&amp; std::is_arithmetic_v&lt;U&gt; &amp;&amp;
                                                                ^
/usr/local/include/QtCore/qglobal.h:667:65: error: expected ',' or '&gt;' in
      template-parameter-list
/usr/local/include/QtCore/qglobal.h:668:66: error: expected unqualified-id
                                     std::is_floating_point_v&lt;T&gt; == std::is_floating_po...
                                                                 ^
/usr/local/include/QtCore/qglobal.h:679:35: error: no type named 'Promoted' in namespace
      'QTypeTraits::detail'
using Promoted = typename detail::Promoted&lt;T, U&gt;::type;
                 ~~~~~~~~~~~~~~~~~^~~~~~~~
/usr/local/include/QtCore/qglobal.h:679:43: error: expected ';' after alias declaration
using Promoted = typename detail::Promoted&lt;T, U&gt;::type;
                                          ^
                                          ;
/usr/local/include/QtCore/qglobal.h:691:31: error: no template named 'Promoted' in namespace
      'QTypeTraits'
constexpr inline QTypeTraits::Promoted&lt;T, U&gt; qMin(const T &amp;a, const U &amp;b)
                 ~~~~~~~~~~~~~^
/usr/local/include/QtCore/qglobal.h:693:28: error: no template named 'Promoted' in namespace
      'QTypeTraits'
    using P = QTypeTraits::Promoted&lt;T, U&gt;;
              ~~~~~~~~~~~~~^
/usr/local/include/QtCore/qglobal.h:694:5: error: unknown type name 'P'
    P _a = a;
    ^
/usr/local/include/QtCore/qglobal.h:695:5: error: unknown type name 'P'
    P _b = b;
    ^
/usr/local/include/QtCore/qglobal.h:699:31: error: no template named 'Promoted' in namespace
      'QTypeTraits'
constexpr inline QTypeTraits::Promoted&lt;T, U&gt; qMax(const T &amp;a, const U &amp;b)
                 ~~~~~~~~~~~~~^
/usr/local/include/QtCore/qglobal.h:701:28: error: no template named 'Promoted' in namespace
      'QTypeTraits'
    using P = QTypeTraits::Promoted&lt;T, U&gt;;
              ~~~~~~~~~~~~~^
/usr/local/include/QtCore/qglobal.h:702:5: error: unknown type name 'P'
    P _a = a;
    ^
/usr/local/include/QtCore/qglobal.h:703:5: error: unknown type name 'P'
    P _b = b;
    ^
/usr/local/include/QtCore/qglobal.h:707:31: error: no template named 'Promoted' in namespace
      'QTypeTraits'
constexpr inline QTypeTraits::Promoted&lt;T, U&gt; qBound(const T &amp;min, const U &amp;val, const T &amp;max)
                 ~~~~~~~~~~~~~^
/usr/local/include/QtCore/qglobal.h:710:31: error: no template named 'Promoted' in namespace
      'QTypeTraits'
constexpr inline QTypeTraits::Promoted&lt;T, U&gt; qBound(const T &amp;min, const T &amp;val, const U &amp;max)
                 ~~~~~~~~~~~~~^
/usr/local/include/QtCore/qglobal.h:713:31: error: no template named 'Promoted' in namespace
      'QTypeTraits'
constexpr inline QTypeTraits::Promoted&lt;T, U&gt; qBound(const U &amp;min, const T &amp;val, const T &amp;max)

Please advise.
i used command brew install qt5
I had the same issue, seems like the problem is that I had both qt5 and qt6 installed, and it used qt6. Try running:
brew uninstall qt
brew install qt5