Jump to content

mtmaps (OpenMP)


Recommended Posts

/usr/bin/ld: cannot find -ltbb
collect2: ld returned 1 exit status
make[3]: *** [mangos-realmd] Error 1
make[3]: Leaving directory `/home/test/objdir/src/realmd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/test/objdir/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/test/objdir'
make: *** [all] Error 2

Link to comment
Share on other sites

  • Replies 319
  • Created
  • Last Reply

Top Posters In This Topic

lo, i'm stupid :D how could I forget: (

one big thanks KERO

how to (for debian):

cd /root

wget http://www.threadingbuildingblocks.org/uploads/77/142/2.2/tbb22_20090809oss_src.tgz

tar xvfz tbb22_20090809oss_src.tgz

mv tbb22_20090809oss tbb

cd tbb/src

make

cd /root/tbb/build/linux*release

chmod 777 tbbvars.sh

./tbbvars.sh

and

cd /root/tbb/build/linux*release

cp *.2 /usr/lib

cd /usr/lib

ln -s libtbb.so.2 libtbb.so

ln -s libtbbmalloc.so.2 libtbbmalloc.so

ln -s libtbbmalloc_proxy.so.2 libtbbmalloc_proxy.so

and

http://pastebin.com/f66c0e16a

Link to comment
Share on other sites

Hey i get error while compiling :

Entering directory `/home/Luwow/mangossrc/objdir/src/shared'
g++ -DHAVE_CONFIG_H -I. -I../../../src/shared -I../..  -I/usr/include/mysql    -I../../src/shared -I../../../src/shared -I../../../src/shared/../../dep/include -I../../../src/shared/../framework -I../../../src/shared/../shared -I../../../src/shared/../../dep/include/g3dlite  -DSYSCONFDIR=\\"/home/Luwow/server/etc/\\"   -g -DMANGOS_DEBUG -DDO_MYSQL -g -O2 -MT Common.o -MD -MP -MF .deps/Common.Tpo -c -o Common.o ../../../src/shared/Common.cpp
mv -f .deps/Common.Tpo .deps/Common.Po
make[5]: *** No rule to make target `DelayExecutor.o', needed by `libmangosshared.a'.  Stop.

How to fix?

Link to comment
Share on other sites

Hey i get error while compiling :

Entering directory `/home/Luwow/mangossrc/objdir/src/shared'
g++ -DHAVE_CONFIG_H -I. -I../../../src/shared -I../..  -I/usr/include/mysql    -I../../src/shared -I../../../src/shared -I../../../src/shared/../../dep/include -I../../../src/shared/../framework -I../../../src/shared/../shared -I../../../src/shared/../../dep/include/g3dlite  -DSYSCONFDIR=\\"/home/Luwow/server/etc/\\"   -g -DMANGOS_DEBUG -DDO_MYSQL -g -O2 -MT Common.o -MD -MP -MF .deps/Common.Tpo -c -o Common.o ../../../src/shared/Common.cpp
mv -f .deps/Common.Tpo .deps/Common.Po
make[5]: *** No rule to make target `DelayExecutor.o', needed by `libmangosshared.a'.  Stop.

How to fix?

You not patch source correctly with mtmaps patch

Link to comment
Share on other sites

Confirmed, with tbb vector still crash ...

Program received signal SIGSEGV, Segmentation fault.
[switching to Thread 0x4a713950 (LWP 24846)]
Spell::DoAllEffectOnTarget (this=0x7f92f65c9a10, target=0x0)
   at ../../../src/game/Spell.cpp:995
995        if (target->processed)                                  // Check target
#0  Spell::DoAllEffectOnTarget (this=0x7f92f65c9a10, target=0x0)
   at ../../../src/game/Spell.cpp:995
#1  0x0000000000709d3c in Spell::handle_immediate (this=0x7f92f65c9a10)
   at ../../../src/game/Spell.cpp:2992
#2  0x0000000000708710 in Spell::cast (this=0x7f92f65c9a10, skipCheck=true)
   at ../../../src/game/Spell.cpp:2966
