linux-next: build failure after merge of the tip tree
Subsystems (2)
Hi all,
After merging the tip tree, today's linux-next build (x86_64 allmodconfig) failed like this:
In file included from orc_dump.c:19:0:
orc.h:21:10: fatal error: asm/orc_types.h: No such file or directory
#include <asm/orc_types.h>
^~~~~~~~~~~~~~~~~compilation terminated.
mv: cannot stat '/home/sfr/next/x86_64_allmodconfig/tools/objtool/.orc_dump.o.tmp': No such file or directory tools/build/Makefile.build:96: recipe for target '/home/sfr/next/x86_64_allmodconfig/tools/objtool/orc_dump.o' failed In file included from orc_gen.c:21:0:
orc.h:21:10: fatal error: asm/orc_types.h: No such file or directory
#include <asm/orc_types.h>
^~~~~~~~~~~~~~~~~compilation terminated.
mv: cannot stat '/home/sfr/next/x86_64_allmodconfig/tools/objtool/.orc_gen.o.tmp': No such file or directory tools/build/Makefile.build:96: recipe for target '/home/sfr/next/x86_64_allmodconfig/tools/objtool/orc_gen.o' failed In file included from check.h:25:0,
from builtin-check.c:30:
orc.h:21:10: fatal error: asm/orc_types.h: No such file or directory
#include <asm/orc_types.h>
^~~~~~~~~~~~~~~~~
compilation terminated.
In file included from check.h:25:0,
from builtin-orc.c:30:
orc.h:21:10: fatal error: asm/orc_types.h: No such file or directory
#include <asm/orc_types.h>
^~~~~~~~~~~~~~~~~compilation terminated.
mv: cannot stat '/home/sfr/next/x86_64_allmodconfig/tools/objtool/.builtin-check.o.tmp': No such file or directory tools/build/Makefile.build:96: recipe for target '/home/sfr/next/x86_64_allmodconfig/tools/objtool/builtin-check.o' failed
mv: cannot stat '/home/sfr/next/x86_64_allmodconfig/tools/objtool/.builtin-orc.o.tmp': No such file or directory tools/build/Makefile.build:96: recipe for target '/home/sfr/next/x86_64_allmodconfig/tools/objtool/builtin-orc.o' failed In file included from check.h:25:0,
from check.c:21:
orc.h:21:10: fatal error: asm/orc_types.h: No such file or directory
#include <asm/orc_types.h>
^~~~~~~~~~~~~~~~~compilation terminated.
mv: cannot stat '/home/sfr/next/x86_64_allmodconfig/tools/objtool/.check.o.tmp': No such file or directory tools/build/Makefile.build:96: recipe for target '/home/sfr/next/x86_64_allmodconfig/tools/objtool/check.o' failed arch/x86/decode.c:22:10: fatal error: asm/insn.h: No such file or directory
#include <asm/insn.h>
^~~~~~~~~~~~compilation terminated.
mv: cannot stat '/home/sfr/next/x86_64_allmodconfig/tools/objtool/arch/x86/.decode.o.tmp': No such file or directory
Presumably caused by commit
6a77cff819ae ("objtool: Move synced files to their original relative locations")
If it matters, this is a cross compilation (PowerPC host) using O= .
I have used the tip tree from next-20171107 for today.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 7 lines · Stephen Rothwell
Presumably caused by commit
6a77cff819ae("objtool: Move synced files to their original relative locations")If it matters, this is a cross compilation (PowerPC host) using O= .
I have used the tip tree from next-20171107 for today.
Hi Stephen,
Does this fix it?
tools/objtool/Makefile +1 -1
@@ -27,7 +27,7 @@ all: $(OBJTOOL) INCLUDES := -I$(srctree)/tools/include \ -I$(srctree)/tools/arch/$(HOSTARCH)/include/uapi \ - -I$(srctree)/tools/objtool/arch/$(HOSTARCH)/include + -I$(srctree)/tools/objtool/arch/$(ARCH)/include WARNINGS := $(EXTRA_WARNINGS) -Wno-switch-default -Wno-switch-enum -Wno-packed CFLAGS += -Wall -Werror $(WARNINGS) -fomit-frame-pointer -O2 -g $(INCLUDES) LDFLAGS += -lelf $(LIBSUBCMD)
Stephen Rothwell
Tested-byHi Josh,
Quoted 19 lines · On Tue, 7 Nov 2017 21:01:52 -0600 Josh Poimboeuf <[email protected]> wrote:
Quoted 7 lines · Stephen Rothwell
Presumably caused by commit
6a77cff819ae("objtool: Move synced files to their original relative locations")If it matters, this is a cross compilation (PowerPC host) using O= .
I have used the tip tree from next-20171107 for today.
Hi Stephen,
Does this fix it?
tools/objtool/Makefile +0
-0
tools/objtool/Makefile all: $(OBJTOOL) · line 33
Quoted 8 lines
tools/objtool/Makefile +1
-1@@ -27,7 +27,7 @@ all: $(OBJTOOL) INCLUDES := -I$(srctree)/tools/include \ -I$(srctree)/tools/arch/$(HOSTARCH)/include/uapi \ - -I$(srctree)/tools/objtool/arch/$(HOSTARCH)/include + -I$(srctree)/tools/objtool/arch/$(ARCH)/include WARNINGS := $(EXTRA_WARNINGS) -Wno-switch-default -Wno-switch-enum -Wno-packed CFLAGS += -Wall -Werror $(WARNINGS) -fomit-frame-pointer -O2 -g $(INCLUDES) LDFLAGS += -lelf $(LIBSUBCMD)
Yes, thanks.
Signature · 2 lines
Cheers, Stephen Rothwell
tip-bot for Josh Poimboeuf
merge bot[tip:core/objtool] objtool: Fix cross-build
In reply to Josh Poimboeufobjtool: Fix cross-build
Commit-ID: 9eb719855f6c9b21eb5889d9ac2ca1c60527ad89 Gitweb: https://git.kernel.org/tip/9eb719855f6c9b21eb5889d9ac2ca1c60527ad89 Author: Josh Poimboeuf <[email protected]> AuthorDate: Tue, 7 Nov 2017 21:01:52 -0600 Committer: Ingo Molnar <[email protected]> CommitDate: Wed, 8 Nov 2017 10:06:08 +0100
objtool: Fix cross-build
Stephen Rothwell reported this cross-compilation build failure:
| In file included from orc_dump.c:19:0: | orc.h:21:10: fatal error: asm/orc_types.h: No such file or directory | ...
Caused by:
6a77cff819ae ("objtool: Move synced files to their original relative locations")
Use the proper arch header files location, not the host-arch location.
--- tools/objtool/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/objtool/Makefile +1 -1
@@ -27,7 +27,7 @@ all: $(OBJTOOL) INCLUDES := -I$(srctree)/tools/include \ -I$(srctree)/tools/arch/$(HOSTARCH)/include/uapi \ - -I$(srctree)/tools/objtool/arch/$(HOSTARCH)/include + -I$(srctree)/tools/objtool/arch/$(ARCH)/include WARNINGS := $(EXTRA_WARNINGS) -Wno-switch-default -Wno-switch-enum -Wno-packed CFLAGS += -Wall -Werror $(WARNINGS) -fomit-frame-pointer -O2 -g $(INCLUDES) LDFLAGS += -lelf $(LIBSUBCMD)
Quoted 18 lines · Josh Poimboeuf
Quoted 7 lines · Stephen Rothwell
Presumably caused by commit
6a77cff819ae("objtool: Move synced files to their original relative locations")If it matters, this is a cross compilation (PowerPC host) using O= .
I have used the tip tree from next-20171107 for today.
Hi Stephen,
Does this fix it?
tools/objtool/Makefile +0
-0
tools/objtool/Makefile all: $(OBJTOOL) · line 33
Quoted 8 lines
tools/objtool/Makefile +1
-1@@ -27,7 +27,7 @@ all: $(OBJTOOL) INCLUDES := -I$(srctree)/tools/include \ -I$(srctree)/tools/arch/$(HOSTARCH)/include/uapi \ - -I$(srctree)/tools/objtool/arch/$(HOSTARCH)/include + -I$(srctree)/tools/objtool/arch/$(ARCH)/include WARNINGS := $(EXTRA_WARNINGS) -Wno-switch-default -Wno-switch-enum -Wno-packed CFLAGS += -Wall -Werror $(WARNINGS) -fomit-frame-pointer -O2 -g $(INCLUDES) LDFLAGS += -lelf $(LIBSUBCMD)
Note, I created a commit out of this fix, with your SOB - let me know if you have any objections.
Thanks,
Ingo
Hi Ingo,
Quoted 3 lines · On Wed, 8 Nov 2017 10:18:28 +0100 Ingo Molnar <[email protected]> wrote:
Note, I created a commit out of this fix, with your SOB - let me know if you have any objections.
Only a small nit - I didn't bisect it, I just figured it out by inspection. Unfortunately, I don't have time to do bisections while building linux-next. :-(
Not a biggie, though. Thanks for sorting this out.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 4 lines · Stephen Rothwell
Hi Ingo,
Quoted 1 line · On Wed, 8 Nov 2017 10:18:28 +0100 Ingo Molnar <[email protected]> wrote:
Quoted 8 lines
Quoted 2 lines
Note, I created a commit out of this fix, with your SOB - let me know if you have any objections.
Only a small nit - I didn't bisect it, I just figured it out by inspection. Unfortunately, I don't have time to do bisections while building linux-next. :-(
Not a biggie, though. Thanks for sorting this out.
Yeah, so while I knew that you didn't do the bisection the usual way, you still got it right nevertheless, so the tag is well deserved! I'll add it as a "Commit-identified-by" tag next time perhaps.
Thanks,
Ingo
Quoted 22 lines · Ingo Molnar
Quoted 19 lines · Josh Poimboeuf
Quoted 7 lines · Stephen Rothwell
Presumably caused by commit
6a77cff819ae("objtool: Move synced files to their original relative locations")If it matters, this is a cross compilation (PowerPC host) using O= .
I have used the tip tree from next-20171107 for today.
Hi Stephen,
Does this fix it?
tools/objtool/Makefile +0
-0@@ -27,7 +27,7 @@ all: $(OBJTOOL)
Quoted 10 lines
tools/objtool/Makefile all: $(OBJTOOL) · line 33
Quoted 7 lines
tools/objtool/Makefile +1
-1INCLUDES := -I$(srctree)/tools/include \ -I$(srctree)/tools/arch/$(HOSTARCH)/include/uapi \ - -I$(srctree)/tools/objtool/arch/$(HOSTARCH)/include + -I$(srctree)/tools/objtool/arch/$(ARCH)/include WARNINGS := $(EXTRA_WARNINGS) -Wno-switch-default -Wno-switch-enum -Wno-packed CFLAGS += -Wall -Werror $(WARNINGS) -fomit-frame-pointer -O2 -g $(INCLUDES) LDFLAGS += -lelf $(LIBSUBCMD)Note, I created a commit out of this fix, with your SOB - let me know if you have any objections.
Looks good, thanks Ingo!
Signature · 1 line
Josh
Hi Ingo,
Quoted 13 lines · On Wed, 8 Nov 2017 10:18:28 +0100 Ingo Molnar <[email protected]> wrote:
Quoted 10 lines · Josh Poimboeuf
On Wed, Nov 08, 2017 at 01:47:17PM +1100, Stephen Rothwell wrote:
Does this fix it?
tools/objtool/Makefile +0
-0@@ -27,7 +27,7 @@ all: $(OBJTOOL)
Quoted 10 lines
tools/objtool/Makefile all: $(OBJTOOL) · line 33
Quoted 7 lines
tools/objtool/Makefile +1
-1INCLUDES := -I$(srctree)/tools/include \ -I$(srctree)/tools/arch/$(HOSTARCH)/include/uapi \ - -I$(srctree)/tools/objtool/arch/$(HOSTARCH)/include + -I$(srctree)/tools/objtool/arch/$(ARCH)/include WARNINGS := $(EXTRA_WARNINGS) -Wno-switch-default -Wno-switch-enum -Wno-packed CFLAGS += -Wall -Werror $(WARNINGS) -fomit-frame-pointer -O2 -g $(INCLUDES) LDFLAGS += -lelf $(LIBSUBCMD)Note, I created a commit out of this fix, with your SOB - let me know if you have any objections.
I applied this patch to linux-next today after the tip tree merge.
Signature · 2 lines
Cheers, Stephen Rothwell