Jump to content

How To compile Metin2 Server Source on FreeBSD ?


Denis

Recommended Posts

  • 4 weeks later...
  • 3 weeks later...
  • Premium

root@ns377004:/usr/src/mainline/Srcs/Server/game/src # gmake clean
root@ns377004:/usr/src/mainline/Srcs/Server/game/src # gmake -j20
compile BattleArena.cpp with g++48 -Wall -fuse-linker-plugin -fuse-ld=gold -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -Wl,-rpath=/usr/local/lib32/metin2 -std=c++11 -static -static-libgcc -static-libstdc++ -Wno-strict-aliasing -g -ggdb -DNDEBUG -ffast-math -funsafe-loop-optimizations -ftracer -fira-loop-pressure -funroll-loops -finline-functions -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-loop-distribution -ftree-partial-pre -ftree-vectorize -ftree-loop-vectorize -ftree-loop-distribute-patterns -ftree-slp-vectorize -fipa-cp-clone -mtune=i686 -march=i686 -mssse3
compile FSM.cpp with g++48 -Wall -fuse-linker-plugin -fuse-ld=gold -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -Wl,-rpath=/usr/local/lib32/metin2 -std=c++11 -static -static-libgcc -static-libstdc++ -Wno-strict-aliasing -g -ggdb -DNDEBUG -ffast-math -funsafe-loop-optimizations -ftracer -fira-loop-pressure -funroll-loops -finline-functions -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-loop-distribution -ftree-partial-pre -ftree-vectorize -ftree-loop-vectorize -ftree-loop-distribute-patterns -ftree-slp-vectorize -fipa-cp-clone -mtune=i686 -march=i686 -mssse3
compile MarkConvert.cpp with g++48 -Wall -fuse-linker-plugin -fuse-ld=gold -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -Wl,-rpath=/usr/local/lib32/metin2 -std=c++11 -static -static-libgcc -static-libstdc++ -Wno-strict-aliasing -g -ggdb -DNDEBUG -ffast-math -funsafe-loop-optimizations -ftracer -fira-loop-pressure -funroll-loops -finline-functions -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-loop-distribution -ftree-partial-pre -ftree-vectorize -ftree-loop-vectorize -ftree-loop-distribute-patterns -ftree-slp-vectorize -fipa-cp-clone -mtune=i686 -march=i686 -mssse3
g++48: error: unrecognized command line option '-ftree-loop-vectorize'
compile MarkImage.cpp with g++48 -Wall -fuse-linker-plugin -fuse-ld=gold -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -Wl,-rpath=/usr/local/lib32/metin2 -std=c++11 -static -static-libgcc -static-libstdc++ -Wno-strict-aliasing -g -ggdb -DNDEBUG -ffast-math -funsafe-loop-optimizations -ftracer -fira-loop-pressure -funroll-loops -finline-functions -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-loop-distribution -ftree-partial-pre -ftree-vectorize -ftree-loop-vectorize -ftree-loop-distribute-patterns -ftree-slp-vectorize -fipa-cp-clone -mtune=i686 -march=i686 -mssse3
Makefile:140: recipe for target 'OBJDIR/BattleArena.o' failed
gmake: *** [OBJDIR/BattleArena.o] Error 1
gmake: *** Waiting for unfinished jobs....
g++48: error: unrecognized command line option '-ftree-loop-vectorize'
Makefile:140: recipe for target 'OBJDIR/FSM.o' failed
gmake: *** [OBJDIR/FSM.o] Error 1
g++48: error: unrecognized command line option '-ftree-loop-vectorize'
Makefile:140: recipe for target 'OBJDIR/MarkConvert.o' failed
gmake: *** [OBJDIR/MarkConvert.o] Error 1
g++48: error: unrecognized command line option '-ftree-loop-vectorize'
Makefile:140: recipe for target 'OBJDIR/MarkImage.o' failed
gmake: *** [OBJDIR/MarkImage.o] Error 1

~~ Mein System ~~

Prozessor: Intel® Core™ i7-4790K
Mailboard: Gigabyte GA-Z97X-Gaming 3
Arbeitsspeicher: G.Skill 8GB KIT PC3-17000 DDR3-2133 CL10 Sniper
Festplatte/n: 512GB SSD / 1TB HDD
Grafikkarten: 2x Gigabyte Radeon HD 6970 OC

Kühlung: EKWB Wasserkühlung

 

 

Link to comment
Share on other sites

  • Premium

