Bug 845758
| Summary: | perf for kernel-3.5.0-2.fc17.src.rpm won't build on Fedora 17, fails at traceevent | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | James <james> | ||||||
| Component: | kernel | Assignee: | Kernel Maintainer List <kernel-maint> | ||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 17 | CC: | gansalmon, itamar, jforbes, jonathan, kernel-maint, madhu.chinakonda | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2012-08-30 18:43:49 UTC | Type: | Bug | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
Created attachment 602261 [details]
Associated rpm-tmp
It's the perf bit it doesn't like. Adding --without perf to the rpmbuild command results in a successful build. 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. 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
|
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.