Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 75745 - dev-games/ode-0.5-r1 compile fails when debug is in USE
Summary: dev-games/ode-0.5-r1 compile fails when debug is in USE
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-26 19:50 UTC by Jeff Ames
Modified: 2005-01-28 21:12 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Ames 2004-12-26 19:50:25 UTC
ode-0.5-r1 compiles fine if I remove "debug", but won't compile with it in there.  Here's where it seems to go wrong:

g++ -c -Wall -fno-rtti -fno-exceptions -Wall -g -march=pentium3 -O3 -pipe -Iinclude -IOPCODE  -DdTRIMESH_ENABLED -O0 -o ode/src/collision_trimesh_trimesh.o ode/src/collision_trimesh_trimesh.cpp
OPCODE/OPC_TreeCollider.h: In function `int dCollideTTL(dxGeom*, dxGeom*, int, dContactGeom*, int)':
OPCODE/OPC_TreeCollider.h:53: sorry, unimplemented: inlining failed in call to 'void Opcode::BVTCache::ResetCountDown()': function not considered for inlining
ode/src/collision_trimesh_trimesh.cpp:35: sorry, unimplemented: called from here
ode/src/collision_trimesh_trimesh.cpp: At global scope:
ode/src/collision_trimesh_trimesh.cpp:947: warning: 'void GetTriangleGeometryCallback(udword, Opcode::VertexPointers&, udword)' defined but not used
ode/src/collision_trimesh_trimesh.cpp:1568: warning: 'int IntersectLineSegmentRay(dReal*, dReal*, dReal*, dReal*, dReal*)' defined but not used
make: *** [ode/src/collision_trimesh_trimesh.o] Error 1

# emerge info
Portage 2.0.51-r8 (default-linux/x86/2004.0, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-rc1 i686)
=================================================================
System uname: 2.6.10-rc1 i686 Intel(R) Pentium(R) III Mobile CPU      1200MHz
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4,dev-lang/python-2.2.3-r5 [2.3.4 (#1, Jun  6 2004, 03:17:07)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4, 2.2.3-r5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.9.3, 1.6.3, 1.5, 1.7.9, 1.4_p6, 1.8.5-r2
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.4.22
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks nostrip sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib acl acpi acpi4linux alsa apache2 arts auctex avi berkdb bitmap-fonts bonobo canna cdr cjk cpdflib crypt cups dba debug dga directfb dvd emacs encode esd ethereal fam fbcon flac foomaticdb fortran gd gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile i8x0 icc-pgo imagemagick imap imlib innodb ipv6 java jpeg junit ldap libwww mad mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pcmcia pdflib perl plotutils png ppds python qt quicktime readline samba sdl slang speex spell sse ssl svga tcltk tcpd tetex tiff truetype unicode usb wmf wxwindows xinerama xml xml2 xmms xv zlib video_cards_i830"
Comment 1 Stian Skjelstad 2004-12-26 20:39:11 UTC
WORKSFORME

Those kinds of "bugs" is a triggered a bit internally of g++ depending on optimize-flags and other options used. What gcc/g++ version do you use? Try to emerge with CXXFLAGS set to empty just to test.
Comment 2 Jeff Ames 2004-12-26 21:55:35 UTC
# gcc --version
gcc (GCC) 3.4.3 20041125 (Gentoo Linux 3.4.3-r1, ssp-3.4.3-0, pie-8.7.7)

I get the same error with nothing in CFLAGS/CXXFLAGS and removing as much as I could from the ode makefile's CFLAGS.

But the ode makefile is overriding my CFLAGS -O optimization.  Tweaking the ode makefile (config/makefile.unix-gcc) a bit, I can make it work.  Normally, debug uses -O0, whereas release uses -O2 by default.  Changing debug's value to -O2, -O3, or -Os works.  -O0 and -O1 both fail with the same error.
Comment 3 Stian Skjelstad 2004-12-27 20:33:10 UTC
Any C++ guys that can take a look and decide if there is a compiler bug or code bug that should be sent over to the author of the package?
Comment 4 SpanKY gentoo-dev 2004-12-27 21:31:31 UTC
ive seen this error with other packages (like xine) and i'm pretty sure it's a compiler bug
Comment 5 Boris Fersing (RETIRED) gentoo-dev 2005-01-08 16:20:40 UTC
same problem with the 0.5-r2 version !!
Comment 6 Mr. Bones. (RETIRED) gentoo-dev 2005-01-27 18:31:35 UTC
Builds fine for me.  Is this still an issue?
Comment 7 SpanKY gentoo-dev 2005-01-28 21:12:27 UTC
i took the lazy man's way out and removed USE=debug