Denis Sensei

Compile source on FreeBSD

167 posts in this topic

1)gmake:

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

Share this post


Link to post
Share on other sites

Still have this Warnings...

cDQgLKE.png

Already compile cryptopp new... :/

 

need help please!

Share this post


Link to post
Share on other sites

Yeah... look like yours..

jdu1k6C.png

 

 

Still have this Warnings...

cDQgLKE.png

Already compile cryptopp new... :/

 

need help please!

HELP PLZ?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

1 person likes this

Share this post


Link to post
Share on other sites

 


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

Share this post


Link to post
Share on other sites

 

 


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?

Share this post


Link to post
Share on other sites

 

 

 


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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
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.

1 person likes this

Share this post


Link to post
Share on other sites

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

 

Share this post


Link to post
Share on other sites

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

  • Recently Browsing   0 members

    No registered users viewing this page.