QGC's compiling errors with MAC

Hello,
I compile QGC(master) with QT at macOS big sur(v11.5.2). It encounters errors although I don’t change anything about the code. Meanwhile I install QT just as the instruction step by step. What is the problem? How could I fix it? Thank you!
part of qt’s output.:

In file included from /Users/kevin/qgroundcontrol/src/QtLocationPlugin/QGeoCodeReplyQGC.cpp:In file included from In file included from /Users/kevin/qgroundcontrol/src/QtLocationPlugin/QGeoMapReplyQGC.cpp:/Users/kevin/qgroundcontrol/src/QtLocationPlugin/QGeoCodingManagerEngineQGC.cpp47::
47In file included from :
/Users/kevin/qgroundcontrol/src/QtLocationPlugin/QGCMapEngine.hIn file included from :/Users/kevin/qgroundcontrol/src/QtLocationPlugin/QGeoCodingManagerEngineQGC.h24::
50In file included from :
/Users/kevin/qgroundcontrol/src/QtLocationPlugin/QGCMapUrlEngine.h:20:
47:
In file included from /Users/kevin/Qt/5.12.6/clang_64/lib/QtLocation.framework/Headers/QGeoServiceProvider:In file included from 1/Users/kevin/qgroundcontrol/src/QtLocationPlugin/GoogleMapProvider.hIn file included from :12:
/Users/kevin/qgroundcontrol/src/QtLocationPlugin/QGeoCodeReplyQGC.hIn file included from :/Users/kevin/qgroundcontrol/src/QtLocationPlugin/MapProvider.h50::
18In file included from /Users/kevin/Qt/5.12.6/clang_64/lib/QtNetwork.framework/Headers/QNetworkReply:1:
In file included from :
In file included from /Users/kevin/Qt/5.12.6/clang_64/lib/QtLocation.framework/Headers/qgeoserviceprovider.h/Users/kevin/Qt/5.12.6/clang_64/lib/QtNetwork.framework/Headers/qnetworkreply.h::40:
46In file included from :
/Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/QVariantIn file included from :1:
:
/Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/QVariant:1:
/Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qvariant.hIn file included from :399/Users/kevin/Qt/5.12.6/clang_64/lib/QtLocation.framework/Headers/5.12.6/QtLocation/private/qgeomaptype_p.h::1655::
 In file included from /Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/QVariantMap:/Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qvariant.h1:
error: definition of implicit copy assignment operator for 'Private' is deprecated because it has a user-declared copy constructor [-Werror,-Wdeprecated-copy]:
399/Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qvariant.h:399:16: error: definition of implicit copy assignment operator for 'Private' is deprecated because it has a user-declared copy constructor [-Werror,-Wdeprecated-copy]
:16: error: definition of implicit copy assignment operator for 'Private' is deprecated because it has a user-declared copy constructor [-Werror,-Wdeprecated-copy]
        inline Private(const Private &other) Q_DECL_NOTHROW
               ^
        inline Private(const Private &other) Q_DECL_NOTHROW
               ^        inline Private(const Private &other) Q_DECL_NOTHROW

               ^
In file included from /Users/kevin/qgroundcontrol/src/QtLocationPlugin/QGeoServiceProviderPluginQGC.cpp:47:
In file included from /Users/kevin/qgroundcontrol/src/QtLocationPlugin/QGeoServiceProviderPluginQGC.h:51:
In file included from /Users/kevin/Qt/5.12.6/clang_64/lib/QtLocation.framework/Headers/QGeoServiceProviderFactory:1:
In file included from /Users/kevin/Qt/5.12.6/clang_64/lib/QtLocation.framework/Headers/qgeoserviceproviderfactory.h:40:
In file included from /Users/kevin/Qt/5.12.6/clang_64/lib/QtLocation.framework/Headers/QGeoServiceProvider:1:
In file included from /Users/kevin/Qt/5.12.6/clang_64/lib/QtLocation.framework/Headers/qgeoserviceprovider.h:40:
In file included from /Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/QVariant:1:
/Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qvariant.h:399:16: error: definition of implicit copy assignment operator for 'Private' is deprecated because it has a user-declared copy constructor [-Werror,-Wdeprecated-copy]
/Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qvariant.h:/Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qvariant.h:273:15: note: in implicit copy assignment operator for 'QVariant::Private' first required here
/Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qvariant.h        inline Private(const Private &other) Q_DECL_NOTHROW
273               ^:
:273:15    { other.d = Private(); }
15:: note:               ^ note
: in implicit copy assignment operator for 'QVariant::Private' first required here
/Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qvariant.h:273:15: note: in implicit copy assignment operator for 'QVariant::Private' first required here
    { other.d = Private(); }
              ^
    { other.d = Private(); }
              ^
