Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52864 - dev-games/ode fails with CFLAGS="-fPIC"
Summary: dev-games/ode fails with CFLAGS="-fPIC"
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-03 03:15 UTC by Stéphane Gimenez
Modified: 2004-06-03 18:37 UTC (History)
0 users

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 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.