Bug 105271
Summary: | build fails on bad if (gcc 5.1) | ||
---|---|---|---|
Product: | Tracing/Profiling | Reporter: | René Bertin (rjvbertin) |
Component: | Perf tool | Assignee: | Arnaldo Carvalho de Melo (acme) |
Status: | RESOLVED DUPLICATE | ||
Severity: | blocking | CC: | colin.pitrat+kernelbug, jolsa, jolsa |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 3.14.53 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: | patch that fixes the issue following what must be the code author's intention |
Description
René Bertin
2015-09-30 08:22:34 UTC
hum, it works on my setup with gcc 5.1: [jolsa@krava perf]$ make BUILD: Doing 'make -j4' parallel build CC ui/browser.o LD ui/libperf-in.o LD libperf-in.o AR libperf.a LINK perf LINK libperf-gtk.so [jolsa@krava perf]$ gcc --version gcc (GCC) 5.1.1 20150618 (Red Hat 5.1.1-4) Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. it's the latest Arnaldo's tree, could you please retest? Retest in what sense? I did not add the -Werror=bool-compare option to the Makefile, and if the source hasn't been modified after the 3.14.53 release tarball was created I'd get the same failure. The real issue here is the syntax error on line 199, not whether or not the build is done with -Werror=bool-compare ... I'm using $ make -w -C tools -j2 perf I did set the optimisation to -O3 in tools/perf/config/feature-checks/Makefile, though I cannot imagine that changes anything to -Werror settings. I'm using "gcc (Ubuntu 5.1.0-0ubuntu11~14.04.1) 5.1.0"; maybe the exact set of warnings that become errors (or warnings that are enabled by default) is under control of the packager? This has been fixed in https://bugzilla.kernel.org/show_bug.cgi?id=76751 and should be closed shouldn't it ? |