root@ns377004:/usr/src/mainline/Srcs/Server/game/src # gmake clean
root@ns377004:/usr/src/mainline/Srcs/Server/game/src # gmake -j20
compile BattleArena.cpp with g++48 -Wall -fuse-linker-plugin -fuse-ld=gold -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -Wl,-rpath=/usr/local/lib32/metin2 -std=c++11 -static -static-libgcc -static-libstdc++ -Wno-strict-aliasing -g -ggdb -DNDEBUG -ffast-math -funsafe-loop-optimizations -ftracer -fira-loop-pressure -funroll-loops -finline-functions -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-loop-distribution -ftree-partial-pre -ftree-vectorize -ftree-loop-vectorize -ftree-loop-distribute-patterns -ftree-slp-vectorize -fipa-cp-clone -mtune=i686 -march=i686 -mssse3
compile FSM.cpp with g++48 -Wall -fuse-linker-plugin -fuse-ld=gold -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -Wl,-rpath=/usr/local/lib32/metin2 -std=c++11 -static -static-libgcc -static-libstdc++ -Wno-strict-aliasing -g -ggdb -DNDEBUG -ffast-math -funsafe-loop-optimizations -ftracer -fira-loop-pressure -funroll-loops -finline-functions -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-loop-distribution -ftree-partial-pre -ftree-vectorize -ftree-loop-vectorize -ftree-loop-distribute-patterns -ftree-slp-vectorize -fipa-cp-clone -mtune=i686 -march=i686 -mssse3
compile MarkConvert.cpp with g++48 -Wall -fuse-linker-plugin -fuse-ld=gold -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -Wl,-rpath=/usr/local/lib32/metin2 -std=c++11 -static -static-libgcc -static-libstdc++ -Wno-strict-aliasing -g -ggdb -DNDEBUG -ffast-math -funsafe-loop-optimizations -ftracer -fira-loop-pressure -funroll-loops -finline-functions -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-loop-distribution -ftree-partial-pre -ftree-vectorize -ftree-loop-vectorize -ftree-loop-distribute-patterns -ftree-slp-vectorize -fipa-cp-clone -mtune=i686 -march=i686 -mssse3
g++48: error: unrecognized command line option '-ftree-loop-vectorize'
compile MarkImage.cpp with g++48 -Wall -fuse-linker-plugin -fuse-ld=gold -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -Wl,-rpath=/usr/local/lib32/metin2 -std=c++11 -static -static-libgcc -static-libstdc++ -Wno-strict-aliasing -g -ggdb -DNDEBUG -ffast-math -funsafe-loop-optimizations -ftracer -fira-loop-pressure -funroll-loops -finline-functions -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-loop-distribution -ftree-partial-pre -ftree-vectorize -ftree-loop-vectorize -ftree-loop-distribute-patterns -ftree-slp-vectorize -fipa-cp-clone -mtune=i686 -march=i686 -mssse3
Makefile:140: recipe for target 'OBJDIR/BattleArena.o' failed
gmake: *** [OBJDIR/BattleArena.o] Error 1
gmake: *** Waiting for unfinished jobs....
g++48: error: unrecognized command line option '-ftree-loop-vectorize'
Makefile:140: recipe for target 'OBJDIR/FSM.o' failed
gmake: *** [OBJDIR/FSM.o] Error 1
g++48: error: unrecognized command line option '-ftree-loop-vectorize'
Makefile:140: recipe for target 'OBJDIR/MarkConvert.o' failed
gmake: *** [OBJDIR/MarkConvert.o] Error 1
g++48: error: unrecognized command line option '-ftree-loop-vectorize'
Makefile:140: recipe for target 'OBJDIR/MarkImage.o' failed
gmake: *** [OBJDIR/MarkImage.o] Error 1

 

remove the string -ftree-loop-vectorize the makefile

  • Love 1
Link to comment
Share on other sites

  • Premium

 


root@ns377004:/usr/src/mainline/Srcs/Server/game/src # gmake clean
root@ns377004:/usr/src/mainline/Srcs/Server/game/src # gmake -j20
compile BattleArena.cpp with g++48 -Wall -fuse-linker-plugin -fuse-ld=gold -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -Wl,-rpath=/usr/local/lib32/metin2 -std=c++11 -static -static-libgcc -static-libstdc++ -Wno-strict-aliasing -g -ggdb -DNDEBUG -ffast-math -funsafe-loop-optimizations -ftracer -fira-loop-pressure -funroll-loops -finline-functions -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-loop-distribution -ftree-partial-pre -ftree-vectorize -ftree-loop-vectorize -ftree-loop-distribute-patterns -ftree-slp-vectorize -fipa-cp-clone -mtune=i686 -march=i686 -mssse3
compile FSM.cpp with g++48 -Wall -fuse-linker-plugin -fuse-ld=gold -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -Wl,-rpath=/usr/local/lib32/metin2 -std=c++11 -static -static-libgcc -static-libstdc++ -Wno-strict-aliasing -g -ggdb -DNDEBUG -ffast-math -funsafe-loop-optimizations -ftracer -fira-loop-pressure -funroll-loops -finline-functions -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-loop-distribution -ftree-partial-pre -ftree-vectorize -ftree-loop-vectorize -ftree-loop-distribute-patterns -ftree-slp-vectorize -fipa-cp-clone -mtune=i686 -march=i686 -mssse3
compile MarkConvert.cpp with g++48 -Wall -fuse-linker-plugin -fuse-ld=gold -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -Wl,-rpath=/usr/local/lib32/metin2 -std=c++11 -static -static-libgcc -static-libstdc++ -Wno-strict-aliasing -g -ggdb -DNDEBUG -ffast-math -funsafe-loop-optimizations -ftracer -fira-loop-pressure -funroll-loops -finline-functions -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-loop-distribution -ftree-partial-pre -ftree-vectorize -ftree-loop-vectorize -ftree-loop-distribute-patterns -ftree-slp-vectorize -fipa-cp-clone -mtune=i686 -march=i686 -mssse3
g++48: error: unrecognized command line option '-ftree-loop-vectorize'
compile MarkImage.cpp with g++48 -Wall -fuse-linker-plugin -fuse-ld=gold -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -Wl,-rpath=/usr/local/lib32/metin2 -std=c++11 -static -static-libgcc -static-libstdc++ -Wno-strict-aliasing -g -ggdb -DNDEBUG -ffast-math -funsafe-loop-optimizations -ftracer -fira-loop-pressure -funroll-loops -finline-functions -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-loop-distribution -ftree-partial-pre -ftree-vectorize -ftree-loop-vectorize -ftree-loop-distribute-patterns -ftree-slp-vectorize -fipa-cp-clone -mtune=i686 -march=i686 -mssse3
Makefile:140: recipe for target 'OBJDIR/BattleArena.o' failed
gmake: *** [OBJDIR/BattleArena.o] Error 1
gmake: *** Waiting for unfinished jobs....
g++48: error: unrecognized command line option '-ftree-loop-vectorize'
Makefile:140: recipe for target 'OBJDIR/FSM.o' failed
gmake: *** [OBJDIR/FSM.o] Error 1
g++48: error: unrecognized command line option '-ftree-loop-vectorize'
Makefile:140: recipe for target 'OBJDIR/MarkConvert.o' failed
gmake: *** [OBJDIR/MarkConvert.o] Error 1
g++48: error: unrecognized command line option '-ftree-loop-vectorize'
Makefile:140: recipe for target 'OBJDIR/MarkImage.o' failed
gmake: *** [OBJDIR/MarkImage.o] Error 1

 

