Bug 845758 - perf for kernel-3.5.0-2.fc17.src.rpm won't build on Fedora 17, fails at traceevent
Summary: perf for kernel-3.5.0-2.fc17.src.rpm won't build on Fedora 17, fails at trace...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-04 17:09 UTC by James
Modified: 2012-08-30 18:43 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-08-30 18:43:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Last few lines of output before build failed (9.82 KB, text/plain)
2012-08-04 17:09 UTC, James
no flags Details
Associated rpm-tmp (11.58 KB, text/plain)
2012-08-04 17:09 UTC, James
no flags Details

Description James 2012-08-04 17:09:12 UTC
Created attachment 602260 [details]
Last few lines of output before build failed

Description of problem:
I'm attempting to build kernel-3.5.0-2.fc17 with CONFIG_HID_BATTERY disabled (via the config-local mechanism). The RPM build eventually fails at:


/home/james/src/rpmbuild/BUILD/kernel-3.5.fc17/linux-3.5.0-2.nspire2760.22.fc17.x86_64/tools/lib/traceevent/event-parse.c:5049:17: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
cc1: all warnings being treated as errors
make[1]: *** [event-parse.o] Error 1
make: *** [../lib/traceevent//libtraceevent.a] Error 2
make: *** Waiting for unfinished jobs....
error: Bad exit status from /var/tmp/rpm-tmp.hqbj06 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.hqbj06 (%build)


More transcript is attached. Build was started from the .src.rpm from Koji, using


  rpmbuild -bb SPECS/kernel.spec --with baseonly --without debuginfo --define 'buildid .nspire2760.22'


This is with [lib]gcc 4.7.0; upgrading to 4.7.1 didn't help. Never had any trouble building 3.4-series kernels this way.

Comment 1 James 2012-08-04 17:09:50 UTC
Created attachment 602261 [details]
Associated rpm-tmp

Comment 2 James 2012-08-04 17:37:00 UTC
It's the perf bit it doesn't like. Adding --without perf to the rpmbuild command results in a successful build.

Comment 3 Josh Boyer 2012-08-05 14:15:30 UTC
This SRPM already built on F17.  Otherwise there wouldn't be a build of it in koji.  If you really need to rebuild this for some reason, use mock.

Comment 4 Dave Jones 2012-08-06 15:28:49 UTC
We were missing this chunk when we rebased...
I added it to git, will be in the next build. In the meantime, apply this locally.


diff --git a/kernel.spec b/kernel.spec
index 9f4897a..9e286cb 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -1905,7 +1905,7 @@ BuildKernel %make_target %kernel_image smp
 %endif
 
 %global perf_make \
-  make %{?_smp_mflags} -C tools/perf -s V=1 EXTRA_CFLAGS="-Wno-error=array-bounds" HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix}
+  make %{?_smp_mflags} -C tools/perf -s V=1 WERROR=0 EXTRA_CFLAGS="-Wno-error=array-bounds" HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix}
 %if %{with_perf}
 # perf
 %{perf_make} all


Note You need to log in before you can comment on or make changes to this bug.