Bug 675829

Summary: cpufrequtils-008-2.fc15 fails building on ppc
Product: [Fedora] Fedora Reporter: Adrian Reber <adrian>
Component: cpufrequtilsAssignee: Petr Šabata <psabata>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: psabata
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cpufrequtils-008-4.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-10 15:50:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Adrian Reber 2011-02-07 21:22:22 UTC
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

Comment 1 Petr Šabata 2011-02-08 10:07:25 UTC
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.

Comment 2 Adrian Reber 2011-02-08 21:47:13 UTC
Should I add the ExcludeArch: ppc ppc64 lines?

Comment 3 Petr Šabata 2011-02-09 13:48:01 UTC
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.

Comment 4 Petr Šabata 2011-02-10 12:34:16 UTC
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

Comment 5 Adrian Reber 2011-02-10 15:50:26 UTC
Thanks a lot. That is it. It was able to build it successfully.

http://ppc.koji.fedoraproject.org/koji/buildinfo?buildID=27283