remove the string -ftree-loop-vectorize the makefile

 

Thanks it works.

now i get this error

 

gmake -j20
compile BattleArena.cpp
compile FSM.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile MarkConvert.cpp
compile MarkImage.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile MarkManager.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile OXEvent.cpp
compile TrafficProfiler.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile ani.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile arena.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile banword.cpp
compile battle.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile blend_item.cpp
compile block_country.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile buffer_manager.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile building.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile castle.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile char.cpp
compile char_affect.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile char_battle.cpp
compile char_change_empire.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
In file included from FSM.cpp:4:0:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
Makefile:131: recipe for target 'OBJDIR/FSM.o' failed
gmake: *** [OBJDIR/FSM.o] Error 1
gmake: *** Waiting for unfinished jobs....
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from MarkConvert.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from TrafficProfiler.cpp:10:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from buffer_manager.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from block_country.cpp:10:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from MarkImage.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from MarkManager.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from blend_item.cpp:10:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
Makefile:131: recipe for target 'OBJDIR/MarkImage.o' failed
gmake: *** [OBJDIR/MarkImage.o] Error 1
Makefile:131: recipe for target 'OBJDIR/buffer_manager.o' failed
gmake: *** [OBJDIR/buffer_manager.o] Error 1
Makefile:131: recipe for target 'OBJDIR/TrafficProfiler.o' failed
gmake: *** [OBJDIR/TrafficProfiler.o] Error 1
Makefile:131: recipe for target 'OBJDIR/block_country.o' failed
gmake: *** [OBJDIR/block_country.o] Error 1
Makefile:131: recipe for target 'OBJDIR/blend_item.o' failed
gmake: *** [OBJDIR/blend_item.o] Error 1
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
Makefile:131: recipe for target 'OBJDIR/MarkConvert.o' failed
gmake: *** [OBJDIR/MarkConvert.o] Error 1
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from building.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from OXEvent.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from ani.cpp:10:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from char_change_empire.cpp:2:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from arena.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from char_affect.cpp:2:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from battle.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from banword.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from castle.cpp:12:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from ani.cpp:11:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
char.cpp:7221:3: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
   return 2500000000;
   ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from char.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from char_battle.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from castle.cpp:21:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from banword.h:5,
                 from banword.cpp:3:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from char_affect.cpp:5:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from char_change_empire.cpp:4:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from questmanager.h:4,
                 from OXEvent.cpp:4:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from questmanager.h:4,
                 from arena.cpp:8:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from char.cpp:6:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from battle.cpp:5:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from desc_manager.h:4,
                 from char_battle.cpp:5:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
Makefile:131: recipe for target 'OBJDIR/MarkManager.o' failed
gmake: *** [OBJDIR/MarkManager.o] Error 1
Makefile:131: recipe for target 'OBJDIR/ani.o' failed
gmake: *** [OBJDIR/ani.o] Error 1
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from building.cpp:8:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
Makefile:131: recipe for target 'OBJDIR/banword.o' failed
gmake: *** [OBJDIR/banword.o] Error 1
Makefile:131: recipe for target 'OBJDIR/BattleArena.o' failed
gmake: *** [OBJDIR/BattleArena.o] Error 1
Makefile:131: recipe for target 'OBJDIR/castle.o' failed
gmake: *** [OBJDIR/castle.o] Error 1
Makefile:131: recipe for target 'OBJDIR/char_change_empire.o' failed
gmake: *** [OBJDIR/char_change_empire.o] Error 1
Makefile:131: recipe for target 'OBJDIR/OXEvent.o' failed
gmake: *** [OBJDIR/OXEvent.o] Error 1
Makefile:131: recipe for target 'OBJDIR/char_affect.o' failed
gmake: *** [OBJDIR/char_affect.o] Error 1
Makefile:131: recipe for target 'OBJDIR/battle.o' failed
gmake: *** [OBJDIR/battle.o] Error 1
Makefile:131: recipe for target 'OBJDIR/arena.o' failed
gmake: *** [OBJDIR/arena.o] Error 1
Makefile:131: recipe for target 'OBJDIR/building.o' failed
gmake: *** [OBJDIR/building.o] Error 1
char_battle.cpp: In member function 'void CHARACTER::Reward(bool)':
char_battle.cpp:775:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
   if (GetLevel() - pkAttacker->GetLevel() >= -10)
      ^
