Hide Forgot
Trying to build cpufrequtils-008-2.fc15 fails on ppc: Compiling aperf.c. gcc -DVERSION="008" -DPACKAGE="cpufrequtils" -DPACKAGE_BUGREPORT="cpufreq@vge r.kernel.org" -D_GNU_SOURCE -DINTERFACE_PROC -DINTERFACE_SYSFS -O2 -g -pipe - Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffe r-size=4 -m32 -I. -I./lib/ -c -o utils/cpufreq-aperf.o utils/aperf.c utils/aperf.c: In function 'main': utils/cpuid.h:8:2: error: impossible register constraint in 'asm' utils/cpuid.h:8:2: error: impossible register constraint in 'asm' http://ppc.koji.fedoraproject.org/koji/buildinfo?buildID=27233
The cpuid op code is only available on x86/x86_64. Pre-008 versions cpufreq-aperf compiled cleanly since they used cpuid kernel driver (which wasn't available on ppc anyway). That's no longer the case; cpufrequtils-008 cpufreq-aperf utility uses its own cpuid call implementation. Let's just not build cpufreq-aperf on ppc/ppc64.
Should I add the ExcludeArch: ppc ppc64 lines?
No, the rest of the utilities provided should work on ppc/ppc64. This is only about cpufreq-aperf. A Makefile patch to exclude it from build is needed. I'll try to provide it soon.
Adrian, I've just pushed some changes and built 008-4. I'm not going to post this as an update for obvious reasons. Check out commit afec67817ca00400e201ea8dc9e74ffd9cfd051a. Does it work for you? Petr
Thanks a lot. That is it. It was able to build it successfully. http://ppc.koji.fedoraproject.org/koji/buildinfo?buildID=27283