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
So don't put -fPIC in your CFLAGS. You don't want to be compiling everything with that anyhow.