mEldevlp / surfcombat-metamod-cs2

Surf Combat metamod plugin for CS 2
MIT License
19 stars 4 forks source link

Compilation error on linux #7

Open TsunaDev opened 6 months ago

TsunaDev commented 6 months ago

Following the different steps from the README, I have this compilation error :

~/surfcombat-metamod-cs2/build# ambuild
[create] mkdir -p surfcombatcs2
[create] mkdir -p surfcombatcs2/linux-x86_64
[create] mkdir -p package
[create] mkdir -p package/addons
[create] mkdir -p package/addons/metamod
[create] mkdir -p package/addons/surfcombatcs2
[create] mkdir -p package/addons/surfcombatcs2/bin
[create] mkdir -p package/addons/surfcombatcs2/bin/linuxsteamrt64
Spawned worker (pid: 13319)
Spawned worker (pid: 13320)
[13319] cp "/root/surfcombat-metamod-cs2/build/surfcombatcs2.vdf" "./package/addons/metamod/surfcombatcs2.vdf"
[13319] g++ -m64 -pipe -fno-strict-aliasing -Wall -Werror -Wno-uninitialized -Wno-unused -Wno-switch -msse -fPIC -fvisibility=hidden -mfpmath=sse -fno-omit-frame-pointer -std=c++17 -fvisibility-inlines-hidden -fno-exceptions -fno-threadsafe-statics -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-delete-non-virtual-dtor --std=c++17 -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf -DHAVE_STDINT_H -DGNUC -D_LINUX -DPOSIX -D_FILE_OFFSET_BITS=64 -DSE_CS2=25 -DSOURCE_ENGINE=25 -DCOMPILER_GCC -DX64BITS -DPLATFORM_64BITS -DMETA_IS_SOURCE2 -I /root/surfcombat-metamod-cs2/metamod-source/core -I /root/surfcombat-metamod-cs2/metamod-source/core/sourcehook -I /root/surfcombat-metamod-cs2 -I /root/surfcombat-metamod-cs2/hl2sdk-cs2/public -I /root/surfcombat-metamod-cs2/hl2sdk-cs2/public/engine -I /root/surfcombat-metamod-cs2/hl2sdk-cs2/public/mathlib -I /root/surfcombat-metamod-cs2/hl2sdk-cs2/public/vstdlib -I /root/surfcombat-metamod-cs2/hl2sdk-cs2/public/tier0 -I /root/surfcombat-metamod-cs2/hl2sdk-cs2/public/tier1 -I /root/surfcombat-metamod-cs2/hl2sdk-cs2/public/game/server -I /root/surfcombat-metamod-cs2/hl2sdk-cs2/game/shared -I /root/surfcombat-metamod-cs2/hl2sdk-cs2/common -I /root/surfcombat-metamod-cs2/src -I /root/surfcombat-metamod-cs2/hl2sdk-cs2 -I /root/surfcombat-metamod-cs2/hl2sdk-cs2/public/entity2 -I /root/surfcombat-metamod-cs2/hl2sdk-cs2/game/server -I /root/surfcombat-metamod-cs2/vendor/subhook -I /root/surfcombat-metamod-cs2/vendor/funchook/include -I /root/surfcombat-metamod-cs2/vendor/protobuf-21.x/src -MD -MF _root_surfcombat_metamod_cs2_hl2sdk_cs2_public_tier0_memoverride.d -c /root/surfcombat-metamod-cs2/hl2sdk-cs2/public/tier0/memoverride.cpp -o _root_surfcombat_metamod_cs2_hl2sdk_cs2_public_tier0_memoverride.o
[13320] g++ -m64 -pipe -fno-strict-aliasing -Wall -Werror -Wno-uninitialized -Wno-unused -Wno-switch -msse -fPIC -fvisibility=hidden -mfpmath=sse -fno-omit-frame-pointer -std=c++17 -fvisibility-inlines-hidden -fno-exceptions -fno-threadsafe-statics -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-delete-non-virtual-dtor --std=c++17 -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf -DHAVE_STDINT_H -DGNUC -D_LINUX -DPOSIX -D_FILE_OFFSET_BITS=64 -DSE_CS2=25 -DSOURCE_ENGINE=25 -DCOMPILER_GCC -DX64BITS -DPLATFORM_64BITS -DMETA_IS_SOURCE2 -I /root/surfcombat-metamod-cs2/metamod-source/core -I /root/surfcombat-metamod-cs2/metamod-source/core/sourcehook -I /root/surfcombat-metamod-cs2 -I /root/surfcombat-metamod-cs2/hl2sdk-cs2/public -I /root/surfcombat-metamod-cs2/hl2sdk-cs2/public/engine -I /root/surfcombat-metamod-cs2/hl2sdk-cs2/public/mathlib -I /root/surfcombat-metamod-cs2/hl2sdk-cs2/public/vstdlib -I /root/surfcombat-metamod-cs2/hl2sdk-cs2/public/tier0 -I /root/surfcombat-metamod-cs2/hl2sdk-cs2/public/tier1 -I /root/surfcombat-metamod-cs2/hl2sdk-cs2/public/game/server -I /root/surfcombat-metamod-cs2/hl2sdk-cs2/game/shared -I /root/surfcombat-metamod-cs2/hl2sdk-cs2/common -I /root/surfcombat-metamod-cs2/src -I /root/surfcombat-metamod-cs2/hl2sdk-cs2 -I /root/surfcombat-metamod-cs2/hl2sdk-cs2/public/entity2 -I /root/surfcombat-metamod-cs2/hl2sdk-cs2/game/server -I /root/surfcombat-metamod-cs2/vendor/subhook -I /root/surfcombat-metamod-cs2/vendor/funchook/include -I /root/surfcombat-metamod-cs2/vendor/protobuf-21.x/src -MD -MF _root_surfcombat_metamod_cs2_hl2sdk_cs2_tier1_convar.d -c /root/surfcombat-metamod-cs2/hl2sdk-cs2/tier1/convar.cpp -o _root_surfcombat_metamod_cs2_hl2sdk_cs2_tier1_convar.o
[13319] g++ -m64 -pipe -fno-strict-aliasing -Wall -Werror -Wno-uninitialized -Wno-unused -Wno-switch -msse -fPIC -fvisibility=hidden -mfpmath=sse -fno-omit-frame-pointer -std=c++17 -fvisibility-inlines-hidden -fno-exceptions -fno-threadsafe-statics -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-delete-non-virtual-dtor --std=c++17 -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf -DHAVE_STDINT_H -DGNUC -D_LINUX -DPOSIX -D_FILE_OFFSET_BITS=64 -DSE_CS2=25 -DSOURCE_ENGINE=25 -DCOMPILER_GCC -DX64BITS -DPLATFORM_64BITS -DMETA_IS_SOURCE2 -I /root/surfcombat-metamod-cs2/metamod-source/core -I /root/surfcombat-metamod-cs2/metamod-source/core/sourcehook -I /root/surfcombat-metamod-cs2 -I /root/surfcombat-metamod-cs2/hl2sdk-cs2/public -I /root/surfcombat-metamod-cs2/hl2sdk-cs2/public/engine -I /root/surfcombat-metamod-cs2/hl2sdk-cs2/public/mathlib -I /root/surfcombat-metamod-cs2/hl2sdk-cs2/public/vstdlib -I /root/surfcombat-metamod-cs2/hl2sdk-cs2/public/tier0 -I /root/surfcombat-metamod-cs2/hl2sdk-cs2/public/tier1 -I /root/surfcombat-metamod-cs2/hl2sdk-cs2/public/game/server -I /root/surfcombat-metamod-cs2/hl2sdk-cs2/game/shared -I /root/surfcombat-metamod-cs2/hl2sdk-cs2/common -I /root/surfcombat-metamod-cs2/src -I /root/surfcombat-metamod-cs2/hl2sdk-cs2 -I /root/surfcombat-metamod-cs2/hl2sdk-cs2/public/entity2 -I /root/surfcombat-metamod-cs2/hl2sdk-cs2/game/server -I /root/surfcombat-metamod-cs2/vendor/subhook -I /root/surfcombat-metamod-cs2/vendor/funchook/include -I /root/surfcombat-metamod-cs2/vendor/protobuf-21.x/src -MD -MF _root_surfcombat_metamod_cs2_src_surf_sc_features.d -c /root/surfcombat-metamod-cs2/src/surf/sc_features.cpp -o _root_surfcombat_metamod_cs2_src_surf_sc_features.o
In file included from /root/surfcombat-metamod-cs2/src/utils/utils.h:5,
                 from /root/surfcombat-metamod-cs2/src/surf/sc_features.h:2,
                 from /root/surfcombat-metamod-cs2/src/surf/sc_features.cpp:1:
