Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 135040

Summary: dev-games/ode-0.5-r4 fails to compile with gcc-4.1.1
Product: Gentoo Linux Reporter: Andrei Slavoiu <ansla80>
Component: [OLD] GamesAssignee: Gentoo Games <games>
Status: VERIFIED FIXED    
Severity: normal CC: dlm1065, peper, voyageur
Priority: High    
Version: 2006.0   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 136357    
Bug Blocks: 117482    

Description Andrei Slavoiu 2006-05-31 06:21:12 UTC
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 &#8216;Opcode::AABBTreeNode::AABBTreeNode()&#8217;:
OPCODE/OPC_AABBTree.h:88: warning: &#8216;Opcode::AABBTreeNode::mNbPrimitives&#8217; will be initialized after
OPCODE/OPC_AABBTree.h:87: warning:   &#8216;udword* Opcode::AABBTreeNode::mNodePrimitives&#8217;
OPCODE/OPC_AABBTree.cpp:56: warning:   when initialized here
OPCODE/OPC_AABBTree.cpp: In destructor &#8216;Opcode::AABBTreeNode::~AABBTreeNode()&#8217;:
OPCODE/OPC_AABBTree.cpp:78: warning: unused variable &#8216;Neg&#8217;
OPCODE/OPC_AABBTree.cpp: In member function &#8216;bool Opcode::AABBTreeNode::Subdivide(Opcode::AABBTreeBuilder*)&#8217;:
OPCODE/OPC_AABBTree.cpp:295: error: cast from &#8216;Opcode::AABBTreeNode*&#8217; to &#8216;udword&#8217; loses precision
OPCODE/OPC_AABBTree.cpp:309: error: cast from &#8216;Opcode::AABBTreeNode*&#8217; to &#8216;udword&#8217; loses precision
OPCODE/OPC_AABBTree.h: In constructor &#8216;Opcode::AABBTree::AABBTree()&#8217;:
OPCODE/OPC_AABBTree.h:134: warning: &#8216;Opcode::AABBTree::mTotalNbNodes&#8217; will be initialized after
OPCODE/OPC_AABBTree.h:132: warning:   &#8216;Opcode::AABBTreeNode* Opcode::AABBTree::mPool&#8217;
OPCODE/OPC_AABBTree.cpp:373: warning:   when initialized here
make: *** [OPCODE/OPC_AABBTree.o] Error 1
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-05-31 10:59:56 UTC
*** Bug 135061 has been marked as a duplicate of this bug. ***
Comment 2 Piotr Jaroszyński (RETIRED) gentoo-dev 2006-06-05 08:53:44 UTC
works for me, so maybe add some details...
Comment 3 Piotr Jaroszyński (RETIRED) gentoo-dev 2006-06-05 09:19:20 UTC
ok, from the duplicate i see it's amd64 bug(plz set the flag...) so i won't be able to help.
Comment 4 Andrei Slavoiu 2006-06-05 11:10:10 UTC
Ok, changed hardware to AMD64 as it looks like it's a 64 bit specific issue.
Comment 5 Matteo Azzali (RETIRED) gentoo-dev 2006-06-08 06:27:52 UTC
Please check also bug #134866 and bug #135328 , seem the same identical bug
(cast from .... loses precision  on AMD64 systems)
Comment 6 Matteo Azzali (RETIRED) gentoo-dev 2006-06-08 06:36:24 UTC
also bug #134672 has the same error but this time for x86. 
(maybe this can help finding clues?)
Comment 7 Hanno Zysik (geki) 2006-06-11 15:48:48 UTC
JFYI, ODE 0.6 is released which seems to fix x86_64 issues.
Comment 8 Bernard Cafarelli gentoo-dev 2006-06-17 08:58:25 UTC
Indeed, I "solved" this compilation problem by using ode 0.6.0 ebuild from bug #136357

Works fine for me!
Comment 9 Tupone Alfredo gentoo-dev 2006-06-19 14:32:28 UTC
version 0.6 is in portage and is gcc-4.1 friendly
Comment 10 Andrei Slavoiu 2006-08-10 09:49:21 UTC
Closed.