Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2865327imm; Fri, 24 Aug 2018 06:44:32 -0700 (PDT) X-Google-Smtp-Source: ANB0VdafIO6GkxU9CVAjj48VWUebxvH6bNl+gxV3puahZm8zX1WOtwTMQEbAvKyKOmrJKHRAhZQw X-Received: by 2002:a63:5e45:: with SMTP id s66-v6mr1796326pgb.151.1535118272406; Fri, 24 Aug 2018 06:44:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535118272; cv=none; d=google.com; s=arc-20160816; b=kZjRIFuUjuL5HWbvwhfiMv5dpH1MzMnJOej1uGL60pd8dWHkRYLfiPdR3CL1Kwx37A cjQeGzdexFJF4mvthjRgDWQwdG+yyjs7VnCDskamWGW1hU6taC/tyaSOe6s9dPjNcKi6 KKKn9KkIz6MrZoWClzBK7/R+SPuJbjf6LYlVbUsYZMY3Qy50n4QtXoopS/TBtQVJI7xd x5CleslYT60w8d5JNo62o/uUcd83lu4daL8wYoz9fFgI+X3ql2htrfPNDMdqJnO5Zl+C ZdeAdrcRX8K8kOS0kr7Ln2MFZIvO7RXApMInebceSTCsQ+t8KYmCB/Dc7Qyh3UmonaIR sX4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=9VMGd5jbhgOmjQeabK0wa1pp8ussjzhfcLS+Iq+Xugg=; b=aZY1XCp1yw5EO2Rm+77F3TlT93Ya4D+qB0OzDB+HNf2cm+2hWuWPp+GjFeXJg3EGPF k8QXp61GhKpYBlEQSzSUjBPcHdosNpkdAeJ4iI8geHAYPjJNENZe1KrbIHlLW1xZAW4Y vPhwX3wNkQBuJV5AXPORpnVQ6nDmRxKSpa/FIqiSkGefrFJnpyD1BX4PVLcKGjGjYye3 cDG5CwUbdwNt1W8+dTx6rmASG8RuBbh347keiu2Oi2R9zq6DbNkMWpaYLmhOauqL/xfm ygdCJooGn+TEj3NaMlJM/ZXNoz7PBZKFOdqKg2sj+IrijSmjboCjo40IxZxUSopBzM2h 0e/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s12-v6si6531404plp.464.2018.08.24.06.44.06; Fri, 24 Aug 2018 06:44:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727615AbeHXRRq convert rfc822-to-8bit (ORCPT + 99 others); Fri, 24 Aug 2018 13:17:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:39980 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726960AbeHXRRq (ORCPT ); Fri, 24 Aug 2018 13:17:46 -0400 Received: from gandalf.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EF5E12151C; Fri, 24 Aug 2018 13:43:00 +0000 (UTC) Date: Fri, 24 Aug 2018 09:42:59 -0400 From: Steven Rostedt To: Arnaldo Carvalho de Melo Cc: LKML , Ingo Molnar , Jiri Olsa , Tzvetomir Stoyanov , Yordan Karadzhov , Linux Trace Devel , Tiago Macieira Subject: Re: libtracevent build warnings on Clear Linux (gcc 8.2.0) Message-ID: <20180824094259.3e7dfbc7@gandalf.local.home> In-Reply-To: <20180820133943.GB21100@kernel.org> References: <20180820133943.GB21100@kernel.org> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 20 Aug 2018 10:39:43 -0300 Arnaldo Carvalho de Melo wrote: > Hi guys, > > I noticed this while working on a new perf build container for the Clear > Linux distro, can you take a look at it so that we get the build clean on Clear? These all look like the compiler is being stupid. Do you think we really need to address it? -- Steve > > - Arnaldo > > root@28864dcfe31b /git/perf # gcc -v > Using built-in specs. > COLLECT_GCC=gcc > COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-generic-linux/8.2.0/lto-wrapper > Target: x86_64-generic-linux > Configured with: ../gcc-8.2.0/configure --prefix=/usr --with-pkgversion='Clear Linux OS for Intel Architecture' --libdir=/usr/lib64 --enable-libstdcxx-pch --libexecdir=/usr/lib64 --with-system-zlib --enable-shared --enable-gnu-indirect-function --disable-vtable-verify --enable-threads=posix --enable-__cxa_atexit --enable-plugin --enable-ld=default --enable-clocale=gnu --disable-multiarch --enable-multilib --enable-lto --enable-linker-build-id --build=x86_64-generic-linux --target=x86_64-generic-linux --enable-languages=c,c++,fortran,go --enable-bootstrap --with-ppl=yes --with-isl --includedir=/usr/include --with-gxx-include-dir=/usr/include/c++/ --exec-prefix=/usr --with-glibc-version=2.19 --disable-libunwind-exceptions --with-gnu-ld --with-tune=haswell --with-arch=westmere --disable-libmpx > Thread model: posix > gcc version 8.2.0 (Clear Linux OS for Intel Architecture) > root@28864dcfe31b /git/perf # > > root@28864dcfe31b /git # swupd bundle-add c-basic > Downloading packs... > > Extracting c-basic pack for version 24500 > ...50% > Extracting perl-basic pack for version 24430 > ...100% > Starting download of remaining update content. This may take a while... > ...100% > Finishing download of update content... > Installing bundle(s) files... > ...100% > Calling post-update helper scripts. > Successfully installed 1 bundle > root@28864dcfe31b /git # > root@28864dcfe31b /git/perf # make -C tools/perf O=/tmp/build/perf > make: Entering directory '/git/perf/tools/perf' > BUILD: Doing 'make -j4' parallel build > HOSTCC /tmp/build/perf/fixdep.o > HOSTLD /tmp/build/perf/fixdep-in.o > LINK /tmp/build/perf/fixdep > > Auto-detecting system features: > ... dwarf: [ OFF ] > ... dwarf_getlocations: [ OFF ] > ... glibc: [ on ] > ... gtk2: [ OFF ] > ... libaudit: [ OFF ] > ... libbfd: [ on ] > ... libelf: [ OFF ] > ... libnuma: [ OFF ] > ... numa_num_possible_cpus: [ OFF ] > ... libperl: [ on ] > ... libpython: [ OFF ] > ... libslang: [ OFF ] > ... libcrypto: [ OFF ] > ... libunwind: [ OFF ] > ... libdw-dwarf-unwind: [ OFF ] > ... zlib: [ on ] > ... lzma: [ OFF ] > ... get_cpuid: [ on ] > ... bpf: [ on ] > > Makefile.config:318: No libelf found. Disables 'probe' tool, jvmti and BPF support in 'perf record'. Please install libelf-dev, libelf-devel or elfutils-libelf-devel > Makefile.config:445: No sys/sdt.h found, no SDT events are defined, please install systemtap-sdt-devel or systemtap-sdt-dev > Makefile.config:518: Disabling post unwind, no support found. > Makefile.config:583: No libcrypto.h found, disables jitted code injection, please install libssl-devel or libssl-dev > Makefile.config:598: slang not found, disables TUI support. Please install slang-devel, libslang-dev or libslang2-dev > Makefile.config:612: GTK2 not found, disables GTK2 support. Please install gtk2-devel or libgtk2.0-dev > Makefile.config:666: No python interpreter was found: disables Python support - please install python-devel/python-dev > Makefile.config:750: No liblzma found, disables xz kernel module decompression, please install xz-devel/liblzma-dev > Makefile.config:763: No numa.h found, disables 'perf bench numa mem' benchmark, please install numactl-devel/libnuma-devel/libnuma-dev > Makefile.config:814: No libbabeltrace found, disables 'perf data' CTF format support, please install libbabeltrace-dev[el]/libbabeltrace-ctf-dev > GEN /tmp/build/perf/common-cmds.h > MKDIR /tmp/build/perf/fd/ > CC /tmp/build/perf/fd/array.o > CC /tmp/build/perf/event-parse.o > LD /tmp/build/perf/fd/libapi-in.o > MKDIR /tmp/build/perf/fs/ > CC /tmp/build/perf/fs/fs.o > MKDIR /tmp/build/perf/fs/ > CC /tmp/build/perf/fs/tracing_path.o > LD /tmp/build/perf/fs/libapi-in.o > CC /tmp/build/perf/cpu.o > CC /tmp/build/perf/debug.o > CC /tmp/build/perf/str_error_r.o > LD /tmp/build/perf/libapi-in.o > AR /tmp/build/perf/libapi.a > CC /tmp/build/perf/exec-cmd.o > MKDIR /tmp/build/perf/pmu-events/ > HOSTCC /tmp/build/perf/pmu-events/json.o > event-parse.c: In function ‘tep_find_event_by_name’: > event-parse.c:3519:21: warning: ‘event’ may be used uninitialized in this function [-Wmaybe-uninitialized] > pevent->last_event = event; > ~~~~~~~~~~~~~~~~~~~^~~~~~~ > MKDIR /tmp/build/perf/pmu-events/ > event-parse.c: In function ‘tep_data_lat_fmt’: > event-parse.c:5198:4: warning: ‘migrate_disable’ may be used uninitialized in this function [-Wmaybe-uninitialized] > trace_seq_printf(s, "%d", migrate_disable); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > event-parse.c:5205:4: warning: ‘lock_depth’ may be used uninitialized in this function [-Wmaybe-uninitialized] > trace_seq_printf(s, "%d", lock_depth); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > HOSTCC /tmp/build/perf/pmu-events/jsmn.o > event-parse.c: In function ‘tep_event_info’: > event-parse.c:5045:7: warning: ‘len_arg’ may be used uninitialized in this function [-Wmaybe-uninitialized] > trace_seq_printf(s, format, len_arg, (char)val); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > event-parse.c:4882:6: note: ‘len_arg’ was declared here > int len_arg; > ^~~~~~~ > event-parse.c:4336:11: warning: ‘vsize’ may be used uninitialized in this function [-Wmaybe-uninitialized] > val = tep_read_number(pevent, bptr, vsize); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > event-parse.c:4222:6: note: ‘vsize’ was declared here > int vsize; > ^~~~~ > CC /tmp/build/perf/help.o >