char.cpp: In member function 'int CHARACTER::GetPolymorphPoint(BYTE) const':
char.cpp:2880:57: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      if (GetJob() == JOB_SHAMAN || GetJob() == JOB_SURA && GetSkillGroup() == 2)
                                                         ^
char.cpp: In member function 'void CHARACTER::PointChange(BYTE, int, bool, bool)':
char.cpp:3088:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (amount < 0 && exp < -amount)
                              ^
char.cpp: In member function 'void CHARACTER::SetTarget(LPCHARACTER)':
char.cpp:5103:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if (m_pkChrTarget->IsPC() && !m_pkChrTarget->IsPolymorphed() || m_pkChrTarget->GetMaxHP() <= 0)
                             ^
char.cpp: In member function 'bool CHARACTER::CanSummon(int)':
char.cpp:6288:49: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  return (iLeaderShip >= 20 || iLeaderShip >= 12 && m_dwLastDeadTime + 180 > get_dword_time());
                                                 ^
Makefile:131: recipe for target 'OBJDIR/char_battle.o' failed
gmake: *** [OBJDIR/char_battle.o] Error 1
Makefile:131: recipe for target 'OBJDIR/char.o' failed
gmake: *** [OBJDIR/char.o] Error 1

~~ Mein System ~~

Prozessor: Intel® Core™ i7-4790K
Mailboard: Gigabyte GA-Z97X-Gaming 3
Arbeitsspeicher: G.Skill 8GB KIT PC3-17000 DDR3-2133 CL10 Sniper
Festplatte/n: 512GB SSD / 1TB HDD
Grafikkarten: 2x Gigabyte Radeon HD 6970 OC

Kühlung: EKWB Wasserkühlung

 

 

Link to comment
Share on other sites

  • Premium

 

 


root@ns377004:/usr/src/mainline/Srcs/Server/game/src # gmake clean
root@ns377004:/usr/src/mainline/Srcs/Server/game/src # gmake -j20
compile BattleArena.cpp with g++48 -Wall -fuse-linker-plugin -fuse-ld=gold -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -Wl,-rpath=/usr/local/lib32/metin2 -std=c++11 -static -static-libgcc -static-libstdc++ -Wno-strict-aliasing -g -ggdb -DNDEBUG -ffast-math -funsafe-loop-optimizations -ftracer -fira-loop-pressure -funroll-loops -finline-functions -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-loop-distribution -ftree-partial-pre -ftree-vectorize -ftree-loop-vectorize -ftree-loop-distribute-patterns -ftree-slp-vectorize -fipa-cp-clone -mtune=i686 -march=i686 -mssse3
compile FSM.cpp with g++48 -Wall -fuse-linker-plugin -fuse-ld=gold -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -Wl,-rpath=/usr/local/lib32/metin2 -std=c++11 -static -static-libgcc -static-libstdc++ -Wno-strict-aliasing -g -ggdb -DNDEBUG -ffast-math -funsafe-loop-optimizations -ftracer -fira-loop-pressure -funroll-loops -finline-functions -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-loop-distribution -ftree-partial-pre -ftree-vectorize -ftree-loop-vectorize -ftree-loop-distribute-patterns -ftree-slp-vectorize -fipa-cp-clone -mtune=i686 -march=i686 -mssse3
compile MarkConvert.cpp with g++48 -Wall -fuse-linker-plugin -fuse-ld=gold -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -Wl,-rpath=/usr/local/lib32/metin2 -std=c++11 -static -static-libgcc -static-libstdc++ -Wno-strict-aliasing -g -ggdb -DNDEBUG -ffast-math -funsafe-loop-optimizations -ftracer -fira-loop-pressure -funroll-loops -finline-functions -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-loop-distribution -ftree-partial-pre -ftree-vectorize -ftree-loop-vectorize -ftree-loop-distribute-patterns -ftree-slp-vectorize -fipa-cp-clone -mtune=i686 -march=i686 -mssse3
g++48: error: unrecognized command line option '-ftree-loop-vectorize'
compile MarkImage.cpp with g++48 -Wall -fuse-linker-plugin -fuse-ld=gold -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -Wl,-rpath=/usr/local/lib32/metin2 -std=c++11 -static -static-libgcc -static-libstdc++ -Wno-strict-aliasing -g -ggdb -DNDEBUG -ffast-math -funsafe-loop-optimizations -ftracer -fira-loop-pressure -funroll-loops -finline-functions -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-loop-distribution -ftree-partial-pre -ftree-vectorize -ftree-loop-vectorize -ftree-loop-distribute-patterns -ftree-slp-vectorize -fipa-cp-clone -mtune=i686 -march=i686 -mssse3
Makefile:140: recipe for target 'OBJDIR/BattleArena.o' failed
gmake: *** [OBJDIR/BattleArena.o] Error 1
gmake: *** Waiting for unfinished jobs....
g++48: error: unrecognized command line option '-ftree-loop-vectorize'
Makefile:140: recipe for target 'OBJDIR/FSM.o' failed
gmake: *** [OBJDIR/FSM.o] Error 1
g++48: error: unrecognized command line option '-ftree-loop-vectorize'
Makefile:140: recipe for target 'OBJDIR/MarkConvert.o' failed
gmake: *** [OBJDIR/MarkConvert.o] Error 1
g++48: error: unrecognized command line option '-ftree-loop-vectorize'
Makefile:140: recipe for target 'OBJDIR/MarkImage.o' failed
gmake: *** [OBJDIR/MarkImage.o] Error 1

 

