* linux-next: build failure after merge of the tip tree @ 2016-04-14 2:14 Stephen Rothwell 2016-04-14 12:35 ` Arnaldo Carvalho de Melo 2016-04-15 21:15 ` Arnaldo Carvalho de Melo 0 siblings, 2 replies; 11+ messages in thread From: Stephen Rothwell @ 2016-04-14 2:14 UTC (permalink / raw) To: Thomas Gleixner, Ingo Molnar, H. Peter Anvin, Peter Zijlstra Cc: linux-next, linux-kernel, Arnaldo Carvalho de Melo Hi all, After merging the tip tree, today's linux-next build (powerpc64le perf) failed like this: make[3]: *** No rule to make target '/home/sfr/next/perf/arch/x86/include/generated/asm/syscalls_64.c', needed by '/home/sfr/next/perf/util/syscalltbl.o'. Stop. (I build in /home/sfr/next/next with objects in /home/sfr/next/perf.) Presumably caused by commit 1b700c997500 ("perf tools: Build syscall table .c header from kernel's syscall_64.tbl") I have reverted that commit for today (which fixes my build problem but may not be overall correct). -- Cheers, Stephen Rothwell ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: linux-next: build failure after merge of the tip tree 2016-04-14 2:14 linux-next: build failure after merge of the tip tree Stephen Rothwell @ 2016-04-14 12:35 ` Arnaldo Carvalho de Melo 2016-04-14 12:55 ` Michael Ellerman 2016-04-15 21:15 ` Arnaldo Carvalho de Melo 1 sibling, 1 reply; 11+ messages in thread From: Arnaldo Carvalho de Melo @ 2016-04-14 12:35 UTC (permalink / raw) To: Stephen Rothwell Cc: Thomas Gleixner, Ingo Molnar, H. Peter Anvin, Peter Zijlstra, linux-next, linux-kernel Em Thu, Apr 14, 2016 at 12:14:18PM +1000, Stephen Rothwell escreveu: > Hi all, > > After merging the tip tree, today's linux-next build (powerpc64le perf) > failed like this: > > make[3]: *** No rule to make target '/home/sfr/next/perf/arch/x86/include/generated/asm/syscalls_64.c', needed by '/home/sfr/next/perf/util/syscalltbl.o'. Stop. > > (I build in /home/sfr/next/next with objects in /home/sfr/next/perf.) I'll check, should've been caught by a cross compiler build for ppc64le I have in place :-\ minimal-ubuntu-x-ppc64el: Ok But maybe not, as this requires audit-libs-devel and that is not present on that minimal ubuntu x-compiler setup, sigh :-\ - Arnaldo > Presumably caused by commit > > 1b700c997500 ("perf tools: Build syscall table .c header from kernel's syscall_64.tbl") > > I have reverted that commit for today (which fixes my build problem but > may not be overall correct). > > -- > Cheers, > Stephen Rothwell ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: linux-next: build failure after merge of the tip tree 2016-04-14 12:35 ` Arnaldo Carvalho de Melo @ 2016-04-14 12:55 ` Michael Ellerman 2016-04-14 15:08 ` Arnaldo Carvalho de Melo 0 siblings, 1 reply; 11+ messages in thread From: Michael Ellerman @ 2016-04-14 12:55 UTC (permalink / raw) To: Arnaldo Carvalho de Melo, Stephen Rothwell Cc: Thomas Gleixner, Ingo Molnar, H. Peter Anvin, Peter Zijlstra, linux-next, linux-kernel On Thu, 2016-04-14 at 09:35 -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Apr 14, 2016 at 12:14:18PM +1000, Stephen Rothwell escreveu: > > Hi all, > > > > After merging the tip tree, today's linux-next build (powerpc64le perf) > > failed like this: > > > > make[3]: *** No rule to make target '/home/sfr/next/perf/arch/x86/include/generated/asm/syscalls_64.c', needed by '/home/sfr/next/perf/util/syscalltbl.o'. Stop. > > > > (I build in /home/sfr/next/next with objects in /home/sfr/next/perf.) > > I'll check, should've been caught by a cross compiler build for ppc64le > I have in place :-\ > > minimal-ubuntu-x-ppc64el: Ok > > But maybe not, as this requires audit-libs-devel and that is not present > on that minimal ubuntu x-compiler setup, sigh :-\ Hi acme, I have a jenkins which builds perf on ppc64le, but it only builds Linus' tree and linux-next. Which branch in your tree should I be building in order to catch problems like this, perf/core ? https://git.kernel.org/cgit/linux/kernel/git/acme/linux.git/log/?h=perf/core cheers ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: linux-next: build failure after merge of the tip tree 2016-04-14 12:55 ` Michael Ellerman @ 2016-04-14 15:08 ` Arnaldo Carvalho de Melo 0 siblings, 0 replies; 11+ messages in thread From: Arnaldo Carvalho de Melo @ 2016-04-14 15:08 UTC (permalink / raw) To: Michael Ellerman Cc: Stephen Rothwell, Thomas Gleixner, Ingo Molnar, H. Peter Anvin, Peter Zijlstra, linux-next, linux-kernel Em Thu, Apr 14, 2016 at 10:55:47PM +1000, Michael Ellerman escreveu: > On Thu, 2016-04-14 at 09:35 -0300, Arnaldo Carvalho de Melo wrote: > > Em Thu, Apr 14, 2016 at 12:14:18PM +1000, Stephen Rothwell escreveu: > > > Hi all, > > > > > > After merging the tip tree, today's linux-next build (powerpc64le perf) > > > failed like this: > > > > > > make[3]: *** No rule to make target '/home/sfr/next/perf/arch/x86/include/generated/asm/syscalls_64.c', needed by '/home/sfr/next/perf/util/syscalltbl.o'. Stop. > > > > > > (I build in /home/sfr/next/next with objects in /home/sfr/next/perf.) > > > > I'll check, should've been caught by a cross compiler build for ppc64le > > I have in place :-\ > > > > minimal-ubuntu-x-ppc64el: Ok > > > > But maybe not, as this requires audit-libs-devel and that is not present > > on that minimal ubuntu x-compiler setup, sigh :-\ > > Hi acme, > > I have a jenkins which builds perf on ppc64le, but it only builds Linus' tree > and linux-next. > > Which branch in your tree should I be building in order to catch problems like > this, perf/core ? > > https://git.kernel.org/cgit/linux/kernel/git/acme/linux.git/log/?h=perf/core yes, please, I use two normally, one for devel stuff, perf/core, and perf/urgent when sending stuff to the current merge window. I'll continue trying to get a local, more complete, cross compiler environment, need to look again at how that multiarch stuff is in debian... - Arnaldo ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: linux-next: build failure after merge of the tip tree 2016-04-14 2:14 linux-next: build failure after merge of the tip tree Stephen Rothwell 2016-04-14 12:35 ` Arnaldo Carvalho de Melo @ 2016-04-15 21:15 ` Arnaldo Carvalho de Melo 2016-04-15 21:28 ` Arnaldo Carvalho de Melo 1 sibling, 1 reply; 11+ messages in thread From: Arnaldo Carvalho de Melo @ 2016-04-15 21:15 UTC (permalink / raw) To: Jiri Olsa, Stephen Rothwell Cc: Thomas Gleixner, Ingo Molnar, H. Peter Anvin, Peter Zijlstra, linux-next, linux-kernel, acme Em Thu, Apr 14, 2016 at 12:14:18PM +1000, Stephen Rothwell escreveu: > Hi all, > > After merging the tip tree, today's linux-next build (powerpc64le perf) > failed like this: > > make[3]: *** No rule to make target '/home/sfr/next/perf/arch/x86/include/generated/asm/syscalls_64.c', needed by '/home/sfr/next/perf/util/syscalltbl.o'. Stop. > > (I build in /home/sfr/next/next with objects in /home/sfr/next/perf.) > > Presumably caused by commit > > 1b700c997500 ("perf tools: Build syscall table .c header from kernel's syscall_64.tbl") > > I have reverted that commit for today (which fixes my build problem but > may not be overall correct). Right, I'm trying to figure out how to bet fix that, one way would be to do: diff --git a/tools/perf/util/Build b/tools/perf/util/Build index 85a9ab62e23f..7fc4ac304ed6 100644 --- a/tools/perf/util/Build +++ b/tools/perf/util/Build @@ -150,7 +150,7 @@ CFLAGS_libstring.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ET CFLAGS_hweight.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" CFLAGS_parse-events.o += -Wno-redundant-decls -$(OUTPUT)util/syscalltbl.o: util/syscalltbl.c arch/x86/entry/syscalls/syscall_64.tbl $(OUTPUT)arch/x86/include/generated/asm/syscalls_64.c FORCE +$(OUTPUT)util/syscalltbl.o: util/syscalltbl.c FORCE $(call rule_mkdir) $(call if_changed_dep,cc_o_c) -------------------------------------------- Now trying to figure out how to, just for x86 to add a dep for those files, but a arch specific thing shouldn't be in tools/perf/util/Build anyway... In the end I want this syscalltbl.c thing to know about all arches, to remove the dependency on audit-libs as the way to map syscall ID to name and vice-versa. So I'll need all arches to generate that arch/$(ARCH)/include/generated/asm/syscalls_64.c file, etc. Doing that by copying from the kernel the files where such info is kept and having a diff check as part of the perf build process, so that we can get notified when it drifts while not tying tools/perf/ to anything outside that can end up breaking the tools/ build when changes happen outside. - Arnaldo ^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: linux-next: build failure after merge of the tip tree 2016-04-15 21:15 ` Arnaldo Carvalho de Melo @ 2016-04-15 21:28 ` Arnaldo Carvalho de Melo 2016-04-17 12:12 ` Jiri Olsa 2016-04-23 13:04 ` [tip:perf/core] perf build: Remove x86 references from arch-neutral Build tip-bot for Arnaldo Carvalho de Melo 0 siblings, 2 replies; 11+ messages in thread From: Arnaldo Carvalho de Melo @ 2016-04-15 21:28 UTC (permalink / raw) To: Arnaldo Carvalho de Melo Cc: Jiri Olsa, Stephen Rothwell, Thomas Gleixner, Ingo Molnar, H. Peter Anvin, Peter Zijlstra, linux-next, linux-kernel Em Fri, Apr 15, 2016 at 06:15:42PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Thu, Apr 14, 2016 at 12:14:18PM +1000, Stephen Rothwell escreveu: > > Hi all, > > > > After merging the tip tree, today's linux-next build (powerpc64le perf) > > failed like this: > > > > make[3]: *** No rule to make target '/home/sfr/next/perf/arch/x86/include/generated/asm/syscalls_64.c', needed by '/home/sfr/next/perf/util/syscalltbl.o'. Stop. > > > > (I build in /home/sfr/next/next with objects in /home/sfr/next/perf.) > > > > Presumably caused by commit > > > > 1b700c997500 ("perf tools: Build syscall table .c header from kernel's syscall_64.tbl") > > > > I have reverted that commit for today (which fixes my build problem but > > may not be overall correct). > > Right, I'm trying to figure out how to bet fix that, one way would be to > do: Jiri, I think this is enough, i.e. I think we make sure, just like the kernel, that the archheaders target in tools/perf/arch/*/Makefile is called before doing all the other build, no? I.e. when we get to build syscalltbl.o the syscalls_64.c file will be built already, limited testing seems to agree with this :-) - Arnaldo > diff --git a/tools/perf/util/Build b/tools/perf/util/Build > index 85a9ab62e23f..7fc4ac304ed6 100644 > --- a/tools/perf/util/Build > +++ b/tools/perf/util/Build > @@ -150,7 +150,7 @@ CFLAGS_libstring.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ET > CFLAGS_hweight.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" > CFLAGS_parse-events.o += -Wno-redundant-decls > > -$(OUTPUT)util/syscalltbl.o: util/syscalltbl.c arch/x86/entry/syscalls/syscall_64.tbl $(OUTPUT)arch/x86/include/generated/asm/syscalls_64.c FORCE > +$(OUTPUT)util/syscalltbl.o: util/syscalltbl.c FORCE > $(call rule_mkdir) > $(call if_changed_dep,cc_o_c) > > > -------------------------------------------- > > Now trying to figure out how to, just for x86 to add a dep for those > files, but a arch specific thing shouldn't be in tools/perf/util/Build > anyway... > > In the end I want this syscalltbl.c thing to know about all arches, > to remove the dependency on audit-libs as the way to map syscall ID to > name and vice-versa. > > So I'll need all arches to generate that > arch/$(ARCH)/include/generated/asm/syscalls_64.c file, etc. Doing that > by copying from the kernel the files where such info is kept and having > a diff check as part of the perf build process, so that we can get > notified when it drifts while not tying tools/perf/ to anything outside > that can end up breaking the tools/ build when changes happen outside. > > - Arnaldo ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: linux-next: build failure after merge of the tip tree 2016-04-15 21:28 ` Arnaldo Carvalho de Melo @ 2016-04-17 12:12 ` Jiri Olsa 2016-04-17 13:04 ` Jiri Olsa 2016-04-23 13:04 ` [tip:perf/core] perf build: Remove x86 references from arch-neutral Build tip-bot for Arnaldo Carvalho de Melo 1 sibling, 1 reply; 11+ messages in thread From: Jiri Olsa @ 2016-04-17 12:12 UTC (permalink / raw) To: Arnaldo Carvalho de Melo Cc: Arnaldo Carvalho de Melo, Jiri Olsa, Stephen Rothwell, Thomas Gleixner, Ingo Molnar, H. Peter Anvin, Peter Zijlstra, linux-next, linux-kernel On Fri, Apr 15, 2016 at 06:28:31PM -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, Apr 15, 2016 at 06:15:42PM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Thu, Apr 14, 2016 at 12:14:18PM +1000, Stephen Rothwell escreveu: > > > Hi all, > > > > > > After merging the tip tree, today's linux-next build (powerpc64le perf) > > > failed like this: > > > > > > make[3]: *** No rule to make target '/home/sfr/next/perf/arch/x86/include/generated/asm/syscalls_64.c', needed by '/home/sfr/next/perf/util/syscalltbl.o'. Stop. > > > > > > (I build in /home/sfr/next/next with objects in /home/sfr/next/perf.) > > > > > > Presumably caused by commit > > > > > > 1b700c997500 ("perf tools: Build syscall table .c header from kernel's syscall_64.tbl") > > > > > > I have reverted that commit for today (which fixes my build problem but > > > may not be overall correct). > > > > Right, I'm trying to figure out how to bet fix that, one way would be to > > do: > > Jiri, I think this is enough, i.e. I think we make sure, just like the > kernel, that the archheaders target in tools/perf/arch/*/Makefile is > called before doing all the other build, no? > > I.e. when we get to build syscalltbl.o the syscalls_64.c file will be > built already, limited testing seems to agree with this :-) > > - Arnaldo > > > diff --git a/tools/perf/util/Build b/tools/perf/util/Build > > index 85a9ab62e23f..7fc4ac304ed6 100644 > > --- a/tools/perf/util/Build > > +++ b/tools/perf/util/Build > > @@ -150,7 +150,7 @@ CFLAGS_libstring.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ET > > CFLAGS_hweight.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" > > CFLAGS_parse-events.o += -Wno-redundant-decls > > > > -$(OUTPUT)util/syscalltbl.o: util/syscalltbl.c arch/x86/entry/syscalls/syscall_64.tbl $(OUTPUT)arch/x86/include/generated/asm/syscalls_64.c FORCE > > +$(OUTPUT)util/syscalltbl.o: util/syscalltbl.c FORCE yep, having arch specific target in generic Build file is wrong I'll have ppc64le available later today, I'll check on that jirka ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: linux-next: build failure after merge of the tip tree 2016-04-17 12:12 ` Jiri Olsa @ 2016-04-17 13:04 ` Jiri Olsa 2016-04-18 13:24 ` Arnaldo Carvalho de Melo 0 siblings, 1 reply; 11+ messages in thread From: Jiri Olsa @ 2016-04-17 13:04 UTC (permalink / raw) To: Arnaldo Carvalho de Melo Cc: Arnaldo Carvalho de Melo, Jiri Olsa, Stephen Rothwell, Thomas Gleixner, Ingo Molnar, H. Peter Anvin, Peter Zijlstra, linux-next, linux-kernel On Sun, Apr 17, 2016 at 02:12:07PM +0200, Jiri Olsa wrote: > On Fri, Apr 15, 2016 at 06:28:31PM -0300, Arnaldo Carvalho de Melo wrote: > > Em Fri, Apr 15, 2016 at 06:15:42PM -0300, Arnaldo Carvalho de Melo escreveu: > > > Em Thu, Apr 14, 2016 at 12:14:18PM +1000, Stephen Rothwell escreveu: > > > > Hi all, > > > > > > > > After merging the tip tree, today's linux-next build (powerpc64le perf) > > > > failed like this: > > > > > > > > make[3]: *** No rule to make target '/home/sfr/next/perf/arch/x86/include/generated/asm/syscalls_64.c', needed by '/home/sfr/next/perf/util/syscalltbl.o'. Stop. > > > > > > > > (I build in /home/sfr/next/next with objects in /home/sfr/next/perf.) > > > > > > > > Presumably caused by commit > > > > > > > > 1b700c997500 ("perf tools: Build syscall table .c header from kernel's syscall_64.tbl") > > > > > > > > I have reverted that commit for today (which fixes my build problem but > > > > may not be overall correct). > > > > > > Right, I'm trying to figure out how to bet fix that, one way would be to > > > do: > > > > Jiri, I think this is enough, i.e. I think we make sure, just like the > > kernel, that the archheaders target in tools/perf/arch/*/Makefile is > > called before doing all the other build, no? > > > > I.e. when we get to build syscalltbl.o the syscalls_64.c file will be > > built already, limited testing seems to agree with this :-) > > > > - Arnaldo > > > > > diff --git a/tools/perf/util/Build b/tools/perf/util/Build > > > index 85a9ab62e23f..7fc4ac304ed6 100644 > > > --- a/tools/perf/util/Build > > > +++ b/tools/perf/util/Build > > > @@ -150,7 +150,7 @@ CFLAGS_libstring.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ET > > > CFLAGS_hweight.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" > > > CFLAGS_parse-events.o += -Wno-redundant-decls > > > > > > -$(OUTPUT)util/syscalltbl.o: util/syscalltbl.c arch/x86/entry/syscalls/syscall_64.tbl $(OUTPUT)arch/x86/include/generated/asm/syscalls_64.c FORCE > > > +$(OUTPUT)util/syscalltbl.o: util/syscalltbl.c FORCE > > yep, having arch specific target in generic Build file is wrong > I'll have ppc64le available later today, I'll check on that it looks ok, you can also now remove the whole syscalltbl.o override and archheaders needs to be called before the build starts, which is the case right now thanks, jirka --- diff --git a/tools/perf/util/Build b/tools/perf/util/Build index 85a9ab62e23f..90229a88f969 100644 --- a/tools/perf/util/Build +++ b/tools/perf/util/Build @@ -150,10 +150,6 @@ CFLAGS_libstring.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ET CFLAGS_hweight.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" CFLAGS_parse-events.o += -Wno-redundant-decls -$(OUTPUT)util/syscalltbl.o: util/syscalltbl.c arch/x86/entry/syscalls/syscall_64.tbl $(OUTPUT)arch/x86/include/generated/asm/syscalls_64.c FORCE - $(call rule_mkdir) - $(call if_changed_dep,cc_o_c) - $(OUTPUT)util/kallsyms.o: ../lib/symbol/kallsyms.c FORCE $(call rule_mkdir) $(call if_changed_dep,cc_o_c) ^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: linux-next: build failure after merge of the tip tree 2016-04-17 13:04 ` Jiri Olsa @ 2016-04-18 13:24 ` Arnaldo Carvalho de Melo 2016-04-18 13:28 ` Jiri Olsa 0 siblings, 1 reply; 11+ messages in thread From: Arnaldo Carvalho de Melo @ 2016-04-18 13:24 UTC (permalink / raw) To: Jiri Olsa Cc: Arnaldo Carvalho de Melo, Jiri Olsa, Stephen Rothwell, Thomas Gleixner, Ingo Molnar, H. Peter Anvin, Peter Zijlstra, linux-next, linux-kernel Em Sun, Apr 17, 2016 at 03:04:05PM +0200, Jiri Olsa escreveu: > On Sun, Apr 17, 2016 at 02:12:07PM +0200, Jiri Olsa wrote: > > On Fri, Apr 15, 2016 at 06:28:31PM -0300, Arnaldo Carvalho de Melo wrote: > > > Em Fri, Apr 15, 2016 at 06:15:42PM -0300, Arnaldo Carvalho de Melo escreveu: > > > > Em Thu, Apr 14, 2016 at 12:14:18PM +1000, Stephen Rothwell escreveu: > > > > > Hi all, > > > > > > > > > > After merging the tip tree, today's linux-next build (powerpc64le perf) > > > > > failed like this: > > > > > > > > > > make[3]: *** No rule to make target '/home/sfr/next/perf/arch/x86/include/generated/asm/syscalls_64.c', needed by '/home/sfr/next/perf/util/syscalltbl.o'. Stop. > > > > > > > > > > (I build in /home/sfr/next/next with objects in /home/sfr/next/perf.) > > > > > > > > > > Presumably caused by commit > > > > > > > > > > 1b700c997500 ("perf tools: Build syscall table .c header from kernel's syscall_64.tbl") > > > > > > > > > > I have reverted that commit for today (which fixes my build problem but > > > > > may not be overall correct). > > > > > > > > Right, I'm trying to figure out how to bet fix that, one way would be to > > > > do: > > > > > > Jiri, I think this is enough, i.e. I think we make sure, just like the > > > kernel, that the archheaders target in tools/perf/arch/*/Makefile is > > > called before doing all the other build, no? > > > > > > I.e. when we get to build syscalltbl.o the syscalls_64.c file will be > > > built already, limited testing seems to agree with this :-) > > > > > > - Arnaldo > > > > > > > diff --git a/tools/perf/util/Build b/tools/perf/util/Build > > > > index 85a9ab62e23f..7fc4ac304ed6 100644 > > > > --- a/tools/perf/util/Build > > > > +++ b/tools/perf/util/Build > > > > @@ -150,7 +150,7 @@ CFLAGS_libstring.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ET > > > > CFLAGS_hweight.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" > > > > CFLAGS_parse-events.o += -Wno-redundant-decls > > > > > > > > -$(OUTPUT)util/syscalltbl.o: util/syscalltbl.c arch/x86/entry/syscalls/syscall_64.tbl $(OUTPUT)arch/x86/include/generated/asm/syscalls_64.c FORCE > > > > +$(OUTPUT)util/syscalltbl.o: util/syscalltbl.c FORCE > > > > yep, having arch specific target in generic Build file is wrong > > I'll have ppc64le available later today, I'll check on that > > it looks ok, you can also now remove the whole syscalltbl.o override Ok, so I'll add this and your Tested-by, ok? - Arnaldo > and archheaders needs to be called before the build starts, > which is the case right now > > thanks, > jirka > > > --- > diff --git a/tools/perf/util/Build b/tools/perf/util/Build > index 85a9ab62e23f..90229a88f969 100644 > --- a/tools/perf/util/Build > +++ b/tools/perf/util/Build > @@ -150,10 +150,6 @@ CFLAGS_libstring.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ET > CFLAGS_hweight.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" > CFLAGS_parse-events.o += -Wno-redundant-decls > > -$(OUTPUT)util/syscalltbl.o: util/syscalltbl.c arch/x86/entry/syscalls/syscall_64.tbl $(OUTPUT)arch/x86/include/generated/asm/syscalls_64.c FORCE > - $(call rule_mkdir) > - $(call if_changed_dep,cc_o_c) > - > $(OUTPUT)util/kallsyms.o: ../lib/symbol/kallsyms.c FORCE > $(call rule_mkdir) > $(call if_changed_dep,cc_o_c) ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: linux-next: build failure after merge of the tip tree 2016-04-18 13:24 ` Arnaldo Carvalho de Melo @ 2016-04-18 13:28 ` Jiri Olsa 0 siblings, 0 replies; 11+ messages in thread From: Jiri Olsa @ 2016-04-18 13:28 UTC (permalink / raw) To: Arnaldo Carvalho de Melo Cc: Arnaldo Carvalho de Melo, Jiri Olsa, Stephen Rothwell, Thomas Gleixner, Ingo Molnar, H. Peter Anvin, Peter Zijlstra, linux-next, linux-kernel On Mon, Apr 18, 2016 at 10:24:02AM -0300, Arnaldo Carvalho de Melo wrote: > Em Sun, Apr 17, 2016 at 03:04:05PM +0200, Jiri Olsa escreveu: > > On Sun, Apr 17, 2016 at 02:12:07PM +0200, Jiri Olsa wrote: > > > On Fri, Apr 15, 2016 at 06:28:31PM -0300, Arnaldo Carvalho de Melo wrote: > > > > Em Fri, Apr 15, 2016 at 06:15:42PM -0300, Arnaldo Carvalho de Melo escreveu: > > > > > Em Thu, Apr 14, 2016 at 12:14:18PM +1000, Stephen Rothwell escreveu: > > > > > > Hi all, > > > > > > > > > > > > After merging the tip tree, today's linux-next build (powerpc64le perf) > > > > > > failed like this: > > > > > > > > > > > > make[3]: *** No rule to make target '/home/sfr/next/perf/arch/x86/include/generated/asm/syscalls_64.c', needed by '/home/sfr/next/perf/util/syscalltbl.o'. Stop. > > > > > > > > > > > > (I build in /home/sfr/next/next with objects in /home/sfr/next/perf.) > > > > > > > > > > > > Presumably caused by commit > > > > > > > > > > > > 1b700c997500 ("perf tools: Build syscall table .c header from kernel's syscall_64.tbl") > > > > > > > > > > > > I have reverted that commit for today (which fixes my build problem but > > > > > > may not be overall correct). > > > > > > > > > > Right, I'm trying to figure out how to bet fix that, one way would be to > > > > > do: > > > > > > > > Jiri, I think this is enough, i.e. I think we make sure, just like the > > > > kernel, that the archheaders target in tools/perf/arch/*/Makefile is > > > > called before doing all the other build, no? > > > > > > > > I.e. when we get to build syscalltbl.o the syscalls_64.c file will be > > > > built already, limited testing seems to agree with this :-) > > > > > > > > - Arnaldo > > > > > > > > > diff --git a/tools/perf/util/Build b/tools/perf/util/Build > > > > > index 85a9ab62e23f..7fc4ac304ed6 100644 > > > > > --- a/tools/perf/util/Build > > > > > +++ b/tools/perf/util/Build > > > > > @@ -150,7 +150,7 @@ CFLAGS_libstring.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ET > > > > > CFLAGS_hweight.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" > > > > > CFLAGS_parse-events.o += -Wno-redundant-decls > > > > > > > > > > -$(OUTPUT)util/syscalltbl.o: util/syscalltbl.c arch/x86/entry/syscalls/syscall_64.tbl $(OUTPUT)arch/x86/include/generated/asm/syscalls_64.c FORCE > > > > > +$(OUTPUT)util/syscalltbl.o: util/syscalltbl.c FORCE > > > > > > yep, having arch specific target in generic Build file is wrong > > > I'll have ppc64le available later today, I'll check on that > > > > it looks ok, you can also now remove the whole syscalltbl.o override > > Ok, so I'll add this and your Tested-by, ok? ook ;-) jirka ^ permalink raw reply [flat|nested] 11+ messages in thread
* [tip:perf/core] perf build: Remove x86 references from arch-neutral Build 2016-04-15 21:28 ` Arnaldo Carvalho de Melo 2016-04-17 12:12 ` Jiri Olsa @ 2016-04-23 13:04 ` tip-bot for Arnaldo Carvalho de Melo 1 sibling, 0 replies; 11+ messages in thread From: tip-bot for Arnaldo Carvalho de Melo @ 2016-04-23 13:04 UTC (permalink / raw) To: linux-tip-commits Cc: adrian.hunter, linux-kernel, tglx, sfr, namhyung, wangnan0, hpa, dsahern, mingo, peterz, jolsa, acme Commit-ID: 2cc4666927402ec748122cac15ceac35a5e298a3 Gitweb: http://git.kernel.org/tip/2cc4666927402ec748122cac15ceac35a5e298a3 Author: Arnaldo Carvalho de Melo <acme@redhat.com> AuthorDate: Tue, 19 Apr 2016 12:01:51 -0300 Committer: Arnaldo Carvalho de Melo <acme@redhat.com> CommitDate: Tue, 19 Apr 2016 12:37:02 -0300 perf build: Remove x86 references from arch-neutral Build It will already be dealt with generating the syscalltbl.c file in the x86 arch specific Build files, namely via 'archheaders'. This fixes the build on !x86 arches, as reported for powerpcle Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Tested-by: Jiri Olsa <jolsa@kernel.org> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Wang Nan <wangnan0@huawei.com> Fixes: 1b700c997500 ("perf tools: Build syscall table .c header from kernel's syscall_64.tbl") Link: http://lkml.kernel.org/r/20160415212831.GT9056@kernel.org [ Removed the syscalltbl.o altogether, as per Jiri's suggestion ] Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> --- tools/perf/util/Build | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tools/perf/util/Build b/tools/perf/util/Build index 85a9ab6..90229a8 100644 --- a/tools/perf/util/Build +++ b/tools/perf/util/Build @@ -150,10 +150,6 @@ CFLAGS_libstring.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ET CFLAGS_hweight.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" CFLAGS_parse-events.o += -Wno-redundant-decls -$(OUTPUT)util/syscalltbl.o: util/syscalltbl.c arch/x86/entry/syscalls/syscall_64.tbl $(OUTPUT)arch/x86/include/generated/asm/syscalls_64.c FORCE - $(call rule_mkdir) - $(call if_changed_dep,cc_o_c) - $(OUTPUT)util/kallsyms.o: ../lib/symbol/kallsyms.c FORCE $(call rule_mkdir) $(call if_changed_dep,cc_o_c) ^ permalink raw reply related [flat|nested] 11+ messages in thread
end of thread, other threads:[~2016-04-23 13:05 UTC | newest] Thread overview: 11+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-04-14 2:14 linux-next: build failure after merge of the tip tree Stephen Rothwell 2016-04-14 12:35 ` Arnaldo Carvalho de Melo 2016-04-14 12:55 ` Michael Ellerman 2016-04-14 15:08 ` Arnaldo Carvalho de Melo 2016-04-15 21:15 ` Arnaldo Carvalho de Melo 2016-04-15 21:28 ` Arnaldo Carvalho de Melo 2016-04-17 12:12 ` Jiri Olsa 2016-04-17 13:04 ` Jiri Olsa 2016-04-18 13:24 ` Arnaldo Carvalho de Melo 2016-04-18 13:28 ` Jiri Olsa 2016-04-23 13:04 ` [tip:perf/core] perf build: Remove x86 references from arch-neutral Build tip-bot for Arnaldo Carvalho de Melo
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).