g++ -c -Wall -fno-rtti -fno-exceptions -Wall -fomit-frame-pointer -ffast-math -march=athlon64 -ggdb -O2 -pipe -fPIC -Iinclude -IOPCODE -DdTRIMESH_ENABLED -DdNODEBUG -O1 -o OPCODE/OPC_AABBTree.o OPCODE/OPC_AABBTree.cpp OPCODE/OPC_AABBTree.h: In constructor ‘Opcode::AABBTreeNode::AABBTreeNode()’: OPCODE/OPC_AABBTree.h:88: warning: ‘Opcode::AABBTreeNode::mNbPrimitives’ will be initialized after OPCODE/OPC_AABBTree.h:87: warning: ‘udword* Opcode::AABBTreeNode::mNodePrimitives’ OPCODE/OPC_AABBTree.cpp:56: warning: when initialized here OPCODE/OPC_AABBTree.cpp: In destructor ‘Opcode::AABBTreeNode::~AABBTreeNode()’: OPCODE/OPC_AABBTree.cpp:78: warning: unused variable ‘Neg’ OPCODE/OPC_AABBTree.cpp: In member function ‘bool Opcode::AABBTreeNode::Subdivide(Opcode::AABBTreeBuilder*)’: OPCODE/OPC_AABBTree.cpp:295: error: cast from ‘Opcode::AABBTreeNode*’ to ‘udword’ loses precision OPCODE/OPC_AABBTree.cpp:309: error: cast from ‘Opcode::AABBTreeNode*’ to ‘udword’ loses precision OPCODE/OPC_AABBTree.h: In constructor ‘Opcode::AABBTree::AABBTree()’: OPCODE/OPC_AABBTree.h:134: warning: ‘Opcode::AABBTree::mTotalNbNodes’ will be initialized after OPCODE/OPC_AABBTree.h:132: warning: ‘Opcode::AABBTreeNode* Opcode::AABBTree::mPool’ OPCODE/OPC_AABBTree.cpp:373: warning: when initialized here make: *** [OPCODE/OPC_AABBTree.o] Error 1
*** Bug 135061 has been marked as a duplicate of this bug. ***
works for me, so maybe add some details...
ok, from the duplicate i see it's amd64 bug(plz set the flag...) so i won't be able to help.
Ok, changed hardware to AMD64 as it looks like it's a 64 bit specific issue.
Please check also bug #134866 and bug #135328 , seem the same identical bug (cast from .... loses precision on AMD64 systems)
also bug #134672 has the same error but this time for x86. (maybe this can help finding clues?)
JFYI, ODE 0.6 is released which seems to fix x86_64 issues.
Indeed, I "solved" this compilation problem by using ode 0.6.0 ebuild from bug #136357 Works fine for me!
version 0.6 is in portage and is gcc-4.1 friendly
Closed.