remove the string -ftree-loop-vectorize the makefile

 

Thanks it works.

now i get this error

gmake -j20
compile BattleArena.cpp
compile FSM.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile MarkConvert.cpp
compile MarkImage.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile MarkManager.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile OXEvent.cpp
compile TrafficProfiler.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile ani.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile arena.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile banword.cpp
compile battle.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile blend_item.cpp
compile block_country.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile buffer_manager.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile building.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile castle.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile char.cpp
compile char_affect.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile char_battle.cpp
compile char_change_empire.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
In file included from FSM.cpp:4:0:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
Makefile:131: recipe for target 'OBJDIR/FSM.o' failed
gmake: *** [OBJDIR/FSM.o] Error 1
gmake: *** Waiting for unfinished jobs....
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from MarkConvert.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from TrafficProfiler.cpp:10:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from buffer_manager.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from block_country.cpp:10:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from MarkImage.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from MarkManager.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from blend_item.cpp:10:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
Makefile:131: recipe for target 'OBJDIR/MarkImage.o' failed
gmake: *** [OBJDIR/MarkImage.o] Error 1
Makefile:131: recipe for target 'OBJDIR/buffer_manager.o' failed
gmake: *** [OBJDIR/buffer_manager.o] Error 1
Makefile:131: recipe for target 'OBJDIR/TrafficProfiler.o' failed
gmake: *** [OBJDIR/TrafficProfiler.o] Error 1
Makefile:131: recipe for target 'OBJDIR/block_country.o' failed
gmake: *** [OBJDIR/block_country.o] Error 1
Makefile:131: recipe for target 'OBJDIR/blend_item.o' failed
gmake: *** [OBJDIR/blend_item.o] Error 1
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
Makefile:131: recipe for target 'OBJDIR/MarkConvert.o' failed
gmake: *** [OBJDIR/MarkConvert.o] Error 1
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from building.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from OXEvent.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from ani.cpp:10:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from char_change_empire.cpp:2:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from arena.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from char_affect.cpp:2:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from battle.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from banword.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from castle.cpp:12:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from ani.cpp:11:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
char.cpp:7221:3: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
   return 2500000000;
   ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from char.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from char_battle.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from castle.cpp:21:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from banword.h:5,
                 from banword.cpp:3:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from char_affect.cpp:5:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from char_change_empire.cpp:4:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from questmanager.h:4,
                 from OXEvent.cpp:4:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from questmanager.h:4,
                 from arena.cpp:8:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from char.cpp:6:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from battle.cpp:5:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from desc_manager.h:4,
                 from char_battle.cpp:5:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
Makefile:131: recipe for target 'OBJDIR/MarkManager.o' failed
gmake: *** [OBJDIR/MarkManager.o] Error 1
Makefile:131: recipe for target 'OBJDIR/ani.o' failed
gmake: *** [OBJDIR/ani.o] Error 1
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from building.cpp:8:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
Makefile:131: recipe for target 'OBJDIR/banword.o' failed
gmake: *** [OBJDIR/banword.o] Error 1
Makefile:131: recipe for target 'OBJDIR/BattleArena.o' failed
gmake: *** [OBJDIR/BattleArena.o] Error 1
Makefile:131: recipe for target 'OBJDIR/castle.o' failed
gmake: *** [OBJDIR/castle.o] Error 1
Makefile:131: recipe for target 'OBJDIR/char_change_empire.o' failed
gmake: *** [OBJDIR/char_change_empire.o] Error 1
Makefile:131: recipe for target 'OBJDIR/OXEvent.o' failed
gmake: *** [OBJDIR/OXEvent.o] Error 1
Makefile:131: recipe for target 'OBJDIR/char_affect.o' failed
gmake: *** [OBJDIR/char_affect.o] Error 1
Makefile:131: recipe for target 'OBJDIR/battle.o' failed
gmake: *** [OBJDIR/battle.o] Error 1
Makefile:131: recipe for target 'OBJDIR/arena.o' failed
gmake: *** [OBJDIR/arena.o] Error 1
Makefile:131: recipe for target 'OBJDIR/building.o' failed
gmake: *** [OBJDIR/building.o] Error 1
char_battle.cpp: In member function 'void CHARACTER::Reward(bool)':
char_battle.cpp:775:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
   if (GetLevel() - pkAttacker->GetLevel() >= -10)
      ^
char.cpp: In member function 'int CHARACTER::GetPolymorphPoint(BYTE) const':
char.cpp:2880:57: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      if (GetJob() == JOB_SHAMAN || GetJob() == JOB_SURA && GetSkillGroup() == 2)
                                                         ^
char.cpp: In member function 'void CHARACTER::PointChange(BYTE, int, bool, bool)':
char.cpp:3088:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (amount < 0 && exp < -amount)
                              ^
char.cpp: In member function 'void CHARACTER::SetTarget(LPCHARACTER)':
char.cpp:5103:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if (m_pkChrTarget->IsPC() && !m_pkChrTarget->IsPolymorphed() || m_pkChrTarget->GetMaxHP() <= 0)
                             ^
