All of lore.kernel.org
 help / color / mirror / Atom feed
* Build failure for kernel 4.9.94 for perf
@ 2018-04-15 12:31 Pavlos Parissis
  2018-04-16  8:14 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Pavlos Parissis @ 2018-04-15 12:31 UTC (permalink / raw)
  To: namhyung; +Cc: stable, dsahern, a.p.zijlstra, wangnan0


[-- Attachment #1.1: Type: text/plain, Size: 1795 bytes --]

Hi,

Building 4.9.94 in the same way we have been building previous 4.9 releases yields the following error:

DEBUG: tests/code-reading.c: In function 'read_object_code':
DEBUG: tests/code-reading.c:228:19: error: 'KMOD_DECOMP_LEN' undeclared (first use in this function)
DEBUG:   char decomp_name[KMOD_DECOMP_LEN];
DEBUG:                    ^
DEBUG: tests/code-reading.c:228:19: note: each undeclared identifier is reported only once for each
function it appears in
DEBUG: tests/code-reading.c:291:3: warning: implicit declaration of function
'dso__decompress_kmodule_path' [-Wimplicit-function-declaration]
DEBUG:    if (dso__decompress_kmodule_path(al.map->dso, objdump_name,
DEBUG:    ^
DEBUG: tests/code-reading.c:291:3: warning: nested extern declaration of
'dso__decompress_kmodule_path' [-Wnested-externs]
DEBUG: tests/code-reading.c:228:7: warning: unused variable 'decomp_name' [-Wunused-variable]
DEBUG:   char decomp_name[KMOD_DECOMP_LEN];
DEBUG:        ^
DEBUG:   CC       tests/topology.o
DEBUG:   CC       tests/cpumap.o
DEBUG:   CC       tests/stat.o
DEBUG:   CC       tests/event_update.o
DEBUG: mv: cannot stat 'tests/.code-reading.o.tmp': No such file or directory
DEBUG: make[3]: *** [tests/code-reading.o] Error 1
DEBUG: make[3]: *** Waiting for unfinished jobs....
DEBUG: make[2]: *** [util] Error 2
DEBUG: make[1]: *** [libperf-in.o] Error 2
DEBUG: make[1]: *** Waiting for unfinished jobs....
DEBUG:   LD       bench/perf-in.o
DEBUG: make[2]: *** [tests] Error 2
DEBUG: make[1]: *** [perf-in.o] Error 2

As far as I can see, KMOD_DECOMP_LEN was introduced by 7525a238be8f ("perf tests: Decompress kernel
module before objdump"), but I have zero deep knowledge in this area so I may be very wrong here.

Cheers,
Pavlos Parissis




[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Build failure for kernel 4.9.94 for perf
  2018-04-15 12:31 Build failure for kernel 4.9.94 for perf Pavlos Parissis
@ 2018-04-16  8:14 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2018-04-16  8:14 UTC (permalink / raw)
  To: Pavlos Parissis; +Cc: namhyung, stable, dsahern, a.p.zijlstra, wangnan0

On Sun, Apr 15, 2018 at 02:31:07PM +0200, Pavlos Parissis wrote:
> Hi,
> 
> Building 4.9.94 in the same way we have been building previous 4.9 releases yields the following error:
> 
> DEBUG: tests/code-reading.c: In function 'read_object_code':
> DEBUG: tests/code-reading.c:228:19: error: 'KMOD_DECOMP_LEN' undeclared (first use in this function)
> DEBUG:   char decomp_name[KMOD_DECOMP_LEN];
> DEBUG:                    ^
> DEBUG: tests/code-reading.c:228:19: note: each undeclared identifier is reported only once for each
> function it appears in
> DEBUG: tests/code-reading.c:291:3: warning: implicit declaration of function
> 'dso__decompress_kmodule_path' [-Wimplicit-function-declaration]
> DEBUG:    if (dso__decompress_kmodule_path(al.map->dso, objdump_name,
> DEBUG:    ^
> DEBUG: tests/code-reading.c:291:3: warning: nested extern declaration of
> 'dso__decompress_kmodule_path' [-Wnested-externs]
> DEBUG: tests/code-reading.c:228:7: warning: unused variable 'decomp_name' [-Wunused-variable]
> DEBUG:   char decomp_name[KMOD_DECOMP_LEN];
> DEBUG:        ^
> DEBUG:   CC       tests/topology.o
> DEBUG:   CC       tests/cpumap.o
> DEBUG:   CC       tests/stat.o
> DEBUG:   CC       tests/event_update.o
> DEBUG: mv: cannot stat 'tests/.code-reading.o.tmp': No such file or directory
> DEBUG: make[3]: *** [tests/code-reading.o] Error 1
> DEBUG: make[3]: *** Waiting for unfinished jobs....
> DEBUG: make[2]: *** [util] Error 2
> DEBUG: make[1]: *** [libperf-in.o] Error 2
> DEBUG: make[1]: *** Waiting for unfinished jobs....
> DEBUG:   LD       bench/perf-in.o
> DEBUG: make[2]: *** [tests] Error 2
> DEBUG: make[1]: *** [perf-in.o] Error 2
> 
> As far as I can see, KMOD_DECOMP_LEN was introduced by 7525a238be8f ("perf tests: Decompress kernel
> module before objdump"), but I have zero deep knowledge in this area so I may be very wrong here.

Yeah, looks like I need to just revert this patch, thanks, I'll do that
for the next release.

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-04-16  8:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-15 12:31 Build failure for kernel 4.9.94 for perf Pavlos Parissis
2018-04-16  8:14 ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.