/root/surfcombat-metamod-cs2/src/utils/schema.h:152:48: error: backslash-newline at end of file [-Werror]
  152 | #define DECLARE_SCHEMA_CLASS_INLINE(className) \
      |
In file included from /root/surfcombat-metamod-cs2/src/utils/utils.h:7,
                 from /root/surfcombat-metamod-cs2/src/surf/sc_features.h:2,
                 from /root/surfcombat-metamod-cs2/src/surf/sc_features.cpp:1:
/root/surfcombat-metamod-cs2/src/utils/datatypes.h:12: error: ignoring ‘#pragma clang diagnostic’ [-Werror=unknown-pragmas]
   12 | #pragma clang diagnostic push
      |
/root/surfcombat-metamod-cs2/src/utils/datatypes.h:13: error: ignoring ‘#pragma clang diagnostic’ [-Werror=unknown-pragmas]
   13 | #pragma clang diagnostic ignored "-Wparentheses"
      |
In file included from /root/surfcombat-metamod-cs2/src/utils/utils.h:7,
                 from /root/surfcombat-metamod-cs2/src/surf/sc_features.h:2,
                 from /root/surfcombat-metamod-cs2/src/surf/sc_features.cpp:1:
/root/surfcombat-metamod-cs2/src/utils/datatypes.h:17: error: ignoring ‘#pragma clang diagnostic’ [-Werror=unknown-pragmas]
   17 | #pragma clang diagnostic pop
      |
In file included from /usr/include/dirent.h:245,
                 from /root/surfcombat-metamod-cs2/metamod-source/core/metamod_oslink.h:66,
                 from /root/surfcombat-metamod-cs2/src/utils/plat.h:3,
                 from /root/surfcombat-metamod-cs2/src/utils/module.h:5,
                 from /root/surfcombat-metamod-cs2/src/utils/addresses.h:4,
                 from /root/surfcombat-metamod-cs2/src/utils/utils.h:3,
                 from /root/surfcombat-metamod-cs2/src/surf/sc_features.h:2,
                 from /root/surfcombat-metamod-cs2/src/surf/sc_features.cpp:1:
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseentity.h: In member function ‘CBodyComponent*& CBaseEntity2::m_CBodyComponent_prop::Get()’:
/root/surfcombat-metamod-cs2/src/utils/schema.h:69:42: error: ‘offsetof’ within non-standard-layout type ‘CBaseEntity2::ThisClass’ {aka ‘CBaseEntity2’} is conditionally-supported [-Werror=invalid-offsetof]
   69 |    static const size_t offset = offsetof(ThisClass, varName);              \
      |                                          ^
