Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25926 - The devfsd-1.3.25-r4 and avidemux-2.0.12 ebuilds fail to compile
Summary: The devfsd-1.3.25-r4 and avidemux-2.0.12 ebuilds fail to compile
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-04 20:05 UTC by Tim
Modified: 2003-08-06 06:24 UTC (History)
1 user (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 Tim 2003-08-04 20:05:09 UTC
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.
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-08-04 21:22:44 UTC
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.
Comment 2 Norberto Bensa 2003-08-05 01:04:35 UTC
drop -fPIC. I got the same bug, and -fPIC was the culprit. 
 
Regards, 
Norberto 
 
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-08-06 06:24:35 UTC
"-fPIC" has not to be in your CFLAGS
there's a USE flag if you which to use -fPIC