Created attachment 874026 [details] oprofile_no_code_domain_switch.patch Description of problem: oprofile do not build on powerpc Version-Release number of selected component (if applicable): oprofile-0.9.9-2.18.g810bb80.fc21 Steps to Reproduce: 1. fedpkg clone -a oprofile 2. fedpkg prep 3. fedpkg mockbuild Actual results: gcc -DHAVE_CONFIG_H -I. -I.. -I ../libabi -I ../libutil -I ../libop -I ../libdb -W -Wall -fno-common -Wdeclaration-after-statement -Werror -fno-omit-frame-pointer -O2 -g -fsigned-char -c -o opd_trans.o opd_trans.c opd_trans.c:270:13: error: 'code_domain_switch' defined but not used [-Werror=unused-function] static void code_domain_switch(struct transient *trans) ^ cc1: all warnings being treated as errors Refer to patch in attachment to solve the problem (only tested on ppc64le)
Could you submit the attached patch to the oprofile upstream mailing list, oprofile-list.net, for review and inclusion by upstream oprofile? Then it will be pulled in automatically the next time the rawhide code is pulled from the upstream git repo.
(In reply to William Cohen from comment #1) > Could you submit the attached patch to the oprofile upstream mailing list, > oprofile-list.net, for review and inclusion by upstream > oprofile? Then it will be pulled in automatically the next time the rawhide > code is pulled from the upstream git repo. The patch of this bugzilla is a correction of the oprofile-0.9.7-xen.patch that is in fedora, but that is not in oprofile upstream.
I took a closer look at the patch and it looked reasonable, so added it to the rawhide spec file. You should be able to build oprofile-0.9.9-3.54.gb7e9a57.fc21 on powerpc. Please verify.
Verified, works. Thank you. Closing.