2013-07-29 18:09:08

by Denis Kirjanov

[permalink] [raw]
Subject: [build failure] perf

Hi,

I'm having a problem compiling perf(mainline 3.11.0-rc3) on the old
x86 box, probably something wrong with the lex on my system:

CC util/parse-events.o
cc1: warnings being treated as errors
util/parse-events.c: In function 'parse_events__scanner':
util/parse-events.c:829: warning: implicit declaration of function
'parse_events_lex_init_extra'
util/parse-events.c:829: warning: nested extern declaration of
'parse_events_lex_init_extra'
make: *** [util/parse-events.o] Error 1

Thanks!


2013-07-30 14:55:26

by Denis Kirjanov

[permalink] [raw]
Subject: Re: [build failure] perf

CCing linux-kernel

One interesting observation is that perf fails to build on x86 using
gcc 4.1.2 with:
cc1: warnings being treated as errors
util/session.c: In function 'regs_dump__printf':
util/session.c:715: warning: dereferencing type-punned pointer will
break strict-aliasing rules
util/session.c:715: warning: dereferencing type-punned pointer will
break strict-aliasing rules

I was thinking about that something is wrong with u64 datatype but on
the other hand I can build it on my ppc32 system with gcc 4.5.4...

On 7/29/13, Denis Kirjanov <[email protected]> wrote:
> Hi,
>
> I'm having a problem compiling perf(mainline 3.11.0-rc3) on the old
> x86 box, probably something wrong with the lex on my system:
>
> CC util/parse-events.o
> cc1: warnings being treated as errors
> util/parse-events.c: In function 'parse_events__scanner':
> util/parse-events.c:829: warning: implicit declaration of function
> 'parse_events_lex_init_extra'
> util/parse-events.c:829: warning: nested extern declaration of
> 'parse_events_lex_init_extra'
> make: *** [util/parse-events.o] Error 1
>
> Thanks!
>