Re: perf build error with gcc 10 on arm and aarch64

2020-05-05 Thread Leo Yan
On Tue, May 05, 2020 at 04:11:14PM +0300, Thomas Backlund wrote: > Den 05-05-2020 kl. 07:10, skrev Leo Yan: > > > > Hi Thomas, > > > > [ + Mathieu/Mike/Suzuki ] > > > > On Mon, May 04, 2020 at 10:22:27PM +0300, Thomas Backlund wrote: > > > This is building perf from kernel-5.6.10 on armv7hl and

Re: perf build error with gcc 10 on arm and aarch64

2020-05-05 Thread Thomas Backlund
Den 05-05-2020 kl. 07:10, skrev Leo Yan: Hi Thomas, [ + Mathieu/Mike/Suzuki ] On Mon, May 04, 2020 at 10:22:27PM +0300, Thomas Backlund wrote: This is building perf from kernel-5.6.10 on armv7hl and aarch64: Compiler is gcc 10.1.0-RC LD perf-in.o ld: arch/perf-in.o: in function

Re: perf build error with gcc 10 on arm and aarch64

2020-05-05 Thread Leo Yan
Hi Mike, On Tue, May 05, 2020 at 11:26:49AM +0100, Mike Leach wrote: > Hi Leo, > > This is caused by GCC 10 new default to -fno-common. Temporarily > adding this to perf build reproduces issue with other compilers, > including x86 build of perf with cs-etm. Good to know how to reproduce this

Re: perf build error with gcc 10 on arm and aarch64

2020-05-05 Thread Mike Leach
Hi Leo, This is caused by GCC 10 new default to -fno-common. Temporarily adding this to perf build reproduces issue with other compilers, including x86 build of perf with cs-etm. As such - your fix is good to resolve this issue. Tested by / Reviewed by Mike Leach On Tue, 5 May 2020 at 05:11,

Re: perf build error with gcc 10 on arm and aarch64

2020-05-04 Thread Leo Yan
Hi Thomas, [ + Mathieu/Mike/Suzuki ] On Mon, May 04, 2020 at 10:22:27PM +0300, Thomas Backlund wrote: > This is building perf from kernel-5.6.10 on armv7hl and aarch64: > > Compiler is gcc 10.1.0-RC > > > LD perf-in.o > ld: arch/perf-in.o: in function `.LANCHOR0': >

perf build error with gcc 10 on arm and aarch64

2020-05-04 Thread Thomas Backlund
This is building perf from kernel-5.6.10 on armv7hl and aarch64: Compiler is gcc 10.1.0-RC LD perf-in.o ld: arch/perf-in.o: in function `.LANCHOR0': /home/iurt/rpmbuild/BUILD/kernel-arm/linux-5.6/tools/perf/util/include/../../util/cs-etm.h:118: multiple definition of `traceid_list';