Source2ZE / CS2Fixes

A Metamod plugin with fixes and features aimed but not limited to zombie escape
GNU General Public License v3.0
238 stars 116 forks source link

[Build Failure] Failed to compile #45

Closed stefanobieler closed 11 months ago

stefanobieler commented 11 months ago

apologies if this isn't the place to put it. but didn't see anywhere else i could report or seek help. i'm having trouble compiling. looks like i'm having issue getting the standard library.

I am familiar with software development and although i'm not new to installing mods on source/source2 engine games i am a noob with developing mods in the ecosystem and this ambuild tool so it could be that i'm not using it correctly.

I used the sdk that came with the repo the HL2SDKCS2 environment variable and then i used the latest metmod source git commit on the master branch of this repo https://github.com/alliedmodders/metamod-source

looks like it's not able to find the standard library of the uint types based on what i could tell.

MMSOURCE112=/home/steam/projects/github/metamod-source HL2SDKCS2=/home/steam/projects/github/CS2Fixes/sdk

Spawned worker (pid: 922650)
Spawned worker (pid: 922651)
Spawned worker (pid: 922652)
Spawned worker (pid: 922653)
Spawned worker (pid: 922654)
Spawned worker (pid: 922655)
Spawned worker (pid: 922656)
Spawned worker (pid: 922657)
Spawned worker (pid: 922658)
Spawned worker (pid: 922659)
Spawned worker (pid: 922660)
Spawned worker (pid: 922661)
[922652] 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++2a -Wno-error -fvisibility-inlines-hidden -fno-exceptions -fno-threadsafe-statics -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-delete-non-virtual-dtor -std=c++2a --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_EPISODEONE=1 -DSE_ORANGEBOX=3 -DSE_CSS=6 -DSE_HL2DM=7 -DSE_DODS=8 -DSE_SDK2013=9 -DSE_TF2=12 -DSE_LEFT4DEAD=13 -DSE_NUCLEARDAWN=14 -DSE_LEFT4DEAD2=16 -DSE_DARKMESSIAH=2 -DSE_ALIENSWARM=17 -DSE_BLOODYGOODTIME=4 -DSE_EYE=5 -DSE_MCV=22 -DSE_CSGO=23 -DSE_PORTAL2=18 -DSE_BLADE=19 -DSE_INSURGENCY=20 -DSE_DOI=21 -DSE_CONTAGION=15 -DSE_BMS=11 -DSE_MOCK=999 -DSE_PVKII=10 -DSE_DOTA=24 -DSE_CS2=25 -DSOURCE_ENGINE=25 -DCOMPILER_GCC -DX64BITS -DPLATFORM_64BITS -DMETA_IS_SOURCE2 -I /home/steam/projects/github/metamod-source/core -I /home/steam/projects/github/metamod-source/core/sourcehook -I /home/steam/projects/github/CS2Fixes -I /home/steam/projects/github/CS2Fixes/sdk/public -I /home/steam/projects/github/CS2Fixes/sdk/public/engine -I /home/steam/projects/github/CS2Fixes/sdk/public/mathlib -I /home/steam/projects/github/CS2Fixes/sdk/public/vstdlib -I /home/steam/projects/github/CS2Fixes/sdk/public/tier0 -I /home/steam/projects/github/CS2Fixes/sdk/public/tier1 -I /home/steam/projects/github/CS2Fixes/sdk/public/game/server -I /home/steam/projects/github/CS2Fixes/sdk/game/shared -I /home/steam/projects/github/CS2Fixes/sdk/common -I /home/steam/projects/github/CS2Fixes/sdk/public/entity2 -I /home/steam/projects/github/CS2Fixes/sdk/game/server -I /home/steam/projects/github/CS2Fixes/src/cs2_sdk -I /home/steam/projects/github/CS2Fixes/src/utils -I /home/steam/projects/github/CS2Fixes/vendor/subhook -I /home/steam/projects/github/CS2Fixes/vendor/funchook/include -I /home/steam/projects/github/CS2Fixes/vendor/protobuf-3.21.8/src -MD -MF src_cs2_sdk_interfaces_cs2_interfaces.d -c /home/steam/projects/github/CS2Fixes/src/cs2_sdk/interfaces/cs2_interfaces.cpp -o src_cs2_sdk_interfaces_cs2_interfaces.o
In file included from /home/steam/projects/github/CS2Fixes/src/cs2_sdk/interfaces/../../utils/module.h:25,
                 from /home/steam/projects/github/CS2Fixes/src/cs2_sdk/interfaces/cs2_interfaces.cpp:26:
/home/steam/projects/github/CS2Fixes/src/cs2_sdk/interfaces/../../utils/plat.h:28: warning: "FASTCALL" redefined
   28 | #define FASTCALL __attribute__((fastcall))
      |
In file included from /home/steam/projects/github/CS2Fixes/sdk/public/tier0/interface.h:11,
                 from /home/steam/projects/github/CS2Fixes/src/cs2_sdk/interfaces/cs2_interfaces.cpp:20:
/home/steam/projects/github/CS2Fixes/sdk/public/tier0/platform.h:467: note: this is the location of the previous definition
  467 |         #define  FASTCALL
      |