char.cpp: In member function 'bool CHARACTER::CanSummon(int)':
char.cpp:6288:49: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  return (iLeaderShip >= 20 || iLeaderShip >= 12 && m_dwLastDeadTime + 180 > get_dword_time());
                                                 ^
Makefile:131: recipe for target 'OBJDIR/char_battle.o' failed
gmake: *** [OBJDIR/char_battle.o] Error 1
Makefile:131: recipe for target 'OBJDIR/char.o' failed
gmake: *** [OBJDIR/char.o] Error 1

the virtual machine is 64-bit or 32?

Link to comment
Share on other sites

  • Premium

 

 

 


root@ns377004:/usr/src/mainline/Srcs/Server/game/src # gmake clean
root@ns377004:/usr/src/mainline/Srcs/Server/game/src # gmake -j20
compile BattleArena.cpp with g++48 -Wall -fuse-linker-plugin -fuse-ld=gold -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -Wl,-rpath=/usr/local/lib32/metin2 -std=c++11 -static -static-libgcc -static-libstdc++ -Wno-strict-aliasing -g -ggdb -DNDEBUG -ffast-math -funsafe-loop-optimizations -ftracer -fira-loop-pressure -funroll-loops -finline-functions -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-loop-distribution -ftree-partial-pre -ftree-vectorize -ftree-loop-vectorize -ftree-loop-distribute-patterns -ftree-slp-vectorize -fipa-cp-clone -mtune=i686 -march=i686 -mssse3
compile FSM.cpp with g++48 -Wall -fuse-linker-plugin -fuse-ld=gold -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -Wl,-rpath=/usr/local/lib32/metin2 -std=c++11 -static -static-libgcc -static-libstdc++ -Wno-strict-aliasing -g -ggdb -DNDEBUG -ffast-math -funsafe-loop-optimizations -ftracer -fira-loop-pressure -funroll-loops -finline-functions -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-loop-distribution -ftree-partial-pre -ftree-vectorize -ftree-loop-vectorize -ftree-loop-distribute-patterns -ftree-slp-vectorize -fipa-cp-clone -mtune=i686 -march=i686 -mssse3
compile MarkConvert.cpp with g++48 -Wall -fuse-linker-plugin -fuse-ld=gold -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -Wl,-rpath=/usr/local/lib32/metin2 -std=c++11 -static -static-libgcc -static-libstdc++ -Wno-strict-aliasing -g -ggdb -DNDEBUG -ffast-math -funsafe-loop-optimizations -ftracer -fira-loop-pressure -funroll-loops -finline-functions -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-loop-distribution -ftree-partial-pre -ftree-vectorize -ftree-loop-vectorize -ftree-loop-distribute-patterns -ftree-slp-vectorize -fipa-cp-clone -mtune=i686 -march=i686 -mssse3
g++48: error: unrecognized command line option '-ftree-loop-vectorize'
compile MarkImage.cpp with g++48 -Wall -fuse-linker-plugin -fuse-ld=gold -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -Wl,-rpath=/usr/local/lib32/metin2 -std=c++11 -static -static-libgcc -static-libstdc++ -Wno-strict-aliasing -g -ggdb -DNDEBUG -ffast-math -funsafe-loop-optimizations -ftracer -fira-loop-pressure -funroll-loops -finline-functions -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-loop-distribution -ftree-partial-pre -ftree-vectorize -ftree-loop-vectorize -ftree-loop-distribute-patterns -ftree-slp-vectorize -fipa-cp-clone -mtune=i686 -march=i686 -mssse3
Makefile:140: recipe for target 'OBJDIR/BattleArena.o' failed
gmake: *** [OBJDIR/BattleArena.o] Error 1
gmake: *** Waiting for unfinished jobs....
g++48: error: unrecognized command line option '-ftree-loop-vectorize'
Makefile:140: recipe for target 'OBJDIR/FSM.o' failed
gmake: *** [OBJDIR/FSM.o] Error 1
g++48: error: unrecognized command line option '-ftree-loop-vectorize'
Makefile:140: recipe for target 'OBJDIR/MarkConvert.o' failed
gmake: *** [OBJDIR/MarkConvert.o] Error 1
g++48: error: unrecognized command line option '-ftree-loop-vectorize'
Makefile:140: recipe for target 'OBJDIR/MarkImage.o' failed
gmake: *** [OBJDIR/MarkImage.o] Error 1

 

remove the string -ftree-loop-vectorize the makefile

 

Thanks it works.

now i get this error

