The -fPIC compiler flag for gcc causes the devfsd-1.3.25-r4 and avidemux-2.0.12 ebuilds to fail to compile. Reproducible: Always Steps to Reproduce: 1. Make sure "-fPIC" is included in the CFLAGS variable of /etc/make.conf 2. emerge avidemux or emerge devfsd 3. Watch it die. Actual Results: When compiling devfsd: gcc -fomit-frame-pointer -march=athlon-xp -O3 -pipe -fomit-frame-pointer -fexpensive-optimizations -falign-functions=4 -ffast-math -fforce-addr -mfpmath=387,sse -fPIC -c check_kernel.c check_kernel.c: In function `check_kernel_version': check_kernel.c:11: can't find a register in class `BREG' while reloading `asm' distcc[5843] ERROR: compile on wrong.dungeon.com failed with exit code 1 make: *** [check_kernel.o] Error 1 !!! ERROR: sys-apps/devfsd-1.3.25-r4 failed. !!! Function src_compile, Line 34, Exitcode 2 !!! (no error message) And avidemux: gcc -DHAVE_CONFIG_H -I. -I. -I../.. -O2 -march=athlon-xp -O3 -pipe -fomit-frame-pointer -fexpensive-optimizations -falign-functions=4 -ffast-math -fforce-addr -mfpmath=387,sse -fPIC -c `test -f cpu_accel.c || echo './'`cpu_accel.c /usr/include/inttypes.h: In function `arch_accel': cpu_accel.c:87: can't find a register in class `BREG' while reloading `asm' cpu_accel.c:93: can't find a register in class `BREG' while reloading `asm' cpu_accel.c:101: can't find a register in class `BREG' while reloading `asm' cpu_accel.c:105: can't find a register in class `BREG' while reloading `asm' distcc[23869] ERROR: compile on wrong.dungeon.com failed with exit code 1 make[3]: *** [cpu_accel.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/avidemux-2.0.12/work/avidemux-2.0.12/avidemux/libMpeg2Dec' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/avidemux-2.0.12/work/avidemux-2.0.12/avidemux' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/avidemux-2.0.12/work/avidemux-2.0.12' make: *** [all] Error 2 !!! ERROR: media-video/avidemux-2.0.12 failed. !!! Function src_compile, Line 67, Exitcode 2 !!! make failed Expected Results: Should have compiled and emerged properly. This bug can be resolved by removing the -fPIC command from the CFLAGS variable. The credit goes to Nem0 of the Gentoo Forums (http://forums.gentoo.org/viewtopic.php?t=72293&start=0&postdays=0&postorder=asc&highlight=) for solving this one. Unsure if it occurs on any hardware other than x86, since the error is from assembly. Stripping -fPIC from the CFLAGS variable in the offending ebuilds should fix this problem.
Drop -pipe -fomit-frame-pointer from your C[XX]FLAGS, and try again. Else try to drop a few other CFLAGS. BTW: next time please add a bug per issue.
drop -fPIC. I got the same bug, and -fPIC was the culprit. Regards, Norberto
"-fPIC" has not to be in your CFLAGS there's a USE flag if you which to use -fPIC