Ubuntu 10.04 64bit: ai_bot_npc.cpp:693: error: cast from ‘CBotNpc*’ to ‘uint32’ loses precision

Added by tnxgalaxy about 8 years ago

Hi everyone!

I'm trying to compile Ryzom server on Ubuntu 10.04 64bit.
On the 32bit version the exact same steps (wiki) works perfectly (tried on 2x different machines, every time with a fresh install of ubuntu to make sure no step is missing in the wiki), but for the 64bit version I'm getting the following errors:

make2: * [entities_game_service] Error 1
make2: Target `all' not remade because of errors.
make1:
[entities_game_service-all] Error 2
ai_bot_npc.cpp:693: error: cast from ‘CBotNpc*’ to ‘uint32’ loses precision
make2:
[ai_bot_npc.o] Error 1
ai_outpost.cpp:897: error: cast from ‘CGroupNpc*’ to ‘uint32’ loses precision
ai_outpost.cpp:914: error: cast from ‘CGroupNpc*’ to ‘uint32’ loses precision
ai_outpost.cpp:935: error: cast from ‘CGroupNpc*’ to ‘uint32’ loses precision
ai_outpost.cpp:951: error: cast from ‘CGroupNpc*’ to ‘uint32’ loses precision
ai_outpost.cpp:976: error: cast from ‘CGroupNpc*’ to ‘uint32’ loses precision
ai_outpost.cpp:991: error: cast from ‘CGroupNpc*’ to ‘uint32’ loses precision
ai_outpost.cpp:1014: error: cast from ‘CGroupNpc*’ to ‘uint32’ loses precision
ai_outpost.cpp:1024: error: cast from ‘CGroupNpc*’ to ‘uint32’ loses precision
make2:
[ai_outpost.o] Error 1
state_instance.cpp:163: error: cast from ‘void*’ to ‘int’ loses precision
make2:
[state_instance.o] Error 1
make2: Target `all' not remade because of errors.
make1:
[ai_service-all] Error 2
make1: Target `night' not remade because of errors.
make: *
* [night] Error 2

Could it be a problem with lua/luabind ? (which by the way I updated for ubuntu, and it works fine for the 32bit version)

Any idea about what could be wrong here ?

Cheers,

tnxgalaxy


Replies (6)

RE: Ubuntu 10.04 64bit: ai_bot_npc.cpp:693: error: cast from ‘CBotNpc*’ to ‘uint32’ loses precision - Added by kervala about 8 years ago

You can't compile servers in 64 bits for the moment until someone fix this issue :(

RE: Ubuntu 10.04 64bit: ai_bot_npc.cpp:693: error: cast from ‘CBotNpc*’ to ‘uint32’ loses precision - Added by vl about 8 years ago

There's an issue #847 about this.

It should now compile. If there's still a problem, post the problem on the issue.

RE: Ubuntu 10.04 64bit: ai_bot_npc.cpp:693: error: cast from ‘CBotNpc*’ to ‘uint32’ loses precision - Added by tnxgalaxy about 8 years ago

Cool ! it fixed the above error. Unfortunately there are other ones:

state_instance.cpp:163: error: cast from ‘void*’ to ‘int’ loses precision
make2: * [state_instance.o] Error 1
make2: Target `all' not remade because of errors.
make1:
[ai_service-all] Error 2
make1: Target `night' not remade because of errors.
make: *
* [night] Error 2
No email to send the error mail

Opening a new topic for it.

RE: Ubuntu 10.04 64bit: ai_bot_npc.cpp:693: error: cast from ‘CBotNpc*’ to ‘uint32’ loses precision - Added by vl about 8 years ago

Can you edit the state_instance.cpp line 163 and replace it with something like:

sw.append(" "+CStringMapper::unmap(varIt->first)+" = "+(int)(size_t)(void*)varIt->second);

and tell us if there s other error

(1-6/6)