gmake -j20
compile BattleArena.cpp
compile FSM.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile MarkConvert.cpp
compile MarkImage.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile MarkManager.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile OXEvent.cpp
compile TrafficProfiler.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile ani.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile arena.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile banword.cpp
compile battle.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile blend_item.cpp
compile block_country.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile buffer_manager.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile building.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile castle.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile char.cpp
compile char_affect.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile char_battle.cpp
compile char_change_empire.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
In file included from FSM.cpp:4:0:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
Makefile:131: recipe for target 'OBJDIR/FSM.o' failed
gmake: *** [OBJDIR/FSM.o] Error 1
gmake: *** Waiting for unfinished jobs....
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from MarkConvert.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from TrafficProfiler.cpp:10:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from buffer_manager.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from block_country.cpp:10:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from MarkImage.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from MarkManager.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from blend_item.cpp:10:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
Makefile:131: recipe for target 'OBJDIR/MarkImage.o' failed
gmake: *** [OBJDIR/MarkImage.o] Error 1
Makefile:131: recipe for target 'OBJDIR/buffer_manager.o' failed
gmake: *** [OBJDIR/buffer_manager.o] Error 1
Makefile:131: recipe for target 'OBJDIR/TrafficProfiler.o' failed
gmake: *** [OBJDIR/TrafficProfiler.o] Error 1
Makefile:131: recipe for target 'OBJDIR/block_country.o' failed
gmake: *** [OBJDIR/block_country.o] Error 1
Makefile:131: recipe for target 'OBJDIR/blend_item.o' failed
gmake: *** [OBJDIR/blend_item.o] Error 1
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
Makefile:131: recipe for target 'OBJDIR/MarkConvert.o' failed
gmake: *** [OBJDIR/MarkConvert.o] Error 1
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from building.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from OXEvent.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from ani.cpp:10:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from char_change_empire.cpp:2:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from arena.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from char_affect.cpp:2:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from battle.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from banword.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from castle.cpp:12:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from ani.cpp:11:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
char.cpp:7221:3: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
   return 2500000000;
   ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from char.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from char_battle.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from castle.cpp:21:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from banword.h:5,
                 from banword.cpp:3:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from char_affect.cpp:5:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from char_change_empire.cpp:4:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from questmanager.h:4,
                 from OXEvent.cpp:4:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from questmanager.h:4,
                 from arena.cpp:8:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from char.cpp:6:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from battle.cpp:5:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from desc_manager.h:4,
                 from char_battle.cpp:5:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
Makefile:131: recipe for target 'OBJDIR/MarkManager.o' failed
gmake: *** [OBJDIR/MarkManager.o] Error 1
Makefile:131: recipe for target 'OBJDIR/ani.o' failed
gmake: *** [OBJDIR/ani.o] Error 1
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from building.cpp:8:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
Makefile:131: recipe for target 'OBJDIR/banword.o' failed
gmake: *** [OBJDIR/banword.o] Error 1
Makefile:131: recipe for target 'OBJDIR/BattleArena.o' failed
gmake: *** [OBJDIR/BattleArena.o] Error 1
Makefile:131: recipe for target 'OBJDIR/castle.o' failed
gmake: *** [OBJDIR/castle.o] Error 1
Makefile:131: recipe for target 'OBJDIR/char_change_empire.o' failed
gmake: *** [OBJDIR/char_change_empire.o] Error 1
Makefile:131: recipe for target 'OBJDIR/OXEvent.o' failed
gmake: *** [OBJDIR/OXEvent.o] Error 1
Makefile:131: recipe for target 'OBJDIR/char_affect.o' failed
gmake: *** [OBJDIR/char_affect.o] Error 1
Makefile:131: recipe for target 'OBJDIR/battle.o' failed
gmake: *** [OBJDIR/battle.o] Error 1
Makefile:131: recipe for target 'OBJDIR/arena.o' failed
gmake: *** [OBJDIR/arena.o] Error 1
Makefile:131: recipe for target 'OBJDIR/building.o' failed
gmake: *** [OBJDIR/building.o] Error 1
char_battle.cpp: In member function 'void CHARACTER::Reward(bool)':
char_battle.cpp:775:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
   if (GetLevel() - pkAttacker->GetLevel() >= -10)
      ^
char.cpp: In member function 'int CHARACTER::GetPolymorphPoint(BYTE) const':
char.cpp:2880:57: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      if (GetJob() == JOB_SHAMAN || GetJob() == JOB_SURA && GetSkillGroup() == 2)
                                                         ^
char.cpp: In member function 'void CHARACTER::PointChange(BYTE, int, bool, bool)':
char.cpp:3088:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (amount < 0 && exp < -amount)
                              ^
char.cpp: In member function 'void CHARACTER::SetTarget(LPCHARACTER)':
char.cpp:5103:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if (m_pkChrTarget->IsPC() && !m_pkChrTarget->IsPolymorphed() || m_pkChrTarget->GetMaxHP() <= 0)
                             ^
char.cpp: In member function 'bool CHARACTER::CanSummon(int)':
char.cpp:6288:49: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  return (iLeaderShip >= 20 || iLeaderShip >= 12 && m_dwLastDeadTime + 180 > get_dword_time());
                                                 ^
Makefile:131: recipe for target 'OBJDIR/char_battle.o' failed
gmake: *** [OBJDIR/char_battle.o] Error 1
Makefile:131: recipe for target 'OBJDIR/char.o' failed
gmake: *** [OBJDIR/char.o] Error 1

the virtual machine is 64-bit or 32?

 

I have try 64 and 32-bit

~~ Mein System ~~

Prozessor: Intel® Core™ i7-4790K
Mailboard: Gigabyte GA-Z97X-Gaming 3
Arbeitsspeicher: G.Skill 8GB KIT PC3-17000 DDR3-2133 CL10 Sniper
Festplatte/n: 512GB SSD / 1TB HDD
Grafikkarten: 2x Gigabyte Radeon HD 6970 OC

Kühlung: EKWB Wasserkühlung

 

 

Link to comment
Share on other sites

  • 3 weeks later...
