[ 7%] Building CXX object CMakeFiles/field02.dir/field02.cc.o\ In file included from /Users/Tim/Data/Geant4/field02/field02.cc:54:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.hh:141:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.icc:142:\ In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QtGlobal:1:\ /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qglobal.h:401:11: error: 'maybe_unused' attribute cannot be applied to types\ constexpr Q_DECL_UNUSED Deprecated_t Deprecated = \{\};\ ^\ /opt/homebrew/include/QtCore/qcompilerdetection.h:978:27: note: expanded from macro 'Q_DECL_UNUSED'\ # define Q_DECL_UNUSED [[maybe_unused]]\ ^\ In file included from /Users/Tim/Data/Geant4/field02/field02.cc:54:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.hh:141:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.icc:142:\ In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QtGlobal:1:\ /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qglobal.h:902:50: error: an attribute list cannot appear here\ Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(double p1, double p2)\ ^~~~~~~~~~~~~\ /opt/homebrew/include/QtCore/qcompilerdetection.h:978:25: note: expanded from macro 'Q_DECL_UNUSED'\ # define Q_DECL_UNUSED [[maybe_unused]]\ ^~~~~~~~~~~~~~~~\ In file included from /Users/Tim/Data/Geant4/field02/field02.cc:54:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.hh:141:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.icc:142:\ In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QtGlobal:1:\ /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qglobal.h:907:50: error: an attribute list cannot appear here\ Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(float p1, float p2)\ ^~~~~~~~~~~~~\ /opt/homebrew/include/QtCore/qcompilerdetection.h:978:25: note: expanded from macro 'Q_DECL_UNUSED'\ # define Q_DECL_UNUSED [[maybe_unused]]\ ^~~~~~~~~~~~~~~~\ In file included from /Users/Tim/Data/Geant4/field02/field02.cc:54:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.hh:141:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.icc:142:\ In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QtGlobal:1:\ /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qglobal.h:912:50: error: an attribute list cannot appear here\ Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(double d)\ ^~~~~~~~~~~~~\ /opt/homebrew/include/QtCore/qcompilerdetection.h:978:25: note: expanded from macro 'Q_DECL_UNUSED'\ # define Q_DECL_UNUSED [[maybe_unused]]\ ^~~~~~~~~~~~~~~~\ In file included from /Users/Tim/Data/Geant4/field02/field02.cc:54:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.hh:141:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.icc:142:\ In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QtGlobal:1:\ /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qglobal.h:917:50: error: an attribute list cannot appear here\ Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(float f)\ ^~~~~~~~~~~~~\ /opt/homebrew/include/QtCore/qcompilerdetection.h:978:25: note: expanded from macro 'Q_DECL_UNUSED'\ # define Q_DECL_UNUSED [[maybe_unused]]\ ^~~~~~~~~~~~~~~~\ In file included from /Users/Tim/Data/Geant4/field02/field02.cc:54:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.hh:141:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.icc:142:\ In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QtGlobal:1:\ /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qglobal.h:927:50: error: an attribute list cannot appear here\ Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qIsNull(double d) noexcept\ ^~~~~~~~~~~~~\ /opt/homebrew/include/QtCore/qcompilerdetection.h:978:25: note: expanded from macro 'Q_DECL_UNUSED'\ # define Q_DECL_UNUSED [[maybe_unused]]\ ^~~~~~~~~~~~~~~~\ In file included from /Users/Tim/Data/Geant4/field02/field02.cc:54:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.hh:141:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.icc:142:\ In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QtGlobal:1:\ /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qglobal.h:932:50: error: an attribute list cannot appear here\ Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qIsNull(float f) noexcept\ ^~~~~~~~~~~~~\ /opt/homebrew/include/QtCore/qcompilerdetection.h:978:25: note: expanded from macro 'Q_DECL_UNUSED'\ # define Q_DECL_UNUSED [[maybe_unused]]\ ^~~~~~~~~~~~~~~~\ In file included from /Users/Tim/Data/Geant4/field02/field02.cc:54:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.hh:141:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.icc:142:\ In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QtGlobal:1:\ /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qglobal.h:1254:41: error: 'maybe_unused' attribute cannot be applied to types\ template Q_CONSTEXPR Q_DECL_UNUSED QOverload qOverload = \{\};\ ^\ /opt/homebrew/include/QtCore/qcompilerdetection.h:978:27: note: expanded from macro 'Q_DECL_UNUSED'\ # define Q_DECL_UNUSED [[maybe_unused]]\ ^\ In file included from /Users/Tim/Data/Geant4/field02/field02.cc:54:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.hh:141:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.icc:142:\ In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QtGlobal:1:\ /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qglobal.h:1255:41: error: 'maybe_unused' attribute cannot be applied to types\ template Q_CONSTEXPR Q_DECL_UNUSED QConstOverload qConstOverload = \{\};\ ^\ /opt/homebrew/include/QtCore/qcompilerdetection.h:978:27: note: expanded from macro 'Q_DECL_UNUSED'\ # define Q_DECL_UNUSED [[maybe_unused]]\ ^\ In file included from /Users/Tim/Data/Geant4/field02/field02.cc:54:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.hh:141:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.icc:142:\ In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QtGlobal:1:\ /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qglobal.h:1256:41: error: 'maybe_unused' attribute cannot be applied to types\ template Q_CONSTEXPR Q_DECL_UNUSED QNonConstOverload qNonConstOverload = \{\};\ ^\ /opt/homebrew/include/QtCore/qcompilerdetection.h:978:27: note: expanded from macro 'Q_DECL_UNUSED'\ # define Q_DECL_UNUSED [[maybe_unused]]\ ^\ In file included from /Users/Tim/Data/Geant4/field02/field02.cc:54:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.hh:141:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.icc:142:\ In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QtGlobal:1:\ In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qglobal.h:1303:\ In file included from /opt/homebrew/include/QtCore/qtypeinfo.h:9:\ In file included from /opt/homebrew/include/QtCore/qcontainerfwd.h:8:\ In file included from /opt/homebrew/include/QtCore/qtypes.h:11:\ In file included from /opt/homebrew/include/QtCore/qassert.h:9:\ In file included from /opt/homebrew/include/QtCore/qtcoreexports.h:9:\ In file included from /opt/homebrew/include/QtCore/qtdeprecationmarkers.h:8:\ /opt/homebrew/include/QtCore/qtclasshelpermacros.h:101:33: error: exception specification in declaration does not match previous declaration\ template inline T *qGetPtrHelper(T *ptr) noexcept \{ return ptr; \}\ ^\ /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qglobal.h:1150:33: note: previous declaration is here\ template inline T *qGetPtrHelper(T *ptr) \{ return ptr; \}\ ^\ In file included from /Users/Tim/Data/Geant4/field02/field02.cc:54:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.hh:141:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.icc:142:\ In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QtGlobal:1:\ In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qglobal.h:1303:\ In file included from /opt/homebrew/include/QtCore/qtypeinfo.h:9:\ In file included from /opt/homebrew/include/QtCore/qcontainerfwd.h:8:\ In file included from /opt/homebrew/include/QtCore/qtypes.h:11:\ In file included from /opt/homebrew/include/QtCore/qassert.h:9:\ In file included from /opt/homebrew/include/QtCore/qtcoreexports.h:9:\ /opt/homebrew/include/QtCore/qtdeprecationmarkers.h:313:8: error: use of 'Deprecated_t' with tag type that does not match previous declaration\ inline QT_DEFINE_TAG(Deprecated);\ ^\ /opt/homebrew/include/QtCore/qtclasshelpermacros.h:98:15: note: expanded from macro 'QT_DEFINE_TAG'\ constexpr QT_DEFINE_TAG_STRUCT(TAG ## _t) TAG\{\}\ ^\ /opt/homebrew/include/QtCore/qtclasshelpermacros.h:96:5: note: expanded from macro 'QT_DEFINE_TAG_STRUCT'\ struct TAG \{ explicit TAG () = default; \}\ ^\ /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qglobal.h:400:12: note: previous use is here\ enum class Deprecated_t \{\};\ ^\ In file included from /Users/Tim/Data/Geant4/field02/field02.cc:54:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.hh:141:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.icc:142:\ In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QtGlobal:1:\ In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qglobal.h:1303:\ In file included from /opt/homebrew/include/QtCore/qtypeinfo.h:9:\ In file included from /opt/homebrew/include/QtCore/qcontainerfwd.h:8:\ In file included from /opt/homebrew/include/QtCore/qtypes.h:11:\ In file included from /opt/homebrew/include/QtCore/qassert.h:10:\ /opt/homebrew/include/QtCore/qtnoop.h:14:13: error: exception specification in declaration does not match previous declaration\ inline void qt_noop(void)\ ^\ /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qglobal.h:772:13: note: previous declaration is here\ inline void qt_noop(void) \{\}\ ^\ In file included from /Users/Tim/Data/Geant4/field02/field02.cc:54:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.hh:141:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.icc:142:\ In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QtGlobal:1:\ In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qglobal.h:1303:\ In file included from /opt/homebrew/include/QtCore/qtypeinfo.h:9:\ In file included from /opt/homebrew/include/QtCore/qcontainerfwd.h:8:\ In file included from /opt/homebrew/include/QtCore/qtypes.h:11:\ /opt/homebrew/include/QtCore/qassert.h:51:1: error: 'noreturn' attribute does not appear on the first declaration\ Q_NORETURN Q_DECL_COLD_FUNCTION\ ^\ /opt/homebrew/include/QtCore/qcompilerdetection.h:983:24: note: expanded from macro 'Q_NORETURN'\ # define Q_NORETURN [[noreturn]]\ ^\ /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qglobal.h:881:20: note: previous declaration is here\ Q_CORE_EXPORT void qBadAlloc();\ ^\ In file included from /Users/Tim/Data/Geant4/field02/field02.cc:54:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.hh:141:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.icc:142:\ In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QtGlobal:1:\ In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qglobal.h:1303:\ In file included from /opt/homebrew/include/QtCore/qtypeinfo.h:9:\ In file included from /opt/homebrew/include/QtCore/qcontainerfwd.h:8:\ In file included from /opt/homebrew/include/QtCore/qtypes.h:11:\ /opt/homebrew/include/QtCore/qassert.h:65:11: error: redefinition of 'q_check_ptr'\ inline T *q_check_ptr(T *p) \{ Q_CHECK_PTR(p); return p; \}\ ^\ /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qglobal.h:894:11: note: previous definition is here\ inline T *q_check_ptr(T *p) \{ Q_CHECK_PTR(p); return p; \}\ ^\ In file included from /Users/Tim/Data/Geant4/field02/field02.cc:54:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.hh:141:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.icc:142:\ In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QtGlobal:1:\ In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qglobal.h:1303:\ In file included from /opt/homebrew/include/QtCore/qtypeinfo.h:9:\ In file included from /opt/homebrew/include/QtCore/qcontainerfwd.h:8:\ /opt/homebrew/include/QtCore/qtypes.h:219:23: error: redefinition of 'QIntegerForSize<1>'\ template <> struct QIntegerForSize<1> \{ typedef quint8 Unsigned; typedef qint8 Signed; \};\ ^~~~~~~~~~~~~~~~~~\ /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qglobal.h:570:23: note: previous definition is here\ template <> struct QIntegerForSize<1> \{ typedef quint8 Unsigned; typedef qint8 Signed; \};\ ^\ In file included from /Users/Tim/Data/Geant4/field02/field02.cc:54:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.hh:141:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.icc:142:\ In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QtGlobal:1:\ In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qglobal.h:1303:\ In file included from /opt/homebrew/include/QtCore/qtypeinfo.h:9:\ In file included from /opt/homebrew/include/QtCore/qcontainerfwd.h:8:\ /opt/homebrew/include/QtCore/qtypes.h:220:23: error: redefinition of 'QIntegerForSize<2>'\ template <> struct QIntegerForSize<2> \{ typedef quint16 Unsigned; typedef qint16 Signed; \};\ ^~~~~~~~~~~~~~~~~~\ /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qglobal.h:571:23: note: previous definition is here\ template <> struct QIntegerForSize<2> \{ typedef quint16 Unsigned; typedef qint16 Signed; \};\ ^\ In file included from /Users/Tim/Data/Geant4/field02/field02.cc:54:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.hh:141:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.icc:142:\ In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QtGlobal:1:\ In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qglobal.h:1303:\ In file included from /opt/homebrew/include/QtCore/qtypeinfo.h:9:\ In file included from /opt/homebrew/include/QtCore/qcontainerfwd.h:8:\ /opt/homebrew/include/QtCore/qtypes.h:221:23: error: redefinition of 'QIntegerForSize<4>'\ template <> struct QIntegerForSize<4> \{ typedef quint32 Unsigned; typedef qint32 Signed; \};\ ^~~~~~~~~~~~~~~~~~\ /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qglobal.h:572:23: note: previous definition is here\ template <> struct QIntegerForSize<4> \{ typedef quint32 Unsigned; typedef qint32 Signed; \};\ ^\ In file included from /Users/Tim/Data/Geant4/field02/field02.cc:54:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.hh:141:\ In file included from /Users/tim/geant4-v11.0.0-install/include/Geant4/G4VisExecutive.icc:142:\ In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QtGlobal:1:\ In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qglobal.h:1303:\ In file included from /opt/homebrew/include/QtCore/qtypeinfo.h:9:\ In file included from /opt/homebrew/include/QtCore/qcontainerfwd.h:8:\ /opt/homebrew/include/QtCore/qtypes.h:222:23: error: redefinition of 'QIntegerForSize<8>'\ template <> struct QIntegerForSize<8> \{ typedef quint64 Unsigned; typedef qint64 Signed; \};\ ^~~~~~~~~~~~~~~~~~\ /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qglobal.h:573:23: note: previous definition is here\ template <> struct QIntegerForSize<8> \{ typedef quint64 Unsigned; typedef qint64 Signed; \};\ ^\ fatal error: too many errors emitted, stopping now [-ferror-limit=]\ 20 errors generated.\ make[2]: *** [CMakeFiles/field02.dir/field02.cc.o] Error 1\ make[1]: *** [CMakeFiles/field02.dir/all] Error 2\ make: *** [all] Error 2}