Sign in to follow this  
bharrold

Linux Server Compile error

Recommended Posts

When I compile MTA server on Ubuntu_16.04_x86-64 I have this errors. How can I fix it?

make config=release_x64 all
==== Building breakpad (release_x64) ====
==== Building Core (release_x64) ====
==== Building Dbconmy (release_x64) ====
==== Building Launcher (release_x64) ====
==== Building Lua_Server (release_x64) ====
==== Building sqlite (release_x64) ====
==== Building ehs (release_x64) ====
==== Building cryptopp (release_x64) ====
==== Building pme (release_x64) ====
==== Building pcre (release_x64) ====
==== Building json-c (release_x64) ====
==== Building zip (release_x64) ====
==== Building zlib (release_x64) ====
==== Building blowfish_bcrypt (release_x64) ====
==== Building Deathmatch (release_x64) ====
CServer.cpp
cc1plus: error: one or more PCH files were found, but they were invalid
cc1plus: error: use -Winvalid-pch for more information
cc1plus: fatal error: obj/x64/Release/Deathmatch/StdInc.h: No such file or directory

compilation terminated.
Deathmatch.make:536: recipe for target 'obj/x64/Release/Deathmatch/CServer.o' failed
make[1]: *** [obj/x64/Release/Deathmatch/CServer.o] Error 1
Makefile:190: recipe for target 'Deathmatch' failed
make: *** [Deathmatch] Error 2

After putting StdInc.h To From /Server/mods/Deathmatch

root@demsasha4yt:~/mtasa-blue/Build/obj/x64/Release/Deathmat
ch# ls
StdInc.h  StdInc.h.gch

Have this errors:


==== Building Deathmatch (release_x64) ====
CServer.cpp
In file included from ../vendor/json-c/json_object.h:43:0,
                 from ../vendor/json-c/linkhash.h:22,
                 from ../vendor/json-c/json.h:25,
                 from ../Server/mods/deathmatch/logic/packets/../CCommon.h:761,
                 from ../Server/mods/deathmatch/logic/packets/CCameraSyncPacket.h:14,
                 from ./obj/x64/Release/Deathmatch/StdInc.h:51,
                 from <command-line>:0:
../vendor/json-c/json_inttypes.h:18:0: warning: "PRId64" redefined
 #define PRId64 "I64d"
 ^
In file included from ../Shared/sdk/SharedUtil.h:70:0,
                 from ./obj/x64/Release/Deathmatch/StdInc.h:32,
                 from <command-line>:0:
../Shared/sdk/SharedUtil.Legacy.h:30:0: note: this is the location of the previous definition
 #define PRId64  "lld"
 ^
In file included from ./obj/x64/Release/Deathmatch/StdInc.h:306:0,
                 from <command-line>:0:
../Server/mods/deathmatch/../../version.h:107:75: note: #pragma message:
----------------------------------------------------------------------
MTASA_VERSION_TYPE is not set to VERSION_TYPE_RELEASE
Server will not work with release clients
-------------------------------------------------------------------------
If you want the server to work with release clients
set MTASA_VERSION_TYPE to VERSION_TYPE_RELEASE in MTA10_Server/version.h
-------------------------------------------------------------------------
 -------------------------------------------------------------------------")
                                                                           ^
In file included from ../Shared/sdk/SharedUtil.hpp:17:0,
                 from ../Server/mods/deathmatch/CServer.cpp:14:
../Shared/sdk/SharedUtil.File.hpp: In function 'SString SharedUtil::GetSystemCurrentDirectory()':
../Shared/sdk/SharedUtil.File.hpp:297:35: warning: ignoring return value of 'char* getcwd(char*, size_t)', declared with attribute warn_unused_result [-Wunused-result]
     getcwd(szBuffer, MAX_PATH - 1);
                                   ^
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
Deathmatch.make:536: recipe for target 'obj/x64/Release/Deathmatch/CServer.o' failed
make[1]: *** [obj/x64/Release/Deathmatch/CServer.o] Error 4
Makefile:190: recipe for target 'Deathmatch' failed
make: *** [Deathmatch] Error 2

 

 

 

Edited by bharrold

Share this post


Link to post

So, I downgraded ubuntu to version 14.04 and server works. I'm sorry to trouble u;)

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.