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

Bug 52864

Summary: dev-games/ode fails with CFLAGS="-fPIC"
Product: Gentoo Linux Reporter: Stéphane Gimenez <gentoo>
Component: New packagesAssignee: Gentoo Games <games>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Stéphane Gimenez 2004-06-03 03:15:49 UTC
asm declarations in "ode/src/timer.cpp" seem not to be compatible with -fPIC flag.

Reproducible: Always
Steps to Reproduce:
1. CFLAGS="-fPIC" emerge ode

Actual Results:  
g++ -c -Wall -fno-rtti -fno-exceptions -Wall -fomit-frame-pointer -ffast-math
-fPIC -Iinclude   -DdNODEBUG -O2 -o ode/src/timer.o ode/src/timer.cpp
ode/src/timer.cpp: In function `void dStopwatchStart(dStopwatch*)':
ode/src/timer.cpp:122: error: PIC register `%ebx' clobbered in `asm'
make: *** [ode/src/timer.o] Error 1
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2004-06-03 18:37:31 UTC
So don't put -fPIC in your CFLAGS.  You don't want to be compiling everything
with that anyhow.