In file included from /home/steam/projects/github/CS2Fixes/src/cs2_sdk/interfaces/cgameresourceserviceserver.h:23,
                 from /home/steam/projects/github/CS2Fixes/src/cs2_sdk/interfaces/cs2_interfaces.h:22,
                 from /home/steam/projects/github/CS2Fixes/src/cs2_sdk/interfaces/cs2_interfaces.cpp:21:
/home/steam/projects/github/CS2Fixes/src/cs2_sdk/interfaces/../../gameconfig.h:28:65: error: ‘uint8_t’ has not been declared
   28 |         static int HexStringToUint8Array(const char* hexString, uint8_t* byteArray, size_t maxBytes);
      |                                                                 ^~~~~~~
/home/steam/projects/github/CS2Fixes/src/cs2_sdk/interfaces/cgameresourceserviceserver.h: In member function ‘CGameEntitySystem* CGameResourceService::GetGameEntitySystem()’:
/home/steam/projects/github/CS2Fixes/src/cs2_sdk/interfaces/cgameresourceserviceserver.h:35:65: error: ‘uintptr_t’ was not declared in this scope
   35 |                 return *reinterpret_cast<CGameEntitySystem **>((uintptr_t)(this) + offset);
      |                                                                 ^~~~~~~~~
/home/steam/projects/github/CS2Fixes/src/cs2_sdk/interfaces/cgameresourceserviceserver.h:24:1: note: ‘uintptr_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
   23 | #include "../../gameconfig.h"
  +++ |+#include <cstdint>
   24 |
In file included from /home/steam/projects/github/CS2Fixes/src/cs2_sdk/interfaces/cs2_interfaces.h:23:
/home/steam/projects/github/CS2Fixes/src/cs2_sdk/interfaces/cschemasystem.h: At global scope:
/home/steam/projects/github/CS2Fixes/src/cs2_sdk/interfaces/cschemasystem.h:29:22: error: ‘uintptr_t’ in namespace ‘std’ does not name a type
   29 |                 std::uintptr_t m_p_value;
      |                      ^~~~~~~~~
/home/steam/projects/github/CS2Fixes/src/cs2_sdk/interfaces/cschemasystem.h:22:1: note: ‘std::uintptr_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
   21 | #include "../../utils/virtual.h"
  +++ |+#include <cstdint>
   22 | #include <platform.h>
In file included from /home/steam/projects/github/CS2Fixes/src/cs2_sdk/interfaces/cs2_interfaces.cpp:27:
/home/steam/projects/github/CS2Fixes/src/cs2_sdk/../addresses.h:49:93: warning: ‘fastcall’ attribute ignored [-Wattributes]
   49 |         inline void(FASTCALL *NetworkStateChanged)(int64 chainEntity, int64 offset, int64 a3);
      |                                                                                             ^
/home/steam/projects/github/CS2Fixes/src/cs2_sdk/../addresses.h:50:131: warning: ‘fastcall’ attribute ignored [-Wattributes]
   50 |         inline void(FASTCALL *StateChanged)(void *networkTransmitComponent, CEntityInstance *ent, int64 offset, int16 a4, int16 a5);
      |                                                                                                                                   ^
/home/steam/projects/github/CS2Fixes/src/cs2_sdk/../addresses.h:51:166: warning: ‘fastcall’ attribute ignored [-Wattributes]
   51 |         inline void(FASTCALL *UTIL_ClientPrintAll)(int msg_dest, const char *msg_name, const char *param1, const char *param2, const char *param3, const char *param4);
      |                                                                                                                                                                      ^
/home/steam/projects/github/CS2Fixes/src/cs2_sdk/../addresses.h:52:189: warning: ‘fastcall’ attribute ignored [-Wattributes]
   52 |         inline void(FASTCALL *ClientPrint)(CBasePlayerController *player, int msg_dest, const char *msg_name, const char *param1, const char *param2, const char *param3, const char *param4);
      |                                                                                                                                                                                             ^
/home/steam/projects/github/CS2Fixes/src/cs2_sdk/../addresses.h:53:89: warning: ‘fastcall’ attribute ignored [-Wattributes]
   53 |         inline void(FASTCALL *SetGroundEntity)(Z_CBaseEntity *ent, Z_CBaseEntity *ground);
      |                                                                                         ^
/home/steam/projects/github/CS2Fixes/src/cs2_sdk/../addresses.h:54:108: warning: ‘fastcall’ attribute ignored [-Wattributes]
   54 |         inline void(FASTCALL *CCSPlayerController_SwitchTeam)(CCSPlayerController *pController, uint32 team);
      |                                                                                                            ^
Build failed: cs2fixes/linux-x86_64/src_cs2_sdk_interfaces_cs2_interfaces.o
xen-000 commented 11 months ago

It seems that you failed to read the big bold disclaimer on the readme. Wait until the plugin is stable and builds are published before you can use.

stefanobieler commented 11 months ago

DISCLAIMER: This plugin is not meant to be used on a server yet, it is very much a work in progress and thus we are not responsible for any issues or breakages caused by the plugin. In addition, we will not provide support for building or usage unless you plan on contributing to the project yourself. disclaimer this plugin is not meant to be used on a server yet it is very much a work in progress and thus we are not responsible for any issues or breakages caused by the plugin in addition we will not provide support for building or usage unless you plan on contributing to the project yourself

@xen-000

No i read it. I guess I misunderstood this part.

unless you plan on contributing to the project yourself