/root/surfcombat-metamod-cs2/src/utils/schema.h:138:2: note: in expansion of macro ‘SCHEMA_FIELD_OFFSET’
  138 |  SCHEMA_FIELD_OFFSET(type, varName, 0)
      |  ^~~~~~~~~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseentity.h:68:2: note: in expansion of macro ‘SCHEMA_FIELD’
   68 |  SCHEMA_FIELD(CBodyComponent *, m_CBodyComponent)
      |  ^~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseentity.h: In member function ‘void CBaseEntity2::m_CBodyComponent_prop::Set(CBodyComponent*)’:
/root/surfcombat-metamod-cs2/src/utils/schema.h:86:42: error: ‘offsetof’ within non-standard-layout type ‘CBaseEntity2::ThisClass’ {aka ‘CBaseEntity2’} is conditionally-supported [-Werror=invalid-offsetof]
   86 |    static const size_t offset = offsetof(ThisClass, varName);              \
      |                                          ^
/root/surfcombat-metamod-cs2/src/utils/schema.h:138:2: note: in expansion of macro ‘SCHEMA_FIELD_OFFSET’
  138 |  SCHEMA_FIELD_OFFSET(type, varName, 0)
      |  ^~~~~~~~~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseentity.h:68:2: note: in expansion of macro ‘SCHEMA_FIELD’
   68 |  SCHEMA_FIELD(CBodyComponent *, m_CBodyComponent)
      |  ^~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseentity.h: In member function ‘CBitVec<64>& CBaseEntity2::m_isSteadyState_prop::Get()’:
/root/surfcombat-metamod-cs2/src/utils/schema.h:69:42: error: ‘offsetof’ within non-standard-layout type ‘CBaseEntity2::ThisClass’ {aka ‘CBaseEntity2’} is conditionally-supported [-Werror=invalid-offsetof]
   69 |    static const size_t offset = offsetof(ThisClass, varName);              \
      |                                          ^
/root/surfcombat-metamod-cs2/src/utils/schema.h:138:2: note: in expansion of macro ‘SCHEMA_FIELD_OFFSET’
  138 |  SCHEMA_FIELD_OFFSET(type, varName, 0)
      |  ^~~~~~~~~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseentity.h:69:2: note: in expansion of macro ‘SCHEMA_FIELD’
   69 |  SCHEMA_FIELD(CBitVec<64>, m_isSteadyState)
      |  ^~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseentity.h: In member function ‘void CBaseEntity2::m_isSteadyState_prop::Set(CBitVec<64>)’:
/root/surfcombat-metamod-cs2/src/utils/schema.h:86:42: error: ‘offsetof’ within non-standard-layout type ‘CBaseEntity2::ThisClass’ {aka ‘CBaseEntity2’} is conditionally-supported [-Werror=invalid-offsetof]
   86 |    static const size_t offset = offsetof(ThisClass, varName);              \
      |                                          ^
/root/surfcombat-metamod-cs2/src/utils/schema.h:138:2: note: in expansion of macro ‘SCHEMA_FIELD_OFFSET’
  138 |  SCHEMA_FIELD_OFFSET(type, varName, 0)
      |  ^~~~~~~~~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseentity.h:69:2: note: in expansion of macro ‘SCHEMA_FIELD’
   69 |  SCHEMA_FIELD(CBitVec<64>, m_isSteadyState)
      |  ^~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseentity.h: In member function ‘float& CBaseEntity2::m_lastNetworkChange_prop::Get()’:
/root/surfcombat-metamod-cs2/src/utils/schema.h:69:42: error: ‘offsetof’ within non-standard-layout type ‘CBaseEntity2::ThisClass’ {aka ‘CBaseEntity2’} is conditionally-supported [-Werror=invalid-offsetof]
   69 |    static const size_t offset = offsetof(ThisClass, varName);              \
      |                                          ^
/root/surfcombat-metamod-cs2/src/utils/schema.h:138:2: note: in expansion of macro ‘SCHEMA_FIELD_OFFSET’
  138 |  SCHEMA_FIELD_OFFSET(type, varName, 0)
      |  ^~~~~~~~~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseentity.h:70:2: note: in expansion of macro ‘SCHEMA_FIELD’
   70 |  SCHEMA_FIELD(float, m_lastNetworkChange)
      |  ^~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseentity.h: In member function ‘void CBaseEntity2::m_lastNetworkChange_prop::Set(float)’:
/root/surfcombat-metamod-cs2/src/utils/schema.h:86:42: error: ‘offsetof’ within non-standard-layout type ‘CBaseEntity2::ThisClass’ {aka ‘CBaseEntity2’} is conditionally-supported [-Werror=invalid-offsetof]
   86 |    static const size_t offset = offsetof(ThisClass, varName);              \
      |                                          ^