in implicit copy assignment operator for 'QVariant::Private' first required here
    { other.d = Private(); }
              ^
In file included from /Users/kevin/qgroundcontrol/src/QtLocationPlugin/QGCMapUrlEngine.cpp:19:
In file included from /Users/kevin/qgroundcontrol/src/QGCLoggingCategory.h:12:
In file included from /Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/QLoggingCategory:1:
In file included from /Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qloggingcategory.h:44:
In file included from /Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qdebug.h:49:
In file included from /Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qtextstream.h:46:
In file included from /Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qlocale.h:43:
/Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qvariant.h:399:16: error: definition of implicit copy assignment operator for 'Private' is deprecated because it has a user-declared copy constructor [-Werror,-Wdeprecated-copy]
        inline Private(const Private &other) Q_DECL_NOTHROW
               ^
/Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qvariant.h:273:15: note: in implicit copy assignment operator for 'QVariant::Private' first required here
    { other.d = Private(); }
              ^
In file included from /Users/kevin/qgroundcontrol/src/QtLocationPlugin/QGCTileCacheWorker.cpp:19:
In file included from /Users/kevin/qgroundcontrol/src/QtLocationPlugin/QGCMapEngine.h:24:
In file included from /Users/kevin/qgroundcontrol/src/QtLocationPlugin/QGCMapUrlEngine.h:20:
In file included from /Users/kevin/qgroundcontrol/src/QtLocationPlugin/GoogleMapProvider.h:12:
In file included from /Users/kevin/qgroundcontrol/src/QtLocationPlugin/MapProvider.h:18:
In file included from /Users/kevin/Qt/5.12.6/clang_64/lib/QtLocation.framework/Headers/5.12.6/QtLocation/private/qgeomaptype_p.h:55:
In file included from /Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/QVariantMap:1:
/Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qvariant.h:399:16: error: definition of implicit copy assignment operator for 'Private' is deprecated because it has a user-declared copy constructor [-Werror,-Wdeprecated-copy]
        inline Private(const Private &other) Q_DECL_NOTHROW
               ^
/Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qvariant.h:273:15: note: in implicit copy assignment operator for 'QVariant::Private' first required here
    { other.d = Private(); }
              ^
In file included from /Users/kevin/qgroundcontrol/src/QtLocationPlugin/QGCMapTileSet.cpp:19:
In file included from /Users/kevin/qgroundcontrol/src/QtLocationPlugin/QGCMapEngine.h:24:
In file included from /Users/kevin/qgroundcontrol/src/QtLocationPlugin/QGCMapUrlEngine.h:20:
In file included from /Users/kevin/qgroundcontrol/src/QtLocationPlugin/GoogleMapProvider.h:12:
In file included from /Users/kevin/qgroundcontrol/src/QtLocationPlugin/MapProvider.h:18:
In file included from /Users/kevin/Qt/5.12.6/clang_64/lib/QtLocation.framework/Headers/5.12.6/QtLocation/private/qgeomaptype_p.h:55:
In file included from /Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/QVariantMap:1:
/Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qvariant.h:399:16: error: definition of implicit copy assignment operator for 'Private' is deprecated because it has a user-declared copy constructor [-Werror,-Wdeprecated-copy]
        inline Private(const Private &other) Q_DECL_NOTHROW
               ^
/Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qvariant.h:273:15: note: in implicit copy assignment operator for 'QVariant::Private' first required here
    { other.d = Private(); }
              ^