Later edit:
In FreeBSD 10 after install gcc48 must do as root:
cd /usr/local/bin
ln -s /usr/local/bin/gcc /usr/local/bin/gcc48
ln -s /usr/local/bin/g++ /usr/local/bin/gcc48

After that, if your source is free of errors (especialy in Makefiles) you can build your own server.
Tested with novaline today on FreeBSD 10.1-RELEASE-p10 32 bit

root@:/usr/src/novaline/Srcs/Server # gmake
Makefile:47: warning: overriding recipe for target 'libserverkey'
Makefile:13: warning: ignoring old recipe for target 'libserverkey'
gmake -C libthecore/src dep
gmake[1]: Entering directory '/usr/src/novaline/Srcs/Server/libthecore/src'
g++ -Wall -O2 -pipe -mcpu=i686 -g -I../include -MM *.c > Depend
g++: not found
Makefile:33: recipe for target 'dep' failed
gmake[1]: *** [dep] Error 127
gmake[1]: Leaving directory '/usr/src/novaline/Srcs/Server/libthecore/src'
Makefile:41: recipe for target 'libthecore' failed
gmake: *** [libthecore] Error 2

uname -a
FreeBSD .localhost 10.1-RELEASE-p10 FreeBSD 10.1-RELEASE-p10
pkg info | grep gcc
gcc-4.8.4_3                    GNU Compiler Collection 4.8
gcc-ecj-4.5                    Eclipse Java Compiler used to build GCC Java

Machine is one PowerEdge with hardware (include here memory) ok.

Source of mt2 is from kraizy.tgz

If any other info is necesary please ask about.

Any advice is welcome.

Thank you in advance.

Edited by CjMt2
solution
Link to comment
Share on other sites

root@:/usr/src/novaline/Srcs/Server # gmake
Makefile:47: warning: overriding recipe for target 'libserverkey'
Makefile:13: warning: ignoring old recipe for target 'libserverkey'
gmake -C libthecore/src dep
gmake[1]: Entering directory '/usr/src/novaline/Srcs/Server/libthecore/src'
g++ -Wall -O2 -pipe -mcpu=i686 -g -I../include -MM *.c > Depend
g++: not found
Makefile:33: recipe for target 'dep' failed
gmake[1]: *** [dep] Error 127
gmake[1]: Leaving directory '/usr/src/novaline/Srcs/Server/libthecore/src'
Makefile:41: recipe for target 'libthecore' failed
gmake: *** [libthecore] Error 2

uname -a
FreeBSD .localhost 10.1-RELEASE-p10 FreeBSD 10.1-RELEASE-p10
pkg info | grep gcc
gcc-4.8.4_3                    GNU Compiler Collection 4.8
gcc-ecj-4.5                    Eclipse Java Compiler used to build GCC Java

Machine is one PowerEdge with hardware (include here memory) ok.

Source of mt2 is from kraizy.tgz

If any other info is necesary please ask about.

Any advice is welcome.

Thank you in advance.

 

Intra pe mess si iti dau eu pm, :D Si te ajut.

  • Love 1
Link to comment
Share on other sites

  • 1 year later...

next error:

compile xmas_event.cpp
linking....
/usr/bin/ld: skipping incompatible ../../../extern/mysql/lib/libmysqlclient.a when searching for -lmysqlclient
/usr/bin/ld: cannot find -lmysqlclient
c++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake: *** [Makefile:242: game] Error 1

 

Link to comment
Share on other sites

  • 1 year later...
  • 8 months later...
On 2/9/2014 at 7:27 PM, Denis said:

Hello guys today i'm gonna show u how to compile the source in freebsd.
 
First of all you need and dns or a dedicated server because in hamachi server we can not use the fetch command
 
We will install Gmake,Makedepend,Svn(subversion),Devil,G++
 
1)gmake:


cd /usr/ports/devel/gmake && make install clean

2)makedepend:
 


cd /usr/ports/devel/makedepend && make install clean

 
3)svn:
 


cd /usr/ports/devel/subversion && make install clean

 
4)devil:
 


cd /usr/ports/graphics/devil && make install clean

5)G++:


cd /usr/ports/lang/gcc48/ && make install clean

NOTE: if you have already installed some of this step just skip the step and follow the other
 
Then you do this:
    From libdevil/ copy all .a files into /usr/lib
    From libgame/From lib copy the From libgame.a file into /usr/lib
    From libhackshield/From lib copy the From libanticpxsvr.a file into /usr/lib
    From liblua/From lib copy the .a files into /usr/lib
    From libpoly/ copy the .o files into /usr/lib
    From libserverkey/ copy the .o files into /usr/lib
    From libthecore/From lib copy the From libthecore.a files into /usr/lib

After copying the files into the /usr/lib do this:
 
go to Extern folder of the novaline and open the include folder and copy everything into /usr/include
go to Extern/Lib folder of the novaline branch and copy everything from there to /usr/lib
go to Extern folder of the novaline branch and drag the cryptopp and openssl folders into /usr/include
 
So we have installed everything then we have to upload the branch novaline into /usr/src
then u give this command in freebsd:
 

cd /usr/src/novaline/Server


cd /usr/src/novaline/Server/
gmake

 To build db:


cd /usr/src/novaline/Server/db/src
gmake clean
gmake -j20

To build game:


cd /usr/src/novaline/Server/game/src
gmake clean
gmake -j20

Fixing the error:


g++ directory": No such file or directory

Solution: here

Solution: here

Link Down can Update?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.