/root/surfcombat-metamod-cs2/src/utils/schema.h:138:2: note: in expansion of macro ‘SCHEMA_FIELD_OFFSET’
  138 |  SCHEMA_FIELD_OFFSET(type, varName, 0)
      |  ^~~~~~~~~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseentity.h:70:2: note: in expansion of macro ‘SCHEMA_FIELD’
   70 |  SCHEMA_FIELD(float, m_lastNetworkChange)
      |  ^~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseentity.h: In member function ‘void* CBaseEntity2::m_NetworkTransmitComponent_prop::Get()’:
/root/surfcombat-metamod-cs2/src/utils/schema.h:125:42: error: ‘offsetof’ within non-standard-layout type ‘CBaseEntity2::ThisClass’ {aka ‘CBaseEntity2’} is conditionally-supported [-Werror=invalid-offsetof]
  125 |    static const size_t offset = offsetof(ThisClass, varName);              \
      |                                          ^
/root/surfcombat-metamod-cs2/src/utils/schema.h:142:2: note: in expansion of macro ‘SCHEMA_FIELD_POINTER_OFFSET’
  142 |  SCHEMA_FIELD_POINTER_OFFSET(type, varName, 0)
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseentity.h:71:2: note: in expansion of macro ‘SCHEMA_FIELD_POINTER’
   71 |  SCHEMA_FIELD_POINTER(void, m_NetworkTransmitComponent)
      |  ^~~~~~~~~~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseentity.h: In member function ‘int& CBaseEntity2::m_iHealth_prop::Get()’:
/root/surfcombat-metamod-cs2/src/utils/schema.h:69:42: error: ‘offsetof’ within non-standard-layout type ‘CBaseEntity2::ThisClass’ {aka ‘CBaseEntity2’} is conditionally-supported [-Werror=invalid-offsetof]
   69 |    static const size_t offset = offsetof(ThisClass, varName);              \
      |                                          ^
/root/surfcombat-metamod-cs2/src/utils/schema.h:138:2: note: in expansion of macro ‘SCHEMA_FIELD_OFFSET’
  138 |  SCHEMA_FIELD_OFFSET(type, varName, 0)
      |  ^~~~~~~~~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseentity.h:72:2: note: in expansion of macro ‘SCHEMA_FIELD’
   72 |  SCHEMA_FIELD(int, m_iHealth)
      |  ^~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseentity.h: In member function ‘void CBaseEntity2::m_iHealth_prop::Set(int)’:
/root/surfcombat-metamod-cs2/src/utils/schema.h:86:42: error: ‘offsetof’ within non-standard-layout type ‘CBaseEntity2::ThisClass’ {aka ‘CBaseEntity2’} is conditionally-supported [-Werror=invalid-offsetof]
   86 |    static const size_t offset = offsetof(ThisClass, varName);              \
      |                                          ^
/root/surfcombat-metamod-cs2/src/utils/schema.h:138:2: note: in expansion of macro ‘SCHEMA_FIELD_OFFSET’
  138 |  SCHEMA_FIELD_OFFSET(type, varName, 0)
      |  ^~~~~~~~~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseentity.h:72:2: note: in expansion of macro ‘SCHEMA_FIELD’
   72 |  SCHEMA_FIELD(int, m_iHealth)
      |  ^~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseentity.h: In member function ‘unsigned char& CBaseEntity2::m_lifeState_prop::Get()’:
/root/surfcombat-metamod-cs2/src/utils/schema.h:69:42: error: ‘offsetof’ within non-standard-layout type ‘CBaseEntity2::ThisClass’ {aka ‘CBaseEntity2’} is conditionally-supported [-Werror=invalid-offsetof]
   69 |    static const size_t offset = offsetof(ThisClass, varName);              \
      |                                          ^
/root/surfcombat-metamod-cs2/src/utils/schema.h:138:2: note: in expansion of macro ‘SCHEMA_FIELD_OFFSET’
  138 |  SCHEMA_FIELD_OFFSET(type, varName, 0)
      |  ^~~~~~~~~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseentity.h:73:2: note: in expansion of macro ‘SCHEMA_FIELD’
   73 |  SCHEMA_FIELD(uint8, m_lifeState)
      |  ^~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseentity.h: In member function ‘void CBaseEntity2::m_lifeState_prop::Set(uint8)’:
/root/surfcombat-metamod-cs2/src/utils/schema.h:86:42: error: ‘offsetof’ within non-standard-layout type ‘CBaseEntity2::ThisClass’ {aka ‘CBaseEntity2’} is conditionally-supported [-Werror=invalid-offsetof]
   86 |    static const size_t offset = offsetof(ThisClass, varName);              \
      |                                          ^
/root/surfcombat-metamod-cs2/src/utils/schema.h:138:2: note: in expansion of macro ‘SCHEMA_FIELD_OFFSET’
  138 |  SCHEMA_FIELD_OFFSET(type, varName, 0)
      |  ^~~~~~~~~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseentity.h:73:2: note: in expansion of macro ‘SCHEMA_FIELD’
   73 |  SCHEMA_FIELD(uint8, m_lifeState)
      |  ^~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseentity.h: In member function ‘int& CBaseEntity2::m_iTeamNum_prop::Get()’:
/root/surfcombat-metamod-cs2/src/utils/schema.h:69:42: error: ‘offsetof’ within non-standard-layout type ‘CBaseEntity2::ThisClass’ {aka ‘CBaseEntity2’} is conditionally-supported [-Werror=invalid-offsetof]
   69 |    static const size_t offset = offsetof(ThisClass, varName);              \
      |                                          ^