In file included from /Users/kevin/qgroundcontrol/src/QtLocationPlugin/QGCMapEngine.cpp:18:
In file included from /Users/kevin/qgroundcontrol/src/QGCApplication.h:12:
In file included from /Users/kevin/Qt/5.12.6/clang_64/lib/QtWidgets.framework/Headers/QApplication:1:
In file included from /Users/kevin/Qt/5.12.6/clang_64/lib/QtWidgets.framework/Headers/qapplication.h:52:
In file included from /Users/kevin/Qt/5.12.6/clang_64/lib/QtGui.framework/Headers/qguiapplication.h:47:
In file included from /Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qlocale.h:43:
/Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qvariant.h:399:16: error: definition of implicit copy assignment operator for 'Private' is deprecated because it has a user-declared copy constructor [-Werror,-Wdeprecated-copy]
        inline Private(const Private &other) Q_DECL_NOTHROW
               ^
/Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qvariant.h:273:15: note: in implicit copy assignment operator for 'QVariant::Private' first required here
    { other.d = Private(); }
              ^
1 error generated.
make: *** [QGeoCodingManagerEngineQGC.o] Error 1
make: *** Waiting for unfinished jobs....
1 error generated.
make: *** [QGeoCodeReplyQGC.o] Error 1
1 error generated.
make: *** [QGeoServiceProviderPluginQGC.o] Error 1
In file included from /Users/kevin/qgroundcontrol/src/QtLocationPlugin/QGCMapTileSet.cpp:19:
In file included from /Users/kevin/qgroundcontrol/src/QtLocationPlugin/QGCMapEngine.h:24:
In file included from /Users/kevin/qgroundcontrol/src/QtLocationPlugin/QGCMapUrlEngine.h:20:
In file included from /Users/kevin/qgroundcontrol/src/QtLocationPlugin/GoogleMapProvider.h:12:
In file included from /Users/kevin/qgroundcontrol/src/QtLocationPlugin/MapProvider.h:18:
In file included from /Users/kevin/Qt/5.12.6/clang_64/lib/QtLocation.framework/Headers/5.12.6/QtLocation/private/qgeomaptype_p.h:52:
In file included from /Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/QSharedDataPointer:1:
In file included from /Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qshareddata.h:46:
In file included from /Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qhash.h:46:
/Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qlist.h:239:16: error: definition of implicit copy assignment operator for 'iterator' is deprecated because it has a user-declared copy constructor [-Werror,-Wdeprecated-copy]
        inline iterator(const iterator &o) Q_DECL_NOTHROW : i(o.i){}
               ^
/Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qlist.h:536:12: note: in implicit copy assignment operator for 'QList<QGCTile *>::iterator' first required here
        it = begin(); // implies detach()
           ^
/Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qlist.h:353:55: note: in instantiation of member function 'QList<QGCTile *>::erase' requested here
    inline void removeFirst() { Q_ASSERT(!isEmpty()); erase(begin()); }
                                                      ^
/Users/kevin/qgroundcontrol/src/QtLocationPlugin/QGCMapTileSet.cpp:241:30: note: in instantiation of member function 'QList<QGCTile *>::removeFirst' requested here
            _tilesToDownload.removeFirst();
                             ^
2 errors generated.
make: *** [QGCMapTileSet.o] Error 1
In file included from /Users/kevin/qgroundcontrol/src/QtLocationPlugin/QGCTileCacheWorker.cpp:19:
In file included from /Users/kevin/qgroundcontrol/src/QtLocationPlugin/QGCMapEngine.h:24:
In file included from /Users/kevin/qgroundcontrol/src/QtLocationPlugin/QGCMapUrlEngine.h:20:
In file included from /Users/kevin/qgroundcontrol/src/QtLocationPlugin/GoogleMapProvider.h:12:
In file included from /Users/kevin/qgroundcontrol/src/QtLocationPlugin/MapProvider.h:18:
In file included from /Users/kevin/Qt/5.12.6/clang_64/lib/QtLocation.framework/Headers/5.12.6/QtLocation/private/qgeomaptype_p.h:52:
In file included from /Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/QSharedDataPointer:1:
In file included from /Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qshareddata.h:46:
In file included from /Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qhash.h:46:
/Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qlist.h:239:16: error: definition of implicit copy assignment operator for 'iterator' is deprecated because it has a user-declared copy constructor [-Werror,-Wdeprecated-copy]
        inline iterator(const iterator &o) Q_DECL_NOTHROW : i(o.i){}
               ^
/Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qlist.h:536:12: note: in implicit copy assignment operator for 'QList<QGCMapTask *>::iterator' first required here
        it = begin(); // implies detach()
           ^
/Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qlist.h:353:55: note: in instantiation of member function 'QList<QGCMapTask *>::erase' requested here
    inline void removeFirst() { Q_ASSERT(!isEmpty()); erase(begin()); }
                                                      ^
/Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qlist.h:565:29: note: in instantiation of member function 'QList<QGCMapTask *>::removeFirst' requested here
{ T t = std::move(first()); removeFirst(); return t; }
                            ^
/Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qqueue.h:60:43: note: in instantiation of member function 'QList<QGCMapTask *>::takeFirst' requested here
    inline T dequeue() { return QList<T>::takeFirst(); }
                                          ^
/Users/kevin/qgroundcontrol/src/QtLocationPlugin/QGCTileCacheWorker.cpp:81:39: note: in instantiation of member function 'QQueue<QGCMapTask *>::dequeue' requested here
        QGCMapTask* task = _taskQueue.dequeue();
                                      ^
In file included from /Users/kevin/qgroundcontrol/src/QtLocationPlugin/QGCTileCacheWorker.cpp:19:
In file included from /Users/kevin/qgroundcontrol/src/QtLocationPlugin/QGCMapEngine.h:24:
In file included from /Users/kevin/qgroundcontrol/src/QtLocationPlugin/QGCMapUrlEngine.h:20:
In file included from /Users/kevin/qgroundcontrol/src/QtLocationPlugin/GoogleMapProvider.h:12:
In file included from /Users/kevin/qgroundcontrol/src/QtLocationPlugin/MapProvider.h:18:
In file included from /Users/kevin/Qt/5.12.6/clang_64/lib/QtLocation.framework/Headers/5.12.6/QtLocation/private/qgeomaptype_p.h:52:
In file included from /Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/QSharedDataPointer:1:
In file included from /Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qshareddata.h:46:
In file included from /Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qhash.h:46:
/Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qlist.h:239:16: error: definition of implicit copy assignment operator for 'iterator' is deprecated because it has a user-declared copy constructor [-Werror,-Wdeprecated-copy]
        inline iterator(const iterator &o) Q_DECL_NOTHROW : i(o.i){}
               ^
/Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qlist.h:536:12: note: in implicit copy assignment operator for 'QList<unsigned long long>::iterator' first required here
        it = begin(); // implies detach()
           ^
/Users/kevin/Qt/5.12.6/clang_64/lib/QtCore.framework/Headers/qlist.h:353:55: note: in instantiation of member function 'QList<unsigned long long>::erase' requested here
    inline void removeFirst() { Q_ASSERT(!isEmpty()); erase(begin()); }
                                                      ^
/Users/kevin/qgroundcontrol/src/QtLocationPlugin/QGCTileCacheWorker.cpp:638:19: note: in instantiation of member function 'QList<unsigned long long>::removeFirst' requested here
            tlist.removeFirst();
                  ^
3 errors generated.
make: *** [QGCTileCacheWorker.o] Error 1
1 error generated.
make: *** [QGeoMapReplyQGC.o] Error 1
1 error generated.
make: *** [QGCMapUrlEngine.o] Error 1
1 error generated.
make: *** [QGCMapEngine.o] Error 1
01:56:15: 进程"/usr/bin/make"退出,退出代码 2 。
Error while building/deploying project qgroundcontrol (kit: Desktop Qt 5.12.6 clang 64bit)
When executing step "Make"

You’re using Qt 5.12.6, the latest QGC build requires Qt 5.15.2