#3  0x00000000007585c0 in Unit::CastCustomSpell (this=0x7f9285b813a0, 
   Victim=0x7f929229f3b0, spellInfo=0x7f933fc616c0, bp0=0x4a7129b8, bp1=0x0, 
   bp2=0x0, triggered=<value optimized out>, castItem=0x0, 
   triggeredByAura=0x7f929e6036b0, originalCaster=0)
   at ../../../src/game/Unit.cpp:1068
#4  0x000000000076da0f in Unit::HandleDummyAuraProc (this=0x7f9285b813a0, 
   pVictim=0x7f929da708b0, damage=12975, triggeredByAura=0x7f929e6036b0, 
   procSpell=0x7f933f7cde10, procFlag=<value optimized out>, procEx=1, 
   cooldown=0) at ../../../src/game/Unit.cpp:7334
#5  0x00000000007716a6 in Unit::ProcDamageAndSpellFor (this=0x7f9285b813a0, 
   isVictim=false, pTarget=0x7f929da708b0, procFlag=262144, procExtra=1, 
   attType=BASE_ATTACK, procSpell=0x7f933f7cde10, damage=865)
   at ../../../src/game/Unit.cpp:12979
#6  0x000000000077224d in Unit::ProcDamageAndSpell (this=0x7f9285b813a0, 
   pVictim=0x7f929da708b0, procAttacker=<value optimized out>, 
   procVictim=<value optimized out>, procExtra=1, amount=865, 
   attType=BASE_ATTACK, procSpell=0x7f933f7cde10)
   at ../../../src/game/Unit.cpp:4911
#7  0x00000000006ed204 in Aura::PeriodicTick (this=0x7f92ce5ce2f0)
   at ../../../src/game/SpellAuras.cpp:7497
#8  0x00000000006eeb4a in Aura::Update (this=0x7f92ce5ce2f0, diff=2041)
   at ../../../src/game/SpellAuras.cpp:738
#9  0x000000000075c96e in Unit::_UpdateSpells (this=0x7f929da708b0, time=2041)
   at ../../../src/game/SpellAuras.h:333
#10 0x0000000000769437 in Unit::Update (this=0x7f929da708b0, p_time=2041)
   at ../../../src/game/Unit.cpp:212
#11 0x00000000006be893 in Player::Update (this=0x7f929da708b0, p_time=2041)
   at ../../../src/game/Player.cpp:1137
#12 0x0000000000600a60 in Map::Update (this=0x100329b0, t_diff=@0x4a7130a4)
   at ../../../src/game/Map.cpp:688
#13 0x00000000006124d8 in MapManager::Update (.omp_data_i=0x41926ba0)
   at ../../../src/game/MapManager.cpp:278

Link to comment
Share on other sites

your cashlog is simple lucky men :P

Spell::DoAllEffectOnTarget (this=0x7f92f65c9a10, target=0x0)

checkout before if (target->processed) if target exists (not NULL) ^_^

if this won't help move line creating pointer to unit before " if (target->processed)" and prior to it check if pointer was successfully created.

previously on std::list it was returning 0x10 what is not equal to NULL so that kind of check was useless ;-) and any attepts to access target were crashing server.

Link to comment
Share on other sites

your cashlog is simple lucky men :P

Spell::DoAllEffectOnTarget (this=0x7f92f65c9a10, target=0x0)

checkout before if (target->processed) if target exists (not NULL) ^_^

if this won't help move line creating pointer to unit before " if (target->processed)" and prior to it check if pointer was successfully created.

previously on std::list it was returning 0x10 what is not equal to NULL so that kind of check was useless ;-) and any attepts to access target were crashing server.

Target not NULL?

Link to comment
Share on other sites

tbb works but when I configure mangos sources, configure tells me that I've not installed ACE (because I desactivated the included ACE files) but there is some ACE files in /usr/local/ (I've linked this with /usr/ too)

Debian need /usr/lib/

ls -s /path/to_ace/libACE-5.7.6.so /usr/lib/libACE-5.7.6.so expamle.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

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. Privacy Policy Terms of Use