[...]
/root/surfcombat-metamod-cs2/src/utils/schema.h:138:2: note: in expansion of macro ‘SCHEMA_FIELD_OFFSET’
  138 |  SCHEMA_FIELD_OFFSET(type, varName, 0)
      |  ^~~~~~~~~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseplayerpawn.h:15:2: note: in expansion of macro ‘SCHEMA_FIELD’
   15 |  SCHEMA_FIELD(float, m_ignoreLadderJumpTime)
      |  ^~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseplayerpawn.h: In member function ‘void CBasePlayerPawn::m_ignoreLadderJumpTime_prop::Set(float)’:
/root/surfcombat-metamod-cs2/src/utils/schema.h:86:42: error: ‘offsetof’ within non-standard-layout type ‘CBasePlayerPawn::ThisClass’ {aka ‘CBasePlayerPawn’} is conditionally-supported [-Werror=invalid-offsetof]
   86 |    static const size_t offset = offsetof(ThisClass, varName);              \
      |                                          ^
/root/surfcombat-metamod-cs2/src/utils/schema.h:138:2: note: in expansion of macro ‘SCHEMA_FIELD_OFFSET’
  138 |  SCHEMA_FIELD_OFFSET(type, varName, 0)
      |  ^~~~~~~~~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseplayerpawn.h:15:2: note: in expansion of macro ‘SCHEMA_FIELD’
   15 |  SCHEMA_FIELD(float, m_ignoreLadderJumpTime)
      |  ^~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/ccsplayerpawn.h: In member function ‘float& CCSPlayerPawnBase::m_flSlopeDropOffset_prop::Get()’:
/root/surfcombat-metamod-cs2/src/utils/schema.h:69:42: error: ‘offsetof’ within non-standard-layout type ‘CCSPlayerPawnBase::ThisClass’ {aka ‘CCSPlayerPawnBase’} is conditionally-supported [-Werror=invalid-offsetof]
   69 |    static const size_t offset = offsetof(ThisClass, varName);              \
      |                                          ^
/root/surfcombat-metamod-cs2/src/utils/schema.h:138:2: note: in expansion of macro ‘SCHEMA_FIELD_OFFSET’
  138 |  SCHEMA_FIELD_OFFSET(type, varName, 0)
      |  ^~~~~~~~~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/ccsplayerpawn.h:11:2: note: in expansion of macro ‘SCHEMA_FIELD’
   11 |  SCHEMA_FIELD(float, m_flSlopeDropOffset)
      |  ^~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/ccsplayerpawn.h: In member function ‘void CCSPlayerPawnBase::m_flSlopeDropOffset_prop::Set(float)’:
/root/surfcombat-metamod-cs2/src/utils/schema.h:86:42: error: ‘offsetof’ within non-standard-layout type ‘CCSPlayerPawnBase::ThisClass’ {aka ‘CCSPlayerPawnBase’} is conditionally-supported [-Werror=invalid-offsetof]
   86 |    static const size_t offset = offsetof(ThisClass, varName);              \
      |                                          ^
/root/surfcombat-metamod-cs2/src/utils/schema.h:138:2: note: in expansion of macro ‘SCHEMA_FIELD_OFFSET’
  138 |  SCHEMA_FIELD_OFFSET(type, varName, 0)
      |  ^~~~~~~~~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/ccsplayerpawn.h:11:2: note: in expansion of macro ‘SCHEMA_FIELD’
   11 |  SCHEMA_FIELD(float, m_flSlopeDropOffset)
      |  ^~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/ccsplayerpawn.h: In member function ‘float& CCSPlayerPawnBase::m_flSlopeDropHeight_prop::Get()’:
/root/surfcombat-metamod-cs2/src/utils/schema.h:69:42: error: ‘offsetof’ within non-standard-layout type ‘CCSPlayerPawnBase::ThisClass’ {aka ‘CCSPlayerPawnBase’} is conditionally-supported [-Werror=invalid-offsetof]
   69 |    static const size_t offset = offsetof(ThisClass, varName);              \
      |                                          ^
/root/surfcombat-metamod-cs2/src/utils/schema.h:138:2: note: in expansion of macro ‘SCHEMA_FIELD_OFFSET’
  138 |  SCHEMA_FIELD_OFFSET(type, varName, 0)
      |  ^~~~~~~~~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/ccsplayerpawn.h:12:2: note: in expansion of macro ‘SCHEMA_FIELD’
   12 |  SCHEMA_FIELD(float, m_flSlopeDropHeight)
      |  ^~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/ccsplayerpawn.h: In member function ‘void CCSPlayerPawnBase::m_flSlopeDropHeight_prop::Set(float)’:
/root/surfcombat-metamod-cs2/src/utils/schema.h:86:42: error: ‘offsetof’ within non-standard-layout type ‘CCSPlayerPawnBase::ThisClass’ {aka ‘CCSPlayerPawnBase’} is conditionally-supported [-Werror=invalid-offsetof]
   86 |    static const size_t offset = offsetof(ThisClass, varName);              \
      |                                          ^
/root/surfcombat-metamod-cs2/src/utils/schema.h:138:2: note: in expansion of macro ‘SCHEMA_FIELD_OFFSET’
  138 |  SCHEMA_FIELD_OFFSET(type, varName, 0)
      |  ^~~~~~~~~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/ccsplayerpawn.h:12:2: note: in expansion of macro ‘SCHEMA_FIELD’
   12 |  SCHEMA_FIELD(float, m_flSlopeDropHeight)
      |  ^~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/ccsplayerpawn.h: In member function ‘CCSPlayer_ActionTrackingServices*& CCSPlayerPawnBase::m_pActionTrackingServices_prop::Get()’:
/root/surfcombat-metamod-cs2/src/utils/schema.h:69:42: error: ‘offsetof’ within non-standard-layout type ‘CCSPlayerPawnBase::ThisClass’ {aka ‘CCSPlayerPawnBase’} is conditionally-supported [-Werror=invalid-offsetof]
   69 |    static const size_t offset = offsetof(ThisClass, varName);              \
      |                                          ^
/root/surfcombat-metamod-cs2/src/utils/schema.h:138:2: note: in expansion of macro ‘SCHEMA_FIELD_OFFSET’
  138 |  SCHEMA_FIELD_OFFSET(type, varName, 0)
      |  ^~~~~~~~~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/ccsplayerpawn.h:13:2: note: in expansion of macro ‘SCHEMA_FIELD’
   13 |  SCHEMA_FIELD(CCSPlayer_ActionTrackingServices*, m_pActionTrackingServices)
      |  ^~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/ccsplayerpawn.h: In member function ‘void CCSPlayerPawnBase::m_pActionTrackingServices_prop::Set(CCSPlayer_ActionTrackingServices*)’:
/root/surfcombat-metamod-cs2/src/utils/schema.h:86:42: error: ‘offsetof’ within non-standard-layout type ‘CCSPlayerPawnBase::ThisClass’ {aka ‘CCSPlayerPawnBase’} is conditionally-supported [-Werror=invalid-offsetof]
   86 |    static const size_t offset = offsetof(ThisClass, varName);              \
      |                                          ^
/root/surfcombat-metamod-cs2/src/utils/schema.h:138:2: note: in expansion of macro ‘SCHEMA_FIELD_OFFSET’
  138 |  SCHEMA_FIELD_OFFSET(type, varName, 0)
      |  ^~~~~~~~~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/ccsplayerpawn.h:13:2: note: in expansion of macro ‘SCHEMA_FIELD’
   13 |  SCHEMA_FIELD(CCSPlayer_ActionTrackingServices*, m_pActionTrackingServices)
      |  ^~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseplayercontroller.h: In member function ‘long long unsigned int& CBasePlayerController::m_steamID_prop::Get()’:
/root/surfcombat-metamod-cs2/src/utils/schema.h:69:42: error: ‘offsetof’ within non-standard-layout type ‘CBasePlayerController::ThisClass’ {aka ‘CBasePlayerController’} is conditionally-supported [-Werror=invalid-offsetof]
   69 |    static const size_t offset = offsetof(ThisClass, varName);              \
      |                                          ^
/root/surfcombat-metamod-cs2/src/utils/schema.h:138:2: note: in expansion of macro ‘SCHEMA_FIELD_OFFSET’
  138 |  SCHEMA_FIELD_OFFSET(type, varName, 0)
      |  ^~~~~~~~~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseplayercontroller.h:12:2: note: in expansion of macro ‘SCHEMA_FIELD’
   12 |  SCHEMA_FIELD(uint64, m_steamID)
      |  ^~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseplayercontroller.h: In member function ‘void CBasePlayerController::m_steamID_prop::Set(uint64)’:
/root/surfcombat-metamod-cs2/src/utils/schema.h:86:42: error: ‘offsetof’ within non-standard-layout type ‘CBasePlayerController::ThisClass’ {aka ‘CBasePlayerController’} is conditionally-supported [-Werror=invalid-offsetof]
   86 |    static const size_t offset = offsetof(ThisClass, varName);              \
      |                                          ^
/root/surfcombat-metamod-cs2/src/utils/schema.h:138:2: note: in expansion of macro ‘SCHEMA_FIELD_OFFSET’
  138 |  SCHEMA_FIELD_OFFSET(type, varName, 0)
      |  ^~~~~~~~~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseplayercontroller.h:12:2: note: in expansion of macro ‘SCHEMA_FIELD’
   12 |  SCHEMA_FIELD(uint64, m_steamID)
      |  ^~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseplayercontroller.h: In member function ‘CHandle<CCSPlayerPawn>& CBasePlayerController::m_hPawn_prop::Get()’:
/root/surfcombat-metamod-cs2/src/utils/schema.h:69:42: error: ‘offsetof’ within non-standard-layout type ‘CBasePlayerController::ThisClass’ {aka ‘CBasePlayerController’} is conditionally-supported [-Werror=invalid-offsetof]
   69 |    static const size_t offset = offsetof(ThisClass, varName);              \
      |                                          ^
/root/surfcombat-metamod-cs2/src/utils/schema.h:138:2: note: in expansion of macro ‘SCHEMA_FIELD_OFFSET’
  138 |  SCHEMA_FIELD_OFFSET(type, varName, 0)
      |  ^~~~~~~~~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseplayercontroller.h:13:2: note: in expansion of macro ‘SCHEMA_FIELD’
   13 |  SCHEMA_FIELD(CHandle<CCSPlayerPawn>, m_hPawn)
      |  ^~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseplayercontroller.h: In member function ‘void CBasePlayerController::m_hPawn_prop::Set(CHandle<CCSPlayerPawn>)’:
/root/surfcombat-metamod-cs2/src/utils/schema.h:86:42: error: ‘offsetof’ within non-standard-layout type ‘CBasePlayerController::ThisClass’ {aka ‘CBasePlayerController’} is conditionally-supported [-Werror=invalid-offsetof]
   86 |    static const size_t offset = offsetof(ThisClass, varName);              \
      |                                          ^
/root/surfcombat-metamod-cs2/src/utils/schema.h:138:2: note: in expansion of macro ‘SCHEMA_FIELD_OFFSET’
  138 |  SCHEMA_FIELD_OFFSET(type, varName, 0)
      |  ^~~~~~~~~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseplayercontroller.h:13:2: note: in expansion of macro ‘SCHEMA_FIELD’
   13 |  SCHEMA_FIELD(CHandle<CCSPlayerPawn>, m_hPawn)
      |  ^~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseplayercontroller.h: In member function ‘char& CBasePlayerController::m_iszPlayerName_prop::Get()’:
/root/surfcombat-metamod-cs2/src/utils/schema.h:69:42: error: ‘offsetof’ within non-standard-layout type ‘CBasePlayerController::ThisClass’ {aka ‘CBasePlayerController’} is conditionally-supported [-Werror=invalid-offsetof]
   69 |    static const size_t offset = offsetof(ThisClass, varName);              \
      |                                          ^
/root/surfcombat-metamod-cs2/src/utils/schema.h:138:2: note: in expansion of macro ‘SCHEMA_FIELD_OFFSET’
  138 |  SCHEMA_FIELD_OFFSET(type, varName, 0)
      |  ^~~~~~~~~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseplayercontroller.h:14:2: note: in expansion of macro ‘SCHEMA_FIELD’
   14 |  SCHEMA_FIELD(char, m_iszPlayerName)
      |  ^~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseplayercontroller.h: In member function ‘void CBasePlayerController::m_iszPlayerName_prop::Set(char)’:
/root/surfcombat-metamod-cs2/src/utils/schema.h:86:42: error: ‘offsetof’ within non-standard-layout type ‘CBasePlayerController::ThisClass’ {aka ‘CBasePlayerController’} is conditionally-supported [-Werror=invalid-offsetof]
   86 |    static const size_t offset = offsetof(ThisClass, varName);              \
      |                                          ^
/root/surfcombat-metamod-cs2/src/utils/schema.h:138:2: note: in expansion of macro ‘SCHEMA_FIELD_OFFSET’
  138 |  SCHEMA_FIELD_OFFSET(type, varName, 0)
      |  ^~~~~~~~~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/cbaseplayercontroller.h:14:2: note: in expansion of macro ‘SCHEMA_FIELD’
   14 |  SCHEMA_FIELD(char, m_iszPlayerName)
      |  ^~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/ccsplayercontroller.h: In member function ‘CCSPlayerController_ActionTrackingServices*& CCSPlayerController::m_pActionTrackingServices_prop::Get()’:
/root/surfcombat-metamod-cs2/src/utils/schema.h:69:42: error: ‘offsetof’ within non-standard-layout type ‘CCSPlayerController::ThisClass’ {aka ‘CCSPlayerController’} is conditionally-supported [-Werror=invalid-offsetof]
   69 |    static const size_t offset = offsetof(ThisClass, varName);              \
      |                                          ^
/root/surfcombat-metamod-cs2/src/utils/schema.h:138:2: note: in expansion of macro ‘SCHEMA_FIELD_OFFSET’
  138 |  SCHEMA_FIELD_OFFSET(type, varName, 0)
      |  ^~~~~~~~~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/ccsplayercontroller.h:10:2: note: in expansion of macro ‘SCHEMA_FIELD’
   10 |  SCHEMA_FIELD(CCSPlayerController_ActionTrackingServices*, m_pActionTrackingServices)
      |  ^~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/ccsplayercontroller.h: In member function ‘void CCSPlayerController::m_pActionTrackingServices_prop::Set(CCSPlayerController_ActionTrackingServices*)’:
/root/surfcombat-metamod-cs2/src/utils/schema.h:86:42: error: ‘offsetof’ within non-standard-layout type ‘CCSPlayerController::ThisClass’ {aka ‘CCSPlayerController’} is conditionally-supported [-Werror=invalid-offsetof]
   86 |    static const size_t offset = offsetof(ThisClass, varName);              \
      |                                          ^
/root/surfcombat-metamod-cs2/src/utils/schema.h:138:2: note: in expansion of macro ‘SCHEMA_FIELD_OFFSET’
  138 |  SCHEMA_FIELD_OFFSET(type, varName, 0)
      |  ^~~~~~~~~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/ccsplayercontroller.h:10:2: note: in expansion of macro ‘SCHEMA_FIELD’
   10 |  SCHEMA_FIELD(CCSPlayerController_ActionTrackingServices*, m_pActionTrackingServices)
      |  ^~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/ccsplayercontroller.h: In member function ‘int& CCSPlayerController::m_iScore_prop::Get()’:
/root/surfcombat-metamod-cs2/src/utils/schema.h:69:42: error: ‘offsetof’ within non-standard-layout type ‘CCSPlayerController::ThisClass’ {aka ‘CCSPlayerController’} is conditionally-supported [-Werror=invalid-offsetof]
   69 |    static const size_t offset = offsetof(ThisClass, varName);              \
      |                                          ^
/root/surfcombat-metamod-cs2/src/utils/schema.h:138:2: note: in expansion of macro ‘SCHEMA_FIELD_OFFSET’
  138 |  SCHEMA_FIELD_OFFSET(type, varName, 0)
      |  ^~~~~~~~~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/ccsplayercontroller.h:11:2: note: in expansion of macro ‘SCHEMA_FIELD’
   11 |  SCHEMA_FIELD(int, m_iScore)
      |  ^~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/ccsplayercontroller.h: In member function ‘void CCSPlayerController::m_iScore_prop::Set(int)’:
/root/surfcombat-metamod-cs2/src/utils/schema.h:86:42: error: ‘offsetof’ within non-standard-layout type ‘CCSPlayerController::ThisClass’ {aka ‘CCSPlayerController’} is conditionally-supported [-Werror=invalid-offsetof]
   86 |    static const size_t offset = offsetof(ThisClass, varName);              \
      |                                          ^
/root/surfcombat-metamod-cs2/src/utils/schema.h:138:2: note: in expansion of macro ‘SCHEMA_FIELD_OFFSET’
  138 |  SCHEMA_FIELD_OFFSET(type, varName, 0)
      |  ^~~~~~~~~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/ccsplayercontroller.h:11:2: note: in expansion of macro ‘SCHEMA_FIELD’
   11 |  SCHEMA_FIELD(int, m_iScore)
      |  ^~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/ccsplayercontroller.h: In member function ‘int& CCSPlayerController::m_iMVPs_prop::Get()’:
/root/surfcombat-metamod-cs2/src/utils/schema.h:69:42: error: ‘offsetof’ within non-standard-layout type ‘CCSPlayerController::ThisClass’ {aka ‘CCSPlayerController’} is conditionally-supported [-Werror=invalid-offsetof]
   69 |    static const size_t offset = offsetof(ThisClass, varName);              \
      |                                          ^
/root/surfcombat-metamod-cs2/src/utils/schema.h:138:2: note: in expansion of macro ‘SCHEMA_FIELD_OFFSET’
  138 |  SCHEMA_FIELD_OFFSET(type, varName, 0)
      |  ^~~~~~~~~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/ccsplayercontroller.h:12:2: note: in expansion of macro ‘SCHEMA_FIELD’
   12 |  SCHEMA_FIELD(int, m_iMVPs)
      |  ^~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/ccsplayercontroller.h: In member function ‘void CCSPlayerController::m_iMVPs_prop::Set(int)’:
/root/surfcombat-metamod-cs2/src/utils/schema.h:86:42: error: ‘offsetof’ within non-standard-layout type ‘CCSPlayerController::ThisClass’ {aka ‘CCSPlayerController’} is conditionally-supported [-Werror=invalid-offsetof]
   86 |    static const size_t offset = offsetof(ThisClass, varName);              \
      |                                          ^
/root/surfcombat-metamod-cs2/src/utils/schema.h:138:2: note: in expansion of macro ‘SCHEMA_FIELD_OFFSET’
  138 |  SCHEMA_FIELD_OFFSET(type, varName, 0)
      |  ^~~~~~~~~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/ccsplayercontroller.h:12:2: note: in expansion of macro ‘SCHEMA_FIELD’
   12 |  SCHEMA_FIELD(int, m_iMVPs)
      |  ^~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/ccsplayercontroller.h: In member function ‘bool& CCSPlayerController::m_bPawnIsAlive_prop::Get()’:
/root/surfcombat-metamod-cs2/src/utils/schema.h:69:42: error: ‘offsetof’ within non-standard-layout type ‘CCSPlayerController::ThisClass’ {aka ‘CCSPlayerController’} is conditionally-supported [-Werror=invalid-offsetof]
   69 |    static const size_t offset = offsetof(ThisClass, varName);              \
      |                                          ^
/root/surfcombat-metamod-cs2/src/utils/schema.h:138:2: note: in expansion of macro ‘SCHEMA_FIELD_OFFSET’
  138 |  SCHEMA_FIELD_OFFSET(type, varName, 0)
      |  ^~~~~~~~~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/ccsplayercontroller.h:13:2: note: in expansion of macro ‘SCHEMA_FIELD’
   13 |  SCHEMA_FIELD(bool, m_bPawnIsAlive);
      |  ^~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/ccsplayercontroller.h: In member function ‘void CCSPlayerController::m_bPawnIsAlive_prop::Set(bool)’:
/root/surfcombat-metamod-cs2/src/utils/schema.h:86:42: error: ‘offsetof’ within non-standard-layout type ‘CCSPlayerController::ThisClass’ {aka ‘CCSPlayerController’} is conditionally-supported [-Werror=invalid-offsetof]
   86 |    static const size_t offset = offsetof(ThisClass, varName);              \
      |                                          ^
/root/surfcombat-metamod-cs2/src/utils/schema.h:138:2: note: in expansion of macro ‘SCHEMA_FIELD_OFFSET’
  138 |  SCHEMA_FIELD_OFFSET(type, varName, 0)
      |  ^~~~~~~~~~~~~~~~~~~
/root/surfcombat-metamod-cs2/src/utils/entity/ccsplayercontroller.h:13:2: note: in expansion of macro ‘SCHEMA_FIELD’
   13 |  SCHEMA_FIELD(bool, m_bPawnIsAlive);
      |  ^~~~~~~~~~~~
cc1plus: all warnings being treated as errors
Build failed: surfcombatcs2/linux-x86_64/_root_surfcombat_metamod_cs2_src_surf_sc_features.d

gcc version 10.2.1 20210110 (Debian 10.2.1-6)